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/ppb_video_decoder_dev.idl modified Wed Dec 14 18:08:00 2011. */ | 6 /* From dev/ppb_video_decoder_dev.idl modified Tue Oct 29 00:32:59 2013. */ |
7 | 7 |
8 #ifndef PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ |
9 #define PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_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_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 * |resource| is handle to resource to test. | 71 * |resource| is handle to resource to test. |
72 * | 72 * |
73 * Returns true if is a video decoder, false otherwise. | 73 * Returns true if is a video decoder, false otherwise. |
74 */ | 74 */ |
75 PP_Bool (*IsVideoDecoder)(PP_Resource resource); | 75 PP_Bool (*IsVideoDecoder)(PP_Resource resource); |
76 /** | 76 /** |
77 * Dispatches bitstream buffer to the decoder. | 77 * Dispatches bitstream buffer to the decoder. |
78 * | 78 * |
79 * Parameters: | 79 * Parameters: |
80 * |video_decoder| is the previously created handle to the decoder resource. | 80 * |video_decoder| is the previously created handle to the decoder resource. |
81 * |bitstream_buffer| is the bitstream buffer that contains the input data. | 81 * |bitstream_buffer| is the bitstream buffer that contains at most one |
| 82 * input frame. |
82 * |callback| will be called when |bitstream_buffer| has been processed by | 83 * |callback| will be called when |bitstream_buffer| has been processed by |
83 * the decoder. | 84 * the decoder. |
84 * | 85 * |
85 * Returns an error code from pp_errors.h. | 86 * Returns an error code from pp_errors.h. |
86 */ | 87 */ |
87 int32_t (*Decode)(PP_Resource video_decoder, | 88 int32_t (*Decode)(PP_Resource video_decoder, |
88 const struct PP_VideoBitstreamBuffer_Dev* bitstream_buffer, | 89 const struct PP_VideoBitstreamBuffer_Dev* bitstream_buffer, |
89 struct PP_CompletionCallback callback); | 90 struct PP_CompletionCallback callback); |
90 /** | 91 /** |
91 * Provides the decoder with texture-backed picture buffers for video | 92 * Provides the decoder with texture-backed picture buffers for video |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void (*Destroy)(PP_Resource video_decoder); | 159 void (*Destroy)(PP_Resource video_decoder); |
159 }; | 160 }; |
160 | 161 |
161 typedef struct PPB_VideoDecoder_Dev_0_16 PPB_VideoDecoder_Dev; | 162 typedef struct PPB_VideoDecoder_Dev_0_16 PPB_VideoDecoder_Dev; |
162 /** | 163 /** |
163 * @} | 164 * @} |
164 */ | 165 */ |
165 | 166 |
166 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */ | 167 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */ |
167 | 168 |
OLD | NEW |