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

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

Issue 10829108: Cap sourceBuffered() on duration and truncate duration on EoS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase ToT 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
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/dummy_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) 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. DummyDemuxer returns corresponding 5 // Implements the Demuxer interface. DummyDemuxer returns corresponding
6 // DummyDemuxerStream as signal for media pipeline to construct correct 6 // DummyDemuxerStream as signal for media pipeline to construct correct
7 // playback channels. Used in WebRTC local video capture pipeline, where 7 // playback channels. Used in WebRTC local video capture pipeline, where
8 // demuxing is not needed. 8 // demuxing is not needed.
9 9
10 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_ 10 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_
(...skipping 10 matching lines...) Expand all
21 class DummyDemuxerStream : public DemuxerStream { 21 class DummyDemuxerStream : public DemuxerStream {
22 public: 22 public:
23 explicit DummyDemuxerStream(Type type); 23 explicit DummyDemuxerStream(Type type);
24 24
25 // DemuxerStream implementation. 25 // DemuxerStream implementation.
26 virtual void Read(const ReadCB& read_cb) OVERRIDE; 26 virtual void Read(const ReadCB& read_cb) OVERRIDE;
27 virtual Type type() OVERRIDE; 27 virtual Type type() OVERRIDE;
28 virtual const AudioDecoderConfig& audio_decoder_config() OVERRIDE; 28 virtual const AudioDecoderConfig& audio_decoder_config() OVERRIDE;
29 virtual const VideoDecoderConfig& video_decoder_config() OVERRIDE; 29 virtual const VideoDecoderConfig& video_decoder_config() OVERRIDE;
30 virtual void EnableBitstreamConverter() OVERRIDE; 30 virtual void EnableBitstreamConverter() OVERRIDE;
31 virtual Ranges<base::TimeDelta> GetBufferedRanges() OVERRIDE;
32 protected: 31 protected:
33 virtual ~DummyDemuxerStream(); 32 virtual ~DummyDemuxerStream();
34 33
35 private: 34 private:
36 Type type_; 35 Type type_;
37 AudioDecoderConfig audio_config_; 36 AudioDecoderConfig audio_config_;
38 VideoDecoderConfig video_config_; 37 VideoDecoderConfig video_config_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(DummyDemuxerStream); 39 DISALLOW_COPY_AND_ASSIGN(DummyDemuxerStream);
41 }; 40 };
(...skipping 15 matching lines...) Expand all
57 56
58 private: 57 private:
59 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; 58 std::vector< scoped_refptr<DummyDemuxerStream> > streams_;
60 59
61 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); 60 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer);
62 }; 61 };
63 62
64 } // namespace media 63 } // namespace media
65 64
66 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ 65 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/dummy_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698