OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 virtual void PostDemuxTask(); | 129 virtual void PostDemuxTask(); |
130 | 130 |
131 void Initialize( | 131 void Initialize( |
132 DataSource* data_source, PipelineStatusCallback* callback); | 132 DataSource* data_source, PipelineStatusCallback* callback); |
133 | 133 |
134 // Filter implementation. | 134 // Filter implementation. |
135 virtual void Stop(FilterCallback* callback); | 135 virtual void Stop(FilterCallback* callback); |
136 virtual void Seek(base::TimeDelta time, FilterCallback* callback); | 136 virtual void Seek(base::TimeDelta time, FilterCallback* callback); |
137 virtual void OnAudioRendererDisabled(); | 137 virtual void OnAudioRendererDisabled(); |
138 virtual void set_host(FilterHost* filter_host); | 138 virtual void set_host(FilterHost* filter_host); |
139 virtual void SetPlaybackRate(float playback_rate); | |
140 virtual void SetPreload(media::Preload preload); | |
acolwell GONE FROM CHROMIUM
2011/03/25 04:35:28
shouldn't need media::
vrk (LEFT CHROMIUM)
2011/03/25 21:33:32
Done.
| |
139 | 141 |
140 // Demuxer implementation. | 142 // Demuxer implementation. |
141 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type); | 143 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type); |
142 | 144 |
143 // FFmpegProtocol implementation. | 145 // FFmpegProtocol implementation. |
144 virtual int Read(int size, uint8* data); | 146 virtual int Read(int size, uint8* data); |
145 virtual bool GetPosition(int64* position_out); | 147 virtual bool GetPosition(int64* position_out); |
146 virtual bool SetPosition(int64 position); | 148 virtual bool SetPosition(int64 position); |
147 virtual bool GetSize(int64* size_out); | 149 virtual bool GetSize(int64* size_out); |
148 virtual bool IsStreaming(); | 150 virtual bool IsStreaming(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
234 // store these bits for deferred reporting to the FilterHost when we get one. | 236 // store these bits for deferred reporting to the FilterHost when we get one. |
235 base::TimeDelta max_duration_; | 237 base::TimeDelta max_duration_; |
236 PipelineStatus deferred_status_; | 238 PipelineStatus deferred_status_; |
237 | 239 |
238 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); | 240 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); |
239 }; | 241 }; |
240 | 242 |
241 } // namespace media | 243 } // namespace media |
242 | 244 |
243 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ | 245 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ |
OLD | NEW |