Inheritance diagram for pp::VideoFrame:

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.
| pp::VideoFrame::VideoFrame | ( | const VideoFrame & | other | ) |
The copy constructor for VideoFrame.
- Parameters:
[in] other A reference to a VideoFrame.
| pp::VideoFrame::VideoFrame | ( | const Resource & | resource | ) | [explicit] |
Constructs a VideoFrame from a Resource.
- Parameters:
[in] resource A PPB_VideoFrameresource.
| 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] resource A PPB_VideoFrameresource.
| virtual pp::VideoFrame::~VideoFrame | ( | ) | [virtual] |
Member Function Documentation
| void* pp::VideoFrame::GetDataBuffer | ( | ) |
Gets the data buffer for video frame pixels.
- Returns:
- A pointer to the beginning of the data buffer.
| uint32_t pp::VideoFrame::GetDataBufferSize | ( | ) | const |
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_Formatcontaining the format of the video frame.
| bool pp::VideoFrame::GetSize | ( | Size * | size | ) | const |
Gets the size of the video frame.
- Parameters:
[out] size A 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_TimeDeltacontaining 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] 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 class was generated from the following file: