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

Issue 2257413002: Replace interface VideoCapturerInput with VideoSinkInterface. (Closed)

Created:
4 years, 4 months ago by perkj_webrtc
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, 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

Replace VideoCapturerInput with VideoSinkInterface. Adds new method VideoSendStream::SetSource(rtc::VideoSourceInterface* and VieEncoder::SetSource(rtc::VideoSourceInterface*) This is the first step needed in order for the ViEEncoder to request downscaling using rtc::VideoSinkWants instead of separately reporting CPU overuse and internally doing downscaling due to QP values. BUG=webrtc:5687 // Android CQ seems broken. NOTRY=true Committed: https://crrev.com/95a226f55ae7e32b83a6ba96232fb105a014dc6c Cr-Commit-Position: refs/heads/master@{#14238}

Patch Set 1 #

Patch Set 2 : git cl format #

Total comments: 16

Patch Set 3 : Addressed review comments #

Total comments: 11

Patch Set 4 : Addressed comment #

Patch Set 5 : Addressed review comments. #

Patch Set 6 : Addressed comments. #

Patch Set 7 : Fix EXPECT_GT order. #

Total comments: 15

Patch Set 8 : Rebased #

Patch Set 9 : Fixed code review comments. #

Total comments: 21

Patch Set 10 : Rebased #

Patch Set 11 : Addressed code review comments. #

Total comments: 1

Patch Set 12 : Addressed comment. #

Patch Set 13 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -227 lines) Patch
M webrtc/call/bitrate_estimator_tests.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 4 5 3 chunks +9 lines, -4 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -6 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +26 lines, -8 lines 0 comments Download
M webrtc/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/test/frame_generator.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +24 lines, -3 lines 0 comments Download
M webrtc/test/frame_generator.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
M webrtc/test/frame_generator_capturer.h View 4 chunks +9 lines, -5 lines 0 comments Download
M webrtc/test/frame_generator_capturer.cc View 1 2 3 4 5 6 5 chunks +25 lines, -15 lines 0 comments Download
M webrtc/test/test.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/test/vcm_capturer.h View 1 chunk +7 lines, -5 lines 0 comments Download
M webrtc/test/vcm_capturer.cc View 1 2 3 4 5 4 chunks +18 lines, -8 lines 0 comments Download
M webrtc/test/video_capturer.h View 1 chunk +4 lines, -12 lines 0 comments Download
D webrtc/test/video_capturer.cc View 1 chunk +0 lines, -54 lines 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -8 lines 0 comments Download
M webrtc/video/video_quality_test.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +80 lines, -30 lines 0 comments Download
M webrtc/video/video_send_stream.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M webrtc/video/video_send_stream.cc View 1 1 chunk +4 lines, -6 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -1 line 0 comments Download
M webrtc/video/vie_encoder.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +15 lines, -8 lines 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +62 lines, -10 lines 0 comments Download
M webrtc/video/vie_encoder_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +22 lines, -19 lines 0 comments Download
M webrtc/video_send_stream.h View 1 3 chunks +3 lines, -15 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (14 generated)
perkj_webrtc
please ? Never mind the red bots- I need to update the dependend patchset.
4 years, 4 months ago (2016-08-19 13:03:53 UTC) #4
nisse-webrtc
For the classes that implement VideoSourceInterface, but only ever supports a single sink. I think ...
4 years, 4 months ago (2016-08-22 07:20:30 UTC) #6
nisse-webrtc
https://codereview.webrtc.org/2257413002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2257413002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1660 webrtc/media/engine/webrtcvideoengine2.cc:1660: rtc::Optional<int64_t>(rtc::TimeMillis() - frame_delta_ms); We should soon be able to ...
4 years, 4 months ago (2016-08-23 10:13:28 UTC) #7
perkj_webrtc
PTAL- The pre-requisite cl is now landed. https://codereview.webrtc.org/2257413002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2257413002/diff/40001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1660 webrtc/media/engine/webrtcvideoengine2.cc:1660: rtc::Optional<int64_t>(rtc::TimeMillis() - ...
4 years, 3 months ago (2016-09-01 11:46:16 UTC) #8
nisse-webrtc
LGTM, if you fix the SendSend name. https://codereview.webrtc.org/2257413002/diff/60001/webrtc/video/video_quality_test.cc File webrtc/video/video_quality_test.cc (right): https://codereview.webrtc.org/2257413002/diff/60001/webrtc/video/video_quality_test.cc#newcode171 webrtc/video/video_quality_test.cc:171: void SetSendSendStream(VideoSendStream* ...
4 years, 3 months ago (2016-09-01 12:03:21 UTC) #9
perkj_webrtc
https://codereview.webrtc.org/2257413002/diff/60001/webrtc/video/video_quality_test.cc File webrtc/video/video_quality_test.cc (right): https://codereview.webrtc.org/2257413002/diff/60001/webrtc/video/video_quality_test.cc#newcode171 webrtc/video/video_quality_test.cc:171: void SetSendSendStream(VideoSendStream* stream) { On 2016/09/01 12:03:21, nisse-webrtc wrote: ...
4 years, 3 months ago (2016-09-02 06:51:15 UTC) #11
sprang_webrtc
Ugh, we're gonna have a conflict here. Could you incorporate https://codereview.webrtc.org/1534233002/ into this? https://codereview.webrtc.org/2257413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc File ...
4 years, 3 months ago (2016-09-02 07:19:32 UTC) #12
nisse-webrtc
https://codereview.webrtc.org/2257413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2257413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc#newcode2082 webrtc/media/engine/webrtcvideoengine2.cc:2082: RTC_DCHECK(encoder_sink_&& encoder_sink_ = sink); On 2016/09/02 07:19:31, språng wrote: ...
4 years, 3 months ago (2016-09-02 08:10:19 UTC) #13
sprang_webrtc
https://codereview.webrtc.org/2257413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2257413002/diff/60001/webrtc/media/engine/webrtcvideoengine2.cc#newcode2082 webrtc/media/engine/webrtcvideoengine2.cc:2082: RTC_DCHECK(encoder_sink_&& encoder_sink_ = sink); On 2016/09/02 08:10:18, nisse-webrtc wrote: ...
4 years, 3 months ago (2016-09-02 09:07:04 UTC) #14
perkj_webrtc
ptal- I would prefer to discuss how to merge that cl separate. It does not ...
4 years, 3 months ago (2016-09-02 12:18:21 UTC) #15
perkj_webrtc
Adding flodman as well.
4 years, 3 months ago (2016-09-05 13:47:05 UTC) #17
sprang_webrtc
lgtm with nits https://codereview.webrtc.org/2257413002/diff/160001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2257413002/diff/160001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1663 webrtc/media/engine/webrtcvideoengine2.cc:1663: if (encoder_sink_ == NULL) { nit: ...
4 years, 3 months ago (2016-09-06 10:04:58 UTC) #18
perkj_webrtc
Adding Stefan as well. Maybe you are a more suitable owner for this?
4 years, 3 months ago (2016-09-06 11:58:29 UTC) #20
stefan-webrtc
One general question: I see that both sinks and sources are set using methods. Shouldn't ...
4 years, 3 months ago (2016-09-06 12:24:39 UTC) #21
perkj_webrtc
https://codereview.webrtc.org/2257413002/diff/160001/webrtc/media/engine/fakewebrtccall.cc File webrtc/media/engine/fakewebrtccall.cc (right): https://codereview.webrtc.org/2257413002/diff/160001/webrtc/media/engine/fakewebrtccall.cc#newcode223 webrtc/media/engine/fakewebrtccall.cc:223: source_->RemoveSink(this); On 2016/09/06 12:24:38, stefan-webrtc (holmer) wrote: > Do ...
4 years, 3 months ago (2016-09-07 15:10:37 UTC) #22
stefan-webrtc
https://codereview.webrtc.org/2257413002/diff/200001/webrtc/media/engine/fakewebrtccall.cc File webrtc/media/engine/fakewebrtccall.cc (right): https://codereview.webrtc.org/2257413002/diff/200001/webrtc/media/engine/fakewebrtccall.cc#newcode222 webrtc/media/engine/fakewebrtccall.cc:222: if (source_) Perhaps DCHECK that source and _source are ...
4 years, 3 months ago (2016-09-13 09:26:43 UTC) #23
perkj_webrtc
ptal https://codereview.webrtc.org/2257413002/diff/200001/webrtc/media/engine/fakewebrtccall.cc File webrtc/media/engine/fakewebrtccall.cc (right): https://codereview.webrtc.org/2257413002/diff/200001/webrtc/media/engine/fakewebrtccall.cc#newcode222 webrtc/media/engine/fakewebrtccall.cc:222: if (source_) On 2016/09/13 09:26:43, stefan-webrtc (holmer) wrote: ...
4 years, 3 months ago (2016-09-14 14:20:22 UTC) #24
stefan-webrtc
lgtm https://codereview.webrtc.org/2257413002/diff/240001/webrtc/video/vie_encoder.h File webrtc/video/vie_encoder.h (right): https://codereview.webrtc.org/2257413002/diff/240001/webrtc/video/vie_encoder.h#newcode140 webrtc/video/vie_encoder.h:140: // of ViEEncoder is called on the same ...
4 years, 3 months ago (2016-09-14 14:51:09 UTC) #25
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/2257413002/280001
4 years, 3 months ago (2016-09-15 15:20:38 UTC) #28
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/2257413002/280001
4 years, 3 months ago (2016-09-15 15:55:30 UTC) #32
commit-bot: I haz the power
Committed patchset #13 (id:280001)
4 years, 3 months ago (2016-09-15 15:57:25 UTC) #34
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/95a226f55ae7e32b83a6ba96232fb105a014dc6c Cr-Commit-Position: refs/heads/master@{#14238}
4 years, 3 months ago (2016-09-15 15:57:34 UTC) #36
perkj_webrtc
4 years, 3 months ago (2016-09-15 16:18:58 UTC) #37
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:280001) has been created in
https://codereview.webrtc.org/2344923002/ by perkj@webrtc.org.

The reason for reverting is: Fails on Mac and Linux webrtc_perf_tests.

Powered by Google App Engine
This is Rietveld 408576698