Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
ppb_video_decoder.h
Go to the documentation of this file.
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From ppb_video_decoder.idl modified Wed Nov 8 11:16:43 2017. */
7 
8 #ifndef PPAPI_C_PPB_VIDEO_DECODER_H_
9 #define PPAPI_C_PPB_VIDEO_DECODER_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_codecs.h"
14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_point.h"
17 #include "ppapi/c/pp_rect.h"
18 #include "ppapi/c/pp_resource.h"
19 #include "ppapi/c/pp_size.h"
20 #include "ppapi/c/pp_stdint.h"
21 
22 #define PPB_VIDEODECODER_INTERFACE_0_1 "PPB_VideoDecoder;0.1"
23 #define PPB_VIDEODECODER_INTERFACE_0_2 "PPB_VideoDecoder;0.2"
24 #define PPB_VIDEODECODER_INTERFACE_1_0 "PPB_VideoDecoder;1.0"
25 #define PPB_VIDEODECODER_INTERFACE_1_1 "PPB_VideoDecoder;1.1"
26 #define PPB_VIDEODECODER_INTERFACE PPB_VIDEODECODER_INTERFACE_1_1
27 
110  int32_t (*Initialize)(PP_Resource video_decoder,
111  PP_Resource graphics3d_context,
112  PP_VideoProfile profile,
113  PP_HardwareAcceleration acceleration,
114  uint32_t min_picture_count,
115  struct PP_CompletionCallback callback);
149  int32_t (*Decode)(PP_Resource video_decoder,
150  uint32_t decode_id,
151  uint32_t size,
152  const void* buffer,
153  struct PP_CompletionCallback callback);
175  int32_t (*GetPicture)(PP_Resource video_decoder,
176  struct PP_VideoPicture* picture,
177  struct PP_CompletionCallback callback);
188  void (*RecyclePicture)(PP_Resource video_decoder,
189  const struct PP_VideoPicture* picture);
209  int32_t (*Flush)(PP_Resource video_decoder,
210  struct PP_CompletionCallback callback);
229  int32_t (*Reset)(PP_Resource video_decoder,
230  struct PP_CompletionCallback callback);
231 };
232 
234 
236  PP_Resource (*Create)(PP_Instance instance);
237  PP_Bool (*IsVideoDecoder)(PP_Resource resource);
238  int32_t (*Initialize)(PP_Resource video_decoder,
239  PP_Resource graphics3d_context,
240  PP_VideoProfile profile,
241  PP_Bool allow_software_fallback,
242  struct PP_CompletionCallback callback);
243  int32_t (*Decode)(PP_Resource video_decoder,
244  uint32_t decode_id,
245  uint32_t size,
246  const void* buffer,
247  struct PP_CompletionCallback callback);
248  int32_t (*GetPicture)(PP_Resource video_decoder,
249  struct PP_VideoPicture_0_1* picture,
250  struct PP_CompletionCallback callback);
251  void (*RecyclePicture)(PP_Resource video_decoder,
252  const struct PP_VideoPicture* picture);
253  int32_t (*Flush)(PP_Resource video_decoder,
254  struct PP_CompletionCallback callback);
255  int32_t (*Reset)(PP_Resource video_decoder,
256  struct PP_CompletionCallback callback);
257 };
258 
260  PP_Resource (*Create)(PP_Instance instance);
261  PP_Bool (*IsVideoDecoder)(PP_Resource resource);
262  int32_t (*Initialize)(PP_Resource video_decoder,
263  PP_Resource graphics3d_context,
264  PP_VideoProfile profile,
265  PP_HardwareAcceleration acceleration,
266  struct PP_CompletionCallback callback);
267  int32_t (*Decode)(PP_Resource video_decoder,
268  uint32_t decode_id,
269  uint32_t size,
270  const void* buffer,
271  struct PP_CompletionCallback callback);
272  int32_t (*GetPicture)(PP_Resource video_decoder,
273  struct PP_VideoPicture_0_1* picture,
274  struct PP_CompletionCallback callback);
275  void (*RecyclePicture)(PP_Resource video_decoder,
276  const struct PP_VideoPicture* picture);
277  int32_t (*Flush)(PP_Resource video_decoder,
278  struct PP_CompletionCallback callback);
279  int32_t (*Reset)(PP_Resource video_decoder,
280  struct PP_CompletionCallback callback);
281 };
282 
284  PP_Resource (*Create)(PP_Instance instance);
285  PP_Bool (*IsVideoDecoder)(PP_Resource resource);
286  int32_t (*Initialize)(PP_Resource video_decoder,
287  PP_Resource graphics3d_context,
288  PP_VideoProfile profile,
289  PP_HardwareAcceleration acceleration,
290  struct PP_CompletionCallback callback);
291  int32_t (*Decode)(PP_Resource video_decoder,
292  uint32_t decode_id,
293  uint32_t size,
294  const void* buffer,
295  struct PP_CompletionCallback callback);
296  int32_t (*GetPicture)(PP_Resource video_decoder,
297  struct PP_VideoPicture* picture,
298  struct PP_CompletionCallback callback);
299  void (*RecyclePicture)(PP_Resource video_decoder,
300  const struct PP_VideoPicture* picture);
301  int32_t (*Flush)(PP_Resource video_decoder,
302  struct PP_CompletionCallback callback);
303  int32_t (*Reset)(PP_Resource video_decoder,
304  struct PP_CompletionCallback callback);
305 };
310 #endif /* PPAPI_C_PPB_VIDEO_DECODER_H_ */
311 
PP_HardwareAcceleration
Definition: pp_codecs.h:56
void(* RecyclePicture)(PP_Resource video_decoder, const struct PP_VideoPicture *picture)
Definition: ppb_video_decoder.h:188
int32_t(* Flush)(PP_Resource video_decoder, struct PP_CompletionCallback callback)
Definition: ppb_video_decoder.h:209
Definition: pp_codecs.h:117
int32_t(* Decode)(PP_Resource video_decoder, uint32_t decode_id, uint32_t size, const void *buffer, struct PP_CompletionCallback callback)
Definition: ppb_video_decoder.h:149
PP_Resource(* Create)(PP_Instance instance)
Definition: ppb_video_decoder.h:71
Definition: pp_codecs.h:81
int32_t PP_Resource
Definition: pp_resource.h:40
PP_Bool(* IsVideoDecoder)(PP_Resource resource)
Definition: ppb_video_decoder.h:81
Definition: ppb_video_decoder.h:259
int32_t(* Reset)(PP_Resource video_decoder, struct PP_CompletionCallback callback)
Definition: ppb_video_decoder.h:229
Definition: ppb_video_decoder.h:61
int32_t(* Initialize)(PP_Resource video_decoder, PP_Resource graphics3d_context, PP_VideoProfile profile, PP_HardwareAcceleration acceleration, uint32_t min_picture_count, struct PP_CompletionCallback callback)
Definition: ppb_video_decoder.h:110
int32_t PP_Instance
Definition: pp_instance.h:34
Definition: ppb_video_decoder.h:235
int32_t(* GetPicture)(PP_Resource video_decoder, struct PP_VideoPicture *picture, struct PP_CompletionCallback callback)
Definition: ppb_video_decoder.h:175
PP_Bool
Definition: pp_bool.h:30
Definition: ppb_video_decoder.h:283
Definition: pp_completion_callback.h:139