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

Side by Side Diff: media/filters/chunk_demuxer.h

Issue 1089873006: WIP - MSE: Drop non-keyframes that lack keyframe dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Checkpoint of WIP while I work on prereq https://codereview.chromium.org/1091293005/ Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_
6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Append() belong to a media segment that starts at |start_timestamp|. 70 // Append() belong to a media segment that starts at |start_timestamp|.
71 void OnNewMediaSegment(DecodeTimestamp start_timestamp); 71 void OnNewMediaSegment(DecodeTimestamp start_timestamp);
72 72
73 // Called when midstream config updates occur. 73 // Called when midstream config updates occur.
74 // Returns true if the new config is accepted. 74 // Returns true if the new config is accepted.
75 // Returns false if the new config should trigger an error. 75 // Returns false if the new config should trigger an error.
76 bool UpdateAudioConfig(const AudioDecoderConfig& config, const LogCB& log_cb); 76 bool UpdateAudioConfig(const AudioDecoderConfig& config, const LogCB& log_cb);
77 bool UpdateVideoConfig(const VideoDecoderConfig& config, const LogCB& log_cb); 77 bool UpdateVideoConfig(const VideoDecoderConfig& config, const LogCB& log_cb);
78 void UpdateTextConfig(const TextTrackConfig& config, const LogCB& log_cb); 78 void UpdateTextConfig(const TextTrackConfig& config, const LogCB& log_cb);
79 79
80 // Called when the range removal notification callback is changed.
81 void UpdateRangeRemovalCB(
82 const SourceBufferStream::NotifyRangeRemovalCB& range_removal_cb);
83
80 void MarkEndOfStream(); 84 void MarkEndOfStream();
81 void UnmarkEndOfStream(); 85 void UnmarkEndOfStream();
82 86
83 // DemuxerStream methods. 87 // DemuxerStream methods.
84 void Read(const ReadCB& read_cb) override; 88 void Read(const ReadCB& read_cb) override;
85 Type type() const override; 89 Type type() const override;
86 Liveness liveness() const override; 90 Liveness liveness() const override;
87 AudioDecoderConfig audio_decoder_config() override; 91 AudioDecoderConfig audio_decoder_config() override;
88 VideoDecoderConfig video_decoder_config() override; 92 VideoDecoderConfig video_decoder_config() override;
89 bool SupportsConfigChanges() override; 93 bool SupportsConfigChanges() override;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 401
398 // Indicates that splice frame generation is enabled. 402 // Indicates that splice frame generation is enabled.
399 const bool splice_frames_enabled_; 403 const bool splice_frames_enabled_;
400 404
401 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 405 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
402 }; 406 };
403 407
404 } // namespace media 408 } // namespace media
405 409
406 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 410 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698