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

Issue 374153003: Use PPS/SPS NALUs to initialize a VTDecompressionSession. (Closed)

Created:
6 years, 5 months ago by sandersd (OOO until July 31)
Modified:
6 years, 5 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use PPS/SPS NALUs to initialize a VTDecompressionSession. BUG=133828 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282549

Patch Set 1 #

Total comments: 8

Patch Set 2 : Move parsing to decoder thread. #

Total comments: 19

Patch Set 3 : Use scoped pointers. #

Total comments: 7

Patch Set 4 : Fix posting to decoder thread. #

Total comments: 10

Patch Set 5 : Nits. #

Patch Set 6 : gfx::Size #

Total comments: 2

Patch Set 7 : Constant for NALU header length. #

Total comments: 3

Patch Set 8 : Fix comment typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -11 lines) Patch
M content/common/gpu/media/vt_video_decode_accelerator.h View 1 2 3 4 5 2 chunks +35 lines, -6 lines 0 comments Download
M content/common/gpu/media/vt_video_decode_accelerator.cc View 1 2 3 4 5 6 7 3 chunks +180 lines, -5 lines 0 comments Download
M content/content_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
sandersd (OOO until July 31)
6 years, 5 months ago (2014-07-08 22:38:00 UTC) #1
sandersd (OOO until July 31)
6 years, 5 months ago (2014-07-09 00:39:01 UTC) #2
Pawel Osciak
Quick run-by. https://codereview.chromium.org/374153003/diff/1/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/1/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode172 content/common/gpu/media/vt_video_decode_accelerator.cc:172: const uint8_t* buf = static_cast<uint8_t*>(memory.memory()); Please try ...
6 years, 5 months ago (2014-07-09 00:56:05 UTC) #3
sandersd (OOO until July 31)
https://codereview.chromium.org/374153003/diff/1/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/1/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode172 content/common/gpu/media/vt_video_decode_accelerator.cc:172: const uint8_t* buf = static_cast<uint8_t*>(memory.memory()); On 2014/07/09 00:56:05, Pawel ...
6 years, 5 months ago (2014-07-09 02:16:02 UTC) #4
Pawel Osciak
I'm curious, why this direction of gradually committing non-working stubs and temporary solutions? This seems ...
6 years, 5 months ago (2014-07-09 02:22:03 UTC) #5
chromium-reviews
On Jul 8, 2014 7:22 PM, <posciak@chromium.org> wrote: > > I'm curious, why this direction ...
6 years, 5 months ago (2014-07-09 03:09:51 UTC) #6
scherkus (not reviewing)
drive by stuff posciak: I recommended sandersd@ to send out more tiny incremental CLs as ...
6 years, 5 months ago (2014-07-09 18:32:49 UTC) #7
sandersd (OOO until July 31)
https://codereview.chromium.org/374153003/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode53 content/common/gpu/media/vt_video_decode_accelerator.cc:53: // TODO(sandersd): Move these into scoped pointers. On 2014/07/09 ...
6 years, 5 months ago (2014-07-09 20:07:12 UTC) #8
scherkus (not reviewing)
some q's -- overall looking good enough https://codereview.chromium.org/374153003/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode142 content/common/gpu/media/vt_video_decode_accelerator.cc:142: image_config, kCVPixelBufferPixelFormatTypeKey, ...
6 years, 5 months ago (2014-07-09 20:37:44 UTC) #9
sandersd (OOO until July 31)
https://codereview.chromium.org/374153003/diff/40001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/40001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode115 content/common/gpu/media/vt_video_decode_accelerator.cc:115: // kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder On 2014/07/09 20:37:44, scherkus wrote: > q: ...
6 years, 5 months ago (2014-07-09 20:52:50 UTC) #10
scherkus (not reviewing)
https://codereview.chromium.org/374153003/diff/40001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/40001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode156 content/common/gpu/media/vt_video_decode_accelerator.cc:156: &VTVideoDecodeAccelerator::DecodeTask, weak_this_factory_.GetWeakPtr(), On 2014/07/09 20:52:50, sandersd wrote: > On ...
6 years, 5 months ago (2014-07-09 22:04:45 UTC) #11
sandersd (OOO until July 31)
https://codereview.chromium.org/374153003/diff/40001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/40001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode156 content/common/gpu/media/vt_video_decode_accelerator.cc:156: &VTVideoDecodeAccelerator::DecodeTask, weak_this_factory_.GetWeakPtr(), > In your case, the WeakPtrFactory's first ...
6 years, 5 months ago (2014-07-09 22:27:37 UTC) #12
scherkus (not reviewing)
lgtm w/ nits I'd like to start thinking of unit/integration tests sooner rather than later ...
6 years, 5 months ago (2014-07-09 22:39:25 UTC) #13
Pawel Osciak
https://codereview.chromium.org/374153003/diff/60001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/60001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode35 content/common/gpu/media/vt_video_decode_accelerator.cc:35: vda->Output(bitstream_id, status, info_flags, image_buffer); What guarantees that vda is ...
6 years, 5 months ago (2014-07-10 00:10:56 UTC) #14
sandersd (OOO until July 31)
> I'd like to start thinking of unit/integration tests sooner rather than later to > ...
6 years, 5 months ago (2014-07-10 00:35:38 UTC) #15
Pawel Osciak
On 2014/07/10 00:35:38, sandersd wrote: > > I'd like to start thinking of unit/integration tests ...
6 years, 5 months ago (2014-07-10 00:40:21 UTC) #16
Pawel Osciak
https://codereview.chromium.org/374153003/diff/100001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/100001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode186 content/common/gpu/media/vt_video_decode_accelerator.cc:186: // Each NALU will have a 4-byte length header ...
6 years, 5 months ago (2014-07-10 00:43:12 UTC) #17
sandersd (OOO until July 31)
https://codereview.chromium.org/374153003/diff/100001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/100001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode186 content/common/gpu/media/vt_video_decode_accelerator.cc:186: // Each NALU will have a 4-byte length header ...
6 years, 5 months ago (2014-07-10 00:47:52 UTC) #18
Pawel Osciak
On 2014/07/10 00:47:52, sandersd wrote: > https://codereview.chromium.org/374153003/diff/100001/content/common/gpu/media/vt_video_decode_accelerator.cc > File content/common/gpu/media/vt_video_decode_accelerator.cc (right): > > https://codereview.chromium.org/374153003/diff/100001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode186 > ...
6 years, 5 months ago (2014-07-10 00:50:11 UTC) #19
sandersd (OOO until July 31)
> > > Is this header something VT-specific? > > > > Yes, VT expects ...
6 years, 5 months ago (2014-07-10 01:00:48 UTC) #20
Pawel Osciak
https://codereview.chromium.org/374153003/diff/50004/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/374153003/diff/50004/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode21 content/common/gpu/media/vt_video_decode_accelerator.cc:21: static const int kNALUHeaderLength = 4; Sorry, I'm still ...
6 years, 5 months ago (2014-07-10 01:14:13 UTC) #21
sandersd (OOO until July 31)
On 2014/07/10 01:14:13, Pawel Osciak wrote: > https://codereview.chromium.org/374153003/diff/50004/content/common/gpu/media/vt_video_decode_accelerator.cc > File content/common/gpu/media/vt_video_decode_accelerator.cc (right): > > https://codereview.chromium.org/374153003/diff/50004/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode21 ...
6 years, 5 months ago (2014-07-10 01:28:47 UTC) #22
Pawel Osciak
On 2014/07/10 01:28:47, sandersd wrote: > On 2014/07/10 01:14:13, Pawel Osciak wrote: > > > ...
6 years, 5 months ago (2014-07-10 01:37:11 UTC) #23
xhwang
I'd defer H264 related code to posciak. lgtm % tiny nit https://codereview.chromium.org/374153003/diff/50004/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): ...
6 years, 5 months ago (2014-07-10 19:04:25 UTC) #24
sandersd (OOO until July 31)
After discussing with Xiaohan, I've decided to skip the unittest for now in favor of ...
6 years, 5 months ago (2014-07-11 00:25:16 UTC) #25
sandersd (OOO until July 31)
The CQ bit was checked by sandersd@chromium.org
6 years, 5 months ago (2014-07-11 00:25:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sandersd@chromium.org/374153003/130001
6 years, 5 months ago (2014-07-11 00:27:12 UTC) #27
commit-bot: I haz the power
Change committed as 282549
6 years, 5 months ago (2014-07-11 04:56:10 UTC) #28
sergeyv
On my mac build fails due to this change with message: tools/build/mac/verify_order: unordered symbols in ...
6 years, 5 months ago (2014-07-12 15:20:04 UTC) #29
M-A Ruel
On 2014/07/12 15:20:04, sergeyv wrote: > On my mac build fails due to this change ...
6 years, 5 months ago (2014-07-14 21:11:09 UTC) #30
sandersd (OOO until July 31)
6 years, 5 months ago (2014-07-15 23:10:41 UTC) #31
Message was sent while issue was closed.
On 2014/07/14 21:11:09, M-A Ruel wrote:
> On 2014/07/12 15:20:04, sergeyv wrote:
> > On my mac build fails due to this change with message:
> > tools/build/mac/verify_order: unordered symbols in
> > /Users/sergeyv/chr/src/out/Release/Chromium
> > Framework.framework/Versions/A/Chromium Framework:
> > _CMBlockBufferCreateWithMemoryBlock
> > _CMBlockBufferReplaceDataBytes
> > _CMSampleBufferCreate
> > _CMVideoFormatDescriptionGetDimensions.
> 
>
http://build.chromium.org/p/chromium.swarm/waterfall?reload=120&builder=Mac%2...
> has been broken since that CL. It needs to be looked into ASAP or be reverted.

Fix is in https://codereview.chromium.org/393633002/, but it's taking a while to
get through the bots.

Powered by Google App Engine
This is Rietveld 408576698