| OLD | NEW |
| 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 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. | 7 // playback channels. |
| 8 | 8 |
| 9 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_ | 9 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_ |
| 10 #define MEDIA_FILTERS_DUMMY_DEMUXER_H_ | 10 #define MEDIA_FILTERS_DUMMY_DEMUXER_H_ |
| 11 | 11 |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "media/base/filters.h" | 14 #include "media/base/filters.h" |
| 15 | 15 |
| 16 namespace media { | 16 namespace media { |
| 17 | 17 |
| 18 class DummyDemuxerStream : public DemuxerStream { | 18 class DummyDemuxerStream : public DemuxerStream { |
| 19 public: | 19 public: |
| 20 explicit DummyDemuxerStream(Type type); | 20 explicit DummyDemuxerStream(Type type); |
| 21 | 21 |
| 22 // DemuxerStream implementation. | 22 // DemuxerStream implementation. |
| 23 virtual void Read(const ReadCallback& read_callback) OVERRIDE; | 23 virtual void Read(const ReadCallback& read_callback) OVERRIDE; |
| 24 virtual Type type() OVERRIDE; | 24 virtual Type type() OVERRIDE; |
| 25 virtual AudioDecoderConfig* audio_decoder_config() OVERRIDE; |
| 25 virtual void EnableBitstreamConverter() OVERRIDE; | 26 virtual void EnableBitstreamConverter() OVERRIDE; |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 virtual ~DummyDemuxerStream(); | 29 virtual ~DummyDemuxerStream(); |
| 29 | 30 |
| 30 Type type_; | 31 Type type_; |
| 31 | 32 |
| 32 DISALLOW_COPY_AND_ASSIGN(DummyDemuxerStream); | 33 DISALLOW_COPY_AND_ASSIGN(DummyDemuxerStream); |
| 33 }; | 34 }; |
| 34 | 35 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 47 bool has_video_; | 48 bool has_video_; |
| 48 bool has_audio_; | 49 bool has_audio_; |
| 49 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; | 50 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); | 52 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 } // namespace media | 55 } // namespace media |
| 55 | 56 |
| 56 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ | 57 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ |
| OLD | NEW |