| 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" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // if type() != AUDIO. | 62 // if type() != AUDIO. |
| 63 virtual AudioDecoderConfig audio_decoder_config() = 0; | 63 virtual AudioDecoderConfig audio_decoder_config() = 0; |
| 64 | 64 |
| 65 // Returns the video decoder configuration. It is an error to call this method | 65 // Returns the video decoder configuration. It is an error to call this method |
| 66 // if type() != VIDEO. | 66 // if type() != VIDEO. |
| 67 virtual VideoDecoderConfig video_decoder_config() = 0; | 67 virtual VideoDecoderConfig video_decoder_config() = 0; |
| 68 | 68 |
| 69 // Returns the type of stream. | 69 // Returns the type of stream. |
| 70 virtual Type type() = 0; | 70 virtual Type type() = 0; |
| 71 | 71 |
| 72 virtual void EnableBitstreamConverter() = 0; | 72 virtual void EnableBitstreamConverter(); |
| 73 | 73 |
| 74 // Whether or not this DemuxerStream allows midstream configuration changes. | 74 // Whether or not this DemuxerStream allows midstream configuration changes. |
| 75 // | 75 // |
| 76 // A DemuxerStream that returns 'true' to this may return the 'kConfigChange' | 76 // A DemuxerStream that returns 'true' to this may return the 'kConfigChange' |
| 77 // 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 |
| 78 // capable of taking appropriate action to handle config changes. Otherwise | 78 // capable of taking appropriate action to handle config changes. Otherwise |
| 79 // audio_decoder_config() and video_decoder_config()'s return values are | 79 // audio_decoder_config() and video_decoder_config()'s return values are |
| 80 // guaranteed to remain constant, and the client may make optimizations based | 80 // guaranteed to remain constant, and the client may make optimizations based |
| 81 // on this. | 81 // on this. |
| 82 virtual bool SupportsConfigChanges() = 0; | 82 virtual bool SupportsConfigChanges() = 0; |
| 83 | 83 |
| 84 virtual VideoRotation video_rotation() = 0; | 84 virtual VideoRotation video_rotation() = 0; |
| 85 | 85 |
| 86 protected: | 86 protected: |
| 87 // Only allow concrete implementations to get deleted. | 87 // Only allow concrete implementations to get deleted. |
| 88 virtual ~DemuxerStream(); | 88 virtual ~DemuxerStream(); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace media | 91 } // namespace media |
| 92 | 92 |
| 93 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ | 93 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ |
| OLD | NEW |