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 Ranges<base::TimeDelta> GetBufferedRanges(base::TimeDelta duration) const; | 70 Ranges<base::TimeDelta> GetBufferedRanges(base::TimeDelta duration) const; |
71 | 71 |
72 // Returns the duration of the buffered data. | 72 // Returns the duration of the buffered data. |
73 // Returns base::TimeDelta() if the stream has no buffered data. | 73 // Returns base::TimeDelta() if the stream has no buffered data. |
74 base::TimeDelta GetBufferedDuration() const; | 74 base::TimeDelta GetBufferedDuration() const; |
75 | 75 |
76 // Returns the size of the buffered data in bytes. | 76 // Returns the size of the buffered data in bytes. |
77 size_t GetBufferedSize() const; | 77 size_t GetBufferedSize() const; |
78 | 78 |
79 // Signal to the stream that buffers handed in through subsequent calls to | 79 // Signal to the stream that buffers handed in through subsequent calls to |
80 // Append() belong to a media segment that starts at |start_timestamp|. | 80 // Append() belong to a coded frame group that starts at |start_timestamp|. |
81 void OnNewMediaSegment(DecodeTimestamp start_timestamp); | 81 void OnStartOfCodedFrameGroup(DecodeTimestamp start_timestamp); |
82 | 82 |
83 // Called when midstream config updates occur. | 83 // Called when midstream config updates occur. |
84 // Returns true if the new config is accepted. | 84 // Returns true if the new config is accepted. |
85 // Returns false if the new config should trigger an error. | 85 // Returns false if the new config should trigger an error. |
86 bool UpdateAudioConfig(const AudioDecoderConfig& config, | 86 bool UpdateAudioConfig(const AudioDecoderConfig& config, |
87 const scoped_refptr<MediaLog>& media_log); | 87 const scoped_refptr<MediaLog>& media_log); |
88 bool UpdateVideoConfig(const VideoDecoderConfig& config, | 88 bool UpdateVideoConfig(const VideoDecoderConfig& config, |
89 const scoped_refptr<MediaLog>& media_log); | 89 const scoped_refptr<MediaLog>& media_log); |
90 void UpdateTextConfig(const TextTrackConfig& config, | 90 void UpdateTextConfig(const TextTrackConfig& config, |
91 const scoped_refptr<MediaLog>& media_log); | 91 const scoped_refptr<MediaLog>& media_log); |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 416 |
417 // Indicates that splice frame generation is enabled. | 417 // Indicates that splice frame generation is enabled. |
418 const bool splice_frames_enabled_; | 418 const bool splice_frames_enabled_; |
419 | 419 |
420 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 420 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
421 }; | 421 }; |
422 | 422 |
423 } // namespace media | 423 } // namespace media |
424 | 424 |
425 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 425 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |