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

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

Issue 208263018: Add SupportsConfigChanges() to DemuxerStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audioconverterchunk
Patch Set: Make comment not specific to video_decoder_config(). Created 6 years, 9 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Empties the queues and ignores any additional calls to Read(). 74 // Empties the queues and ignores any additional calls to Read().
75 void Stop(); 75 void Stop();
76 76
77 // Returns the duration of this stream. 77 // Returns the duration of this stream.
78 base::TimeDelta duration(); 78 base::TimeDelta duration();
79 79
80 // DemuxerStream implementation. 80 // DemuxerStream implementation.
81 virtual Type type() OVERRIDE; 81 virtual Type type() OVERRIDE;
82 virtual void Read(const ReadCB& read_cb) OVERRIDE; 82 virtual void Read(const ReadCB& read_cb) OVERRIDE;
83 virtual void EnableBitstreamConverter() OVERRIDE; 83 virtual void EnableBitstreamConverter() OVERRIDE;
84 virtual bool SupportsConfigChanges() OVERRIDE;
84 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; 85 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE;
85 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; 86 virtual VideoDecoderConfig video_decoder_config() OVERRIDE;
86 87
87 // Returns the range of buffered data in this stream. 88 // Returns the range of buffered data in this stream.
88 Ranges<base::TimeDelta> GetBufferedRanges() const; 89 Ranges<base::TimeDelta> GetBufferedRanges() const;
89 90
90 // Returns elapsed time based on the already queued packets. 91 // Returns elapsed time based on the already queued packets.
91 // Used to determine stream duration when it's not known ahead of time. 92 // Used to determine stream duration when it's not known ahead of time.
92 base::TimeDelta GetElapsedTime() const; 93 base::TimeDelta GetElapsedTime() const;
93 94
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 265
265 // NOTE: Weak pointers must be invalidated before all other member variables. 266 // NOTE: Weak pointers must be invalidated before all other member variables.
266 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_; 267 base::WeakPtrFactory<FFmpegDemuxer> weak_factory_;
267 268
268 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); 269 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer);
269 }; 270 };
270 271
271 } // namespace media 272 } // namespace media
272 273
273 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ 274 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698