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

Issue 195973006: Allow StreamParsers to request automatic timestampOffset updates. (Closed)

Created:
6 years, 9 months ago by DaleCurtis
Modified:
6 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Allow StreamParsers to request automatic timestampOffset updates. Extends StreamParser::InitCB with a new parameter which indicates that SourceState::OnNewBuffers() should update the timestampOffset based on the earliest end time of returned buffers (accounting for any current appendWindow). To prevent doubling of the timestamps in conjuction with the update to timestampOffset, the MPEGStreamParserBase now resets the timestamp helper after each SendBuffers() call. Also adds missing pipeline integration tests for ADTS. BUG=353307 TEST=existing tests pass. Post mp3 append, timestampOffset is updated. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257932

Patch Set 1 #

Total comments: 12

Patch Set 2 : Unittest. #

Total comments: 6

Patch Set 3 : Fix timestamp offset. #

Total comments: 4

Patch Set 4 : Comments. #

Total comments: 1

Patch Set 5 : Revert appendWindow changes. Pre-calculate. #

Total comments: 6

Patch Set 6 : Comments. #

Patch Set 7 : Typo. #

Patch Set 8 : Fix unittest. #

Patch Set 9 : Fake ranges. #

Patch Set 10 : Add ADTS tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -80 lines) Patch
M media/base/run_all_perftests.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/base/run_all_unittests.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/base/stream_parser.h View 1 chunk +6 lines, -3 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 5 6 8 chunks +85 lines, -27 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 2 3 4 5 6 7 8 9 5 chunks +72 lines, -3 lines 0 comments Download
M media/formats/common/stream_parser_test_base.h View 9 1 chunk +3 lines, -1 line 0 comments Download
M media/formats/common/stream_parser_test_base.cc View 9 1 chunk +6 lines, -2 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp2t/mp2t_stream_parser_unittest.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp4/mp4_stream_parser_unittest.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M media/formats/mpeg/adts_stream_parser_unittest.cc View 1 2 3 4 5 6 7 9 2 chunks +16 lines, -16 lines 0 comments Download
M media/formats/mpeg/mp3_stream_parser_unittest.cc View 1 2 3 4 5 6 7 9 2 chunks +16 lines, -16 lines 0 comments Download
M media/formats/mpeg/mpeg_audio_stream_parser_base.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M media/formats/webm/webm_stream_parser.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
DaleCurtis
6 years, 9 months ago (2014-03-17 22:03:47 UTC) #1
acolwell GONE FROM CHROMIUM
looks good. Please add a test to verify the timestamp offset update. PipelineIntegrationTest or a ...
6 years, 9 months ago (2014-03-17 22:52:17 UTC) #2
DaleCurtis
https://codereview.chromium.org/195973006/diff/1/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/1/media/filters/chunk_demuxer.cc#newcode664 media/filters/chunk_demuxer.cc:664: base::TimeDelta new_timestamp_offset = On 2014/03/17 22:52:17, acolwell wrote: > ...
6 years, 9 months ago (2014-03-18 00:14:02 UTC) #3
acolwell GONE FROM CHROMIUM
lgtm % nits https://codereview.chromium.org/195973006/diff/20001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/20001/media/filters/chunk_demuxer.cc#newcode101 media/filters/chunk_demuxer.cc:101: typedef base::Callback<void(bool, base::TimeDelta)> InitCB; nit: drop ...
6 years, 9 months ago (2014-03-18 00:21:54 UTC) #4
wolenetz
On 2014/03/18 00:21:54, acolwell wrote: > lgtm % nits > > https://codereview.chromium.org/195973006/diff/20001/media/filters/chunk_demuxer.cc > File media/filters/chunk_demuxer.cc ...
6 years, 9 months ago (2014-03-18 00:47:55 UTC) #5
DaleCurtis
New patch set: - Uses a minimized version of LegacyFrameProcessor's filtering logic to compute the ...
6 years, 9 months ago (2014-03-18 01:26:56 UTC) #6
wolenetz
https://codereview.chromium.org/195973006/diff/40001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/40001/media/filters/chunk_demuxer.cc#newcode685 media/filters/chunk_demuxer.cc:685: const bool success = nit: If |success| is false, ...
6 years, 9 months ago (2014-03-18 02:09:30 UTC) #7
DaleCurtis
https://codereview.chromium.org/195973006/diff/40001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/40001/media/filters/chunk_demuxer.cc#newcode685 media/filters/chunk_demuxer.cc:685: const bool success = On 2014/03/18 02:09:30, wolenetz wrote: ...
6 years, 9 months ago (2014-03-18 02:16:04 UTC) #8
wolenetz
lgtm
6 years, 9 months ago (2014-03-18 17:33:15 UTC) #9
DaleCurtis
acolwell: Still lgty? https://codereview.chromium.org/195973006/diff/60001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/60001/media/filters/chunk_demuxer.cc#newcode41 media/filters/chunk_demuxer.cc:41: if (buffer->timestamp() >= append_window_start && This ...
6 years, 9 months ago (2014-03-18 17:49:55 UTC) #10
DaleCurtis
Okay, per offline conversation, the appendWindow changes have been reverted. PTAL.
6 years, 9 months ago (2014-03-18 19:47:21 UTC) #11
acolwell GONE FROM CHROMIUM
lgtm % nit https://codereview.chromium.org/195973006/diff/110001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/110001/media/filters/chunk_demuxer.cc#newcode663 media/filters/chunk_demuxer.cc:663: // Update the timestamp offset for ...
6 years, 9 months ago (2014-03-18 19:57:15 UTC) #12
wolenetz
lgtm % nits: https://codereview.chromium.org/195973006/diff/110001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/110001/media/filters/chunk_demuxer.cc#newcode666 media/filters/chunk_demuxer.cc:666: const bool have_audio_buffers = !audio_buffers.empty(); nit: ...
6 years, 9 months ago (2014-03-18 20:23:32 UTC) #13
DaleCurtis
Thanks for the reviews! https://codereview.chromium.org/195973006/diff/110001/media/filters/chunk_demuxer.cc File media/filters/chunk_demuxer.cc (right): https://codereview.chromium.org/195973006/diff/110001/media/filters/chunk_demuxer.cc#newcode663 media/filters/chunk_demuxer.cc:663: // Update the timestamp offset ...
6 years, 9 months ago (2014-03-18 20:37:57 UTC) #14
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 9 months ago (2014-03-18 20:40:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/195973006/150001
6 years, 9 months ago (2014-03-18 20:42:53 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 21:27:47 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-18 21:27:47 UTC) #18
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 9 months ago (2014-03-18 21:33:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/195973006/150001
6 years, 9 months ago (2014-03-18 21:45:05 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 22:30:53 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-18 22:30:53 UTC) #22
DaleCurtis
acolwell: PTAL at the ADTS and MP3 StreamParser unittests, they now have a lot of ...
6 years, 9 months ago (2014-03-18 23:28:43 UTC) #23
acolwell GONE FROM CHROMIUM
On 2014/03/18 23:28:43, DaleCurtis wrote: > acolwell: PTAL at the ADTS and MP3 StreamParser unittests, ...
6 years, 9 months ago (2014-03-18 23:50:22 UTC) #24
DaleCurtis
Can you elaborate? These tests aren't wired into a real ChunkDemuxer, so they don't actually ...
6 years, 9 months ago (2014-03-19 00:01:02 UTC) #25
DaleCurtis
The latest patch set fakes ranges calculation in the StreamParserTestBase, is this what you were ...
6 years, 9 months ago (2014-03-19 00:19:46 UTC) #26
acolwell GONE FROM CHROMIUM
On 2014/03/19 00:19:46, DaleCurtis wrote: > The latest patch set fakes ranges calculation in the ...
6 years, 9 months ago (2014-03-19 00:35:06 UTC) #27
DaleCurtis
Done. ADTS tests were missing, so I had to add them.
6 years, 9 months ago (2014-03-19 00:45:27 UTC) #28
acolwell GONE FROM CHROMIUM
lgtm
6 years, 9 months ago (2014-03-19 00:56:27 UTC) #29
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 9 months ago (2014-03-19 00:58:30 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/195973006/200001
6 years, 9 months ago (2014-03-19 01:00:21 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-19 01:41:57 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-19 01:41:58 UTC) #33
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 9 months ago (2014-03-19 01:44:30 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/195973006/200001
6 years, 9 months ago (2014-03-19 01:44:54 UTC) #35
commit-bot: I haz the power
6 years, 9 months ago (2014-03-19 11:39:05 UTC) #36
Message was sent while issue was closed.
Change committed as 257932

Powered by Google App Engine
This is Rietveld 408576698