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

Issue 10269022: Add StreamParserBuffer to ChunkDemuxer (Closed)

Created:
8 years, 7 months ago by vrk (LEFT CHROMIUM)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add StreamParserBuffer to ChunkDemuxer This will allow SourceBufferStreams to identify keyframes. BUG=125680 TEST=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=134978

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : add CreateEOSBuffer method #

Patch Set 4 : Rewrote to address fischman's concerns #

Patch Set 5 : . #

Total comments: 14

Patch Set 6 : Response to CR #

Total comments: 8

Patch Set 7 : win_rel unhappy with bool = int #

Patch Set 8 : Response to CR #

Patch Set 9 : Rebase ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -29 lines) Patch
M media/base/data_buffer.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/data_buffer.cc View 1 2 3 4 5 6 7 2 chunks +19 lines, -12 lines 0 comments Download
M media/base/stream_parser.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A media/base/stream_parser_buffer.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A media/base/stream_parser_buffer.cc View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 5 6 7 8 7 chunks +8 lines, -12 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M media/webm/webm_cluster_parser.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M media/webm/webm_cluster_parser.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
vrk (LEFT CHROMIUM)
8 years, 7 months ago (2012-05-01 18:27:05 UTC) #1
vrk (LEFT CHROMIUM)
+fischman Rewrote as discussed!
8 years, 7 months ago (2012-05-01 21:27:30 UTC) #2
acolwell GONE FROM CHROMIUM
LGTM % nits https://chromiumcodereview.appspot.com/10269022/diff/8001/media/base/data_buffer.cc File media/base/data_buffer.cc (right): https://chromiumcodereview.appspot.com/10269022/diff/8001/media/base/data_buffer.cc#newcode41 media/base/data_buffer.cc:41: scoped_refptr<DataBuffer> data_buffer( nit: fits on one ...
8 years, 7 months ago (2012-05-01 22:08:50 UTC) #3
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10269022/diff/8001/media/base/data_buffer.cc File media/base/data_buffer.cc (right): https://chromiumcodereview.appspot.com/10269022/diff/8001/media/base/data_buffer.cc#newcode43 media/base/data_buffer.cc:43: memcpy(data_buffer->data_.get(), data, data_size); If you put this in a ...
8 years, 7 months ago (2012-05-01 22:34:16 UTC) #4
scherkus (not reviewing)
(drive-by props: having seen the before and after I commend you on introducing StreamParserBuffer instead ...
8 years, 7 months ago (2012-05-01 23:23:51 UTC) #5
vrk (LEFT CHROMIUM)
Thanks for the review! With fischman's suggestion to add the protected constructor, it no longer ...
8 years, 7 months ago (2012-05-02 17:24:51 UTC) #6
Ami GONE FROM CHROMIUM
LGTM % nits (also, I'd have in-lined AllocateBuffer into the ctor, but that's pure personal ...
8 years, 7 months ago (2012-05-02 17:57:25 UTC) #7
vrk (LEFT CHROMIUM)
8 years, 7 months ago (2012-05-02 19:55:18 UTC) #8
Thanks everyone!

https://chromiumcodereview.appspot.com/10269022/diff/15001/media/base/data_bu...
File media/base/data_buffer.cc (right):

https://chromiumcodereview.appspot.com/10269022/diff/15001/media/base/data_bu...
media/base/data_buffer.cc:36: data_size_(0) {
On 2012/05/02 17:57:25, Ami Fischman wrote:
> Why init to 0 here and then SetDataSize in the body instead of just init'ing
to
> data_size here?

Talked offline.

https://chromiumcodereview.appspot.com/10269022/diff/15001/media/base/data_bu...
media/base/data_buffer.cc:42: void DataBuffer::AllocateBuffer(int data_size) {
On 2012/05/02 17:57:25, Ami Fischman wrote:
> Can this be inlined into the ctor?

Done.

https://chromiumcodereview.appspot.com/10269022/diff/15001/media/base/data_bu...
File media/base/data_buffer.h (right):

https://chromiumcodereview.appspot.com/10269022/diff/15001/media/base/data_bu...
media/base/data_buffer.h:48: DataBuffer(const uint8* data, int size);
On 2012/05/02 17:57:25, Ami Fischman wrote:
> // Copies from [data,data+size) to owned array.

Done.

https://chromiumcodereview.appspot.com/10269022/diff/15001/media/base/stream_...
File media/base/stream_parser_buffer.cc (right):

https://chromiumcodereview.appspot.com/10269022/diff/15001/media/base/stream_...
media/base/stream_parser_buffer.cc:16: return scoped_refptr<StreamParserBuffer>(
On 2012/05/02 17:57:25, Ami Fischman wrote:
> FWIW, 
> return scoped_refptr<T>(new T(...));
> is shorter as
> return make_scoped_refptr(new T(...));
> when T's name is longer than 2 characters :)

Forgot about that function, thanks fischman! Changed here and elsewhere.

Powered by Google App Engine
This is Rietveld 408576698