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

Issue 2309743002: Move the QP scaling thresholds to the relevant encoders (Closed)

Created:
4 years, 3 months ago by kthelgason
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move the QP scaling thresholds to the relevant encoders. Also provide a new set of thresholds for the VideoToolbox encoder. The new thresholds were experimentally determined to work well on the iPhone 6S, and also adequately on the iPhone 5S. BUG=webrtc:5678 Committed: https://crrev.com/478681e1e6e6c5d66366672614d58b10ad7df083 Cr-Commit-Position: refs/heads/master@{#14420}

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove a superfluous newline #

Patch Set 3 : fix namespace issue in videoToolbox encoder #

Total comments: 4

Patch Set 4 : Add initializer to override default QP thresholds #

Patch Set 5 : rebase #

Total comments: 3

Patch Set 6 : Switch order of Init around #

Patch Set 7 : Keep backwards-compatibility with old interface #

Patch Set 8 : Please the windows gods #

Patch Set 9 : keep old threshold as default #

Total comments: 1

Patch Set 10 : Remove redundant call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -46 lines) Patch
M webrtc/api/android/jni/androidmediaencoder_jni.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -10 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler.h View 1 2 3 4 5 6 3 chunks +6 lines, -9 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler.cc View 1 2 3 4 5 6 7 8 9 3 chunks +32 lines, -18 lines 0 comments Download

Messages

Total messages: 51 (36 generated)
kthelgason
4 years, 3 months ago (2016-09-05 09:02:48 UTC) #2
magjed_webrtc
lgtm Since we need encoder specific thresholds, I think this is a cleaner approach then ...
4 years, 3 months ago (2016-09-06 07:49:09 UTC) #3
pbos-webrtc
I think that the encoder specific thresholds should only be added in files where they ...
4 years, 3 months ago (2016-09-07 19:09:26 UTC) #13
kthelgason
On 2016/09/07 19:09:26, pbos-webrtc wrote: > I think that the encoder specific thresholds should only ...
4 years, 3 months ago (2016-09-09 08:43:50 UTC) #14
pbos-webrtc
https://codereview.webrtc.org/2309743002/diff/40001/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc File webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc (right): https://codereview.webrtc.org/2309743002/diff/40001/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc#newcode29 webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc:29: const int kLowH264QpThreshold = 24; I want these to ...
4 years, 3 months ago (2016-09-12 19:51:49 UTC) #15
kthelgason
Updated after comments from pbos@. PTAL
4 years, 3 months ago (2016-09-19 13:37:37 UTC) #18
pbos-webrtc
https://codereview.webrtc.org/2309743002/diff/80001/webrtc/modules/video_coding/utility/quality_scaler.cc File webrtc/modules/video_coding/utility/quality_scaler.cc (right): https://codereview.webrtc.org/2309743002/diff/80001/webrtc/modules/video_coding/utility/quality_scaler.cc#newcode64 webrtc/modules/video_coding/utility/quality_scaler.cc:64: ClearSamples(); Have this function just get low/high thresholds and ...
4 years, 3 months ago (2016-09-19 14:06:57 UTC) #23
pbos-webrtc
4 years, 3 months ago (2016-09-19 14:06:58 UTC) #24
pbos-webrtc
lgtm, thanks
4 years, 3 months ago (2016-09-19 14:31:38 UTC) #25
kthelgason
Adding tommi@ as a reviewer to get this landed.
4 years, 2 months ago (2016-09-28 09:04:56 UTC) #40
mflodman
One comment, then LGTM. https://codereview.chromium.org/2309743002/diff/160001/webrtc/modules/video_coding/utility/quality_scaler.cc File webrtc/modules/video_coding/utility/quality_scaler.cc (right): https://codereview.chromium.org/2309743002/diff/160001/webrtc/modules/video_coding/utility/quality_scaler.cc#newcode86 webrtc/modules/video_coding/utility/quality_scaler.cc:86: ClearSamples(); You can remove this ...
4 years, 2 months ago (2016-09-28 11:54:07 UTC) #42
mflodman
Also, please mention in the description that the toolbox thresholds are actually changed in this ...
4 years, 2 months ago (2016-09-28 11:57:14 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2309743002/180001
4 years, 2 months ago (2016-09-28 13:46:31 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 2 months ago (2016-09-28 15:17:50 UTC) #49
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 15:17:59 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/478681e1e6e6c5d66366672614d58b10ad7df083
Cr-Commit-Position: refs/heads/master@{#14420}

Powered by Google App Engine
This is Rietveld 408576698