| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |