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

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

Issue 16274005: Separate DemuxerStream and VideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win64 Created 7 years, 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ 5 #ifndef MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_
6 #define MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ 6 #define MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/audio_decoder_config.h" 10 #include "media/base/audio_decoder_config.h"
11 #include "media/base/demuxer_stream.h" 11 #include "media/base/demuxer_stream.h"
12 #include "media/base/media_export.h"
13 #include "media/base/video_decoder_config.h" 12 #include "media/base/video_decoder_config.h"
14 13
15 namespace base { 14 namespace base {
16 class MessageLoopProxy; 15 class MessageLoopProxy;
17 } // namespace base 16 } // namespace base
18 17
19 namespace media { 18 namespace media {
20 19
21 class MEDIA_EXPORT FakeDemuxerStream : public DemuxerStream { 20 class FakeDemuxerStream : public DemuxerStream {
22 public: 21 public:
23 // Constructs an object that outputs |num_configs| different configs in 22 // Constructs an object that outputs |num_configs| different configs in
24 // sequence with |num_frames_in_one_config| buffers for each config. The 23 // sequence with |num_frames_in_one_config| buffers for each config. The
25 // output buffers are encrypted if |is_encrypted| is true. 24 // output buffers are encrypted if |is_encrypted| is true.
26 FakeDemuxerStream(int num_configs, 25 FakeDemuxerStream(int num_configs,
27 int num_buffers_in_one_config, 26 int num_buffers_in_one_config,
28 bool is_encrypted); 27 bool is_encrypted);
29 virtual ~FakeDemuxerStream(); 28 virtual ~FakeDemuxerStream();
30 29
31 // DemuxerStream implementation. 30 // DemuxerStream implementation.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Zero-based number indicating which read operation should be held. -1 means 79 // Zero-based number indicating which read operation should be held. -1 means
81 // no read shall be held. 80 // no read shall be held.
82 int read_to_hold_; 81 int read_to_hold_;
83 82
84 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream); 83 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStream);
85 }; 84 };
86 85
87 } // namespace media 86 } // namespace media
88 87
89 #endif // MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_ 88 #endif // MEDIA_FILTERS_FAKE_DEMUXER_STREAM_H_
OLDNEW
« no previous file with comments | « media/filters/decrypting_video_decoder_unittest.cc ('k') | media/filters/fake_demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698