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

Issue 2147753002: VideoTrackRecorder: add support for texture backed ARGB VideoFrames (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
Reviewers:
emircan, hubbe
CC:
chromium-reviews, posciak+watch_chromium.org, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VideoTrackRecorder: add support for texture backed ARGB VideoFrames Certain accelerated video decoders (in Android and CrOs, see bug) produce ARGB VideoFrames that are backed by textures, which are not supported on ToT by VideoTrackRecorder, so nothing gets encoded. This CL adds code that borrows from webmediaplayer_ms_compositor.cc's CopyFrame() [1] to try and retrieve the data from the said incoming VideoFrame, by passing the this to the new method VideoTrackRecorder::Encoder::RetrieveFrameOnMainThread() Thanks to this, content_browsertest's MediaRecorderPeerConnection can be enabled. [1] https://cs.chromium.org/chromium/src/content/renderer/media/webmediaplayer_ms_compositor.cc?dr=C&q=webmediaplayer_ms_compositor&sq=package:chromium&l=35 BUG=585242 TEST=the newly enabled content_browsertests and manual testing on N6, see bug for details. Committed: https://crrev.com/e641a694896375b8a8137d0d515dd975d132c3ad Cr-Commit-Position: refs/heads/master@{#405867}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Rebased. Using RetrieveFrameOnMainThread() for texture-backed frames. #

Total comments: 6

Patch Set 3 : emircan@s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -16 lines) Patch
M content/browser/media/webrtc/webrtc_media_recorder_browsertest.cc View 1 1 chunk +1 line, -10 lines 0 comments Download
M content/renderer/media/video_track_recorder.cc View 1 2 6 chunks +110 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
mcasas
emircan@ PTAL
4 years, 5 months ago (2016-07-12 22:14:17 UTC) #4
emircan
https://codereview.chromium.org/2147753002/diff/20001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2147753002/diff/20001/content/renderer/media/video_track_recorder.cc#newcode192 content/renderer/media/video_track_recorder.cc:192: } This code looks very similar to CopyFrame() below, ...
4 years, 5 months ago (2016-07-12 22:57:00 UTC) #5
mcasas
https://codereview.chromium.org/2147753002/diff/20001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2147753002/diff/20001/content/renderer/media/video_track_recorder.cc#newcode192 content/renderer/media/video_track_recorder.cc:192: } On 2016/07/12 22:57:00, emircan wrote: > This code ...
4 years, 5 months ago (2016-07-13 00:45:31 UTC) #6
emircan
On 2016/07/13 00:45:31, mcasas wrote: > Happy to do that, but I see that CopyFrame() ...
4 years, 5 months ago (2016-07-14 02:55:55 UTC) #7
mcasas
On 2016/07/14 02:55:55, emircan wrote: > On 2016/07/13 00:45:31, mcasas wrote: > > Happy to ...
4 years, 5 months ago (2016-07-15 02:14:50 UTC) #11
mcasas
emircan@ PTAL. Please start afresh in PS2, since plenty of lines of code has changed.
4 years, 5 months ago (2016-07-15 02:16:21 UTC) #12
mcasas
On 2016/07/15 02:16:21, mcasas wrote: > emircan@ PTAL. > > Please start afresh in PS2, ...
4 years, 5 months ago (2016-07-15 02:29:56 UTC) #13
emircan
https://codereview.chromium.org/2147753002/diff/100001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2147753002/diff/100001/content/renderer/media/video_track_recorder.cc#newcode243 content/renderer/media/video_track_recorder.cc:243: video_frame->coded_size(), 0u, 0x80, 0x80, video_frame->timestamp()); Replace coded_size() with visible_rect() ...
4 years, 5 months ago (2016-07-15 17:47:34 UTC) #15
mcasas
emircan@ PTAL https://codereview.chromium.org/2147753002/diff/100001/content/renderer/media/video_track_recorder.cc File content/renderer/media/video_track_recorder.cc (right): https://codereview.chromium.org/2147753002/diff/100001/content/renderer/media/video_track_recorder.cc#newcode243 content/renderer/media/video_track_recorder.cc:243: video_frame->coded_size(), 0u, 0x80, 0x80, video_frame->timestamp()); On 2016/07/15 ...
4 years, 5 months ago (2016-07-15 18:03:09 UTC) #16
emircan
lgtm
4 years, 5 months ago (2016-07-15 18:04:37 UTC) #17
mcasas
hubbe@ RS enabling test in content/browser/media
4 years, 5 months ago (2016-07-15 18:27:20 UTC) #19
hubbe
lgtm
4 years, 5 months ago (2016-07-15 19:15:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147753002/120001
4 years, 5 months ago (2016-07-15 20:58:10 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:120001)
4 years, 5 months ago (2016-07-15 21:50:14 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 21:50:24 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 21:53:27 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e641a694896375b8a8137d0d515dd975d132c3ad
Cr-Commit-Position: refs/heads/master@{#405867}

Powered by Google App Engine
This is Rietveld 408576698