| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 public: | 119 public: |
| 120 // SetCdm completion callback to indicate whether the CDM is successfully | 120 // SetCdm completion callback to indicate whether the CDM is successfully |
| 121 // attached to the decoder. The default implementation is a no-op since most | 121 // attached to the decoder. The default implementation is a no-op since most |
| 122 // VDAs don't support encrypted video. | 122 // VDAs don't support encrypted video. |
| 123 virtual void NotifyCdmAttached(bool success); | 123 virtual void NotifyCdmAttached(bool success); |
| 124 | 124 |
| 125 // Callback to tell client how many and what size of buffers to provide. | 125 // Callback to tell client how many and what size of buffers to provide. |
| 126 // Note that the actual count provided through AssignPictureBuffers() can be | 126 // Note that the actual count provided through AssignPictureBuffers() can be |
| 127 // larger than the value requested. | 127 // larger than the value requested. |
| 128 virtual void ProvidePictureBuffers(uint32_t requested_num_of_buffers, | 128 virtual void ProvidePictureBuffers(uint32_t requested_num_of_buffers, |
| 129 uint32_t textures_per_buffer, |
| 129 const gfx::Size& dimensions, | 130 const gfx::Size& dimensions, |
| 130 uint32_t texture_target) = 0; | 131 uint32_t texture_target) = 0; |
| 131 | 132 |
| 132 // Callback to dismiss picture buffer that was assigned earlier. | 133 // Callback to dismiss picture buffer that was assigned earlier. |
| 133 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0; | 134 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0; |
| 134 | 135 |
| 135 // Callback to deliver decoded pictures ready to be displayed. | 136 // Callback to deliver decoded pictures ready to be displayed. |
| 136 virtual void PictureReady(const Picture& picture) = 0; | 137 virtual void PictureReady(const Picture& picture) = 0; |
| 137 | 138 |
| 138 // Callback to notify that decoded has decoded the end of the current | 139 // Callback to notify that decoded has decoded the end of the current |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> | 253 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> |
| 253 // uses "Destroy()" instead of trying to use the destructor. | 254 // uses "Destroy()" instead of trying to use the destructor. |
| 254 template <> | 255 template <> |
| 255 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { | 256 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { |
| 256 void operator()(media::VideoDecodeAccelerator* vda) const; | 257 void operator()(media::VideoDecodeAccelerator* vda) const; |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 } // namespace std | 260 } // namespace std |
| 260 | 261 |
| 261 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 262 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |