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