| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 Wed Oct 5 15:59:17 2011. */ | 6 /* From dev/ppp_video_decoder_dev.idl modified Tue Oct 11 10:01:39 2011. */ |
| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 * @addtogroup Interfaces | 28 * @addtogroup Interfaces |
| 29 * @{ | 29 * @{ |
| 30 */ | 30 */ |
| 31 /** | 31 /** |
| 32 * PPP_VideoDecoder_Dev structure contains the function pointers that the | 32 * PPP_VideoDecoder_Dev structure contains the function pointers that the |
| 33 * plugin MUST implement to provide services needed by the video decoder | 33 * plugin MUST implement to provide services needed by the video decoder |
| 34 * implementation. | 34 * implementation. |
| 35 * | 35 * |
| 36 * See PPB_VideoDecoder_Dev for general usage tips. | 36 * See PPB_VideoDecoder_Dev for general usage tips. |
| 37 */ | 37 */ |
| 38 struct PPP_VideoDecoder_Dev { | 38 struct PPP_VideoDecoder_Dev_0_9 { |
| 39 /** | 39 /** |
| 40 * Callback function to provide buffers for the decoded output pictures. If | 40 * Callback function to provide buffers for the decoded output pictures. If |
| 41 * succeeds plugin must provide buffers through AssignPictureBuffers function | 41 * succeeds plugin must provide buffers through AssignPictureBuffers function |
| 42 * to the API. If |req_num_of_bufs| matching exactly the specification | 42 * to the API. If |req_num_of_bufs| matching exactly the specification |
| 43 * given in the parameters cannot be allocated decoder should be destroyed. | 43 * given in the parameters cannot be allocated decoder should be destroyed. |
| 44 * | 44 * |
| 45 * Decoding will not proceed until buffers have been provided. | 45 * Decoding will not proceed until buffers have been provided. |
| 46 * | 46 * |
| 47 * Parameters: | 47 * Parameters: |
| 48 * |instance| the plugin instance to which the callback is responding. | 48 * |instance| the plugin instance to which the callback is responding. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 * | 95 * |
| 96 * Parameters: | 96 * Parameters: |
| 97 * |instance| the plugin instance to which the callback is responding. | 97 * |instance| the plugin instance to which the callback is responding. |
| 98 * |decoder| the PPB_VideoDecoder_Dev resource. | 98 * |decoder| the PPB_VideoDecoder_Dev resource. |
| 99 * |error| error is the enumeration specifying the error. | 99 * |error| error is the enumeration specifying the error. |
| 100 */ | 100 */ |
| 101 void (*NotifyError)(PP_Instance instance, | 101 void (*NotifyError)(PP_Instance instance, |
| 102 PP_Resource decoder, | 102 PP_Resource decoder, |
| 103 PP_VideoDecodeError_Dev error); | 103 PP_VideoDecodeError_Dev error); |
| 104 }; | 104 }; |
| 105 |
| 106 typedef struct PPP_VideoDecoder_Dev_0_9 PPP_VideoDecoder_Dev; |
| 105 /** | 107 /** |
| 106 * @} | 108 * @} |
| 107 */ | 109 */ |
| 108 | 110 |
| 109 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */ | 111 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */ |
| 110 | 112 |
| OLD | NEW |