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

Issue 2351633002: Let ViEEncoder handle resolution changes. (Closed)

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

Description

Let ViEEncoder handle resolution changes. This cl move codec reconfiguration due to video frame size changes from WebRtcVideoSendStream to ViEEncoder. With this change, many variables in WebRtcVideoSendStream no longer need to be locked. BUG=webrtc:5687, webrtc:6371, webrtc:5332 Committed: https://crrev.com/26105b41b4f97642ee30cb067dc786c2737709ad Cr-Commit-Position: refs/heads/master@{#14445}

Patch Set 1 #

Patch Set 2 : Fixes. #

Patch Set 3 : Fix most video_sent_stream_tests. #

Patch Set 4 : Tests pass #

Patch Set 5 : more fixes #

Patch Set 6 : rebased #

Patch Set 7 : more cleaning. #

Patch Set 8 : Fix perf test #

Total comments: 19

Patch Set 9 : Addressed comments. #

Patch Set 10 : fix line ending. #

Total comments: 19

Patch Set 11 : Rebased #

Total comments: 1

Patch Set 12 : Addressed mflodmans comments. #

Patch Set 13 : Added test for reconfigure size when not started. #

Patch Set 14 : Fix build on Win #

Total comments: 8

Patch Set 15 : Rebased code review comments win asan tsan #

Patch Set 16 : Rebased #

Patch Set 17 : Remove bad dchecks from ramp up test. #

Patch Set 18 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1128 lines, -669 lines) Patch
M webrtc/api/videocapturertracksource_unittest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/call/bitrate_estimator_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -4 lines 0 comments Download
M webrtc/call/call_perf_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +41 lines, -11 lines 0 comments Download
M webrtc/call/rampup_tests.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/rampup_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +31 lines, -7 lines 0 comments Download
M webrtc/config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +25 lines, -8 lines 0 comments Download
M webrtc/config.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -10 lines 0 comments Download
M webrtc/media/base/fakevideocapturer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -5 lines 0 comments Download
M webrtc/media/engine/constants.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +15 lines, -6 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +25 lines, -45 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 24 chunks +232 lines, -247 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +50 lines, -47 lines 0 comments Download
M webrtc/test/call_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +13 lines, -3 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +24 lines, -10 lines 0 comments Download
M webrtc/test/encoder_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +32 lines, -1 line 0 comments Download
M webrtc/test/encoder_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +56 lines, -30 lines 0 comments Download
M webrtc/test/frame_generator.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/test/frame_generator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +17 lines, -9 lines 0 comments Download
M webrtc/test/frame_generator_capturer.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/frame_generator_capturer.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 chunks +158 lines, -89 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -14 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 28 chunks +234 lines, -51 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 4 chunks +21 lines, -1 line 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +67 lines, -42 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 5 chunks +54 lines, -20 lines 0 comments Download
M webrtc/video_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (19 generated)
perkj_webrtc
Can you please review the actual implementation? There are some tests that I need to ...
4 years, 3 months ago (2016-09-21 13:28:55 UTC) #5
perkj_webrtc
Can you please review the actual implementation? There are some tests that I need to ...
4 years, 3 months ago (2016-09-21 13:28:56 UTC) #6
sprang_webrtc
Overall looks good, or as good as one can hope for :{ All the various ...
4 years, 2 months ago (2016-09-22 13:06:17 UTC) #7
perkj_webrtc
ptal https://codereview.webrtc.org/2351633002/diff/160001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/2351633002/diff/160001/webrtc/call/call_perf_tests.cc#newcode656 webrtc/call/call_perf_tests.cc:656: // First time initialization. Frame size is now ...
4 years, 2 months ago (2016-09-26 12:09:42 UTC) #8
sprang_webrtc
lg with the discussed "preferred bitrate" calculation moved. https://codereview.webrtc.org/2351633002/diff/160001/webrtc/video/end_to_end_tests.cc File webrtc/video/end_to_end_tests.cc (right): https://codereview.webrtc.org/2351633002/diff/160001/webrtc/video/end_to_end_tests.cc#newcode2841 webrtc/video/end_to_end_tests.cc:2841: }; ...
4 years, 2 months ago (2016-09-26 13:47:37 UTC) #9
mflodman
I need to take another look at vie_encoder.cc, but here are my other comments. https://codereview.webrtc.org/2351633002/diff/200001/webrtc/call/call_perf_tests.cc ...
4 years, 2 months ago (2016-09-27 11:28:01 UTC) #10
perkj_webrtc
https://codereview.webrtc.org/2351633002/diff/200001/webrtc/call/call_perf_tests.cc File webrtc/call/call_perf_tests.cc (right): https://codereview.webrtc.org/2351633002/diff/200001/webrtc/call/call_perf_tests.cc#newcode665 webrtc/call/call_perf_tests.cc:665: if (encoder_inits_ == 3) { On 2016/09/27 11:28:00, mflodman ...
4 years, 2 months ago (2016-09-27 13:45:18 UTC) #11
perkj_webrtc
ptal
4 years, 2 months ago (2016-09-27 14:29:57 UTC) #12
mflodman
Two more comments/questions, then LGTM. https://codereview.webrtc.org/2351633002/diff/200001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2351633002/diff/200001/webrtc/media/engine/webrtcvideoengine2.cc#newcode338 webrtc/media/engine/webrtcvideoengine2.cc:338: is_screencast_(is_screencast), On 2016/09/27 13:45:17, ...
4 years, 2 months ago (2016-09-28 13:17:07 UTC) #13
sprang_webrtc
lgtm with nits and a fix for the tsan breakage :) https://codereview.webrtc.org/2351633002/diff/280001/webrtc/video/video_send_stream_tests.cc File webrtc/video/video_send_stream_tests.cc (right): ...
4 years, 2 months ago (2016-09-28 15:51:43 UTC) #14
perkj_webrtc
https://codereview.webrtc.org/2351633002/diff/280001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2351633002/diff/280001/webrtc/media/engine/webrtcvideoengine2.cc#newcode362 webrtc/media/engine/webrtcvideoengine2.cc:362: stream.max_framerate = max_framerate_; On 2016/09/28 13:17:07, mflodman wrote: > ...
4 years, 2 months ago (2016-09-29 15:05:18 UTC) #24
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/2351633002/340001
4 years, 2 months ago (2016-09-29 15:05:32 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 2 months ago (2016-09-29 17:06:02 UTC) #29
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/2351633002/340001
4 years, 2 months ago (2016-09-30 05:30:08 UTC) #31
commit-bot: I haz the power
Committed patchset #17 (id:340001)
4 years, 2 months ago (2016-09-30 05:39:15 UTC) #33
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/26105b41b4f97642ee30cb067dc786c2737709ad Cr-Commit-Position: refs/heads/master@{#14445}
4 years, 2 months ago (2016-09-30 05:39:23 UTC) #35
perkj_webrtc
4 years, 2 months ago (2016-09-30 06:25:24 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #17 id:340001) has been created in
https://codereview.webrtc.org/2383493005/ by perkj@webrtc.org.

The reason for reverting is: Fails on a content_browsertest (and also
webrtc_perf?)

https://build.chromium.org/p/chromium.webrtc.fyi/builders/Mac%20Tester/builds...

https://build.chromium.org/p/client.webrtc/builders/Linux64%20Release%20%5Bla...
[  FAILED  ] FullStackTest.ParisQcifWithoutPacketLoss (59436 ms).

Powered by Google App Engine
This is Rietveld 408576698