OLD | NEW |
---|---|
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 #ifndef MEDIA_BASE_DEMUXER_STREAM_H_ | 5 #ifndef MEDIA_BASE_DEMUXER_STREAM_H_ |
6 #define MEDIA_BASE_DEMUXER_STREAM_H_ | 6 #define MEDIA_BASE_DEMUXER_STREAM_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
11 #include "media/base/video_rotation.h" | |
11 | 12 |
12 namespace media { | 13 namespace media { |
13 | 14 |
14 class AudioDecoderConfig; | 15 class AudioDecoderConfig; |
15 class DecoderBuffer; | 16 class DecoderBuffer; |
16 class VideoDecoderConfig; | 17 class VideoDecoderConfig; |
17 | 18 |
18 class MEDIA_EXPORT DemuxerStream { | 19 class MEDIA_EXPORT DemuxerStream { |
19 public: | 20 public: |
20 enum Type { | 21 enum Type { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 // Whether or not this DemuxerStream allows midstream configuration changes. | 74 // Whether or not this DemuxerStream allows midstream configuration changes. |
74 // | 75 // |
75 // A DemuxerStream that returns 'true' to this may return the 'kConfigChange' | 76 // A DemuxerStream that returns 'true' to this may return the 'kConfigChange' |
76 // status from a Read() call. In this case the client is expected to be | 77 // status from a Read() call. In this case the client is expected to be |
77 // capable of taking appropriate action to handle config changes. Otherwise | 78 // capable of taking appropriate action to handle config changes. Otherwise |
78 // audio_decoder_config() and video_decoder_config()'s return values are | 79 // audio_decoder_config() and video_decoder_config()'s return values are |
79 // guaranteed to remain constant, and the client may make optimizations based | 80 // guaranteed to remain constant, and the client may make optimizations based |
80 // on this. | 81 // on this. |
81 virtual bool SupportsConfigChanges() = 0; | 82 virtual bool SupportsConfigChanges() = 0; |
82 | 83 |
84 virtual VideoRotation video_rotation() = 0; | |
85 virtual void set_video_rotation(VideoRotation video_rotation) = 0; | |
scherkus (not reviewing)
2014/07/07 23:58:45
clients shouldn't be able to change the rotation -
| |
86 | |
83 protected: | 87 protected: |
84 // Only allow concrete implementations to get deleted. | 88 // Only allow concrete implementations to get deleted. |
85 virtual ~DemuxerStream(); | 89 virtual ~DemuxerStream(); |
86 }; | 90 }; |
87 | 91 |
88 } // namespace media | 92 } // namespace media |
89 | 93 |
90 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ | 94 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ |
OLD | NEW |