OLD | NEW |
1 /* Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 /* Copyright 2015 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 ppb_video_encoder.idl modified Wed Feb 4 05:24:29 2015. */ | 6 /* From ppb_video_encoder.idl modified Thu Feb 5 10:33:32 2015. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_VIDEO_ENCODER_H_ | 8 #ifndef PPAPI_C_PPB_VIDEO_ENCODER_H_ |
9 #define PPAPI_C_PPB_VIDEO_ENCODER_H_ | 9 #define PPAPI_C_PPB_VIDEO_ENCODER_H_ |
10 | 10 |
11 #include "ppapi/c/pp_array_output.h" | 11 #include "ppapi/c/pp_array_output.h" |
12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
13 #include "ppapi/c/pp_codecs.h" | 13 #include "ppapi/c/pp_codecs.h" |
14 #include "ppapi/c/pp_completion_callback.h" | 14 #include "ppapi/c/pp_completion_callback.h" |
15 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
16 #include "ppapi/c/pp_macros.h" | 16 #include "ppapi/c/pp_macros.h" |
17 #include "ppapi/c/pp_resource.h" | 17 #include "ppapi/c/pp_resource.h" |
18 #include "ppapi/c/pp_size.h" | 18 #include "ppapi/c/pp_size.h" |
19 #include "ppapi/c/pp_stdint.h" | 19 #include "ppapi/c/pp_stdint.h" |
20 #include "ppapi/c/ppb_video_frame.h" | 20 #include "ppapi/c/ppb_video_frame.h" |
21 | 21 |
22 #define PPB_VIDEOENCODER_INTERFACE_0_1 "PPB_VideoEncoder;0.1" | 22 #define PPB_VIDEOENCODER_INTERFACE_0_1 "PPB_VideoEncoder;0.1" /* dev */ |
23 #define PPB_VIDEOENCODER_INTERFACE PPB_VIDEOENCODER_INTERFACE_0_1 | |
24 | |
25 /** | 23 /** |
26 * @file | 24 * @file |
27 * This file defines the <code>PPB_VideoEncoder</code> interface. | 25 * This file defines the <code>PPB_VideoEncoder</code> interface. |
28 */ | 26 */ |
29 | 27 |
30 | 28 |
31 /** | 29 /** |
32 * @addtogroup Interfaces | 30 * @addtogroup Interfaces |
33 * @{ | 31 * @{ |
34 */ | 32 */ |
(...skipping 14 matching lines...) Expand all Loading... |
49 * - Call RecycleBitstreamBuffer() after consuming the data in the bitstream | 47 * - Call RecycleBitstreamBuffer() after consuming the data in the bitstream |
50 * buffer. | 48 * buffer. |
51 * - To destroy the encoder, the plugin should release all of its references to | 49 * - To destroy the encoder, the plugin should release all of its references to |
52 * it. Any pending callbacks will abort before the encoder is destroyed. | 50 * it. Any pending callbacks will abort before the encoder is destroyed. |
53 * | 51 * |
54 * Available video codecs vary by platform. | 52 * Available video codecs vary by platform. |
55 * All: theora, vorbis, vp8. | 53 * All: theora, vorbis, vp8. |
56 * Chrome and ChromeOS: h264. | 54 * Chrome and ChromeOS: h264. |
57 * ChromeOS: mpeg4. | 55 * ChromeOS: mpeg4. |
58 */ | 56 */ |
59 struct PPB_VideoEncoder_0_1 { | 57 struct PPB_VideoEncoder_0_1 { /* dev */ |
60 /** | 58 /** |
61 * Creates a new video encoder resource. | 59 * Creates a new video encoder resource. |
62 * | 60 * |
63 * @param[in] instance A <code>PP_Instance</code> identifying the instance | 61 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
64 * with the video encoder. | 62 * with the video encoder. |
65 * | 63 * |
66 * @return A <code>PP_Resource</code> corresponding to a video encoder if | 64 * @return A <code>PP_Resource</code> corresponding to a video encoder if |
67 * successful or 0 otherwise. | 65 * successful or 0 otherwise. |
68 */ | 66 */ |
69 PP_Resource (*Create)(PP_Instance instance); | 67 PP_Resource (*Create)(PP_Instance instance); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 * callbacks will still run, reporting <code>PP_ERROR_ABORTED</code> . It is | 228 * callbacks will still run, reporting <code>PP_ERROR_ABORTED</code> . It is |
231 * not valid to call any encoder functions after a call to this method. | 229 * not valid to call any encoder functions after a call to this method. |
232 * <strong>Note:</strong> Destroying the video encoder closes it implicitly, | 230 * <strong>Note:</strong> Destroying the video encoder closes it implicitly, |
233 * so you are not required to call Close(). | 231 * so you are not required to call Close(). |
234 * | 232 * |
235 * @param[in] video_encoder A <code>PP_Resource</code> identifying the video | 233 * @param[in] video_encoder A <code>PP_Resource</code> identifying the video |
236 * encoder. | 234 * encoder. |
237 */ | 235 */ |
238 void (*Close)(PP_Resource video_encoder); | 236 void (*Close)(PP_Resource video_encoder); |
239 }; | 237 }; |
240 | |
241 typedef struct PPB_VideoEncoder_0_1 PPB_VideoEncoder; | |
242 /** | 238 /** |
243 * @} | 239 * @} |
244 */ | 240 */ |
245 | 241 |
246 #endif /* PPAPI_C_PPB_VIDEO_ENCODER_H_ */ | 242 #endif /* PPAPI_C_PPB_VIDEO_ENCODER_H_ */ |
247 | 243 |
OLD | NEW |