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