| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // more decoded output. See VideoDecoder::CanReadWithoutStalling for | 54 // more decoded output. See VideoDecoder::CanReadWithoutStalling for |
| 55 // more context. | 55 // more context. |
| 56 // If this flag is set, then the VDA does not make this guarantee. The | 56 // If this flag is set, then the VDA does not make this guarantee. The |
| 57 // client must return PictureBuffers to be sure that new frames will be | 57 // client must return PictureBuffers to be sure that new frames will be |
| 58 // provided via PictureReady. | 58 // provided via PictureReady. |
| 59 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE = 1 << 0, | 59 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE = 1 << 0, |
| 60 | 60 |
| 61 // Whether the VDA supports being configured with an output surface for | 61 // Whether the VDA supports being configured with an output surface for |
| 62 // it to render frames to. For example, SurfaceViews on Android. | 62 // it to render frames to. For example, SurfaceViews on Android. |
| 63 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1, | 63 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1, |
| 64 |
| 65 // If set, then all video frames must be copied before they can be sent |
| 66 // to the browser compositor. This is to support WebView. |
| 67 COPY_REQUIRED = 1 << 2, |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 SupportedProfiles supported_profiles; | 70 SupportedProfiles supported_profiles; |
| 67 uint32_t flags; | 71 uint32_t flags; |
| 68 }; | 72 }; |
| 69 | 73 |
| 70 // Enumeration of potential errors generated by the API. | 74 // Enumeration of potential errors generated by the API. |
| 71 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not | 75 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not |
| 72 // rearrange, reuse or remove values as they are used for gathering UMA | 76 // rearrange, reuse or remove values as they are used for gathering UMA |
| 73 // statistics. | 77 // statistics. |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 255 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
| 252 // uses "Destroy()" instead of trying to use the destructor. | 256 // uses "Destroy()" instead of trying to use the destructor. |
| 253 template <> | 257 template <> |
| 254 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 258 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
| 255 void operator()(media::VideoDecodeAccelerator* vda) const; | 259 void operator()(media::VideoDecodeAccelerator* vda) const; |
| 256 }; | 260 }; |
| 257 | 261 |
| 258 } // namespace std | 262 } // namespace std |
| 259 | 263 |
| 260 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 264 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |