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

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

Issue 6969026: Convert Filter::Seek() to use new callback system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More CR fixes Created 9 years, 7 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_unittest.cc ('k') | media/filters/adaptive_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 a Demuxer that can switch among different data sources mid-stream. 5 // Implements a Demuxer that can switch among different data sources mid-stream.
6 // Uses FFmpegDemuxer under the covers, so see the caveats at the top of 6 // Uses FFmpegDemuxer under the covers, so see the caveats at the top of
7 // ffmpeg_demuxer.h. 7 // ffmpeg_demuxer.h.
8 8
9 #ifndef MEDIA_FILTERS_ADAPTIVE_DEMUXER_H_ 9 #ifndef MEDIA_FILTERS_ADAPTIVE_DEMUXER_H_
10 #define MEDIA_FILTERS_ADAPTIVE_DEMUXER_H_ 10 #define MEDIA_FILTERS_ADAPTIVE_DEMUXER_H_
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 AdaptiveDemuxer(DemuxerVector const& demuxers, 72 AdaptiveDemuxer(DemuxerVector const& demuxers,
73 int initial_audio_demuxer_index, 73 int initial_audio_demuxer_index,
74 int initial_video_demuxer_index); 74 int initial_video_demuxer_index);
75 virtual ~AdaptiveDemuxer(); 75 virtual ~AdaptiveDemuxer();
76 76
77 // Change which demuxers the streams will use. 77 // Change which demuxers the streams will use.
78 void ChangeCurrentDemuxer(int audio_index, int video_index); 78 void ChangeCurrentDemuxer(int audio_index, int video_index);
79 79
80 // Filter implementation. 80 // Filter implementation.
81 virtual void Stop(FilterCallback* callback); 81 virtual void Stop(FilterCallback* callback);
82 virtual void Seek(base::TimeDelta time, FilterCallback* callback); 82 virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb);
83 virtual void OnAudioRendererDisabled(); 83 virtual void OnAudioRendererDisabled();
84 virtual void set_host(FilterHost* filter_host); 84 virtual void set_host(FilterHost* filter_host);
85 virtual void SetPlaybackRate(float playback_rate); 85 virtual void SetPlaybackRate(float playback_rate);
86 virtual void SetPreload(Preload preload); 86 virtual void SetPreload(Preload preload);
87 87
88 // Demuxer implementation. 88 // Demuxer implementation.
89 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type); 89 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type);
90 90
91 private: 91 private:
92 // Returns a pointer to the currently active demuxer of the given type. 92 // Returns a pointer to the currently active demuxer of the given type.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 private: 128 private:
129 scoped_ptr<DemuxerFactory> delegate_factory_; 129 scoped_ptr<DemuxerFactory> delegate_factory_;
130 130
131 DISALLOW_IMPLICIT_CONSTRUCTORS(AdaptiveDemuxerFactory); 131 DISALLOW_IMPLICIT_CONSTRUCTORS(AdaptiveDemuxerFactory);
132 }; 132 };
133 133
134 } // namespace media 134 } // namespace media
135 135
136 #endif // MEDIA_FILTERS_ADAPTIVE_DEMUXER_H_ 136 #endif // MEDIA_FILTERS_ADAPTIVE_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/pipeline_impl_unittest.cc ('k') | media/filters/adaptive_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698