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

Issue 2398963003: Move usage of QualityScaler to ViEEncoder. (Closed)

Created:
4 years, 2 months ago by kthelgason
Modified:
4 years ago
CC:
interface-changes_webrtc.org, mflodman, niklas.enbom, peah-webrtc, perkj_webrtc, qiang.lu, tterriberry_mozilla.com, video-team_agora.io, webrtc-reviews_webrtc.org, yujie_mao (webrtc), zhengzhonghou_agora.io
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move usage of QualityScaler to ViEEncoder. This brings QualityScaler much more in line with OveruseFrameDetector. The two classes are conceptually similar, and should be used in the same way. The biggest changes in this CL are: - Quality scaling is now only done in ViEEncoder and not in each encoder implementation separately. - QualityScaler now checks the average QP asynchronously, instead of having to be polled on each frame. - QualityScaler is no longer responsible for actually scaling the frames, but has a callback to ViEEncoder that it uses to express it's desire for lower resolution. BUG=webrtc:6495 Committed: https://crrev.com/876222f77dfc640c852d5bb14f0aacf0f74e5690 Cr-Commit-Position: refs/heads/master@{#15286}

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix strange bug #

Patch Set 3 : delete log statement #

Patch Set 4 : re-add QP parsing to the MediaCodec implementation #

Patch Set 5 : fix videotoolbox overridden QP thresholds #

Total comments: 27

Patch Set 6 : Code review comments #

Total comments: 18

Patch Set 7 : code review #

Patch Set 8 : Make no scaling the default #

Patch Set 9 : Add back important stuff for videotoolbox encoder #

Patch Set 10 : implement getQPThresholds for various wrappers #

Total comments: 14

Patch Set 11 : Add back some logic to disable scaling in some cases #

Patch Set 12 : Refactor QualityScaler::Settings #

Patch Set 13 : tie qualityscaler lifetime to vieencoder #

Patch Set 14 : Stats now properly reflect scaling status #

Total comments: 23

Patch Set 15 : Code review #

Total comments: 57

Patch Set 16 : Code review round II #

Patch Set 17 : Rebase onto master #

Patch Set 18 : rebase more #

Patch Set 19 : remove nonexistant include #

Patch Set 20 : Fix rebase-introduced errors #

Patch Set 21 : rebase even more #

Patch Set 22 : fix build errors #

Patch Set 23 : Fix failing tests #

Patch Set 24 : Fix flaky test #

Total comments: 30

Patch Set 25 : Code review #

Patch Set 26 : rebase #

Total comments: 25

Patch Set 27 : Code review #

Patch Set 28 : code review and rebase #

Patch Set 29 : fix android build #

Total comments: 3

Patch Set 30 : Don't scale if source does not support it #

Patch Set 31 : rebase and fix issues #

Patch Set 32 : prevent data race #

Total comments: 49

Patch Set 33 : Code review #

Total comments: 4

Patch Set 34 : Actually test something sensible #

Total comments: 2

Patch Set 35 : Report dropped frames to ViEEncoder #

Total comments: 4

Patch Set 36 : Code review nit #

Patch Set 37 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+733 lines, -904 lines) Patch
M webrtc/api/android/jni/androidmediaencoder_jni.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 14 chunks +15 lines, -79 lines 0 comments Download
M webrtc/api/peerconnection_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +12 lines, -2 lines 0 comments Download
M webrtc/media/engine/videoencodersoftwarefallbackwrapper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/videoencodersoftwarefallbackwrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +5 lines, -6 lines 0 comments Download
M webrtc/media/engine/videoencodersoftwarefallbackwrapper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 chunks +0 lines, -17 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 6 chunks +9 lines, -32 lines 0 comments Download
M webrtc/modules/video_coding/codecs/i420/include/i420.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +0 lines, -32 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +8 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +1 line, -3 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 7 chunks +11 lines, -43 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp9/vp9_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +53 lines, -41 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 4 chunks +98 lines, -120 lines 0 comments Download
M webrtc/modules/video_coding/utility/quality_scaler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +110 lines, -319 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/video_coding/video_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 3 chunks +2 lines, -4 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/h264_video_toolbox_encoder.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 8 chunks +17 lines, -49 lines 0 comments Download
M webrtc/video/overuse_frame_detector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 4 chunks +3 lines, -15 lines 0 comments Download
M webrtc/video/overuse_frame_detector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 chunks +4 lines, -3 lines 0 comments Download
M webrtc/video/overuse_frame_detector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 9 chunks +28 lines, -23 lines 0 comments Download
M webrtc/video/send_statistics_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +2 lines, -5 lines 0 comments Download
M webrtc/video/send_statistics_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 chunks +12 lines, -5 lines 0 comments Download
M webrtc/video/send_statistics_proxy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +0 lines, -12 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 7 chunks +18 lines, -13 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 7 chunks +82 lines, -46 lines 0 comments Download
M webrtc/video/vie_encoder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 6 chunks +201 lines, -16 lines 0 comments Download
M webrtc/video_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 chunks +35 lines, -1 line 0 comments Download

Messages

Total messages: 113 (61 generated)
kthelgason
https://codereview.webrtc.org/2398963003/diff/1/webrtc/modules/video_coding/utility/quality_scaler.cc File webrtc/modules/video_coding/utility/quality_scaler.cc (left): https://codereview.webrtc.org/2398963003/diff/1/webrtc/modules/video_coding/utility/quality_scaler.cc#oldcode31 webrtc/modules/video_coding/utility/quality_scaler.cc:31: static const int kMeasureSecondsDownscale = 5; Note that there ...
4 years, 2 months ago (2016-10-06 14:34:13 UTC) #1
kthelgason
https://codereview.webrtc.org/2398963003/diff/80001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.h File webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.h (left): https://codereview.webrtc.org/2398963003/diff/80001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.h#oldcode91 webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.h:91: bool enable_scaling_; TODO: remove
4 years, 2 months ago (2016-10-06 18:05:47 UTC) #4
perkj_webrtc
https://codereview.webrtc.org/2398963003/diff/80001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (left): https://codereview.webrtc.org/2398963003/diff/80001/webrtc/api/android/jni/androidmediaencoder_jni.cc#oldcode990 webrtc/api/android/jni/androidmediaencoder_jni.cc:990: image->adapt_reason_.quality_resolution_downscales = does this cl take stats into account? ...
4 years, 2 months ago (2016-10-07 07:41:16 UTC) #5
kthelgason
https://codereview.webrtc.org/2398963003/diff/80001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (left): https://codereview.webrtc.org/2398963003/diff/80001/webrtc/api/android/jni/androidmediaencoder_jni.cc#oldcode990 webrtc/api/android/jni/androidmediaencoder_jni.cc:990: image->adapt_reason_.quality_resolution_downscales = On 2016/10/07 07:41:15, perkj_webrtc wrote: > does ...
4 years, 2 months ago (2016-10-07 09:34:48 UTC) #6
magjed_webrtc
First pass. It looks like this will be a nice cleanup! https://codereview.webrtc.org/2398963003/diff/120001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (left): ...
4 years, 2 months ago (2016-10-07 12:02:54 UTC) #8
kthelgason
https://codereview.webrtc.org/2398963003/diff/120001/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc File webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc (left): https://codereview.webrtc.org/2398963003/diff/120001/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc#oldcode375 webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc:375: int qp = -1; On 2016/10/07 12:02:54, magjed_webrtc wrote: ...
4 years, 2 months ago (2016-10-07 13:54:48 UTC) #9
kthelgason
I think this is ready for review. I updated the description with some points that ...
4 years, 2 months ago (2016-10-18 14:18:41 UTC) #11
magjed_webrtc
https://codereview.webrtc.org/2398963003/diff/200001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (left): https://codereview.webrtc.org/2398963003/diff/200001/webrtc/api/android/jni/androidmediaencoder_jni.cc#oldcode389 webrtc/api/android/jni/androidmediaencoder_jni.cc:389: scale_ = codec_settings->codecSpecific.VP8.automaticResizeOn; I don't see that you have ...
4 years, 2 months ago (2016-10-19 13:00:12 UTC) #12
kthelgason
https://codereview.webrtc.org/2398963003/diff/200001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (left): https://codereview.webrtc.org/2398963003/diff/200001/webrtc/api/android/jni/androidmediaencoder_jni.cc#oldcode389 webrtc/api/android/jni/androidmediaencoder_jni.cc:389: scale_ = codec_settings->codecSpecific.VP8.automaticResizeOn; On 2016/10/19 13:00:12, magjed_webrtc wrote: > ...
4 years, 2 months ago (2016-10-19 13:07:27 UTC) #13
magjed_webrtc
https://codereview.webrtc.org/2398963003/diff/200001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (left): https://codereview.webrtc.org/2398963003/diff/200001/webrtc/api/android/jni/androidmediaencoder_jni.cc#oldcode389 webrtc/api/android/jni/androidmediaencoder_jni.cc:389: scale_ = codec_settings->codecSpecific.VP8.automaticResizeOn; On 2016/10/19 13:07:27, kthelgason wrote: > ...
4 years, 2 months ago (2016-10-19 13:55:07 UTC) #14
kthelgason
Updated. PTAL. FYI the bots are unhappy because the patch fails to apply, not because ...
4 years, 1 month ago (2016-10-24 10:48:57 UTC) #19
magjed_webrtc
https://codereview.webrtc.org/2398963003/diff/280001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (right): https://codereview.webrtc.org/2398963003/diff/280001/webrtc/api/android/jni/androidmediaencoder_jni.cc#newcode34 webrtc/api/android/jni/androidmediaencoder_jni.cc:34: #include "webrtc/modules/video_coding/utility/vp8_header_parser.h" nit: revert this change. It was right ...
4 years, 1 month ago (2016-10-26 14:28:37 UTC) #21
perkj_webrtc
https://codereview.webrtc.org/2398963003/diff/280001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2398963003/diff/280001/webrtc/video/vie_encoder.cc#newcode701 webrtc/video/vie_encoder.cc:701: encoder_queue_.PostTask([this, timestamp, time_sent, encoded_image] { This may contain invalid ...
4 years, 1 month ago (2016-10-26 15:53:51 UTC) #22
perkj_webrtc
+sprang
4 years, 1 month ago (2016-10-26 16:45:17 UTC) #24
kthelgason
https://codereview.webrtc.org/2398963003/diff/280001/webrtc/api/android/jni/androidmediaencoder_jni.cc File webrtc/api/android/jni/androidmediaencoder_jni.cc (right): https://codereview.webrtc.org/2398963003/diff/280001/webrtc/api/android/jni/androidmediaencoder_jni.cc#newcode34 webrtc/api/android/jni/androidmediaencoder_jni.cc:34: #include "webrtc/modules/video_coding/utility/vp8_header_parser.h" On 2016/10/26 14:28:36, magjed_webrtc wrote: > nit: ...
4 years, 1 month ago (2016-10-26 19:02:50 UTC) #25
magjed_webrtc
https://codereview.webrtc.org/2398963003/diff/280001/webrtc/video/overuse_frame_detector.h File webrtc/video/overuse_frame_detector.h (right): https://codereview.webrtc.org/2398963003/diff/280001/webrtc/video/overuse_frame_detector.h#newcode149 webrtc/video/overuse_frame_detector.h:149: static const auto scale_reason_ = ScalingObserverInterface::kCpu; On 2016/10/26 19:02:50, ...
4 years, 1 month ago (2016-10-27 11:45:58 UTC) #26
sprang_webrtc
mostly some style nits https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm File webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm (right): https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm#newcode254 webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm:254: // input_frame size should always ...
4 years, 1 month ago (2016-10-27 13:43:48 UTC) #28
kthelgason
https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm File webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm (right): https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm#newcode254 webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm:254: // input_frame size should always match codec settings On ...
4 years, 1 month ago (2016-10-28 13:20:16 UTC) #29
magjed_webrtc
https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/utility/quality_scaler.cc File webrtc/modules/video_coding/utility/quality_scaler.cc (right): https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/utility/quality_scaler.cc#newcode54 webrtc/modules/video_coding/utility/quality_scaler.cc:54: friend class QualityScaler; On 2016/10/28 13:20:15, kthelgason wrote: > ...
4 years, 1 month ago (2016-10-28 15:56:00 UTC) #30
sprang_webrtc
https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm File webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm (right): https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm#newcode254 webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm:254: // input_frame size should always match codec settings On ...
4 years, 1 month ago (2016-10-31 10:24:32 UTC) #31
magjed_webrtc
https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/utility/quality_scaler.cc File webrtc/modules/video_coding/utility/quality_scaler.cc (right): https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/utility/quality_scaler.cc#newcode48 webrtc/modules/video_coding/utility/quality_scaler.cc:48: const auto q = rtc::TaskQueue::Current(); On 2016/10/28 13:20:15, kthelgason ...
4 years, 1 month ago (2016-11-10 13:07:00 UTC) #66
kthelgason
https://codereview.webrtc.org/2398963003/diff/520001/webrtc/DEPS File webrtc/DEPS (right): https://codereview.webrtc.org/2398963003/diff/520001/webrtc/DEPS#newcode31 webrtc/DEPS:31: "+webrtc/modules/video_coding/utility", # TODO(kthelgason): move this On 2016/11/10 13:06:59, magjed_webrtc ...
4 years, 1 month ago (2016-11-10 15:38:28 UTC) #67
magjed_webrtc
lgtm Please update the CL description. It looks like you need to rebase again... https://codereview.webrtc.org/2398963003/diff/520001/webrtc/DEPS ...
4 years, 1 month ago (2016-11-10 19:29:07 UTC) #68
kthelgason
ping perkj & sprang. Care to take another look? I want to try and land ...
4 years, 1 month ago (2016-11-11 10:39:15 UTC) #70
perkj_webrtc
This looks like an improvement. I just looked at ViEEncoder and the StatsProxy. Note that ...
4 years, 1 month ago (2016-11-14 07:21:16 UTC) #71
sprang_webrtc
looks good, but please address the video to screenshare and back switched that perkj@ mentioned. ...
4 years, 1 month ago (2016-11-14 10:25:39 UTC) #72
kthelgason
https://codereview.webrtc.org/2398963003/diff/560001/webrtc/modules/video_coding/utility/quality_scaler_unittest.cc File webrtc/modules/video_coding/utility/quality_scaler_unittest.cc (right): https://codereview.webrtc.org/2398963003/diff/560001/webrtc/modules/video_coding/utility/quality_scaler_unittest.cc#newcode26 webrtc/modules/video_coding/utility/quality_scaler_unittest.cc:26: static const size_t kDefaultTimeout = 1000; On 2016/11/14 10:25:38, ...
4 years, 1 month ago (2016-11-14 14:36:45 UTC) #73
kthelgason
Thanks for taking a look sprang@! On 2016/11/14 10:25:39, språng wrote: > https://codereview.webrtc.org/2398963003/diff/300001/webrtc/modules/video_coding/utility/quality_scaler.h#newcode28 > webrtc/modules/video_coding/utility/quality_scaler.h:28: ...
4 years, 1 month ago (2016-11-14 14:39:51 UTC) #74
kthelgason
Added stefan@ as a reviewer.
4 years, 1 month ago (2016-11-14 14:41:51 UTC) #76
sprang_webrtc
On 2016/11/14 14:39:51, kthelgason wrote: > Thanks for taking a look sprang@! > > On ...
4 years, 1 month ago (2016-11-14 14:58:28 UTC) #77
perkj_webrtc
https://codereview.webrtc.org/2398963003/diff/560001/webrtc/video_encoder.h File webrtc/video_encoder.h (right): https://codereview.webrtc.org/2398963003/diff/560001/webrtc/video_encoder.h#newcode156 webrtc/video_encoder.h:156: virtual QualityScaler::Settings GetQPThresholds() const { Move QualityScaler::Settings to VideoEncoder::QualityThresholds ...
4 years, 1 month ago (2016-11-15 08:53:32 UTC) #78
kthelgason
On 2016/11/15 08:53:32, perkj_webrtc wrote: > https://codereview.webrtc.org/2398963003/diff/560001/webrtc/video_encoder.h > File webrtc/video_encoder.h (right): > > https://codereview.webrtc.org/2398963003/diff/560001/webrtc/video_encoder.h#newcode156 > ...
4 years, 1 month ago (2016-11-16 15:20:47 UTC) #79
sprang_webrtc
lgtm https://codereview.webrtc.org/2398963003/diff/560001/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/2398963003/diff/560001/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc#newcode485 webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc:485: } This is an artifact of a rebase, ...
4 years, 1 month ago (2016-11-16 16:25:50 UTC) #80
perkj_webrtc
https://codereview.webrtc.org/2398963003/diff/620001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2398963003/diff/620001/webrtc/video/vie_encoder.cc#newcode308 webrtc/video/vie_encoder.cc:308: // This can happen since |degradation_preference_| is set on ...
4 years, 1 month ago (2016-11-16 20:56:13 UTC) #81
kthelgason
On 2016/11/16 20:56:13, perkj_webrtc wrote: > https://codereview.webrtc.org/2398963003/diff/620001/webrtc/video/vie_encoder.cc > File webrtc/video/vie_encoder.cc (right): > > https://codereview.webrtc.org/2398963003/diff/620001/webrtc/video/vie_encoder.cc#newcode308 > ...
4 years, 1 month ago (2016-11-17 10:42:38 UTC) #86
stefan-webrtc
https://codereview.webrtc.org/2398963003/diff/680001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc File webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc (right): https://codereview.webrtc.org/2398963003/diff/680001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc#newcode473 webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc:473: } else { I'd rewrite this: if (NumberOfStreams(codec_) != ...
4 years, 1 month ago (2016-11-17 16:12:57 UTC) #88
perkj_webrtc
https://codereview.webrtc.org/2398963003/diff/680001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2398963003/diff/680001/webrtc/video/vie_encoder.cc#newcode315 webrtc/video/vie_encoder.cc:315: scaling_enabled_ = Why not store degradation_preference ? https://codereview.webrtc.org/2398963003/diff/680001/webrtc/video/vie_encoder.cc#newcode576 webrtc/video/vie_encoder.cc:576: ...
4 years, 1 month ago (2016-11-17 21:23:39 UTC) #89
stefan-webrtc
https://codereview.webrtc.org/2398963003/diff/680001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2398963003/diff/680001/webrtc/video/vie_encoder.cc#newcode663 webrtc/video/vie_encoder.cc:663: if (max_pixel_count_ && current_pixel_count >= *max_pixel_count_) { On 2016/11/17 ...
4 years, 1 month ago (2016-11-21 13:02:57 UTC) #90
kthelgason
Thanks for taking a look stefan, I replied to your comments and fixed most of ...
4 years, 1 month ago (2016-11-21 13:06:53 UTC) #91
perkj_webrtc
https://codereview.webrtc.org/2398963003/diff/700001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2398963003/diff/700001/webrtc/video/vie_encoder.cc#newcode411 webrtc/video/vie_encoder.cc:411: LOG(LS_INFO) << "Initializing quality scaler."; nit: I think you ...
4 years, 1 month ago (2016-11-22 19:04:16 UTC) #92
kthelgason
https://codereview.webrtc.org/2398963003/diff/700001/webrtc/video/vie_encoder.cc File webrtc/video/vie_encoder.cc (right): https://codereview.webrtc.org/2398963003/diff/700001/webrtc/video/vie_encoder.cc#newcode411 webrtc/video/vie_encoder.cc:411: LOG(LS_INFO) << "Initializing quality scaler."; On 2016/11/22 19:04:16, perkj_webrtc ...
4 years ago (2016-11-23 12:05:54 UTC) #93
perkj_webrtc
VIE encoder lgtm https://codereview.webrtc.org/2398963003/diff/720001/webrtc/video/vie_encoder_unittest.cc File webrtc/video/vie_encoder_unittest.cc (right): https://codereview.webrtc.org/2398963003/diff/720001/webrtc/video/vie_encoder_unittest.cc#newcode691 webrtc/video/vie_encoder_unittest.cc:691: int frame_width = 1280; Can we ...
4 years ago (2016-11-24 08:46:51 UTC) #94
stefan-webrtc
https://codereview.webrtc.org/2398963003/diff/680001/webrtc/modules/video_coding/utility/quality_scaler.cc File webrtc/modules/video_coding/utility/quality_scaler.cc (right): https://codereview.webrtc.org/2398963003/diff/680001/webrtc/modules/video_coding/utility/quality_scaler.cc#newcode65 webrtc/modules/video_coding/utility/quality_scaler.cc:65: class QualityScaler::CheckQPTask : public rtc::QueuedTask { On 2016/11/21 13:06:52, ...
4 years ago (2016-11-24 09:36:55 UTC) #95
kthelgason
On 2016/11/24 09:36:55, stefan-webrtc (holmer) wrote: > I'm mostly asking if we should comment on ...
4 years ago (2016-11-24 13:45:47 UTC) #96
stefan-webrtc
On 2016/11/24 13:45:47, kthelgason wrote: > On 2016/11/24 09:36:55, stefan-webrtc (holmer) wrote: > > I'm ...
4 years ago (2016-11-24 14:00:41 UTC) #97
kthelgason
On 2016/11/24 14:00:41, stefan-webrtc (holmer) wrote: > Seems like it's called when ever a frame ...
4 years ago (2016-11-25 08:25:16 UTC) #98
stefan-webrtc
Mostly looks good now, a test might be is missing though. https://codereview.webrtc.org/2398963003/diff/740001/webrtc/modules/video_coding/video_coding_impl.h File webrtc/modules/video_coding/video_coding_impl.h (right): ...
4 years ago (2016-11-25 10:45:25 UTC) #99
kthelgason
https://codereview.webrtc.org/2398963003/diff/740001/webrtc/modules/video_coding/video_coding_impl.h File webrtc/modules/video_coding/video_coding_impl.h (right): https://codereview.webrtc.org/2398963003/diff/740001/webrtc/modules/video_coding/video_coding_impl.h#newcode116 webrtc/modules/video_coding/video_coding_impl.h:116: EncodedImageCallback *post_encode_callback_; On 2016/11/25 at 10:45:25, stefan-webrtc (holmer) wrote: ...
4 years ago (2016-11-25 12:34:01 UTC) #100
stefan-webrtc
On 2016/11/25 12:34:01, kthelgason wrote: > https://codereview.webrtc.org/2398963003/diff/740001/webrtc/modules/video_coding/video_coding_impl.h > File webrtc/modules/video_coding/video_coding_impl.h (right): > > https://codereview.webrtc.org/2398963003/diff/740001/webrtc/modules/video_coding/video_coding_impl.h#newcode116 > ...
4 years ago (2016-11-28 15:07:23 UTC) #101
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/2398963003/780001
4 years ago (2016-11-29 09:42:11 UTC) #108
commit-bot: I haz the power
Committed patchset #37 (id:780001)
4 years ago (2016-11-29 09:44:23 UTC) #111
commit-bot: I haz the power
4 years ago (2016-11-29 09:44:33 UTC) #113
Message was sent while issue was closed.
Patchset 37 (id:??) landed as
https://crrev.com/876222f77dfc640c852d5bb14f0aacf0f74e5690
Cr-Commit-Position: refs/heads/master@{#15286}

Powered by Google App Engine
This is Rietveld 408576698