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

Issue 712593003: Move key frame flag from StreamParserBuffer to DecoderBuffer (Closed)

Created:
6 years, 1 month ago by wolenetz
Modified:
6 years, 1 month ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, eme-reviews_chromium.org, jam, feature-media-reviews_chromium.org, DaleCurtis, qinmin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address PS1 comments, update mojo type converter #

Total comments: 8

Patch Set 3 : Fix nits #

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

Messages

Total messages: 12 (2 generated)
wolenetz
Please take a look at patch set 1: dmichael@: content/* OWNERS review xhwang@: everything I ...
6 years, 1 month ago (2014-11-08 02:21:36 UTC) #2
wolenetz
On 2014/11/08 02:21:36, wolenetz wrote: > Please take a look at patch set 1: > ...
6 years, 1 month ago (2014-11-08 02:34:38 UTC) #3
dmichael (off chromium)
one nit, otherwise content/renderer/pepper lgtm https://codereview.chromium.org/712593003/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/712593003/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode970 content/renderer/pepper/content_decryptor_delegate.cc:970: false)); I usually prefer ...
6 years, 1 month ago (2014-11-10 17:22:24 UTC) #4
xhwang
Mostly looking pretty good. I only have some style/naming nits. https://codereview.chromium.org/712593003/diff/1/media/base/decoder_buffer.h File media/base/decoder_buffer.h (right): https://codereview.chromium.org/712593003/diff/1/media/base/decoder_buffer.h#newcode52 ...
6 years, 1 month ago (2014-11-10 20:14:13 UTC) #5
wolenetz
Please take a look at patch set 2: xhwang@: everything, dmichael@, FYI, there are no ...
6 years, 1 month ago (2014-11-11 22:39:41 UTC) #6
xhwang
LGTM with tiny nits. Thanks! https://codereview.chromium.org/712593003/diff/20001/media/base/decoder_buffer.h File media/base/decoder_buffer.h (right): https://codereview.chromium.org/712593003/diff/20001/media/base/decoder_buffer.h#newcode45 media/base/decoder_buffer.h:45: // as necessary, and ...
6 years, 1 month ago (2014-11-11 23:24:27 UTC) #7
wolenetz
Thanks for reviews. https://codereview.chromium.org/712593003/diff/20001/media/base/decoder_buffer.h File media/base/decoder_buffer.h (right): https://codereview.chromium.org/712593003/diff/20001/media/base/decoder_buffer.h#newcode45 media/base/decoder_buffer.h:45: // as necessary, and is_key_frame() will ...
6 years, 1 month ago (2014-11-11 23:52:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/712593003/40001
6 years, 1 month ago (2014-11-11 23:54:46 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-12 00:55:53 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-11-12 00:56:59 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/02357c0df3949ee2ec1a9fabf22a8ee6e70cb41f
Cr-Commit-Position: refs/heads/master@{#303764}

Powered by Google App Engine
This is Rietveld 408576698