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

Issue 1704273002: Add MojoVideoFrame (Closed)

Created:
4 years, 10 months ago by jrummell
Modified:
4 years, 9 months ago
Reviewers:
mcasas, xhwang, DaleCurtis, Nico
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, miu+watch_chromium.org, qsr+mojo_chromium.org, sandersd (OOO until July 31), viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MojoVideoFrame Rather than add a few more fields to VideoFrame, refactor it a little bit to allow MojoVideoFrame. Requires moving several static functions to the interface so that they can be used by the derived class. BUG=510088 TEST=new unittest passes Committed: https://crrev.com/9a995c82fd5c1d186ebd3d0a30d5a78b29dd5e82 Cr-Commit-Position: refs/heads/master@{#379366}

Patch Set 1 #

Total comments: 6

Patch Set 2 : few protected methods #

Total comments: 39

Patch Set 3 : move to media/mojo/common #

Total comments: 28

Patch Set 4 : updates #

Total comments: 22

Patch Set 5 : Changes #

Total comments: 10

Patch Set 6 : rename file #

Patch Set 7 : changes #

Total comments: 6

Patch Set 8 : changes + rebase #

Patch Set 9 : PlaneOffset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -165 lines) Patch
M media/base/video_frame.h View 1 2 3 4 4 chunks +50 lines, -15 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 6 7 8 chunks +167 lines, -150 lines 0 comments Download
M media/mojo/common/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
A media/mojo/common/mojo_shared_buffer_video_frame.h View 1 2 3 4 5 6 7 8 1 chunk +85 lines, -0 lines 0 comments Download
A media/mojo/common/mojo_shared_buffer_video_frame.cc View 1 2 3 4 5 6 7 8 1 chunk +147 lines, -0 lines 0 comments Download
A media/mojo/common/mojo_shared_buffer_video_frame_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +122 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (12 generated)
jrummell
PTAL. Code to actually use the MojoVideoFrame coming soon.
4 years, 10 months ago (2016-02-18 01:55:45 UTC) #2
DaleCurtis
+mcasas who might be working on similar things for capture.
4 years, 10 months ago (2016-02-18 04:05:52 UTC) #4
mcasas
https://codereview.chromium.org/1704273002/diff/1/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1704273002/diff/1/media/base/video_frame.h#newcode77 media/base/video_frame.h:77: STORAGE_LAST = STORAGE_MOJO_SHARED_MEMORY, I do something similar in media/capture/service/mojo_video_frame.h ...
4 years, 10 months ago (2016-02-18 04:32:50 UTC) #5
xhwang
Great! jrummell / mcasas: We should coordinate to have one MojoVideoFrame implementation that suits the ...
4 years, 10 months ago (2016-02-18 06:01:20 UTC) #6
mcasas
In the mentioned CL, the mojo::SharedBuffer is created and mapped at MojoVideoFrame ctor time and ...
4 years, 10 months ago (2016-02-18 18:15:31 UTC) #7
xhwang
On 2016/02/18 18:15:31, mcasas wrote: > In the mentioned CL, the mojo::SharedBuffer > is created ...
4 years, 10 months ago (2016-02-18 18:39:18 UTC) #8
jrummell
Updated. mojo_video_frame is now in it's own source_set() to make it easier for others to ...
4 years, 10 months ago (2016-02-23 02:01:21 UTC) #9
xhwang
Thanks! Looking good in general. Here are my comments. https://chromiumcodereview.appspot.com/1704273002/diff/20001/media/base/video_frame.h File media/base/video_frame.h (right): https://chromiumcodereview.appspot.com/1704273002/diff/20001/media/base/video_frame.h#newcode421 media/base/video_frame.h:421: ...
4 years, 10 months ago (2016-02-23 21:27:37 UTC) #10
xhwang
https://chromiumcodereview.appspot.com/1704273002/diff/20001/media/mojo/services/mojo_video_frame.h File media/mojo/services/mojo_video_frame.h (right): https://chromiumcodereview.appspot.com/1704273002/diff/20001/media/mojo/services/mojo_video_frame.h#newcode8 media/mojo/services/mojo_video_frame.h:8: #include <stddef.h> What is this used for?
4 years, 10 months ago (2016-02-23 21:28:54 UTC) #11
jrummell
Moved to code to media/mojo/common, added a unittest. PTAL. https://codereview.chromium.org/1704273002/diff/20001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1704273002/diff/20001/media/base/video_frame.h#newcode421 media/base/video_frame.h:421: ...
4 years, 10 months ago (2016-02-25 02:18:27 UTC) #13
mcasas
https://codereview.chromium.org/1704273002/diff/40001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1704273002/diff/40001/media/base/video_frame.h#newcode433 media/base/video_frame.h:433: static std::string ConfigToString(const VideoPixelFormat format, Since is only used ...
4 years, 10 months ago (2016-02-25 15:12:35 UTC) #14
jrummell
Updated (and added a question of my own). https://codereview.chromium.org/1704273002/diff/40001/media/base/video_frame.h File media/base/video_frame.h (right): https://codereview.chromium.org/1704273002/diff/40001/media/base/video_frame.h#newcode433 media/base/video_frame.h:433: static ...
4 years, 10 months ago (2016-02-25 21:51:48 UTC) #15
jrummell
+sandersd@
4 years, 10 months ago (2016-02-26 19:49:06 UTC) #17
xhwang
Looking pretty good. I just have a few more comments. https://chromiumcodereview.appspot.com/1704273002/diff/60001/media/mojo/common/mojo_video_frame.cc File media/mojo/common/mojo_video_frame.cc (right): https://chromiumcodereview.appspot.com/1704273002/diff/60001/media/mojo/common/mojo_video_frame.cc#newcode25 ...
4 years, 9 months ago (2016-02-29 18:28:05 UTC) #18
jrummell
Updated. PS#5 is the changes, PS#6 renames the file for MojoSharedBufferVideoFrame. https://codereview.chromium.org/1704273002/diff/60001/media/mojo/common/mojo_video_frame.cc File media/mojo/common/mojo_video_frame.cc (right): ...
4 years, 9 months ago (2016-03-01 00:41:05 UTC) #20
xhwang
Sorry I saw your message then I forgot about it.. looking pretty good now. Just ...
4 years, 9 months ago (2016-03-04 00:55:35 UTC) #21
jrummell
Updated. https://codereview.chromium.org/1704273002/diff/80001/media/mojo/common/mojo_video_frame.cc File media/mojo/common/mojo_video_frame.cc (right): https://codereview.chromium.org/1704273002/diff/80001/media/mojo/common/mojo_video_frame.cc#newcode124 media/mojo/common/mojo_video_frame.cc:124: set_data(kYPlane, reinterpret_cast<uint8_t*>(buffer_data_) + y_offset); On 2016/03/04 00:55:34, xhwang ...
4 years, 9 months ago (2016-03-04 02:19:06 UTC) #22
xhwang
LGTM with nits https://codereview.chromium.org/1704273002/diff/80001/media/mojo/common/mojo_video_frame.cc File media/mojo/common/mojo_video_frame.cc (right): https://codereview.chromium.org/1704273002/diff/80001/media/mojo/common/mojo_video_frame.cc#newcode124 media/mojo/common/mojo_video_frame.cc:124: set_data(kYPlane, reinterpret_cast<uint8_t*>(buffer_data_) + y_offset); On 2016/03/04 ...
4 years, 9 months ago (2016-03-04 04:32:27 UTC) #23
jrummell
Updated (and rebased to get the media/mojo/common/BUILD.gn changes). https://codereview.chromium.org/1704273002/diff/80001/media/mojo/common/mojo_video_frame.cc File media/mojo/common/mojo_video_frame.cc (right): https://codereview.chromium.org/1704273002/diff/80001/media/mojo/common/mojo_video_frame.cc#newcode124 media/mojo/common/mojo_video_frame.cc:124: set_data(kYPlane, ...
4 years, 9 months ago (2016-03-04 19:13:38 UTC) #24
DaleCurtis
lgtm https://codereview.chromium.org/1704273002/diff/120001/media/mojo/common/mojo_shared_buffer_video_frame.cc File media/mojo/common/mojo_shared_buffer_video_frame.cc (right): https://codereview.chromium.org/1704273002/diff/120001/media/mojo/common/mojo_shared_buffer_video_frame.cc#newcode132 media/mojo/common/mojo_shared_buffer_video_frame.cc:132: const MojoResult result = mojo::UnmapBuffer(shared_buffer_data_); Should this be ...
4 years, 9 months ago (2016-03-04 19:16:57 UTC) #25
mcasas
LGTM if the other reviewers are happy.
4 years, 9 months ago (2016-03-04 19:18:29 UTC) #26
jrummell
Thanks for the reviews. https://codereview.chromium.org/1704273002/diff/120001/media/mojo/common/mojo_shared_buffer_video_frame.cc File media/mojo/common/mojo_shared_buffer_video_frame.cc (right): https://codereview.chromium.org/1704273002/diff/120001/media/mojo/common/mojo_shared_buffer_video_frame.cc#newcode132 media/mojo/common/mojo_shared_buffer_video_frame.cc:132: const MojoResult result = mojo::UnmapBuffer(shared_buffer_data_); ...
4 years, 9 months ago (2016-03-04 19:29:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704273002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704273002/160001
4 years, 9 months ago (2016-03-04 19:30:35 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/176716)
4 years, 9 months ago (2016-03-04 20:06:09 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1704273002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1704273002/160001
4 years, 9 months ago (2016-03-04 21:07:36 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-04 21:49:03 UTC) #36
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/9a995c82fd5c1d186ebd3d0a30d5a78b29dd5e82 Cr-Commit-Position: refs/heads/master@{#379366}
4 years, 9 months ago (2016-03-04 21:50:35 UTC) #38
Nico
This breaks component builds with gn on Windows, see e.g. https://build.chromium.org/p/chromium.fyi/builders/CrWinClang64%28dbg%29/builds/3969/steps/compile/logs/stdio FAILED: ninja -t msvc ...
4 years, 9 months ago (2016-03-05 00:39:32 UTC) #40
Nico
c. please take a look, and if fixing is tricky consider reverting until you have ...
4 years, 9 months ago (2016-03-05 00:40:09 UTC) #41
xhwang
On 2016/03/05 00:40:09, Nico wrote: > c. please take a look, and if fixing is ...
4 years, 9 months ago (2016-03-05 00:50:03 UTC) #42
jrummell
4 years, 9 months ago (2016-03-05 00:58:32 UTC) #43
Message was sent while issue was closed.
https://codereview.chromium.org/1764063003/

On Fri, Mar 4, 2016 at 4:50 PM, <xhwang@chromium.org> wrote:

> On 2016/03/05 00:40:09, Nico wrote:
> > c. please take a look, and if fixing is tricky consider reverting until
> you
> have
> > a fix
>
> Dropping MEDIA_EXPORT and include should fix it. We'll fix it now.
>
> https://codereview.chromium.org/1704273002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698