Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: media/filters/ffmpeg_demuxer.h

Issue 9864022: Move DataSource::SetPreload() to BufferedDataSource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 DataSource* data_source, const PipelineStatusCB& status_cb); 140 DataSource* data_source, const PipelineStatusCB& status_cb);
141 141
142 // Demuxer implementation. 142 // Demuxer implementation.
143 virtual void Stop(const base::Closure& callback) OVERRIDE; 143 virtual void Stop(const base::Closure& callback) OVERRIDE;
144 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; 144 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE;
145 virtual void OnAudioRendererDisabled() OVERRIDE; 145 virtual void OnAudioRendererDisabled() OVERRIDE;
146 virtual void set_host(DemuxerHost* demuxer_host) OVERRIDE; 146 virtual void set_host(DemuxerHost* demuxer_host) OVERRIDE;
147 virtual void SetPlaybackRate(float playback_rate) OVERRIDE; 147 virtual void SetPlaybackRate(float playback_rate) OVERRIDE;
148 virtual scoped_refptr<DemuxerStream> GetStream( 148 virtual scoped_refptr<DemuxerStream> GetStream(
149 DemuxerStream::Type type) OVERRIDE; 149 DemuxerStream::Type type) OVERRIDE;
150 virtual void SetPreload(Preload preload) OVERRIDE;
151 virtual base::TimeDelta GetStartTime() const OVERRIDE; 150 virtual base::TimeDelta GetStartTime() const OVERRIDE;
152 virtual int GetBitrate() OVERRIDE; 151 virtual int GetBitrate() OVERRIDE;
153 virtual bool IsLocalSource() OVERRIDE; 152 virtual bool IsLocalSource() OVERRIDE;
154 virtual bool IsSeekable() OVERRIDE; 153 virtual bool IsSeekable() OVERRIDE;
155 154
156 // FFmpegURLProtocol implementation. 155 // FFmpegURLProtocol implementation.
157 virtual size_t Read(size_t size, uint8* data) OVERRIDE; 156 virtual size_t Read(size_t size, uint8* data) OVERRIDE;
158 virtual bool GetPosition(int64* position_out) OVERRIDE; 157 virtual bool GetPosition(int64* position_out) OVERRIDE;
159 virtual bool SetPosition(int64 position) OVERRIDE; 158 virtual bool SetPosition(int64 position) OVERRIDE;
160 virtual bool GetSize(int64* size_out) OVERRIDE; 159 virtual bool GetSize(int64* size_out) OVERRIDE;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Whether audio has been disabled for this demuxer (in which case this class 263 // Whether audio has been disabled for this demuxer (in which case this class
265 // drops packets destined for AUDIO demuxer streams on the floor). 264 // drops packets destined for AUDIO demuxer streams on the floor).
266 bool audio_disabled_; 265 bool audio_disabled_;
267 266
268 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); 267 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer);
269 }; 268 };
270 269
271 } // namespace media 270 } // namespace media
272 271
273 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ 272 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698