|
Move key frame flag from StreamParserBuffer to DecoderBuffer
This change is the first in a sequence of changes to enable eventual
removal of the "BrowserSeek" behavior in Chrome for Android by letting
reads from demuxer indicate if the buffer is a key frame or not.
This change
* moves |is_keyframe_| from StreamParserBuffer to DecoderBuffer |is_key_frame_|
* moves StreamParserBuffer::IsKeyframe() to DecoderBuffer::is_key_frame()
* adds DecoderBuffer::set_is_key_frame() to allow updating after buffer
construction
* populates this field in DemuxerStream subclasses and related code
* updates unit tests, especially ChunkDemuxerTest and FFmpegDemuxerTest,
to check keyframe expectations in stream read results for most of these tests
* updates media/mojo type DecoderBuffer type converter and unit tests to
round-trip the key frame flag.
Later change(s) will do the actual removal of Chrome for Android
BrowserSeek logic and tests.
BUG= 304234
TEST=Updated unit tests pass, including mojo_media_lib_unittests
Committed: https://crrev.com/02357c0df3949ee2ec1a9fabf22a8ee6e70cb41f
Cr-Commit-Position: refs/heads/master@{#303764}
Total comments: 16
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+254 lines, -149 lines) |
Patch |
 |
M |
media/base/decoder_buffer.h
|
View
|
1
2
|
4 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/base/decoder_buffer.cc
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/base/decoder_buffer_unittest.cc
|
View
|
1
|
6 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/decryptor.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/fake_text_track_stream.cc
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/stream_parser_buffer.h
|
View
|
1
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/base/stream_parser_buffer.cc
|
View
|
1
|
5 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
media/base/test_helpers.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/audio_decoder_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/chunk_demuxer_unittest.cc
|
View
|
1
|
19 chunks |
+38 lines, -35 lines |
0 comments
|
Download
|
 |
M |
media/filters/decrypting_demuxer_stream.cc
|
View
|
1
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer.cc
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/filters/ffmpeg_demuxer_unittest.cc
|
View
|
1
|
17 chunks |
+86 lines, -59 lines |
0 comments
|
Download
|
 |
M |
media/filters/frame_processor.cc
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/filters/source_buffer_range.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/filters/source_buffer_range.cc
|
View
|
1
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/filters/source_buffer_stream.cc
|
View
|
1
|
7 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
media/filters/source_buffer_stream_unittest.cc
|
View
|
1
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
media/filters/video_frame_stream_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/formats/common/stream_parser_test_base.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_adapter_video.cc
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/es_adapter_video_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/formats/mp2t/mp2t_stream_parser.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/formats/webm/webm_cluster_parser.cc
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/mojo/interfaces/media_types.mojom
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/media_type_converters.cc
|
View
|
1
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/mojo/services/media_type_converters_unittest.cc
|
View
|
1
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (2 generated)
|