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

Issue 1695263002: Move direct use of VideoCapturer::VideoAdapter to VideoSinkWants. (Closed)

Created:
4 years, 10 months ago by perkj_webrtc
Modified:
4 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move direct use of VideoCapturer::VideoAdapter to VideoSinkWants. The purose of this cl is to remove dependency on cricket::VideoCapturer from WebRtcVideoChannel2. This cl change CPU adaptation to use a new VideoSinkWants.Resolution Tested on a N5 with hw acceleration turned off. BUG=webrtc:5426 Committed: https://crrev.com/2d5f0913f25a9e504eec2c2ecbb4e7647fd283b4 Cr-Commit-Position: refs/heads/master@{#11804}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added asyncproxy.h for discussion. #

Patch Set 3 : Added from_width && from_height in resolution change req. #

Total comments: 3

Patch Set 4 : WIP #

Patch Set 5 : switched to int. Found bug in adapter... #

Total comments: 17

Patch Set 6 : Tried to address pthatchers comments. #

Total comments: 1

Patch Set 7 : Something like this? #

Total comments: 6

Patch Set 8 : Got unittests to pass. Updated to design doc suggestions. #

Patch Set 9 : Rebased #

Patch Set 10 : Added unittest for changig resolution #

Patch Set 11 : Added unit test to test what happens when resolution changes. Rebased #

Patch Set 12 : cl format + lint + added videobroadcaster_unittest #

Patch Set 13 : Changed name to wants.max_pixel_count_step_up #

Patch Set 14 : rebased #

Total comments: 18

Patch Set 15 : Addressed comments. Narrowed scope of |lock_| #

Patch Set 16 : Fixed wants.rotation_applied = false + fixed unittests. #

Total comments: 5

Patch Set 17 : Removed proxy - fixed bug in videoadapter. #

Patch Set 18 : Rebased #

Patch Set 19 : Removed test for screencast from videocapturer #

Total comments: 25

Patch Set 20 : Addressed pbos comments #

Total comments: 2

Patch Set 21 : fixed nit #

Patch Set 22 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -110 lines) Patch
M webrtc/media/base/videoadapter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/media/base/videoadapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +16 lines, -0 lines 0 comments Download
M webrtc/media/base/videobroadcaster.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/base/videobroadcaster.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +36 lines, -6 lines 0 comments Download
A webrtc/media/base/videobroadcaster_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +131 lines, -0 lines 0 comments Download
M webrtc/media/base/videocapturer.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/base/videocapturer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/media/base/videocapturer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +65 lines, -0 lines 0 comments Download
M webrtc/media/base/videosourceinterface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +10 lines, -5 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 18 19 8 chunks +19 lines, -14 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 13 chunks +102 lines, -70 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 15 16 17 5 chunks +100 lines, -9 lines 0 comments Download
M webrtc/media/media_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (10 generated)
perkj_webrtc
Hi- new cl for discussion. Can you please take a look and say what you ...
4 years, 10 months ago (2016-02-15 12:28:00 UTC) #2
perkj_webrtc
Also adding pbos https://codereview.webrtc.org/1695263002/diff/1/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (left): https://codereview.webrtc.org/1695263002/diff/1/webrtc/media/engine/webrtcvideoengine2.cc#oldcode1971 webrtc/media/engine/webrtcvideoengine2.cc:1971: info.adapt_changes += capturer_->video_adapter()->adaptation_changes(); On 2016/02/15 12:28:00, ...
4 years, 10 months ago (2016-02-16 11:18:59 UTC) #5
perkj_webrtc
Can you please take a look at this cl? I added the resolution to change ...
4 years, 10 months ago (2016-02-16 14:27:29 UTC) #6
nisse-webrtc
I had some draft comments on an earlier version, sorry I forgot to publish them ...
4 years, 10 months ago (2016-02-17 08:19:46 UTC) #7
perkj_webrtc
ok- if you can - please take another look to check what this is going. ...
4 years, 10 months ago (2016-02-17 17:16:29 UTC) #8
pthatcher1
https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h File webrtc/media/base/videoadapter.h (left): https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h#oldcode135 webrtc/media/base/videoadapter.h:135: float process_threshold() const { return process_threshold_; } Do we ...
4 years, 10 months ago (2016-02-17 23:05:56 UTC) #9
perkj_webrtc
https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h File webrtc/media/base/videoadapter.h (left): https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h#oldcode135 webrtc/media/base/videoadapter.h:135: float process_threshold() const { return process_threshold_; } On 2016/02/17 ...
4 years, 10 months ago (2016-02-18 13:22:46 UTC) #10
nisse-webrtc
https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h File webrtc/media/base/videoadapter.h (left): https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h#oldcode135 webrtc/media/base/videoadapter.h:135: float process_threshold() const { return process_threshold_; } On 2016/02/18 ...
4 years, 10 months ago (2016-02-18 14:03:42 UTC) #11
perkj_webrtc
https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1976 webrtc/media/engine/webrtcvideoengine2.cc:1976: } On 2016/02/18 13:22:46, perkj_webrtc wrote: > On 2016/02/17 ...
4 years, 10 months ago (2016-02-18 14:30:54 UTC) #12
perkj_webrtc
On 2016/02/18 14:30:54, perkj_webrtc wrote: > https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/engine/webrtcvideoengine2.cc > File webrtc/media/engine/webrtcvideoengine2.cc (right): > > https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1976 > ...
4 years, 10 months ago (2016-02-18 16:42:22 UTC) #14
pthatcher1
https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h File webrtc/media/base/videoadapter.h (left): https://codereview.webrtc.org/1695263002/diff/80001/webrtc/media/base/videoadapter.h#oldcode135 webrtc/media/base/videoadapter.h:135: float process_threshold() const { return process_threshold_; } On 2016/02/18 ...
4 years, 10 months ago (2016-02-19 06:08:40 UTC) #15
perkj_webrtc
As far as I got today. I have not looked at all comments but please ...
4 years, 10 months ago (2016-02-19 14:57:52 UTC) #16
pbos-webrtc
On 2016/02/19 14:57:52, perkj_webrtc wrote: > As far as I got today. I have not ...
4 years, 10 months ago (2016-02-19 15:14:11 UTC) #17
perkj_webrtc
pbos, ptatcher- Can you please help by talking directly to each other and resolve how ...
4 years, 10 months ago (2016-02-22 11:20:51 UTC) #18
perkj_webrtc
On 2016/02/22 11:20:51, perkj_webrtc wrote: > pbos, ptatcher- Can you please help by talking directly ...
4 years, 9 months ago (2016-02-24 17:05:49 UTC) #19
pthatcher1
The design looks good, just comments on the impl. https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/base/videoadapter.cc#newcode513 webrtc/media/base/videoadapter.cc:513: ...
4 years, 9 months ago (2016-02-25 07:40:31 UTC) #20
nisse-webrtc
https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/base/videobroadcaster.cc File webrtc/media/base/videobroadcaster.cc (right): https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/base/videobroadcaster.cc#newcode110 webrtc/media/base/videobroadcaster.cc:110: On 2016/02/25 07:40:30, pthatcher1 wrote: > I think this ...
4 years, 9 months ago (2016-02-25 09:31:07 UTC) #21
perkj_webrtc
PTAL https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/base/videoadapter.cc#newcode513 webrtc/media/base/videoadapter.cc:513: OnCpuResolutionRequest(request); On 2016/02/25 07:40:30, pthatcher1 wrote: > Could ...
4 years, 9 months ago (2016-02-25 13:57:07 UTC) #22
nisse-webrtc
lgtm
4 years, 9 months ago (2016-02-25 14:07:42 UTC) #23
pthatcher1
https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1999 webrtc/media/engine/webrtcvideoengine2.cc:1999: cpu_adapted_ = false; On 2016/02/25 13:57:07, perkj_webrtc wrote: > ...
4 years, 9 months ago (2016-02-25 20:20:06 UTC) #24
perkj_webrtc
PTAL https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1695263002/diff/280001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1999 webrtc/media/engine/webrtcvideoengine2.cc:1999: cpu_adapted_ = false; On 2016/02/25 20:20:05, pthatcher1 wrote: ...
4 years, 9 months ago (2016-02-26 14:08:25 UTC) #25
pbos-webrtc
lgtm https://codereview.webrtc.org/1695263002/diff/380001/webrtc/media/base/videoadapter.cc File webrtc/media/base/videoadapter.cc (right): https://codereview.webrtc.org/1695263002/diff/380001/webrtc/media/base/videoadapter.cc#newcode509 webrtc/media/base/videoadapter.cc:509: OnCpuResolutionRequest(UPGRADE); Should we take this lock recursively or ...
4 years, 9 months ago (2016-02-26 14:26:18 UTC) #26
perkj_webrtc
https://codereview.webrtc.org/1695263002/diff/380001/webrtc/media/base/videobroadcaster_unittest.cc File webrtc/media/base/videobroadcaster_unittest.cc (right): https://codereview.webrtc.org/1695263002/diff/380001/webrtc/media/base/videobroadcaster_unittest.cc#newcode27 webrtc/media/base/videobroadcaster_unittest.cc:27: size_t number_of_rendered_frames_ = 0; On 2016/02/26 14:26:18, pbos-webrtc wrote: ...
4 years, 9 months ago (2016-02-26 15:22:34 UTC) #27
pthatcher1
lgtm https://codereview.webrtc.org/1695263002/diff/420001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1695263002/diff/420001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1630 webrtc/media/engine/webrtcvideoengine2.cc:1630: return false; {}s please
4 years, 9 months ago (2016-02-26 21:57:02 UTC) #29
perkj_webrtc
https://codereview.webrtc.org/1695263002/diff/420001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1695263002/diff/420001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1630 webrtc/media/engine/webrtcvideoengine2.cc:1630: return false; On 2016/02/26 21:57:02, pthatcher1 wrote: > {}s ...
4 years, 9 months ago (2016-02-29 07:02:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695263002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695263002/460001
4 years, 9 months ago (2016-02-29 07:02:26 UTC) #33
commit-bot: I haz the power
Committed patchset #22 (id:460001)
4 years, 9 months ago (2016-02-29 08:04:48 UTC) #35
commit-bot: I haz the power
4 years, 9 months ago (2016-02-29 08:04:57 UTC) #37
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/2d5f0913f25a9e504eec2c2ecbb4e7647fd283b4
Cr-Commit-Position: refs/heads/master@{#11804}

Powered by Google App Engine
This is Rietveld 408576698