| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 class FFmpegDemuxer : public Demuxer, | 121 class FFmpegDemuxer : public Demuxer, |
| 122 public FFmpegURLProtocol { | 122 public FFmpegURLProtocol { |
| 123 public: | 123 public: |
| 124 FFmpegDemuxer(); | 124 FFmpegDemuxer(); |
| 125 virtual ~FFmpegDemuxer(); | 125 virtual ~FFmpegDemuxer(); |
| 126 | 126 |
| 127 // Posts a task to perform additional demuxing. | 127 // Posts a task to perform additional demuxing. |
| 128 virtual void PostDemuxTask(); | 128 virtual void PostDemuxTask(); |
| 129 | 129 |
| 130 // MediaFilter implementation. | 130 // Filter implementation. |
| 131 virtual void Stop(FilterCallback* callback); | 131 virtual void Stop(FilterCallback* callback); |
| 132 virtual void Seek(base::TimeDelta time, FilterCallback* callback); | 132 virtual void Seek(base::TimeDelta time, FilterCallback* callback); |
| 133 virtual void OnAudioRendererDisabled(); | 133 virtual void OnAudioRendererDisabled(); |
| 134 | 134 |
| 135 // Demuxer implementation. | 135 // Demuxer implementation. |
| 136 virtual void Initialize(DataSource* data_source, FilterCallback* callback); | 136 virtual void Initialize(DataSource* data_source, FilterCallback* callback); |
| 137 virtual size_t GetNumberOfStreams(); | 137 virtual size_t GetNumberOfStreams(); |
| 138 virtual scoped_refptr<DemuxerStream> GetStream(int stream_id); | 138 virtual scoped_refptr<DemuxerStream> GetStream(int stream_id); |
| 139 | 139 |
| 140 // FFmpegProtocol implementation. | 140 // FFmpegProtocol implementation. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 220 |
| 221 size_t last_read_bytes_; | 221 size_t last_read_bytes_; |
| 222 int64 read_position_; | 222 int64 read_position_; |
| 223 | 223 |
| 224 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); | 224 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 } // namespace media | 227 } // namespace media |
| 228 | 228 |
| 229 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ | 229 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ |
| OLD | NEW |