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

Issue 149153002: MSE: Add StreamParser buffer remuxing utility and tests (Closed)

Created:
6 years, 10 months ago by wolenetz
Modified:
6 years, 10 months ago
Reviewers:
xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

MSE: Add StreamParser buffer remuxing utility and tests Introduces remuxing utility in stream_parser.h for later refactoring into fine-grained usage by each stream parser. Adds associated unit tests. Modifies StreamParserBuffer so buffers are annotated by type of media (audio/video/text) and track ID on creation. This is another prerequisite to implementing MSE-compliant coded frame processing algorithm in SourceState that requires muxed-in-decode- timestamp sequence buffers from all media types in the segment instead of the current sequence per each media type. R=xhwang@chromium.org BUG=249422, 341581 TEST=media unittests and MSE layout tests pass locally on Linux. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249634

Patch Set 1 #

Patch Set 2 : Attempt windows stream_parser_unittests compilation fix #

Total comments: 60

Patch Set 3 : Rebased and addressed comments from PS2 #

Total comments: 10

Patch Set 4 : Rebased, fixed comments from PS3, and prepped for TrackId unification work. #

Total comments: 6

Patch Set 5 : Address comments from PS4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -46 lines) Patch
M media/base/stream_parser.h View 1 2 3 3 chunks +33 lines, -4 lines 0 comments Download
M media/base/stream_parser.cc View 1 2 3 1 chunk +118 lines, -0 lines 0 comments Download
M media/base/stream_parser_buffer.h View 1 2 3 4 chunks +23 lines, -5 lines 0 comments Download
M media/base/stream_parser_buffer.cc View 1 2 3 2 chunks +14 lines, -7 lines 0 comments Download
A media/base/stream_parser_unittest.cc View 1 2 3 1 chunk +382 lines, -0 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 chunks +9 lines, -5 lines 0 comments Download
M media/filters/source_buffer_stream.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/filters/source_buffer_stream_unittest.cc View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M media/formats/mp2t/es_parser_adts.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M media/formats/mp2t/es_parser_h264.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M media/formats/mp3/mp3_stream_parser.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M media/formats/webm/webm_cluster_parser.h View 1 2 3 3 chunks +5 lines, -1 line 0 comments Download
M media/formats/webm/webm_cluster_parser.cc View 1 2 3 4 6 chunks +12 lines, -5 lines 0 comments Download
M media/formats/webm/webm_cluster_parser_unittest.cc View 1 2 3 7 chunks +18 lines, -10 lines 0 comments Download
M media/media.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
wolenetz
PTAL. FYI - I had to delete the previous WIP CL due to Rietveld/upload was ...
6 years, 10 months ago (2014-01-28 22:06:19 UTC) #1
wolenetz
As mentioned offline, PTAL @ patch set 2 instead. Thanks!
6 years, 10 months ago (2014-01-28 22:41:22 UTC) #2
xhwang
This patch looks good. Here are my first round of comments. https://codereview.chromium.org/149153002/diff/20001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): ...
6 years, 10 months ago (2014-01-29 08:04:49 UTC) #3
wolenetz
Thank you for these helpful comments. PTAL @ PS3. https://codereview.chromium.org/149153002/diff/20001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): https://codereview.chromium.org/149153002/diff/20001/media/base/stream_parser.cc#newcode16 media/base/stream_parser.cc:16: ...
6 years, 10 months ago (2014-02-05 02:49:53 UTC) #4
xhwang
Thanks for the patience! lgtm % nits https://codereview.chromium.org/149153002/diff/70001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): https://codereview.chromium.org/149153002/diff/70001/media/base/stream_parser.cc#newcode36 media/base/stream_parser.cc:36: std::vector<StreamParser::BufferQueue::const_iterator> itrs; ...
6 years, 10 months ago (2014-02-06 00:36:31 UTC) #5
wolenetz
Thanks for CR'ing. Based on some offline comments from acolwell@, I have added a typedef ...
6 years, 10 months ago (2014-02-06 23:56:02 UTC) #6
xhwang
lgtm++ with nits https://codereview.chromium.org/149153002/diff/460001/media/filters/source_buffer_stream_unittest.cc File media/filters/source_buffer_stream_unittest.cc (right): https://codereview.chromium.org/149153002/diff/460001/media/filters/source_buffer_stream_unittest.cc#newcode306 media/filters/source_buffer_stream_unittest.cc:306: // Buffer type and track ID ...
6 years, 10 months ago (2014-02-07 00:09:56 UTC) #7
wolenetz
The CQ bit was checked by wolenetz@chromium.org
6 years, 10 months ago (2014-02-07 00:29:05 UTC) #8
wolenetz
Thanks! Sending to CQ. https://codereview.chromium.org/149153002/diff/460001/media/filters/source_buffer_stream_unittest.cc File media/filters/source_buffer_stream_unittest.cc (right): https://codereview.chromium.org/149153002/diff/460001/media/filters/source_buffer_stream_unittest.cc#newcode306 media/filters/source_buffer_stream_unittest.cc:306: // Buffer type and track ...
6 years, 10 months ago (2014-02-07 00:29:18 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/149153002/420002
6 years, 10 months ago (2014-02-07 00:30:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wolenetz@chromium.org/149153002/420002
6 years, 10 months ago (2014-02-07 02:21:06 UTC) #11
commit-bot: I haz the power
6 years, 10 months ago (2014-02-07 08:43:06 UTC) #12
Message was sent while issue was closed.
Change committed as 249634

Powered by Google App Engine
This is Rietveld 408576698