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_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 // AssignPictureBuffers() call, it will expect a call to | 123 // AssignPictureBuffers() call, it will expect a call to |
124 // ImportBufferForPicture() for each PictureBuffer before use. | 124 // ImportBufferForPicture() for each PictureBuffer before use. |
125 enum class OutputMode { | 125 enum class OutputMode { |
126 ALLOCATE, | 126 ALLOCATE, |
127 IMPORT, | 127 IMPORT, |
128 }; | 128 }; |
129 | 129 |
130 Config(); | 130 Config(); |
131 Config(const Config& config); | 131 Config(const Config& config); |
132 | 132 |
133 // Intentional converting constructor. | 133 // Intentional converting constructor. |
watk
2017/05/23 17:13:40
Please delete this comment now
Chandan
2017/05/24 13:54:04
Done.
| |
134 // TODO(watk): Make this explicit. | 134 explicit Config(VideoCodecProfile profile); |
135 Config(VideoCodecProfile profile); | |
136 | 135 |
137 ~Config(); | 136 ~Config(); |
138 | 137 |
139 std::string AsHumanReadableString() const; | 138 std::string AsHumanReadableString() const; |
140 bool is_encrypted() const { return encryption_scheme.is_encrypted(); } | 139 bool is_encrypted() const { return encryption_scheme.is_encrypted(); } |
141 | 140 |
142 // The video codec and profile. | 141 // The video codec and profile. |
143 VideoCodecProfile profile = VIDEO_CODEC_PROFILE_UNKNOWN; | 142 VideoCodecProfile profile = VIDEO_CODEC_PROFILE_UNKNOWN; |
144 | 143 |
145 // Whether the stream is encrypted, and, if so, the scheme used. | 144 // Whether the stream is encrypted, and, if so, the scheme used. |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
378 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to | 377 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to |
379 // use the destructor. | 378 // use the destructor. |
380 template <> | 379 template <> |
381 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 380 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
382 void operator()(media::VideoDecodeAccelerator* vda) const; | 381 void operator()(media::VideoDecodeAccelerator* vda) const; |
383 }; | 382 }; |
384 | 383 |
385 } // namespace std | 384 } // namespace std |
386 | 385 |
387 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 386 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |