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

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

Issue 165176: Merge 21999 - BufferedDataSource to support server without range request supp... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 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
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/media/filters/ffmpeg_demuxer.h:r21999
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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
129 // Demuxer implementation. 129 // Demuxer implementation.
130 virtual void Initialize(DataSource* data_source, FilterCallback* callback); 130 virtual void Initialize(DataSource* data_source, FilterCallback* callback);
131 virtual size_t GetNumberOfStreams(); 131 virtual size_t GetNumberOfStreams();
132 virtual scoped_refptr<DemuxerStream> GetStream(int stream_id); 132 virtual scoped_refptr<DemuxerStream> GetStream(int stream_id);
133 133
134 // FFmpegProtocol implementation. 134 // FFmpegProtocol implementation.
135 virtual int Read(int size, uint8* data); 135 virtual int Read(int size, uint8* data);
136 virtual bool GetPosition(int64* position_out); 136 virtual bool GetPosition(int64* position_out);
137 virtual bool SetPosition(int64 position); 137 virtual bool SetPosition(int64 position);
138 virtual bool GetSize(int64* size_out); 138 virtual bool GetSize(int64* size_out);
139 virtual bool IsStreamed(); 139 virtual bool IsStreaming();
140 140
141 private: 141 private:
142 // Only allow a factory to create this class. 142 // Only allow a factory to create this class.
143 friend class FilterFactoryImpl0<FFmpegDemuxer>; 143 friend class FilterFactoryImpl0<FFmpegDemuxer>;
144 friend class MockFFmpegDemuxer; 144 friend class MockFFmpegDemuxer;
145 FRIEND_TEST(FFmpegDemuxerTest, ProtocolRead); 145 FRIEND_TEST(FFmpegDemuxerTest, ProtocolRead);
146 146
147 FFmpegDemuxer(); 147 FFmpegDemuxer();
148 virtual ~FFmpegDemuxer(); 148 virtual ~FFmpegDemuxer();
149 149
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // If true, then it's our first seek and we won't call av_read_frame(). It's 222 // If true, then it's our first seek and we won't call av_read_frame(). It's
223 // a hack to get around some issue with FFmpeg. 223 // a hack to get around some issue with FFmpeg.
224 bool first_seek_hack_; 224 bool first_seek_hack_;
225 225
226 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer); 226 DISALLOW_COPY_AND_ASSIGN(FFmpegDemuxer);
227 }; 227 };
228 228
229 } // namespace media 229 } // namespace media
230 230
231 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_ 231 #endif // MEDIA_FILTERS_FFMPEG_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698