|
Introduce DecodeTimestamp class to make it easier to distiguish presentation and decode timestamps.
DecodeTimestamp is a thin wrapper around base::TimeDelta that makes it
possible to easily differentiate decode timestamps from presentation
timestamps. Using a separate type also forces conversions between these
two domains to be done explicitly through conversion functions. This
change introduces the class and updates all the variables that contain
decode timestamps. It also puts in place the necessary conversion calls
for converting between timestamp types. There should be no functional
change as a result of this patch. This class is mainly to allow the
compiler to highlight where conversions between timestamp types occur.
Having DecodeTimestamp will make it much easier to rework
SourceBufferStream so that it properly handles B-frame content and
reports buffered ranges in terms of presentation time instead of
decode time.
BUG= 398130
TEST=All existing tests still pass.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289031
Total comments: 33
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+485 lines, -373 lines) |
Patch |
 |
M |
media/base/stream_parser.cc
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/base/stream_parser_buffer.h
|
View
|
1
|
3 chunks |
+88 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/base/stream_parser_buffer.cc
|
View
|
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/base/stream_parser_unittest.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/frame_processor.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/filters/frame_processor.cc
|
View
|
1
|
11 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
 |
M |
media/filters/frame_processor_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/source_buffer_stream.h
|
View
|
1
|
10 chunks |
+21 lines, -23 lines |
0 comments
|
Download
|
 |
M |
media/filters/source_buffer_stream.cc
|
View
|
1
2
|
71 chunks |
+209 lines, -197 lines |
0 comments
|
Download
|
 |
M |
media/filters/source_buffer_stream_unittest.cc
|
View
|
|
11 chunks |
+26 lines, -17 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_adapter_video.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_parser.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_parser_adts.h
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_parser_adts.cc
|
View
|
|
3 chunks |
+1 line, -3 lines |
2 comments
|
Download
|
 |
M |
media/formats/mp2t/es_parser_h264.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_parser_h264.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_parser_h264_unittest.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/mp2t_stream_parser_unittest.cc
|
View
|
|
6 chunks |
+25 lines, -25 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/ts_section_pes.cc
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp4/mp4_stream_parser_unittest.cc
|
View
|
|
4 chunks |
+15 lines, -13 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp4/track_run_iterator.h
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp4/track_run_iterator.cc
|
View
|
1
|
4 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp4/track_run_iterator_unittest.cc
|
View
|
|
5 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/formats/webm/webm_cluster_parser.h
|
View
|
1
|
3 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/formats/webm/webm_cluster_parser.cc
|
View
|
1
|
8 chunks |
+18 lines, -17 lines |
0 comments
|
Download
|
Total messages: 15 (0 generated)
|