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

Issue 1654913002: Untangle ViEChannel and ViEEncoder. (Closed)

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

Description

Untangle ViEChannel and ViEEncoder. Extracts shared members outside the two objects, removing PayloadRouter from receivers and the VCM for ViEChannel from senders. Removes Start/StopThreadsAndSetSharedMembers that was used to set the shared state between them. Also adding DCHECKs to document what's only used by the sender/receiver side. BUG=webrtc:5494 R=stefan@webrtc.org Committed: https://crrev.com/1d04ac6f29f235e593fb04896ad229b63562717c Cr-Commit-Position: refs/heads/master@{#11500}

Patch Set 1 #

Patch Set 2 : destroy ViEEncoder after ViEChannel #

Patch Set 3 : deregister protection callback before destroying vie_channel_ #

Total comments: 2

Patch Set 4 : remove receiver payload router #

Patch Set 5 : remove sender VCM from ViEChannel #

Total comments: 6

Patch Set 6 : stefan@ feedback #

Total comments: 9

Patch Set 7 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -109 lines) Patch
M webrtc/modules/video_coding/include/video_coding.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/modules/video_coding/video_coding_robustness_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/video/encoder_state_feedback_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/video_receive_stream.h View 1 2 3 2 chunks +3 lines, -0 lines 2 comments Download
M webrtc/video/video_receive_stream.cc View 1 2 3 4 chunks +11 lines, -5 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M webrtc/video/video_send_stream.cc View 1 2 3 4 5 6 4 chunks +14 lines, -13 lines 0 comments Download
M webrtc/video/vie_channel.h View 1 2 3 4 4 chunks +3 lines, -7 lines 0 comments Download
M webrtc/video/vie_channel.cc View 1 2 3 4 5 15 chunks +52 lines, -46 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 2 3 4 5 6 3 chunks +3 lines, -12 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 5 chunks +7 lines, -15 lines 0 comments Download
M webrtc/video/vie_receiver.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 41 (13 generated)
pbos-webrtc
PTAL
4 years, 10 months ago (2016-02-01 18:08:30 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1654913002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1654913002/1
4 years, 10 months ago (2016-02-01 18:17:25 UTC) #3
pbos-webrtc
I need to move the VCM outside of ViEEncoder for this to be shared, bummer.
4 years, 10 months ago (2016-02-01 18:18:43 UTC) #4
pbos-webrtc
On 2016/02/01 18:18:43, pbos-webrtc wrote: > I need to move the VCM outside of ViEEncoder ...
4 years, 10 months ago (2016-02-01 18:21:31 UTC) #5
pbos-webrtc
destroy ViEEncoder after ViEChannel
4 years, 10 months ago (2016-02-01 18:22:05 UTC) #6
pbos-webrtc
deregister protection callback before destroying vie_channel_
4 years, 10 months ago (2016-02-01 18:24:17 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1654913002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1654913002/40001
4 years, 10 months ago (2016-02-01 18:24:38 UTC) #9
pbos-webrtc
WDYT? Should I extract video processing and vcm to have it /obviously/ outlive both objects ...
4 years, 10 months ago (2016-02-01 18:33:05 UTC) #10
stefan-webrtc
https://codereview.webrtc.org/1654913002/diff/40001/webrtc/video/video_receive_stream.h File webrtc/video/video_receive_stream.h (right): https://codereview.webrtc.org/1654913002/diff/40001/webrtc/video/video_receive_stream.h#newcode89 webrtc/video/video_receive_stream.h:89: PayloadRouter payload_router_; The receiver shouldn't have a payload router, ...
4 years, 10 months ago (2016-02-01 19:04:44 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-01 19:36:21 UTC) #13
pbos-webrtc
remove receiver payload router
4 years, 10 months ago (2016-02-02 14:17:32 UTC) #14
pbos-webrtc
remove sender VCM from ViEChannel
4 years, 10 months ago (2016-02-02 14:32:33 UTC) #15
pbos-webrtc
PTAL, I'd still like to keep the vcm_ member as an input parameter so things ...
4 years, 10 months ago (2016-02-02 14:34:09 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1654913002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1654913002/80001
4 years, 10 months ago (2016-02-02 14:36:31 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-02 15:37:46 UTC) #20
stefan-webrtc
https://codereview.webrtc.org/1654913002/diff/80001/webrtc/video/vie_channel.cc File webrtc/video/vie_channel.cc (right): https://codereview.webrtc.org/1654913002/diff/80001/webrtc/video/vie_channel.cc#newcode515 webrtc/video/vie_channel.cc:515: vcm_->RegisterPacketRequestCallback(nullptr); Canw e move this down to line 522? ...
4 years, 10 months ago (2016-02-04 10:46:14 UTC) #23
pbos-webrtc
stefan@ feedback
4 years, 10 months ago (2016-02-04 14:03:49 UTC) #24
pbos-webrtc
PTAL woo https://codereview.webrtc.org/1654913002/diff/80001/webrtc/video/vie_channel.cc File webrtc/video/vie_channel.cc (right): https://codereview.webrtc.org/1654913002/diff/80001/webrtc/video/vie_channel.cc#newcode515 webrtc/video/vie_channel.cc:515: vcm_->RegisterPacketRequestCallback(nullptr); On 2016/02/04 10:46:14, stefan-webrtc (holmer) wrote: ...
4 years, 10 months ago (2016-02-04 14:04:21 UTC) #25
stefan-webrtc
lg, just a few comments! https://codereview.webrtc.org/1654913002/diff/100001/webrtc/video/vie_channel.cc File webrtc/video/vie_channel.cc (right): https://codereview.webrtc.org/1654913002/diff/100001/webrtc/video/vie_channel.cc#newcode93 webrtc/video/vie_channel.cc:93: bool sender) We could ...
4 years, 10 months ago (2016-02-05 07:55:03 UTC) #28
stefan-webrtc
Maybe assign a bug for this as you already have indicated that you will do ...
4 years, 10 months ago (2016-02-05 08:16:49 UTC) #29
pbos-webrtc
PTAL https://codereview.webrtc.org/1654913002/diff/100001/webrtc/video/vie_channel.cc File webrtc/video/vie_channel.cc (right): https://codereview.webrtc.org/1654913002/diff/100001/webrtc/video/vie_channel.cc#newcode93 webrtc/video/vie_channel.cc:93: bool sender) On 2016/02/05 07:55:02, stefan-webrtc (holmer) wrote: ...
4 years, 10 months ago (2016-02-05 09:54:37 UTC) #31
pbos-webrtc
On 2016/02/05 08:16:49, stefan-webrtc (holmer) wrote: > Maybe assign a bug for this as you ...
4 years, 10 months ago (2016-02-05 09:55:22 UTC) #32
stefan-webrtc
lgtm https://codereview.webrtc.org/1654913002/diff/100001/webrtc/video/vie_channel.cc File webrtc/video/vie_channel.cc (right): https://codereview.webrtc.org/1654913002/diff/100001/webrtc/video/vie_channel.cc#newcode93 webrtc/video/vie_channel.cc:93: bool sender) On 2016/02/05 09:54:37, pbos-webrtc wrote: > ...
4 years, 10 months ago (2016-02-05 10:07:27 UTC) #33
pbos-webrtc
rebase
4 years, 10 months ago (2016-02-05 10:22:50 UTC) #34
pbos-webrtc
Committed patchset #7 (id:120001) manually as 1d04ac6f29f235e593fb04896ad229b63562717c (presubmit successful).
4 years, 10 months ago (2016-02-05 10:25:58 UTC) #36
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/1d04ac6f29f235e593fb04896ad229b63562717c Cr-Commit-Position: refs/heads/master@{#11500}
4 years, 10 months ago (2016-02-05 10:26:01 UTC) #38
mflodman
Two drive-by after the fact comments. https://codereview.webrtc.org/1654913002/diff/120001/webrtc/video/video_receive_stream.h File webrtc/video/video_receive_stream.h (right): https://codereview.webrtc.org/1654913002/diff/120001/webrtc/video/video_receive_stream.h#newcode24 webrtc/video/video_receive_stream.h:24: #include "webrtc/video/payload_router.h" This ...
4 years, 10 months ago (2016-02-05 13:01:29 UTC) #40
pbos-webrtc
4 years, 10 months ago (2016-02-05 13:33:29 UTC) #41
Message was sent while issue was closed.
On 2016/02/05 13:01:29, mflodman wrote:
> Two drive-by after the fact comments.
> 
>
https://codereview.webrtc.org/1654913002/diff/120001/webrtc/video/video_recei...
> File webrtc/video/video_receive_stream.h (right):
> 
>
https://codereview.webrtc.org/1654913002/diff/120001/webrtc/video/video_recei...
> webrtc/video/video_receive_stream.h:24: #include
"webrtc/video/payload_router.h"
> This doesn't seem righ.
> 
>
https://codereview.webrtc.org/1654913002/diff/120001/webrtc/video/video_recei...
> webrtc/video/video_receive_stream.h:84: ProcessThread* const process_thread_;
> Old, but we should forward declare ProcessThread in this header.

Done as patchset in https://codereview.webrtc.org/1671893002.

Powered by Google App Engine
This is Rietveld 408576698