Chromium Code Reviews| 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, |
|
yzshen1
2013/12/13 22:52:07
I think we could remove M14 and M18 entries here.
| |
| 11 M18 = 0.10, | 11 M18 = 0.10, |
| 12 M21 = 0.11 | 12 M21 = 0.11 |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * PPP_VideoDecoder_Dev structure contains the function pointers that the | 16 * PPP_VideoDecoder_Dev structure contains the function pointers that the |
| 17 * plugin MUST implement to provide services needed by the video decoder | 17 * plugin MUST implement to provide services needed by the video decoder |
| 18 * implementation. | 18 * implementation. |
| 19 * | 19 * |
| 20 * See PPB_VideoDecoder_Dev for general usage tips. | 20 * See PPB_VideoDecoder_Dev for general usage tips. |
| 21 */ | 21 */ |
| 22 interface PPP_VideoDecoder_Dev { | 22 interface PPP_VideoDecoder_Dev { |
| 23 /** | 23 /** |
| 24 * Callback function to provide buffers for the decoded output pictures. If | 24 * Callback function to provide buffers for the decoded output pictures. If |
| 25 * succeeds plugin must provide buffers through AssignPictureBuffers function | 25 * succeeds plugin must provide buffers through AssignPictureBuffers function |
| 26 * 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 |
| 27 * given in the parameters cannot be allocated decoder should be destroyed. | 27 * given in the parameters cannot be allocated decoder should be destroyed. |
| 28 * | 28 * |
| 29 * Decoding will not proceed until buffers have been provided. | 29 * Decoding will not proceed until buffers have been provided. |
| 30 * | 30 * |
| 31 * Parameters: | 31 * Parameters: |
| 32 * |instance| the plugin instance to which the callback is responding. | 32 * |instance| the plugin instance to which the callback is responding. |
| 33 * |decoder| the PPB_VideoDecoder_Dev resource. | 33 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 34 * |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. |
| 35 * |dimensions| tells the dimensions of the buffer to allocate. | 35 * |dimensions| tells the dimensions of the buffer to allocate. |
| 36 */ | 36 * |texture_target| the type of texture used. Sample targets in use are |
| 37 [deprecate=0.11] | 37 * TEXTURE_2D (most platforms) and TEXTURE_EXTERNAL_OES (on ARM). |
| 38 void ProvidePictureBuffers( | |
| 39 [in] PP_Instance instance, | |
| 40 [in] PP_Resource decoder, | |
| 41 [in] uint32_t req_num_of_bufs, | |
| 42 [in] PP_Size dimensions); | |
| 43 | |
| 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 */ | 38 */ |
| 59 [version=0.11] | 39 [version=0.11] |
| 60 void ProvidePictureBuffers( | 40 void ProvidePictureBuffers( |
| 61 [in] PP_Instance instance, | 41 [in] PP_Instance instance, |
| 62 [in] PP_Resource decoder, | 42 [in] PP_Resource decoder, |
| 63 [in] uint32_t req_num_of_bufs, | 43 [in] uint32_t req_num_of_bufs, |
| 64 [in] PP_Size dimensions, | 44 [in] PP_Size dimensions, |
| 65 [in] uint32_t texture_target); | 45 [in] uint32_t texture_target); |
| 66 | 46 |
| 67 /** | 47 /** |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 87 * |instance| the plugin instance to which the callback is responding. | 67 * |instance| the plugin instance to which the callback is responding. |
| 88 * |decoder| the PPB_VideoDecoder_Dev resource. | 68 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 89 * |picture| is the picture that is ready. | 69 * |picture| is the picture that is ready. |
| 90 */ | 70 */ |
| 91 void PictureReady( | 71 void PictureReady( |
| 92 [in] PP_Instance instance, | 72 [in] PP_Instance instance, |
| 93 [in] PP_Resource decoder, | 73 [in] PP_Resource decoder, |
| 94 [in] PP_Picture_Dev picture); | 74 [in] PP_Picture_Dev picture); |
| 95 | 75 |
| 96 /** | 76 /** |
| 97 * Callback function to tell the plugin that decoder has decoded end of stream | |
| 98 * marker and output all the pictures that should be displayed from the | |
| 99 * stream. | |
| 100 * | |
| 101 * Parameters: | |
| 102 * |instance| the plugin instance to which the callback is responding. | |
| 103 * |decoder| the PPB_VideoDecoder_Dev resource. | |
| 104 */ | |
| 105 [deprecate=0.10] | |
| 106 void EndOfStream( | |
| 107 [in] PP_Instance instance, | |
| 108 [in] PP_Resource decoder); | |
| 109 | |
| 110 /** | |
| 111 * Error handler callback for decoder to deliver information about detected | 77 * Error handler callback for decoder to deliver information about detected |
| 112 * errors to the plugin. | 78 * errors to the plugin. |
| 113 * | 79 * |
| 114 * Parameters: | 80 * Parameters: |
| 115 * |instance| the plugin instance to which the callback is responding. | 81 * |instance| the plugin instance to which the callback is responding. |
| 116 * |decoder| the PPB_VideoDecoder_Dev resource. | 82 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 117 * |error| error is the enumeration specifying the error. | 83 * |error| error is the enumeration specifying the error. |
| 118 */ | 84 */ |
| 119 void NotifyError( | 85 void NotifyError( |
| 120 [in] PP_Instance instance, | 86 [in] PP_Instance instance, |
| 121 [in] PP_Resource decoder, | 87 [in] PP_Resource decoder, |
| 122 [in] PP_VideoDecodeError_Dev error); | 88 [in] PP_VideoDecodeError_Dev error); |
| 123 }; | 89 }; |
| OLD | NEW |