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

Issue 143973009: SourceState: Coalesce OnNewBuffers() CB to include OnTextBuffers() behavior (Closed)

Created:
6 years, 11 months ago by wolenetz
Modified:
6 years, 11 months ago
Reviewers:
xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org, acolwell GONE FROM CHROMIUM
Visibility:
Public.

Description

SourceState: Coalesce OnNewBuffers() CB to include OnTextBuffers() behavior Merges the new audio/video buffer callback (SourceState::OnNewBuffers) with the new text buffer callback (SourceState::OnTextBuffers), so that stream parsers use only OnNewBuffers for all buffer types. The only known behavior change is to DCHECK if there are no audio, video, or text buffers. This is a prerequisite CL for implementing MSE coded frame processing algorithm compliance and handling SourceBuffer append modes correctly. R=xhwang@chromium.org BUG=249422 TEST=All media_unittests pass on local linux with proprietary codecs enabled. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246762

Patch Set 1 #

Total comments: 18

Patch Set 2 : Fixed nits and removed webm TextTrackIterator #

Total comments: 16

Patch Set 3 : Rebase due to all MSE parsers have moved to media/formats #

Patch Set 4 : Address PS2 comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -146 lines) Patch
M media/base/stream_parser.h View 1 2 3 3 chunks +15 lines, -13 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 7 chunks +40 lines, -26 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser_unittest.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M media/formats/mp3/mp3_stream_parser.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp3/mp3_stream_parser.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M media/formats/mp3/mp3_stream_parser_unittest.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser_unittest.cc View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M media/formats/webm/webm_cluster_parser.h View 1 2 3 3 chunks +12 lines, -20 lines 0 comments Download
M media/formats/webm/webm_cluster_parser.cc View 1 2 3 3 chunks +15 lines, -35 lines 0 comments Download
M media/formats/webm/webm_cluster_parser_unittest.cc View 1 2 3 2 chunks +13 lines, -19 lines 0 comments Download
M media/formats/webm/webm_stream_parser.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/webm/webm_stream_parser.cc View 1 2 3 4 chunks +6 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
wolenetz
PTAL. This is the lowest hanging refactoring fruit along the path to getting MSE-compliant coded ...
6 years, 11 months ago (2014-01-22 22:59:21 UTC) #1
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/143973009/diff/1/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/143973009/diff/1/media/filters/chunk_demuxer.cc#newcode186 media/filters/chunk_demuxer.cc:186: // TODO(wolenetz): Enable "sequence" mode logic including MSE-compliant coded ...
6 years, 11 months ago (2014-01-23 01:32:48 UTC) #2
wolenetz
PTAL @ patch set 2. Removal of TextTrackIterator also required a few small changes to ...
6 years, 11 months ago (2014-01-23 03:13:24 UTC) #3
wolenetz
On 2014/01/23 03:13:24, wolenetz wrote: > PTAL @ patch set 2. Removal of TextTrackIterator also ...
6 years, 11 months ago (2014-01-23 18:03:05 UTC) #4
wolenetz
xhwang, PTAL. Versus PS2, PS3 is just a rebase due to MSE stream parsers moved ...
6 years, 11 months ago (2014-01-23 18:25:39 UTC) #5
xhwang
This CL is looking good! Please see my comments in PS2. Also, for people that ...
6 years, 11 months ago (2014-01-23 18:44:15 UTC) #6
xhwang
rebase in PS3 looks fine :)
6 years, 11 months ago (2014-01-23 18:50:53 UTC) #7
wolenetz
PTAL @ PS4. Thanks! https://codereview.chromium.org/143973009/diff/240001/media/base/stream_parser.h File media/base/stream_parser.h (right): https://codereview.chromium.org/143973009/diff/240001/media/base/stream_parser.h#newcode31 media/base/stream_parser.h:31: typedef std::map<int, const BufferQueue> TextBufferQueueMap; ...
6 years, 11 months ago (2014-01-23 21:42:59 UTC) #8
xhwang
lgtm, thanks!
6 years, 11 months ago (2014-01-23 22:54:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wolenetz@chromium.org/143973009/550002
6 years, 11 months ago (2014-01-23 23:25:05 UTC) #10
commit-bot: I haz the power
6 years, 11 months ago (2014-01-24 01:22:26 UTC) #11
Message was sent while issue was closed.
Change committed as 246762

Powered by Google App Engine
This is Rietveld 408576698