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

Issue 2070343002: Remove ViEncoder::Pause / Start (Closed)

Created:
4 years, 6 months ago by perkj_webrtc
Modified:
4 years, 6 months ago
Reviewers:
pbos-webrtc, mflodman
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, pbos-webrtc, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove ViEEncoder::Pause / Start This cl change so that VideoSendStream::Start adds the stream as a BitrateObserver and VideoSendStream::Stop removes the stream as observer. That also means that start will trigger a VideoEncoder::SetRate call with the most recent bitrate estimate. VideoSendStream::Stop will trigger a VideoEncoder::SetRate with bitrate = 0. BUG=webrtc:5687 b/28636240 Committed: https://crrev.com/57c21f9b44621b6415d81d353923eb3975276703 Cr-Commit-Position: refs/heads/master@{#13192}

Patch Set 1 #

Patch Set 2 : Remove from header file. #

Total comments: 11

Patch Set 3 : New approach - BitrateAllocator::AddObserver triggered by SendStream::Start. #

Patch Set 4 : Cleaned up. #

Patch Set 5 : Fix. #

Total comments: 11

Patch Set 6 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -234 lines) Patch
M webrtc/call/bitrate_allocator.h View 1 2 1 chunk +9 lines, -6 lines 0 comments Download
M webrtc/call/bitrate_allocator.cc View 1 2 3 4 3 chunks +17 lines, -6 lines 0 comments Download
M webrtc/call/bitrate_allocator_unittest.cc View 1 2 3 4 7 chunks +141 lines, -149 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M webrtc/modules/video_coding/protection_bitrate_calculator.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/protection_bitrate_calculator.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_coding/protection_bitrate_calculator_unittest.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_coding/video_sender.cc View 1 2 2 chunks +13 lines, -7 lines 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 2 3 4 5 1 chunk +13 lines, -2 lines 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 9 chunks +52 lines, -29 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 3 chunks +1 line, -7 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 7 chunks +15 lines, -19 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (7 generated)
perkj_webrtc
Can you please review?
4 years, 6 months ago (2016-06-16 12:53:08 UTC) #3
pbos-webrtc
https://codereview.webrtc.org/2070343002/diff/20001/webrtc/modules/video_coding/protection_bitrate_calculator.cc File webrtc/modules/video_coding/protection_bitrate_calculator.cc (right): https://codereview.webrtc.org/2070343002/diff/20001/webrtc/modules/video_coding/protection_bitrate_calculator.cc#newcode60 webrtc/modules/video_coding/protection_bitrate_calculator.cc:60: uint32_t ProtectionBitrateCalculator::SetTargetRates( This part of the code should be ...
4 years, 6 months ago (2016-06-16 13:16:28 UTC) #4
perkj_webrtc
ptal- I think this approach is cleaner. And it will get even cleaner when we ...
4 years, 6 months ago (2016-06-16 18:42:18 UTC) #6
mflodman
lgtm pbos, Any more comments? https://codereview.webrtc.org/2070343002/diff/80001/webrtc/call/bitrate_allocator.cc File webrtc/call/bitrate_allocator.cc (right): https://codereview.webrtc.org/2070343002/diff/80001/webrtc/call/bitrate_allocator.cc#newcode131 webrtc/call/bitrate_allocator.cc:131: return last_non_zero_bitrate_bps_ / I ...
4 years, 6 months ago (2016-06-17 11:28:17 UTC) #7
pbos-webrtc
lgtm w/ some nits https://codereview.webrtc.org/2070343002/diff/80001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2070343002/diff/80001/webrtc/video/video_send_stream.cc#newcode619 webrtc/video/video_send_stream.cc:619: if (*pending_state_change == true && ...
4 years, 6 months ago (2016-06-17 12:38:21 UTC) #8
perkj_webrtc
https://codereview.webrtc.org/2070343002/diff/80001/webrtc/video/video_send_stream.cc File webrtc/video/video_send_stream.cc (right): https://codereview.webrtc.org/2070343002/diff/80001/webrtc/video/video_send_stream.cc#newcode619 webrtc/video/video_send_stream.cc:619: if (*pending_state_change == true && state_ == kStopped) { ...
4 years, 6 months ago (2016-06-17 13:06:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070343002/100001
4 years, 6 months ago (2016-06-17 13:08:20 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-17 14:27:22 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 14:27:36 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/57c21f9b44621b6415d81d353923eb3975276703
Cr-Commit-Position: refs/heads/master@{#13192}

Powered by Google App Engine
This is Rietveld 408576698