Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Issue 1470043002: Support texture scaling in Androids MediaEncoder (Closed)

Created:
5 years ago by perkj_webrtc
Modified:
5 years ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Support texture scaling in Androids MediaEncoder. This cl make it possible for the hw video encoder to downscale a texture image before encoding. The purpose is to allow downscaling if the quality is too bad at the current resolution. BUG=webrtc:4993 R=magjed@webrtc.org, pbos@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/598242a583564c5816a4b3b3c93f5cccf2395a17

Patch Set 1 #

Patch Set 2 : Added NativeBuffer.CropAndScale #

Patch Set 3 : Made Android specific #

Patch Set 4 : Added test in VideoCapturerAndroid #

Total comments: 4

Patch Set 5 : Rebased #

Patch Set 6 : Addressed pbos comments. #

Total comments: 1

Patch Set 7 : Revert changes in QualityScaler. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
M talk/app/webrtc/java/jni/androidmediaencoder_jni.cc View 1 2 3 4 5 6 2 chunks +23 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
perkj_webrtc
Please take a look. Something like this then...
5 years ago (2015-11-24 21:30:21 UTC) #2
perkj_webrtc
Hej, peter, can you help with an opinion about how I use the quality scaler ...
5 years ago (2015-11-25 10:16:55 UTC) #4
pbos-webrtc
lgtm for mediaencoder and quality_scaler https://codereview.webrtc.org/1470043002/diff/60001/talk/app/webrtc/java/jni/androidmediaencoder_jni.cc File talk/app/webrtc/java/jni/androidmediaencoder_jni.cc (right): https://codereview.webrtc.org/1470043002/diff/60001/talk/app/webrtc/java/jni/androidmediaencoder_jni.cc#newcode580 talk/app/webrtc/java/jni/androidmediaencoder_jni.cc:580: if (quality_scaler_.GetScaledResolution().width != frame.width() ...
5 years ago (2015-11-26 09:41:37 UTC) #5
perkj_webrtc
magjed - please? https://codereview.webrtc.org/1470043002/diff/60001/talk/app/webrtc/java/jni/androidmediaencoder_jni.cc File talk/app/webrtc/java/jni/androidmediaencoder_jni.cc (right): https://codereview.webrtc.org/1470043002/diff/60001/talk/app/webrtc/java/jni/androidmediaencoder_jni.cc#newcode580 talk/app/webrtc/java/jni/androidmediaencoder_jni.cc:580: if (quality_scaler_.GetScaledResolution().width != frame.width() || On ...
5 years ago (2015-11-26 12:58:49 UTC) #6
magjed_webrtc
https://codereview.webrtc.org/1470043002/diff/100001/webrtc/modules/video_coding/utility/quality_scaler.h File webrtc/modules/video_coding/utility/quality_scaler.h (right): https://codereview.webrtc.org/1470043002/diff/100001/webrtc/modules/video_coding/utility/quality_scaler.h#newcode37 webrtc/modules/video_coding/utility/quality_scaler.h:37: const Resolution& GetScaledResolution() const; I don't like this change. ...
5 years ago (2015-11-26 13:23:34 UTC) #8
magjed_webrtc
patch 7, lgtm.
5 years ago (2015-11-26 13:28:26 UTC) #9
perkj_webrtc
Committed patchset #7 (id:120001) manually as 598242a583564c5816a4b3b3c93f5cccf2395a17 (presubmit successful).
5 years ago (2015-11-26 13:29:10 UTC) #12
commit-bot: I haz the power
5 years ago (2015-11-26 13:29:10 UTC) #13
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/598242a583564c5816a4b3b3c93f5cccf2395a17
Cr-Commit-Position: refs/heads/master@{#10804}

Powered by Google App Engine
This is Rietveld 408576698