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 /* From dev/ppp_video_decoder_dev.idl modified Tue May 29 10:59:23 2012. */ | 6 /* From dev/ppp_video_decoder_dev.idl modified Fri Dec 13 13:44:18 2013. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ | 9 #define PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/dev/pp_video_dev.h" | 11 #include "ppapi/c/dev/pp_video_dev.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_size.h" | 15 #include "ppapi/c/pp_size.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| 17 | 17 |
| 18 #define PPP_VIDEODECODER_DEV_INTERFACE_0_9 "PPP_VideoDecoder(Dev);0.9" | 18 #define PPP_VIDEODECODER_DEV_INTERFACE_0_9 "PPP_VideoDecoder(Dev);0.9" |
|
yzshen1
2013/12/13 22:52:07
Is this still needed?
| |
| 19 #define PPP_VIDEODECODER_DEV_INTERFACE_0_10 "PPP_VideoDecoder(Dev);0.10" | |
| 20 #define PPP_VIDEODECODER_DEV_INTERFACE_0_11 "PPP_VideoDecoder(Dev);0.11" | 19 #define PPP_VIDEODECODER_DEV_INTERFACE_0_11 "PPP_VideoDecoder(Dev);0.11" |
| 21 #define PPP_VIDEODECODER_DEV_INTERFACE PPP_VIDEODECODER_DEV_INTERFACE_0_11 | 20 #define PPP_VIDEODECODER_DEV_INTERFACE PPP_VIDEODECODER_DEV_INTERFACE_0_11 |
| 22 | 21 |
| 23 /** | 22 /** |
| 24 * @file | 23 * @file |
| 25 * This file defines the <code>PPP_VideoDecoder_Dev</code> interface. | 24 * This file defines the <code>PPP_VideoDecoder_Dev</code> interface. |
| 26 */ | 25 */ |
| 27 | 26 |
| 28 | 27 |
| 29 /** | 28 /** |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 44 * to the API. If |req_num_of_bufs| matching exactly the specification | 43 * to the API. If |req_num_of_bufs| matching exactly the specification |
| 45 * given in the parameters cannot be allocated decoder should be destroyed. | 44 * given in the parameters cannot be allocated decoder should be destroyed. |
| 46 * | 45 * |
| 47 * Decoding will not proceed until buffers have been provided. | 46 * Decoding will not proceed until buffers have been provided. |
| 48 * | 47 * |
| 49 * Parameters: | 48 * Parameters: |
| 50 * |instance| the plugin instance to which the callback is responding. | 49 * |instance| the plugin instance to which the callback is responding. |
| 51 * |decoder| the PPB_VideoDecoder_Dev resource. | 50 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 52 * |req_num_of_bufs| tells how many buffers are needed by the decoder. | 51 * |req_num_of_bufs| tells how many buffers are needed by the decoder. |
| 53 * |dimensions| tells the dimensions of the buffer to allocate. | 52 * |dimensions| tells the dimensions of the buffer to allocate. |
| 54 * |texture_target| the type of texture used. | 53 * |texture_target| the type of texture used. Sample targets in use are |
| 54 * TEXTURE_2D (most platforms) and TEXTURE_EXTERNAL_OES (on ARM). | |
| 55 */ | 55 */ |
| 56 void (*ProvidePictureBuffers)(PP_Instance instance, | 56 void (*ProvidePictureBuffers)(PP_Instance instance, |
| 57 PP_Resource decoder, | 57 PP_Resource decoder, |
| 58 uint32_t req_num_of_bufs, | 58 uint32_t req_num_of_bufs, |
| 59 const struct PP_Size* dimensions, | 59 const struct PP_Size* dimensions, |
| 60 uint32_t texture_target); | 60 uint32_t texture_target); |
| 61 /** | 61 /** |
| 62 * Callback function for decoder to deliver unneeded picture buffers back to | 62 * Callback function for decoder to deliver unneeded picture buffers back to |
| 63 * the plugin. | 63 * the plugin. |
| 64 * | 64 * |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 93 * |error| error is the enumeration specifying the error. | 93 * |error| error is the enumeration specifying the error. |
| 94 */ | 94 */ |
| 95 void (*NotifyError)(PP_Instance instance, | 95 void (*NotifyError)(PP_Instance instance, |
| 96 PP_Resource decoder, | 96 PP_Resource decoder, |
| 97 PP_VideoDecodeError_Dev error); | 97 PP_VideoDecodeError_Dev error); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 typedef struct PPP_VideoDecoder_Dev_0_11 PPP_VideoDecoder_Dev; | 100 typedef struct PPP_VideoDecoder_Dev_0_11 PPP_VideoDecoder_Dev; |
| 101 | 101 |
| 102 struct PPP_VideoDecoder_Dev_0_9 { | 102 struct PPP_VideoDecoder_Dev_0_9 { |
| 103 void (*ProvidePictureBuffers)(PP_Instance instance, | |
| 104 PP_Resource decoder, | |
| 105 uint32_t req_num_of_bufs, | |
| 106 const struct PP_Size* dimensions); | |
| 107 void (*DismissPictureBuffer)(PP_Instance instance, | 103 void (*DismissPictureBuffer)(PP_Instance instance, |
| 108 PP_Resource decoder, | 104 PP_Resource decoder, |
| 109 int32_t picture_buffer_id); | 105 int32_t picture_buffer_id); |
| 110 void (*PictureReady)(PP_Instance instance, | |
| 111 PP_Resource decoder, | |
| 112 const struct PP_Picture_Dev* picture); | |
| 113 void (*EndOfStream)(PP_Instance instance, PP_Resource decoder); | |
| 114 void (*NotifyError)(PP_Instance instance, | |
| 115 PP_Resource decoder, | |
| 116 PP_VideoDecodeError_Dev error); | |
| 117 }; | |
| 118 | |
| 119 struct PPP_VideoDecoder_Dev_0_10 { | |
| 120 void (*ProvidePictureBuffers)(PP_Instance instance, | |
| 121 PP_Resource decoder, | |
| 122 uint32_t req_num_of_bufs, | |
| 123 const struct PP_Size* dimensions); | |
| 124 void (*DismissPictureBuffer)(PP_Instance instance, | |
| 125 PP_Resource decoder, | |
| 126 int32_t picture_buffer_id); | |
| 127 void (*PictureReady)(PP_Instance instance, | 106 void (*PictureReady)(PP_Instance instance, |
| 128 PP_Resource decoder, | 107 PP_Resource decoder, |
| 129 const struct PP_Picture_Dev* picture); | 108 const struct PP_Picture_Dev* picture); |
| 130 void (*NotifyError)(PP_Instance instance, | 109 void (*NotifyError)(PP_Instance instance, |
| 131 PP_Resource decoder, | 110 PP_Resource decoder, |
| 132 PP_VideoDecodeError_Dev error); | 111 PP_VideoDecodeError_Dev error); |
| 133 }; | 112 }; |
| 134 /** | 113 /** |
| 135 * @} | 114 * @} |
| 136 */ | 115 */ |
| 137 | 116 |
| 138 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */ | 117 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */ |
| 139 | 118 |
| OLD | NEW |