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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // DemuxerStream methods. | 109 // DemuxerStream methods. |
110 void Read(const ReadCB& read_cb) override; | 110 void Read(const ReadCB& read_cb) override; |
111 Type type() const override; | 111 Type type() const override; |
112 Liveness liveness() const override; | 112 Liveness liveness() const override; |
113 AudioDecoderConfig audio_decoder_config() override; | 113 AudioDecoderConfig audio_decoder_config() override; |
114 VideoDecoderConfig video_decoder_config() override; | 114 VideoDecoderConfig video_decoder_config() override; |
115 bool SupportsConfigChanges() override; | 115 bool SupportsConfigChanges() override; |
116 VideoRotation video_rotation() override; | 116 VideoRotation video_rotation() override; |
117 bool enabled() const override; | 117 bool enabled() const override; |
118 void set_enabled(bool enabled, base::TimeDelta timestamp) override; | 118 void set_enabled(bool enabled, base::TimeDelta timestamp) override; |
119 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override; | 119 |
| 120 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb); |
120 | 121 |
121 // Returns the text track configuration. It is an error to call this method | 122 // Returns the text track configuration. It is an error to call this method |
122 // if type() != TEXT. | 123 // if type() != TEXT. |
123 TextTrackConfig text_track_config(); | 124 TextTrackConfig text_track_config(); |
124 | 125 |
125 // Sets the memory limit, in bytes, on the SourceBufferStream. | 126 // Sets the memory limit, in bytes, on the SourceBufferStream. |
126 void SetStreamMemoryLimit(size_t memory_limit); | 127 void SetStreamMemoryLimit(size_t memory_limit); |
127 | 128 |
128 bool supports_partial_append_window_trimming() const { | 129 bool supports_partial_append_window_trimming() const { |
129 return partial_append_window_trimming_enabled_; | 130 return partial_append_window_trimming_enabled_; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 std::string GetDisplayName() const override; | 190 std::string GetDisplayName() const override; |
190 | 191 |
191 // |enable_text| Process inband text tracks in the normal way when true, | 192 // |enable_text| Process inband text tracks in the normal way when true, |
192 // otherwise ignore them. | 193 // otherwise ignore them. |
193 void Initialize(DemuxerHost* host, | 194 void Initialize(DemuxerHost* host, |
194 const PipelineStatusCB& init_cb, | 195 const PipelineStatusCB& init_cb, |
195 bool enable_text_tracks) override; | 196 bool enable_text_tracks) override; |
196 void Stop() override; | 197 void Stop() override; |
197 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; | 198 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; |
198 base::Time GetTimelineOffset() const override; | 199 base::Time GetTimelineOffset() const override; |
199 DemuxerStream* GetStream(DemuxerStream::Type type) override; | 200 std::vector<DemuxerStream*> GetStreams() override; |
| 201 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override; |
200 base::TimeDelta GetStartTime() const override; | 202 base::TimeDelta GetStartTime() const override; |
201 int64_t GetMemoryUsage() const override; | 203 int64_t GetMemoryUsage() const override; |
202 void AbortPendingReads() override; | 204 void AbortPendingReads() override; |
203 | 205 |
204 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and | 206 // ChunkDemuxer reads are abortable. StartWaitingForSeek() and |
205 // CancelPendingSeek() always abort pending and future reads until the | 207 // CancelPendingSeek() always abort pending and future reads until the |
206 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the | 208 // expected seek occurs, so that ChunkDemuxer can stay synchronized with the |
207 // associated JS method calls. | 209 // associated JS method calls. |
208 void StartWaitingForSeek(base::TimeDelta seek_time) override; | 210 void StartWaitingForSeek(base::TimeDelta seek_time) override; |
209 void CancelPendingSeek(base::TimeDelta seek_time) override; | 211 void CancelPendingSeek(base::TimeDelta seek_time) override; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 int detected_text_track_count_; | 454 int detected_text_track_count_; |
453 | 455 |
454 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; | 456 std::map<MediaTrack::Id, DemuxerStream*> track_id_to_demux_stream_map_; |
455 | 457 |
456 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 458 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
457 }; | 459 }; |
458 | 460 |
459 } // namespace media | 461 } // namespace media |
460 | 462 |
461 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 463 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |