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

Issue 446163003: Extend media::VideoFrame to wrap CVPixelBuffer on OS X and iOS. (Closed)

Created:
6 years, 4 months ago by jfroy
Modified:
6 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Extend media::VideoFrame to wrap CVPixelBuffer on OS X and iOS. This allows better integration of OS X and iOS media frameworks with chromium code and makes buffer management less problematic, especially when using CVPixelBufferPools provided by hardware encoders or decoders. BUG=401308 R=dalecurtis,hubbe Committed: https://crrev.com/7eef1763b2118e82ed463e7414066e51690fbe53 Cr-Commit-Position: refs/heads/master@{#292023}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Conditionally support YV12, import CoreVide.h in header, edit comments. #

Total comments: 5

Patch Set 3 : Add space between system and user header include. #

Total comments: 2

Patch Set 4 : Use literal value of kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange instead of (wrong) availabilit… #

Total comments: 2

Patch Set 5 : Edit kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange comment as requested, fix lint issues. #

Patch Set 6 : Despite the lint warning, CoreVideo.h needs to be included after project headers because only then … #

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Only import CVPixelBuffer.h to avoid build failures due to conflicting OpenGL function prototypes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -0 lines) Patch
M media/base/video_frame.h View 1 2 3 4 5 6 7 4 chunks +29 lines, -0 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 5 6 2 chunks +51 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (0 generated)
jfroy
6 years, 4 months ago (2014-08-07 00:50:30 UTC) #1
DaleCurtis
I'm no OSX expert, so +rsesek. I'll stamp after his approval.
6 years, 4 months ago (2014-08-07 00:54:37 UTC) #2
Robert Sesek
https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc#newcode295 media/base/video_frame.cc:295: // there are very few compatible CV pixel formats, ...
6 years, 4 months ago (2014-08-07 16:12:57 UTC) #3
jfroy
https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc#newcode295 media/base/video_frame.cc:295: // there are very few compatible CV pixel formats, ...
6 years, 4 months ago (2014-08-07 16:22:15 UTC) #4
Robert Sesek
https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc#newcode298 media/base/video_frame.cc:298: } else if (cv_format == kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange) { On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 16:34:42 UTC) #5
jfroy
https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc#newcode298 media/base/video_frame.cc:298: } else if (cv_format == kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange) { On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 16:52:46 UTC) #6
acolwell GONE FROM CHROMIUM
Drive-by comment. You should probably loop in sandersd@ since he has been doing Mac hardware ...
6 years, 4 months ago (2014-08-07 16:59:54 UTC) #7
jfroy
On 2014/08/07 16:59:54, acolwell wrote: > Drive-by comment. You should probably loop in sandersd@ since ...
6 years, 4 months ago (2014-08-07 17:06:21 UTC) #8
Robert Sesek
https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/1/media/base/video_frame.cc#newcode298 media/base/video_frame.cc:298: } else if (cv_format == kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange) { On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 18:00:15 UTC) #9
jfroy
https://codereview.chromium.org/446163003/diff/20001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/20001/media/base/video_frame.cc#newcode298 media/base/video_frame.cc:298: (__IPHONE_OS_VERSION_MIN_REQUIRED >= 40000) On 2014/08/07 18:00:15, rsesek wrote: > ...
6 years, 4 months ago (2014-08-07 18:08:20 UTC) #10
Robert Sesek
https://codereview.chromium.org/446163003/diff/20001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/20001/media/base/video_frame.cc#newcode298 media/base/video_frame.cc:298: (__IPHONE_OS_VERSION_MIN_REQUIRED >= 40000) On 2014/08/07 18:08:20, jfroy wrote: > ...
6 years, 4 months ago (2014-08-07 18:14:44 UTC) #11
acolwell GONE FROM CHROMIUM
On 2014/08/07 17:06:21, jfroy wrote: > On 2014/08/07 16:59:54, acolwell wrote: > > Drive-by comment. ...
6 years, 4 months ago (2014-08-07 18:24:17 UTC) #12
sandersd (OOO until July 31)
On 2014/08/07 18:24:17, acolwell wrote: > On 2014/08/07 17:06:21, jfroy wrote: > > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 18:30:29 UTC) #13
jfroy
On 2014/08/07 18:24:17, acolwell wrote: > On 2014/08/07 17:06:21, jfroy wrote: > > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 18:51:28 UTC) #14
Robert Sesek
On 2014/08/07 18:51:28, jfroy wrote: > The purpose is for iOS cast streaming. The CL ...
6 years, 4 months ago (2014-08-07 19:26:51 UTC) #15
acolwell GONE FROM CHROMIUM
On 2014/08/07 18:51:28, jfroy wrote: > On 2014/08/07 18:24:17, acolwell wrote: > > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 20:06:03 UTC) #16
jfroy
On 2014/08/07 20:06:03, acolwell wrote: > On 2014/08/07 18:51:28, jfroy wrote: > > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 20:09:28 UTC) #17
acolwell GONE FROM CHROMIUM
On 2014/08/07 20:09:28, jfroy wrote: > On 2014/08/07 20:06:03, acolwell wrote: > > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 20:15:47 UTC) #18
jfroy
On 2014/08/07 20:15:47, acolwell wrote: > On 2014/08/07 20:09:28, jfroy wrote: > > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 20:18:46 UTC) #19
jfroy
On 2014/08/07 20:18:46, jfroy wrote: > On 2014/08/07 20:15:47, acolwell wrote: > > On 2014/08/07 ...
6 years, 4 months ago (2014-08-07 20:19:33 UTC) #20
Robert Sesek
https://codereview.chromium.org/446163003/diff/40001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/40001/media/base/video_frame.cc#newcode297 media/base/video_frame.cc:297: #if (__MAC_OS_X_VERSION_MIN_REQUIRED >= 1070) || \ This is testing ...
6 years, 4 months ago (2014-08-08 14:22:30 UTC) #21
jfroy
https://codereview.chromium.org/446163003/diff/40001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/40001/media/base/video_frame.cc#newcode297 media/base/video_frame.cc:297: #if (__MAC_OS_X_VERSION_MIN_REQUIRED >= 1070) || \ On 2014/08/08 14:22:30, ...
6 years, 4 months ago (2014-08-08 21:52:49 UTC) #22
jfroy
On 2014/08/08 21:52:49, jfroy wrote: > https://codereview.chromium.org/446163003/diff/40001/media/base/video_frame.cc > File media/base/video_frame.cc (right): > > https://codereview.chromium.org/446163003/diff/40001/media/base/video_frame.cc#newcode297 > ...
6 years, 4 months ago (2014-08-08 21:54:11 UTC) #23
Robert Sesek
https://codereview.chromium.org/446163003/diff/50001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/50001/media/base/video_frame.cc#newcode297 media/base/video_frame.cc:297: // NOTE: kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange TODO(jfroy): Use kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange in the 10.7 ...
6 years, 4 months ago (2014-08-12 00:09:41 UTC) #24
jfroy
https://codereview.chromium.org/446163003/diff/50001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/50001/media/base/video_frame.cc#newcode297 media/base/video_frame.cc:297: // NOTE: kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange On 2014/08/12 00:09:40, rsesek wrote: > ...
6 years, 4 months ago (2014-08-12 00:46:54 UTC) #25
Robert Sesek
LGTM Also, small code reviewing note: generally people use "Done" when they've addressed a code ...
6 years, 4 months ago (2014-08-12 01:07:49 UTC) #26
jfroy
On 2014/08/12 01:07:49, rsesek wrote: > LGTM > > Also, small code reviewing note: generally ...
6 years, 4 months ago (2014-08-12 01:09:20 UTC) #27
jfroy
The CQ bit was checked by jfroy@chromium.org
6 years, 4 months ago (2014-08-12 01:10:02 UTC) #28
jfroy
The CQ bit was unchecked by jfroy@chromium.org
6 years, 4 months ago (2014-08-12 01:10:23 UTC) #29
jfroy
On 2014/08/07 00:54:37, DaleCurtis wrote: > I'm no OSX expert, so +rsesek. I'll stamp after ...
6 years, 4 months ago (2014-08-12 01:13:52 UTC) #30
DaleCurtis
Sorry didn't realize you were waiting for my stamp. Since miu@ is reviewing the other ...
6 years, 4 months ago (2014-08-20 22:27:48 UTC) #31
miu
lgtm % this one clean-up: https://codereview.chromium.org/446163003/diff/110001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/110001/media/base/video_frame.cc#newcode297 media/base/video_frame.cc:297: // TODO(jfroy): Use kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange ...
6 years, 3 months ago (2014-08-25 18:39:35 UTC) #32
Robert Sesek
https://codereview.chromium.org/446163003/diff/110001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://codereview.chromium.org/446163003/diff/110001/media/base/video_frame.cc#newcode297 media/base/video_frame.cc:297: // TODO(jfroy): Use kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange when the On 2014/08/25 18:39:35, ...
6 years, 3 months ago (2014-08-25 18:42:07 UTC) #33
miu
BTW--This change isn't meant to be used by your other change (https://codereview.chromium.org/450693006/), right? If not, ...
6 years, 3 months ago (2014-08-25 18:48:39 UTC) #34
jfroy
On 2014/08/25 18:48:39, miu wrote: > BTW--This change isn't meant to be used by your ...
6 years, 3 months ago (2014-08-25 19:28:19 UTC) #35
miu
On 2014/08/25 19:28:19, jfroy wrote: > On 2014/08/25 18:48:39, miu wrote: > > BTW--This change ...
6 years, 3 months ago (2014-08-25 20:08:32 UTC) #36
jfroy
On 2014/08/25 20:08:32, miu wrote: > On 2014/08/25 19:28:19, jfroy wrote: > > On 2014/08/25 ...
6 years, 3 months ago (2014-08-25 21:32:54 UTC) #37
miu
On 2014/08/25 21:32:54, jfroy wrote: > On 2014/08/25 20:08:32, miu wrote: > > On 2014/08/25 ...
6 years, 3 months ago (2014-08-25 21:50:08 UTC) #38
jfroy
On 2014/08/25 21:50:08, miu wrote: > On 2014/08/25 21:32:54, jfroy wrote: > > On 2014/08/25 ...
6 years, 3 months ago (2014-08-25 21:52:12 UTC) #39
miu
On 2014/08/25 21:52:12, jfroy wrote: > This is a highly relevant performance optimization which I've ...
6 years, 3 months ago (2014-08-25 22:15:21 UTC) #40
jfroy
Yep! On Mon, Aug 25, 2014 at 18:15 <miu@chromium.org> wrote: > On 2014/08/25 21:52:12, jfroy ...
6 years, 3 months ago (2014-08-25 22:16:46 UTC) #41
DaleCurtis
I've looked through both changes, lgtm
6 years, 3 months ago (2014-08-25 22:17:06 UTC) #42
jfroy
The CQ bit was checked by jfroy@chromium.org
6 years, 3 months ago (2014-08-25 22:42:54 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jfroy@chromium.org/446163003/110001
6 years, 3 months ago (2014-08-25 22:44:39 UTC) #44
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-26 00:36:08 UTC) #45
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-26 00:41:25 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/9240) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/6782)
6 years, 3 months ago (2014-08-26 00:41:29 UTC) #47
jfroy
On 2014/08/26 00:41:29, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 3 months ago (2014-08-26 01:51:50 UTC) #48
jfroy
The CQ bit was checked by jfroy@chromium.org
6 years, 3 months ago (2014-08-26 21:45:55 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jfroy@chromium.org/446163003/130001
6 years, 3 months ago (2014-08-26 21:46:32 UTC) #50
commit-bot: I haz the power
Committed patchset #8 (130001) as 9f0bfba2ccbdb3850d96e757eec8619f6893f597
6 years, 3 months ago (2014-08-26 23:12:36 UTC) #51
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:47:07 UTC) #52
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7eef1763b2118e82ed463e7414066e51690fbe53
Cr-Commit-Position: refs/heads/master@{#292023}

Powered by Google App Engine
This is Rietveld 408576698