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

Issue 1117423002: media: Let VideoFrame carry more than one native texture. (Closed)

Created:
5 years, 7 months ago by Daniele Castagna
Modified:
5 years, 7 months ago
CC:
avayvod+watch_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, emircan, feature-media-reviews_chromium.org, hclam+watch_chromium.org, hguihot+watch_chromium.org, hubbe+watch_chromium.org, imcheng+watch_chromium.org, jam, jasonroberts+watch_google.com, mcasas+watch_chromium.org, mcasas, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, reveman, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Let VideoFrame carry more than one native texture. The goal of this patch is to be able to use VideoFrame to be created and to transport three R8 textures that represent a YUV frame. A new enum VideoFrame::TextureFormat has been added in order to determine how the textures attached to the VideoFrame should be interpreted when the VideoFrame::Format is NATIVE_TEXTURE. BUG= Committed: https://crrev.com/fa4d1f32690b749496963058d53b90ab9e59769a Cr-Commit-Position: refs/heads/master@{#328783}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address comments. Fix bot failures. #

Total comments: 25

Patch Set 3 : Remove TextureFormat enum explicit values. #

Total comments: 4

Patch Set 4 : Address reveman's comments. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -177 lines) Patch
M cc/resources/video_resource_updater.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_client.cc View 1 1 chunk +12 lines, -16 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 3 chunks +10 lines, -9 lines 0 comments Download
M content/renderer/media/rtc_video_decoder.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/video_frame.h View 1 2 3 12 chunks +43 lines, -18 lines 4 comments Download
M media/base/video_frame.cc View 1 15 chunks +77 lines, -73 lines 0 comments Download
M media/base/video_frame_unittest.cc View 1 2 chunks +36 lines, -25 lines 0 comments Download
M media/blink/skcanvas_video_renderer.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (11 generated)
Daniele Castagna
5 years, 7 months ago (2015-05-01 23:48:56 UTC) #2
DaleCurtis
Seems reasonable to me, but +posciak for his thoughts, since he's done a lot of ...
5 years, 7 months ago (2015-05-02 18:21:33 UTC) #4
reveman
https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.cc#newcode253 media/base/video_frame.cc:253: mailbox_holders[0] = mailbox_holder; s/0/kARGBPlan/ https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.h#newcode70 ...
5 years, 7 months ago (2015-05-03 16:13:28 UTC) #6
Daniele Castagna
https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.cc#newcode253 media/base/video_frame.cc:253: mailbox_holders[0] = mailbox_holder; On 2015/05/03 at 16:13:27, reveman wrote: ...
5 years, 7 months ago (2015-05-04 15:00:15 UTC) #7
DaleCurtis
https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.h#newcode72 media/base/video_frame.h:72: TEXTURE_NONE = 0, // This frame doesn't contain any ...
5 years, 7 months ago (2015-05-04 16:00:15 UTC) #8
DaleCurtis
https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc#newcode199 media/base/video_frame.cc:199: natural_size.height() > limits::kMaxDimension) I think you should keep the ...
5 years, 7 months ago (2015-05-04 16:12:06 UTC) #9
Daniele Castagna
On 2015/05/04 at 16:00:15, dalecurtis wrote: > https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.h > File media/base/video_frame.h (right): > > https://codereview.chromium.org/1117423002/diff/1/media/base/video_frame.h#newcode72 ...
5 years, 7 months ago (2015-05-04 16:12:19 UTC) #10
mcasas
Some drive-by on the practicalities. https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc#newcode146 media/base/video_frame.cc:146: mailboxes, TEXTURE_RGBA, timestamp, false)); ...
5 years, 7 months ago (2015-05-04 16:23:42 UTC) #12
hubbe
https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.h#newcode73 media/base/video_frame.h:73: TEXTURE_YUV_420 = 2, // Three R8 textures one per ...
5 years, 7 months ago (2015-05-04 16:26:32 UTC) #14
DaleCurtis
https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc#newcode253 media/base/video_frame.cc:253: mailbox_holders, TEXTURE_RGBA, timestamp, false)); On 2015/05/04 16:23:41, mcasas wrote: ...
5 years, 7 months ago (2015-05-04 16:31:30 UTC) #15
Daniele Castagna
https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc#newcode146 media/base/video_frame.cc:146: mailboxes, TEXTURE_RGBA, timestamp, false)); On 2015/05/04 at 16:23:41, mcasas ...
5 years, 7 months ago (2015-05-04 17:59:59 UTC) #16
DaleCurtis
https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.cc#newcode199 media/base/video_frame.cc:199: natural_size.height() > limits::kMaxDimension) On 2015/05/04 17:59:59, Daniele Castagna wrote: ...
5 years, 7 months ago (2015-05-04 18:12:54 UTC) #17
hubbe
https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.h#newcode73 media/base/video_frame.h:73: TEXTURE_YUV_420 = 2, // Three R8 textures one per ...
5 years, 7 months ago (2015-05-04 18:28:27 UTC) #18
Daniele Castagna
https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/20001/media/base/video_frame.h#newcode72 media/base/video_frame.h:72: TEXTURE_RGBA = 1, // One RGBA texture. On 2015/05/04 ...
5 years, 7 months ago (2015-05-04 20:51:55 UTC) #19
reveman
lgtm https://codereview.chromium.org/1117423002/diff/40001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/40001/media/base/video_frame.h#newcode73 media/base/video_frame.h:73: TEXTURE_YUV_420, // Three R8 textures one per YUV ...
5 years, 7 months ago (2015-05-04 21:49:00 UTC) #20
DaleCurtis
lgtm
5 years, 7 months ago (2015-05-05 04:05:57 UTC) #21
miu
Anyone think we're quickly approaching the point where media::VideoFrame needs to become a base class ...
5 years, 7 months ago (2015-05-05 04:12:26 UTC) #22
DaleCurtis
I think that's a great idea if possible, the vast majority of consumers don't care ...
5 years, 7 months ago (2015-05-05 05:49:46 UTC) #23
Daniele Castagna
On 2015/05/05 at 05:49:46, dalecurtis wrote: > I think that's a great idea if possible, ...
5 years, 7 months ago (2015-05-06 00:45:50 UTC) #24
Daniele Castagna
https://codereview.chromium.org/1117423002/diff/40001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/40001/media/base/video_frame.h#newcode73 media/base/video_frame.h:73: TEXTURE_YUV_420, // Three R8 textures one per YUV channel. ...
5 years, 7 months ago (2015-05-06 00:46:00 UTC) #25
Daniele Castagna
+piman for cc/ owner's approval.
5 years, 7 months ago (2015-05-06 00:46:30 UTC) #27
Daniele Castagna
-piman, since reveman's is an owner of cc. :/
5 years, 7 months ago (2015-05-06 00:51:19 UTC) #29
piman
lgtm https://codereview.chromium.org/1117423002/diff/60001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/60001/media/base/video_frame.h#newcode412 media/base/video_frame.h:412: gpu::MailboxHolder mailbox_holders_[kMaxPlanes]; drive-by: FYI, gpu::Mailbox is 64 bytes, ...
5 years, 7 months ago (2015-05-06 01:08:10 UTC) #31
Pawel Osciak
+marcheu FYI
5 years, 7 months ago (2015-05-06 01:08:52 UTC) #33
Daniele Castagna
https://codereview.chromium.org/1117423002/diff/60001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/60001/media/base/video_frame.h#newcode412 media/base/video_frame.h:412: gpu::MailboxHolder mailbox_holders_[kMaxPlanes]; On 2015/05/06 at 01:08:09, piman (Very slow ...
5 years, 7 months ago (2015-05-06 01:29:19 UTC) #34
Pawel Osciak
Sorry for the delay, holidays here this week. In general, I'm ok with this, however ...
5 years, 7 months ago (2015-05-06 02:14:29 UTC) #35
Pawel Osciak
Also, second usage would be to get to dmabufs for rendering purposes, for example if ...
5 years, 7 months ago (2015-05-06 02:19:17 UTC) #36
Pawel Osciak
Per offline discussion, let's consider the above scenarios a bit later. I'm ok getting this ...
5 years, 7 months ago (2015-05-06 02:46:56 UTC) #37
Daniele Castagna
https://codereview.chromium.org/1117423002/diff/60001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1117423002/diff/60001/media/base/video_frame.h#newcode71 media/base/video_frame.h:71: enum TextureFormat { On 2015/05/06 at 02:14:29, Pawel Osciak ...
5 years, 7 months ago (2015-05-06 18:50:24 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117423002/60001
5 years, 7 months ago (2015-05-07 15:07:38 UTC) #41
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-07 17:21:11 UTC) #42
commit-bot: I haz the power
5 years, 7 months ago (2015-05-07 17:21:59 UTC) #43
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fa4d1f32690b749496963058d53b90ab9e59769a
Cr-Commit-Position: refs/heads/master@{#328783}

Powered by Google App Engine
This is Rietveld 408576698