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

Issue 2254093002: Return buffers from StreamParsers in a single unified map (Closed)

Created:
4 years, 4 months ago by servolk
Modified:
4 years, 3 months ago
Reviewers:
DaleCurtis, wolenetz
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return buffers from StreamParsers in a single unified map Currently various StreamParsers return output buffers via 3 separate collections: a queue for audio, a queue for video and a map of queues keyed by the track id for text tracks. Now that all stream parsers properly assign track id to each buffer we can unify all those 3 collections into a single BufferQueueMap keyed by track ids. BUG=341581 Committed: https://crrev.com/83f4c6d26c21cb52c5ec8f4e1d3b409a606e4377 Cr-Commit-Position: refs/heads/master@{#414274}

Patch Set 1 #

Patch Set 2 : buildfix #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : Added braces + pts/dts buffer logging in tests #

Total comments: 32

Patch Set 5 : CR feedback #

Patch Set 6 : Restored calling GetBuffers after each Parse in WebM test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -293 lines) Patch
M media/base/stream_parser.h View 3 chunks +9 lines, -20 lines 0 comments Download
M media/base/stream_parser.cc View 1 chunk +14 lines, -13 lines 0 comments Download
M media/base/stream_parser_unittest.cc View 1 2 3 4 7 chunks +29 lines, -40 lines 0 comments Download
M media/filters/frame_processor.h View 1 chunk +2 lines, -4 lines 0 comments Download
M media/filters/frame_processor.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M media/filters/frame_processor_unittest.cc View 5 chunks +24 lines, -13 lines 0 comments Download
M media/filters/media_source_state.h View 1 chunk +1 line, -3 lines 0 comments Download
M media/filters/media_source_state.cc View 2 chunks +24 lines, -18 lines 0 comments Download
M media/formats/common/stream_parser_test_base.h View 1 chunk +1 line, -3 lines 0 comments Download
M media/formats/common/stream_parser_test_base.cc View 1 chunk +5 lines, -8 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.cc View 2 chunks +14 lines, -11 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser_unittest.cc View 1 2 3 1 chunk +21 lines, -27 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.h View 1 chunk +2 lines, -5 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 1 2 3 4 6 chunks +10 lines, -27 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser_unittest.cc View 1 2 3 1 chunk +21 lines, -26 lines 0 comments Download
M media/formats/mpeg/mpeg_audio_stream_parser_base.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M media/formats/webm/webm_cluster_parser.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/formats/webm/webm_cluster_parser.cc View 1 2 3 4 2 chunks +19 lines, -14 lines 0 comments Download
M media/formats/webm/webm_cluster_parser_unittest.cc View 1 2 3 4 5 9 chunks +33 lines, -41 lines 0 comments Download
M media/formats/webm/webm_stream_parser.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M media/formats/webm/webm_stream_parser_unittest.cc View 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 47 (31 generated)
servolk
4 years, 4 months ago (2016-08-18 02:19:46 UTC) #9
DaleCurtis
Seems reasonable to me, defer to wolenetz@ for review. I think there are some cases ...
4 years, 4 months ago (2016-08-19 01:06:25 UTC) #14
servolk
https://codereview.chromium.org/2254093002/diff/40001/media/base/stream_parser_unittest.cc File media/base/stream_parser_unittest.cc (right): https://codereview.chromium.org/2254093002/diff/40001/media/base/stream_parser_unittest.cc#newcode175 media/base/stream_parser_unittest.cc:175: for (const auto& it : buffer_queue_map_) On 2016/08/19 01:06:25, ...
4 years, 4 months ago (2016-08-19 01:29:29 UTC) #15
servolk
https://codereview.chromium.org/2254093002/diff/40001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): https://codereview.chromium.org/2254093002/diff/40001/media/base/stream_parser.cc#newcode123 media/base/stream_parser.cc:123: std::vector<const StreamParser::BufferQueue*> buffer_queues; On 2016/08/19 01:06:25, DaleCurtis wrote: > ...
4 years, 4 months ago (2016-08-19 01:37:31 UTC) #16
wolenetz
I haven't reviewed this full CL, rather from the description alone I'm wondering the utility ...
4 years, 4 months ago (2016-08-19 20:06:50 UTC) #23
servolk
On 2016/08/19 20:06:50, wolenetz wrote: > I haven't reviewed this full CL, rather from the ...
4 years, 4 months ago (2016-08-19 22:20:33 UTC) #26
wolenetz
On 2016/08/19 22:20:33, servolk wrote: > On 2016/08/19 20:06:50, wolenetz wrote: > > I haven't ...
4 years, 4 months ago (2016-08-19 22:38:40 UTC) #27
servolk
On 2016/08/19 22:38:40, wolenetz wrote: > On 2016/08/19 22:20:33, servolk wrote: > > On 2016/08/19 ...
4 years, 4 months ago (2016-08-22 17:47:16 UTC) #30
wolenetz
Looking pretty good. https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc#newcode120 media/base/stream_parser.cc:120: // Append audio buffer queues first, ...
4 years, 4 months ago (2016-08-23 21:31:21 UTC) #33
servolk
https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc#newcode120 media/base/stream_parser.cc:120: // Append audio buffer queues first, before all other ...
4 years, 4 months ago (2016-08-23 23:56:32 UTC) #35
wolenetz
looking good % swapping hardcoded frameprocessor trackIDs in attempt to simplify mergebufferqueues, and % restoring ...
4 years, 4 months ago (2016-08-24 21:57:51 UTC) #36
servolk
https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc#newcode120 media/base/stream_parser.cc:120: // Append audio buffer queues first, before all other ...
4 years, 4 months ago (2016-08-24 23:17:45 UTC) #37
wolenetz
LGTM https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc File media/base/stream_parser.cc (right): https://codereview.chromium.org/2254093002/diff/60001/media/base/stream_parser.cc#newcode120 media/base/stream_parser.cc:120: // Append audio buffer queues first, before all ...
4 years, 4 months ago (2016-08-24 23:52:17 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2254093002/100001
4 years, 4 months ago (2016-08-24 23:54:43 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-08-25 02:40:57 UTC) #45
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 02:42:47 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/83f4c6d26c21cb52c5ec8f4e1d3b409a606e4377
Cr-Commit-Position: refs/heads/master@{#414274}

Powered by Google App Engine
This is Rietveld 408576698