8 #ifndef PPAPI_C_PPB_VIDEO_ENCODER_H_
9 #define PPAPI_C_PPB_VIDEO_ENCODER_H_
22 #define PPB_VIDEOENCODER_INTERFACE_0_1 "PPB_VideoEncoder;0.1"
23 #define PPB_VIDEOENCODER_INTERFACE_0_2 "PPB_VideoEncoder;0.2"
24 #define PPB_VIDEOENCODER_INTERFACE PPB_VIDEOENCODER_INTERFACE_0_2
120 const struct PP_Size* input_visible_size,
121 PP_VideoProfile output_profile,
122 uint32_t initial_bitrate,
246 int32_t (*GetSupportedProfiles)(
PP_Resource video_encoder,
248 struct PP_CompletionCallback callback);
251 const struct PP_Size* input_visible_size,
252 PP_VideoProfile output_profile,
253 uint32_t initial_bitrate,
255 struct PP_CompletionCallback callback);
256 int32_t (*GetFramesRequired)(
PP_Resource video_encoder);
257 int32_t (*GetFrameCodedSize)(
PP_Resource video_encoder,
259 int32_t (*GetVideoFrame)(
PP_Resource video_encoder,
261 struct PP_CompletionCallback callback);
265 struct PP_CompletionCallback callback);
266 int32_t (*GetBitstreamBuffer)(
PP_Resource video_encoder,
268 struct PP_CompletionCallback callback);
269 void (*RecycleBitstreamBuffer)(
272 void (*RequestEncodingParametersChange)(
PP_Resource video_encoder,
PP_HardwareAcceleration
Definition: pp_codecs.h:56
int32_t(* GetFrameCodedSize)(PP_Resource video_encoder, struct PP_Size *coded_size)
Definition: ppb_video_encoder.h:149
int32_t(* GetBitstreamBuffer)(PP_Resource video_encoder, struct PP_BitstreamBuffer *bitstream_buffer, struct PP_CompletionCallback callback)
Definition: ppb_video_encoder.h:202
Definition: ppb_video_encoder.h:59
void(* RequestEncodingParametersChange)(PP_Resource video_encoder, uint32_t bitrate, uint32_t framerate)
Definition: ppb_video_encoder.h:225
int32_t(* GetVideoFrame)(PP_Resource video_encoder, PP_Resource *video_frame, struct PP_CompletionCallback callback)
Definition: ppb_video_encoder.h:164
PP_Bool(* IsVideoEncoder)(PP_Resource resource)
Definition: ppb_video_encoder.h:79
int32_t PP_Resource
Definition: pp_resource.h:40
PP_VideoFrame_Format
Definition: ppb_video_frame.h:31
int32_t(* Encode)(PP_Resource video_encoder, PP_Resource video_frame, PP_Bool force_keyframe, struct PP_CompletionCallback callback)
Definition: ppb_video_encoder.h:182
int32_t(* GetFramesRequired)(PP_Resource video_encoder)
Definition: ppb_video_encoder.h:136
Definition: pp_codecs.h:228
void(* Close)(PP_Resource video_encoder)
Definition: ppb_video_encoder.h:238
Definition: pp_array_output.h:103
PP_Resource(* Create)(PP_Instance instance)
Definition: ppb_video_encoder.h:69
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30
Definition: pp_completion_callback.h:139
void(* RecycleBitstreamBuffer)(PP_Resource video_encoder, const struct PP_BitstreamBuffer *bitstream_buffer)
Definition: ppb_video_encoder.h:213
int32_t(* GetSupportedProfiles)(PP_Resource video_encoder, struct PP_ArrayOutput output, struct PP_CompletionCallback callback)
Definition: ppb_video_encoder.h:94
int32_t(* Initialize)(PP_Resource video_encoder, PP_VideoFrame_Format input_format, const struct PP_Size *input_visible_size, PP_VideoProfile output_profile, uint32_t initial_bitrate, PP_HardwareAcceleration acceleration, struct PP_CompletionCallback callback)
Definition: ppb_video_encoder.h:118
Definition: ppb_video_encoder.h:243