| 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPP_VideoDecoder_Dev</code> interface. | 7 * This file defines the <code>PPP_VideoDecoder_Dev</code> interface. |
| 8 */ | 8 */ |
| 9 label Chrome { | 9 label Chrome { |
| 10 M14 = 0.9, | 10 M14 = 0.9, |
| 11 M18 = 0.10 | 11 M18 = 0.10, |
| 12 M21 = 0.11 |
| 12 }; | 13 }; |
| 13 | 14 |
| 14 /** | 15 /** |
| 15 * PPP_VideoDecoder_Dev structure contains the function pointers that the | 16 * PPP_VideoDecoder_Dev structure contains the function pointers that the |
| 16 * plugin MUST implement to provide services needed by the video decoder | 17 * plugin MUST implement to provide services needed by the video decoder |
| 17 * implementation. | 18 * implementation. |
| 18 * | 19 * |
| 19 * See PPB_VideoDecoder_Dev for general usage tips. | 20 * See PPB_VideoDecoder_Dev for general usage tips. |
| 20 */ | 21 */ |
| 21 interface PPP_VideoDecoder_Dev { | 22 interface PPP_VideoDecoder_Dev { |
| 22 /** | 23 /** |
| 23 * Callback function to provide buffers for the decoded output pictures. If | 24 * Callback function to provide buffers for the decoded output pictures. If |
| 24 * succeeds plugin must provide buffers through AssignPictureBuffers function | 25 * succeeds plugin must provide buffers through AssignPictureBuffers function |
| 25 * to the API. If |req_num_of_bufs| matching exactly the specification | 26 * to the API. If |req_num_of_bufs| matching exactly the specification |
| 26 * given in the parameters cannot be allocated decoder should be destroyed. | 27 * given in the parameters cannot be allocated decoder should be destroyed. |
| 27 * | 28 * |
| 28 * Decoding will not proceed until buffers have been provided. | 29 * Decoding will not proceed until buffers have been provided. |
| 29 * | 30 * |
| 30 * Parameters: | 31 * Parameters: |
| 31 * |instance| the plugin instance to which the callback is responding. | 32 * |instance| the plugin instance to which the callback is responding. |
| 32 * |decoder| the PPB_VideoDecoder_Dev resource. | 33 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 33 * |req_num_of_bufs| tells how many buffers are needed by the decoder. | 34 * |req_num_of_bufs| tells how many buffers are needed by the decoder. |
| 34 * |dimensions| tells the dimensions of the buffer to allocate. | 35 * |dimensions| tells the dimensions of the buffer to allocate. |
| 35 */ | 36 */ |
| 37 [deprecate=0.11] |
| 36 void ProvidePictureBuffers( | 38 void ProvidePictureBuffers( |
| 37 [in] PP_Instance instance, | 39 [in] PP_Instance instance, |
| 38 [in] PP_Resource decoder, | 40 [in] PP_Resource decoder, |
| 39 [in] uint32_t req_num_of_bufs, | 41 [in] uint32_t req_num_of_bufs, |
| 40 [in] PP_Size dimensions); | 42 [in] PP_Size dimensions); |
| 41 | 43 |
| 42 /** | 44 /** |
| 45 * Callback function to provide buffers for the decoded output pictures. If |
| 46 * succeeds plugin must provide buffers through AssignPictureBuffers function |
| 47 * to the API. If |req_num_of_bufs| matching exactly the specification |
| 48 * given in the parameters cannot be allocated decoder should be destroyed. |
| 49 * |
| 50 * Decoding will not proceed until buffers have been provided. |
| 51 * |
| 52 * Parameters: |
| 53 * |instance| the plugin instance to which the callback is responding. |
| 54 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 55 * |req_num_of_bufs| tells how many buffers are needed by the decoder. |
| 56 * |dimensions| tells the dimensions of the buffer to allocate. |
| 57 * |texture_target| the type of texture used. |
| 58 */ |
| 59 [version=0.11] |
| 60 void ProvidePictureBuffers( |
| 61 [in] PP_Instance instance, |
| 62 [in] PP_Resource decoder, |
| 63 [in] uint32_t req_num_of_bufs, |
| 64 [in] PP_Size dimensions, |
| 65 [in] PP_VideoDecoder_TextureTarget_Dev texture_target); |
| 66 |
| 67 /** |
| 43 * Callback function for decoder to deliver unneeded picture buffers back to | 68 * Callback function for decoder to deliver unneeded picture buffers back to |
| 44 * the plugin. | 69 * the plugin. |
| 45 * | 70 * |
| 46 * Parameters: | 71 * Parameters: |
| 47 * |instance| the plugin instance to which the callback is responding. | 72 * |instance| the plugin instance to which the callback is responding. |
| 48 * |decoder| the PPB_VideoDecoder_Dev resource. | 73 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 49 * |picture_buffer| points to the picture buffer that is no longer needed. | 74 * |picture_buffer| points to the picture buffer that is no longer needed. |
| 50 */ | 75 */ |
| 51 void DismissPictureBuffer( | 76 void DismissPictureBuffer( |
| 52 [in] PP_Instance instance, | 77 [in] PP_Instance instance, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 * Parameters: | 114 * Parameters: |
| 90 * |instance| the plugin instance to which the callback is responding. | 115 * |instance| the plugin instance to which the callback is responding. |
| 91 * |decoder| the PPB_VideoDecoder_Dev resource. | 116 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 92 * |error| error is the enumeration specifying the error. | 117 * |error| error is the enumeration specifying the error. |
| 93 */ | 118 */ |
| 94 void NotifyError( | 119 void NotifyError( |
| 95 [in] PP_Instance instance, | 120 [in] PP_Instance instance, |
| 96 [in] PP_Resource decoder, | 121 [in] PP_Resource decoder, |
| 97 [in] PP_VideoDecodeError_Dev error); | 122 [in] PP_VideoDecodeError_Dev error); |
| 98 }; | 123 }; |
| OLD | NEW |