| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1, | 73 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1, |
| 74 | 74 |
| 75 // If set, the VDA will use deferred initialization if the config | 75 // If set, the VDA will use deferred initialization if the config |
| 76 // indicates that the client supports it as well. Refer to | 76 // indicates that the client supports it as well. Refer to |
| 77 // NotifyInitializationComplete for more details. | 77 // NotifyInitializationComplete for more details. |
| 78 SUPPORTS_DEFERRED_INITIALIZATION = 1 << 2, | 78 SUPPORTS_DEFERRED_INITIALIZATION = 1 << 2, |
| 79 | 79 |
| 80 // If set, video frames will have COPY_REQUIRED flag which will cause | 80 // If set, video frames will have COPY_REQUIRED flag which will cause |
| 81 // an extra texture copy during composition. | 81 // an extra texture copy during composition. |
| 82 REQUIRES_TEXTURE_COPY = 1 << 3, | 82 REQUIRES_TEXTURE_COPY = 1 << 3, |
| 83 |
| 84 // Whether the VDA supports encrypted streams or not. |
| 85 SUPPORTS_ENCRYPTED_STREAMS = 1 << 4, |
| 86 |
| 87 // If set the decoder does not require a restart in order to switch to |
| 88 // using an external output surface. |
| 89 SUPPORTS_SET_EXTERNAL_OUTPUT_SURFACE = 1 << 5, |
| 83 }; | 90 }; |
| 84 | 91 |
| 85 SupportedProfiles supported_profiles; | 92 SupportedProfiles supported_profiles; |
| 86 uint32_t flags; | 93 uint32_t flags; |
| 87 }; | 94 }; |
| 88 | 95 |
| 89 // Enumeration of potential errors generated by the API. | 96 // Enumeration of potential errors generated by the API. |
| 90 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not | 97 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not |
| 91 // rearrange, reuse or remove values as they are used for gathering UMA | 98 // rearrange, reuse or remove values as they are used for gathering UMA |
| 92 // statistics. | 99 // statistics. |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to | 365 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to |
| 359 // use the destructor. | 366 // use the destructor. |
| 360 template <> | 367 template <> |
| 361 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 368 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
| 362 void operator()(media::VideoDecodeAccelerator* vda) const; | 369 void operator()(media::VideoDecodeAccelerator* vda) const; |
| 363 }; | 370 }; |
| 364 | 371 |
| 365 } // namespace std | 372 } // namespace std |
| 366 | 373 |
| 367 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 374 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |