Data Fields
| PP_Bool(* | IsVideoFrame )(PP_Resource resource) |
| PP_TimeDelta(* | GetTimestamp )(PP_Resource frame) |
| void(* | SetTimestamp )(PP_Resource frame, PP_TimeDelta timestamp) |
| PP_VideoFrame_Format(* | GetFormat )(PP_Resource frame) |
| PP_Bool(* | GetSize )(PP_Resource frame, struct PP_Size *size) |
| void *(* | GetDataBuffer )(PP_Resource frame) |
| uint32_t(* | GetDataBufferSize )(PP_Resource frame) |
Field Documentation
| void*(* PPB_VideoFrame::GetDataBuffer)(PP_Resource frame) |
Gets the data buffer for video frame pixels.
- Parameters:
[in] frame A PP_Resourcecorresponding to a video frame resource.
- Returns:
- A pointer to the beginning of the data buffer.
| uint32_t(* PPB_VideoFrame::GetDataBufferSize)(PP_Resource frame) |
Gets the size of data buffer.
- Parameters:
[in] frame A PP_Resourcecorresponding to a video frame resource.
- Returns:
- The size of the data buffer.
Gets the format of the video frame.
- Parameters:
[in] frame A PP_Resourcecorresponding to a video frame resource.
- Returns:
- A
PP_VideoFrame_Formatcontaining the format of the video frame.
| PP_Bool(* PPB_VideoFrame::GetSize)(PP_Resource frame, struct PP_Size *size) |
Gets the size of the video frame.
- Parameters:
[in] frame A PP_Resourcecorresponding to a video frame resource.[out] size A PP_Size.
- Returns:
- A
PP_BoolwithPP_TRUEon success orPP_FALSEon failure.
Gets the timestamp of the video frame.
- Parameters:
[in] frame A PP_Resourcecorresponding to a video frame resource.
- Returns:
- A
PP_TimeDeltacontaining the timestamp of the video frame. Given in seconds since the start of the containing video stream.
| PP_Bool(* PPB_VideoFrame::IsVideoFrame)(PP_Resource resource) |
Determines if a resource is a VideoFrame resource.
- Parameters:
[in] resource The PP_Resourceto test.
- Returns:
- A
PP_BoolwithPP_TRUEif the given resource is a VideoFrame resource orPP_FALSEotherwise.
| void(* PPB_VideoFrame::SetTimestamp)(PP_Resource frame, PP_TimeDelta timestamp) |
Sets the timestamp of the video frame.
Given in seconds since the start of the containing video stream.
- Parameters:
[in] frame A PP_Resourcecorresponding to a video frame resource.[in] timestamp A PP_TimeDeltacontaining the timestamp of the video frame. Given in seconds since the start of the containing video stream.
The documentation for this struct was generated from the following file: