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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 // Returns the range of buffered data in this stream, capped at |duration|. | 61 // Returns the range of buffered data in this stream, capped at |duration|. |
62 Ranges<base::TimeDelta> GetBufferedRanges(base::TimeDelta duration) const; | 62 Ranges<base::TimeDelta> GetBufferedRanges(base::TimeDelta duration) const; |
63 | 63 |
64 // Returns the duration of the buffered data. | 64 // Returns the duration of the buffered data. |
65 // Returns base::TimeDelta() if the stream has no buffered data. | 65 // Returns base::TimeDelta() if the stream has no buffered data. |
66 base::TimeDelta GetBufferedDuration() const; | 66 base::TimeDelta GetBufferedDuration() const; |
67 | 67 |
68 // Signal to the stream that buffers handed in through subsequent calls to | 68 // Signal to the stream that buffers handed in through subsequent calls to |
69 // Append() belong to a media segment that starts at |start_timestamp|. | 69 // Append() belong to a media segment that starts at |start_timestamp|. |
70 void OnNewMediaSegment(base::TimeDelta start_timestamp); | 70 void OnNewMediaSegment(DecodeTimestamp start_timestamp); |
71 | 71 |
72 // Called when midstream config updates occur. | 72 // Called when midstream config updates occur. |
73 // Returns true if the new config is accepted. | 73 // Returns true if the new config is accepted. |
74 // Returns false if the new config should trigger an error. | 74 // Returns false if the new config should trigger an error. |
75 bool UpdateAudioConfig(const AudioDecoderConfig& config, const LogCB& log_cb); | 75 bool UpdateAudioConfig(const AudioDecoderConfig& config, const LogCB& log_cb); |
76 bool UpdateVideoConfig(const VideoDecoderConfig& config, const LogCB& log_cb); | 76 bool UpdateVideoConfig(const VideoDecoderConfig& config, const LogCB& log_cb); |
77 void UpdateTextConfig(const TextTrackConfig& config, const LogCB& log_cb); | 77 void UpdateTextConfig(const TextTrackConfig& config, const LogCB& log_cb); |
78 | 78 |
79 void MarkEndOfStream(); | 79 void MarkEndOfStream(); |
80 void UnmarkEndOfStream(); | 80 void UnmarkEndOfStream(); |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 386 |
387 // Indicates that splice frame generation is enabled. | 387 // Indicates that splice frame generation is enabled. |
388 const bool splice_frames_enabled_; | 388 const bool splice_frames_enabled_; |
389 | 389 |
390 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 390 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
391 }; | 391 }; |
392 | 392 |
393 } // namespace media | 393 } // namespace media |
394 | 394 |
395 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 395 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |