Pepper_31_C_interfaces
Public Attributes | List of all members
PPP_VideoDecoder_Dev_0_11 Struct Reference

#include <ppp_video_decoder_dev.h>

Collaboration diagram for PPP_VideoDecoder_Dev_0_11:
Collaboration graph

Public Attributes

void(* ProvidePictureBuffers )(PP_Instance instance, PP_Resource decoder, uint32_t req_num_of_bufs, const struct PP_Size *dimensions, uint32_t texture_target)
 
void(* DismissPictureBuffer )(PP_Instance instance, PP_Resource decoder, int32_t picture_buffer_id)
 
void(* PictureReady )(PP_Instance instance, PP_Resource decoder, const struct PP_Picture_Dev *picture)
 
void(* NotifyError )(PP_Instance instance, PP_Resource decoder, PP_VideoDecodeError_Dev error)
 

Detailed Description

PPP_VideoDecoder_Dev structure contains the function pointers that the plugin MUST implement to provide services needed by the video decoder implementation.

See PPB_VideoDecoder_Dev for general usage tips.

Definition at line 40 of file ppp_video_decoder_dev.h.

Member Data Documentation

void(* PPP_VideoDecoder_Dev_0_11::DismissPictureBuffer)(PP_Instance instance, PP_Resource decoder, int32_t picture_buffer_id)

Callback function for decoder to deliver unneeded picture buffers back to the plugin.

Parameters: |instance| the plugin instance to which the callback is responding. |decoder| the PPB_VideoDecoder_Dev resource. |picture_buffer| points to the picture buffer that is no longer needed.

Definition at line 70 of file ppp_video_decoder_dev.h.

void(* PPP_VideoDecoder_Dev_0_11::NotifyError)(PP_Instance instance, PP_Resource decoder, PP_VideoDecodeError_Dev error)

Error handler callback for decoder to deliver information about detected errors to the plugin.

Parameters: |instance| the plugin instance to which the callback is responding. |decoder| the PPB_VideoDecoder_Dev resource. |error| error is the enumeration specifying the error.

Definition at line 95 of file ppp_video_decoder_dev.h.

void(* PPP_VideoDecoder_Dev_0_11::PictureReady)(PP_Instance instance, PP_Resource decoder, const struct PP_Picture_Dev *picture)

Callback function for decoder to deliver decoded pictures ready to be displayed. Decoder expects the plugin to return the buffer back to the decoder through ReusePictureBuffer function in PPB Video Decoder API.

Parameters: |instance| the plugin instance to which the callback is responding. |decoder| the PPB_VideoDecoder_Dev resource. |picture| is the picture that is ready.

Definition at line 83 of file ppp_video_decoder_dev.h.

void(* PPP_VideoDecoder_Dev_0_11::ProvidePictureBuffers)(PP_Instance instance, PP_Resource decoder, uint32_t req_num_of_bufs, const struct PP_Size *dimensions, uint32_t texture_target)

Callback function to provide buffers for the decoded output pictures. If succeeds plugin must provide buffers through AssignPictureBuffers function to the API. If |req_num_of_bufs| matching exactly the specification given in the parameters cannot be allocated decoder should be destroyed.

Decoding will not proceed until buffers have been provided.

Parameters: |instance| the plugin instance to which the callback is responding. |decoder| the PPB_VideoDecoder_Dev resource. |req_num_of_bufs| tells how many buffers are needed by the decoder. |dimensions| tells the dimensions of the buffer to allocate. |texture_target| the type of texture used.

Definition at line 56 of file ppp_video_decoder_dev.h.


The documentation for this struct was generated from the following file: