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

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

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // Demuxer implementation. 149 // Demuxer implementation.
150 virtual void Initialize(DemuxerHost* host, 150 virtual void Initialize(DemuxerHost* host,
151 const PipelineStatusCB& status_cb) OVERRIDE; 151 const PipelineStatusCB& status_cb) OVERRIDE;
152 virtual void Stop(const base::Closure& callback) OVERRIDE; 152 virtual void Stop(const base::Closure& callback) OVERRIDE;
153 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE; 153 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& cb) OVERRIDE;
154 virtual void OnAudioRendererDisabled() OVERRIDE; 154 virtual void OnAudioRendererDisabled() OVERRIDE;
155 virtual void SetPlaybackRate(float playback_rate) OVERRIDE; 155 virtual void SetPlaybackRate(float playback_rate) OVERRIDE;
156 virtual scoped_refptr<DemuxerStream> GetStream( 156 virtual scoped_refptr<DemuxerStream> GetStream(
157 DemuxerStream::Type type) OVERRIDE; 157 DemuxerStream::Type type) OVERRIDE;
158 virtual base::TimeDelta GetStartTime() const OVERRIDE; 158 virtual base::TimeDelta GetStartTime() const OVERRIDE;
159 virtual int GetBitrate() OVERRIDE;
160 159
161 // FFmpegURLProtocol implementation. 160 // FFmpegURLProtocol implementation.
162 virtual size_t Read(size_t size, uint8* data) OVERRIDE; 161 virtual size_t Read(size_t size, uint8* data) OVERRIDE;
163 virtual bool GetPosition(int64* position_out) OVERRIDE; 162 virtual bool GetPosition(int64* position_out) OVERRIDE;
164 virtual bool SetPosition(int64 position) OVERRIDE; 163 virtual bool SetPosition(int64 position) OVERRIDE;
165 virtual bool GetSize(int64* size_out) OVERRIDE; 164 virtual bool GetSize(int64* size_out) OVERRIDE;
166 virtual bool IsStreaming() OVERRIDE; 165 virtual bool IsStreaming() OVERRIDE;
167 166
168 // Provide access to FFmpegDemuxerStream. 167 // Provide access to FFmpegDemuxerStream.
169 MessageLoop* message_loop(); 168 MessageLoop* message_loop();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Set if we know duration of the audio stream. Used when processing end of 266 // Set if we know duration of the audio stream. Used when processing end of
268 // stream -- at this moment we definitely know duration. 267 // stream -- at this moment we definitely know duration.
269 bool duration_known_; 268 bool duration_known_;
270 269
271 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); 270 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer);
272 }; 271 };
273 272
274 } // namespace media 273 } // namespace media
275 274
276 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ 275 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698