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 // Implements the Demuxer interface using FFmpeg's libavformat. At this time | 5 // Implements the Demuxer interface using FFmpeg's libavformat. At this time |
6 // will support demuxing any audio/video format thrown at it. The streams | 6 // will support demuxing any audio/video format thrown at it. The streams |
7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer | 7 // output mime types audio/x-ffmpeg and video/x-ffmpeg and include an integer |
8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs | 8 // key FFmpegCodecID which contains the CodecID enumeration value. The CodecIDs |
9 // can be used to create and initialize the corresponding FFmpeg decoder. | 9 // can be used to create and initialize the corresponding FFmpeg decoder. |
10 // | 10 // |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 std::string GetDisplayName() const override; | 215 std::string GetDisplayName() const override; |
216 void Initialize(DemuxerHost* host, | 216 void Initialize(DemuxerHost* host, |
217 const PipelineStatusCB& status_cb, | 217 const PipelineStatusCB& status_cb, |
218 bool enable_text_tracks) override; | 218 bool enable_text_tracks) override; |
219 void AbortPendingReads() override; | 219 void AbortPendingReads() override; |
220 void Stop() override; | 220 void Stop() override; |
221 void StartWaitingForSeek(base::TimeDelta seek_time) override; | 221 void StartWaitingForSeek(base::TimeDelta seek_time) override; |
222 void CancelPendingSeek(base::TimeDelta seek_time) override; | 222 void CancelPendingSeek(base::TimeDelta seek_time) override; |
223 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; | 223 void Seek(base::TimeDelta time, const PipelineStatusCB& cb) override; |
224 base::Time GetTimelineOffset() const override; | 224 base::Time GetTimelineOffset() const override; |
225 DemuxerStream* GetStream(DemuxerStream::Type type) override; | 225 std::vector<DemuxerStream*> GetStreams() override; |
226 base::TimeDelta GetStartTime() const override; | 226 base::TimeDelta GetStartTime() const override; |
227 int64_t GetMemoryUsage() const override; | 227 int64_t GetMemoryUsage() const override; |
228 | 228 |
229 // Calls |encrypted_media_init_data_cb_| with the initialization data | 229 // Calls |encrypted_media_init_data_cb_| with the initialization data |
230 // encountered in the file. | 230 // encountered in the file. |
231 void OnEncryptedMediaInitData(EmeInitDataType init_data_type, | 231 void OnEncryptedMediaInitData(EmeInitDataType init_data_type, |
232 const std::string& encryption_key_id); | 232 const std::string& encryption_key_id); |
233 | 233 |
234 // Allow FFmpegDemuxerStream to notify us when there is updated information | 234 // Allow FFmpegDemuxerStream to notify us when there is updated information |
235 // about capacity and what buffered data is available. | 235 // about capacity and what buffered data is available. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 base::WeakPtr<FFmpegDemuxer> weak_this_; | 369 base::WeakPtr<FFmpegDemuxer> weak_this_; |
370 base::WeakPtrFactory<FFmpegDemuxer> cancel_pending_seek_factory_; | 370 base::WeakPtrFactory<FFmpegDemuxer> cancel_pending_seek_factory_; |
371 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_; | 371 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_; |
372 | 372 |
373 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); | 373 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); |
374 }; | 374 }; |
375 | 375 |
376 } // namespace media | 376 } // namespace media |
377 | 377 |
378 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ | 378 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ |
OLD | NEW |