{{+bindTo:partials.standard_nacl_api}}

pp::VideoFrame Class Reference

{{- dummy div to appease doxygen -}}
Inheritance diagram for pp::VideoFrame:

List of all members.

Public Member Functions

 VideoFrame ()
 VideoFrame (const VideoFrame &other)
 VideoFrame (const Resource &resource)
 VideoFrame (PassRef, PP_Resource resource)
virtual ~VideoFrame ()
PP_TimeDelta GetTimestamp () const
void SetTimestamp (PP_TimeDelta timestamp)
PP_VideoFrame_Format GetFormat () const
bool GetSize (Size *size) const
void * GetDataBuffer ()
uint32_t GetDataBufferSize () const

Constructor & Destructor Documentation

Default constructor for creating an is_null() VideoFrame object.

The copy constructor for VideoFrame.

Parameters:
[in]otherA reference to a VideoFrame.
pp::VideoFrame::VideoFrame ( const Resource resource) [explicit]

Constructs a VideoFrame from a Resource.

Parameters:
[in]resourceA PPB_VideoFrame resource.
pp::VideoFrame::VideoFrame ( PassRef  ,
PP_Resource  resource 
)

A constructor used when you have received a PP_Resource as a return value that has had 1 ref added for you.

Parameters:
[in]resourceA PPB_VideoFrame resource.
virtual pp::VideoFrame::~VideoFrame ( ) [virtual]

Member Function Documentation

Gets the data buffer for video frame pixels.

Returns:
A pointer to the beginning of the data buffer.

Gets the size of data buffer in bytes.

Returns:
The size of the data buffer in bytes.
PP_VideoFrame_Format pp::VideoFrame::GetFormat ( ) const

Gets the format of the video frame.

Returns:
A PP_VideoFrame_Format containing the format of the video frame.
bool pp::VideoFrame::GetSize ( Size size) const

Gets the size of the video frame.

Parameters:
[out]sizeA Size.
Returns:
True on success or false on failure.
PP_TimeDelta pp::VideoFrame::GetTimestamp ( ) const

Gets the timestamp of the video frame.

Returns:
A PP_TimeDelta containing the timestamp of the video frame. Given in seconds since the start of the containing video stream.
void pp::VideoFrame::SetTimestamp ( PP_TimeDelta  timestamp)

Sets the timestamp of the video frame.

Parameters:
[in]timestampA PP_TimeDelta containing the timestamp of the video frame. Given in seconds since the start of the containing video stream.

The documentation for this class was generated from the following file:
{{/partials.standard_nacl_api}}