Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 // if type() != AUDIO. | 60 // if type() != AUDIO. |
| 61 virtual const AudioDecoderConfig& audio_decoder_config() = 0; | 61 virtual const AudioDecoderConfig& audio_decoder_config() = 0; |
| 62 | 62 |
| 63 // Returns the video decoder configuration. It is an error to call this method | 63 // Returns the video decoder configuration. It is an error to call this method |
| 64 // if type() != VIDEO. | 64 // if type() != VIDEO. |
| 65 virtual const VideoDecoderConfig& video_decoder_config() = 0; | 65 virtual const VideoDecoderConfig& video_decoder_config() = 0; |
| 66 | 66 |
| 67 // Returns the type of stream. | 67 // Returns the type of stream. |
| 68 virtual Type type() = 0; | 68 virtual Type type() = 0; |
| 69 | 69 |
| 70 // Returns whether the stream is potentially encrypted. | |
| 71 // Note that in a potentially encrypted video stream, individual buffers | |
| 72 // can be encrypted or not encrypted. | |
| 73 virtual bool is_encrypted() = 0; | |
|
acolwell GONE FROM CHROMIUM
2012/09/15 00:25:24
Why is this method necessary especially if it only
ddorwin
2012/09/15 00:39:40
Seems there should be some better indication of "p
ddorwin
2012/09/15 00:39:40
We reinitialize decoders when the config changes b
ddorwin
2012/09/15 03:12:04
After discussing this offline, I remembered that w
| |
| 74 | |
| 70 virtual void EnableBitstreamConverter() = 0; | 75 virtual void EnableBitstreamConverter() = 0; |
| 71 | 76 |
| 72 protected: | 77 protected: |
| 73 friend class base::RefCountedThreadSafe<DemuxerStream>; | 78 friend class base::RefCountedThreadSafe<DemuxerStream>; |
| 74 virtual ~DemuxerStream(); | 79 virtual ~DemuxerStream(); |
| 75 }; | 80 }; |
| 76 | 81 |
| 77 } // namespace media | 82 } // namespace media |
| 78 | 83 |
| 79 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ | 84 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ |
| OLD | NEW |