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

Issue 2328333002: New class AdaptedVideoTrackSource. (Closed)

Created:
4 years, 3 months ago by nisse-webrtc
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

New class AdaptedVideoTrackSource. BUG=webrtc:6353 Committed: https://crrev.com/6f5a6c318890bf544fc12fedd56db4bc29af69ef Cr-Commit-Position: refs/heads/master@{#14345}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 3

Patch Set 3 : Add proper accessor method for apply_rotation. #

Patch Set 4 : Drop access to to apply_rotation lock. #

Total comments: 4

Patch Set 5 : Rebase. #

Patch Set 6 : Move stats update from OnFrame to AdaptFrame. #

Total comments: 13

Patch Set 7 : Address Per's comments. #

Total comments: 1

Patch Set 8 : Rework synchronization between OnFrame and changes to apply_rotation. #

Patch Set 9 : Allow VideoBroadcaster::wants() to be called from any thread. #

Total comments: 4

Patch Set 10 : Demote GetStats implementation to private. #

Patch Set 11 : Comment improvement. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -161 lines) Patch
M webrtc/api/androidvideotracksource.h View 1 2 3 4 4 chunks +2 lines, -36 lines 0 comments Download
M webrtc/api/androidvideotracksource.cc View 1 2 3 4 5 9 chunks +23 lines, -124 lines 0 comments Download
M webrtc/media/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/media/base/adaptedvideotracksource.h View 1 2 3 4 5 6 7 8 9 1 chunk +81 lines, -0 lines 0 comments Download
A webrtc/media/base/adaptedvideotracksource.cc View 1 2 3 4 5 6 7 8 1 chunk +111 lines, -0 lines 0 comments Download
M webrtc/media/base/videobroadcaster.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M webrtc/media/base/videobroadcaster.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -1 line 0 comments Download
M webrtc/media/media.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (10 generated)
nisse-webrtc
This is a different approach to https://codereview.webrtc.org/2318953005/, exctracting code from AndroidVideoTrackSource into a more general ...
4 years, 3 months ago (2016-09-14 07:22:48 UTC) #1
nisse-webrtc
PTAL.
4 years, 3 months ago (2016-09-14 08:40:00 UTC) #4
magjed_webrtc
https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc File webrtc/api/androidvideotracksource.cc (right): https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc#newcode76 webrtc/api/androidvideotracksource.cc:76: if (apply_rotation_.value && (rotation == 90 || rotation == ...
4 years, 3 months ago (2016-09-14 13:30:56 UTC) #5
nisse-webrtc
https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc File webrtc/api/androidvideotracksource.cc (right): https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc#newcode76 webrtc/api/androidvideotracksource.cc:76: if (apply_rotation_.value && (rotation == 90 || rotation == ...
4 years, 3 months ago (2016-09-14 14:10:33 UTC) #6
nisse-webrtc
https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc File webrtc/api/androidvideotracksource.cc (right): https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc#newcode76 webrtc/api/androidvideotracksource.cc:76: if (apply_rotation_.value && (rotation == 90 || rotation == ...
4 years, 3 months ago (2016-09-15 07:39:17 UTC) #7
magjed_webrtc
On 2016/09/15 07:39:17, nisse-webrtc wrote: > https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc > File webrtc/api/androidvideotracksource.cc (right): > > https://codereview.webrtc.org/2328333002/diff/20001/webrtc/api/androidvideotracksource.cc#newcode76 > ...
4 years, 3 months ago (2016-09-15 15:02:52 UTC) #8
nisse-webrtc
Dropped access to the apply_rotation lock. OnFrame in the base class does a properly synchronized ...
4 years, 3 months ago (2016-09-16 11:54:10 UTC) #9
magjed_webrtc
https://codereview.webrtc.org/2328333002/diff/60001/webrtc/api/androidvideotracksource.cc File webrtc/api/androidvideotracksource.cc (right): https://codereview.webrtc.org/2328333002/diff/60001/webrtc/api/androidvideotracksource.cc#newcode78 webrtc/api/androidvideotracksource.cc:78: // TODO(nisse, magjed): Don't rotate here, leave it to ...
4 years, 3 months ago (2016-09-19 09:43:26 UTC) #10
nisse-webrtc
https://codereview.webrtc.org/2328333002/diff/60001/webrtc/api/androidvideotracksource.cc File webrtc/api/androidvideotracksource.cc (right): https://codereview.webrtc.org/2328333002/diff/60001/webrtc/api/androidvideotracksource.cc#newcode78 webrtc/api/androidvideotracksource.cc:78: // TODO(nisse, magjed): Don't rotate here, leave it to ...
4 years, 3 months ago (2016-09-20 08:23:42 UTC) #11
magjed_webrtc
lgtm!
4 years, 3 months ago (2016-09-20 09:16:02 UTC) #12
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/2328333002/100001
4 years, 3 months ago (2016-09-20 09:31:10 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 3 months ago (2016-09-20 11:31:44 UTC) #16
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/2328333002/100001
4 years, 3 months ago (2016-09-20 12:25:44 UTC) #18
perkj_webrtc
https://codereview.webrtc.org/2328333002/diff/100001/webrtc/api/androidvideotracksource.cc File webrtc/api/androidvideotracksource.cc (right): https://codereview.webrtc.org/2328333002/diff/100001/webrtc/api/androidvideotracksource.cc#newcode98 webrtc/api/androidvideotracksource.cc:98: OnFrame(cricket::WebRtcVideoFrame( How about we let OnFrame take VideoFrameBuffer as ...
4 years, 3 months ago (2016-09-20 12:26:10 UTC) #19
perkj_webrtc
4 years, 3 months ago (2016-09-20 12:26:13 UTC) #20
nisse-webrtc
https://codereview.webrtc.org/2328333002/diff/100001/webrtc/api/androidvideotracksource.cc File webrtc/api/androidvideotracksource.cc (right): https://codereview.webrtc.org/2328333002/diff/100001/webrtc/api/androidvideotracksource.cc#newcode98 webrtc/api/androidvideotracksource.cc:98: OnFrame(cricket::WebRtcVideoFrame( On 2016/09/20 12:26:09, perkj_webrtc wrote: > How about ...
4 years, 3 months ago (2016-09-20 13:17:48 UTC) #22
nisse-webrtc
Please have another look. I've reworked the synchronization between OnFrame and changes to apply_rotation. Now, ...
4 years, 3 months ago (2016-09-21 07:40:08 UTC) #23
perkj_webrtc
lgtm with the below addressed. https://codereview.webrtc.org/2328333002/diff/120001/webrtc/media/base/adaptedvideotracksource.h File webrtc/media/base/adaptedvideotracksource.h (right): https://codereview.webrtc.org/2328333002/diff/120001/webrtc/media/base/adaptedvideotracksource.h#newcode33 webrtc/media/base/adaptedvideotracksource.h:33: bool GetStats(Stats* stats) override; ...
4 years, 3 months ago (2016-09-21 08:59:23 UTC) #24
nisse-webrtc
https://codereview.webrtc.org/2328333002/diff/160001/webrtc/media/base/adaptedvideotracksource.h File webrtc/media/base/adaptedvideotracksource.h (right): https://codereview.webrtc.org/2328333002/diff/160001/webrtc/media/base/adaptedvideotracksource.h#newcode33 webrtc/media/base/adaptedvideotracksource.h:33: bool GetStats(Stats* stats) override; On 2016/09/21 08:59:23, perkj_webrtc wrote: ...
4 years, 3 months ago (2016-09-21 09:43:59 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/2328333002/200001
4 years, 3 months ago (2016-09-22 07:44:03 UTC) #28
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 3 months ago (2016-09-22 08:26:02 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 08:26:10 UTC) #32
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6f5a6c318890bf544fc12fedd56db4bc29af69ef
Cr-Commit-Position: refs/heads/master@{#14345}

Powered by Google App Engine
This is Rietveld 408576698