Gnash  0.8.11dev
Public Member Functions | Public Attributes | List of all members
gnash::media::EncodedVideoFrame Class Reference

An encoded video frame. More...

#include <MediaParser.h>

Public Member Functions

 EncodedVideoFrame (std::uint8_t *data, std::uint32_t size, unsigned int frameNum, std::uint64_t timestamp=0)
 Create an encoded video frame. More...
 
const std::uint8_t * data () const
 Return pointer to actual data. Ownership retained by this class. More...
 
std::uint32_t dataSize () const
 Return size of data buffer. More...
 
std::uint64_t timestamp () const
 Return video frame presentation timestamp. More...
 
unsigned frameNum () const
 Return video frame number. More...
 

Public Attributes

std::unique_ptr< EncodedExtraDataextradata
 

Detailed Description

An encoded video frame.

Constructor & Destructor Documentation

§ EncodedVideoFrame()

gnash::media::EncodedVideoFrame::EncodedVideoFrame ( std::uint8_t *  data,
std::uint32_t  size,
unsigned int  frameNum,
std::uint64_t  timestamp = 0 
)
inline

Create an encoded video frame.

Parameters
dataData buffer, ownership transferred
sizeSize of the data buffer
frameNumFrame number.
timestampPresentation timestamp, in milliseconds.

Member Function Documentation

§ data()

const std::uint8_t* gnash::media::EncodedVideoFrame::data ( ) const
inline

Return pointer to actual data. Ownership retained by this class.

Referenced by gnash::media::gst::VideoDecoderGst::push().

§ dataSize()

std::uint32_t gnash::media::EncodedVideoFrame::dataSize ( ) const
inline

Return size of data buffer.

Referenced by gnash::media::gst::VideoDecoderGst::push().

§ frameNum()

unsigned gnash::media::EncodedVideoFrame::frameNum ( ) const
inline

Return video frame number.

Referenced by gnash::media::gst::VideoDecoderGst::push().

§ timestamp()

std::uint64_t gnash::media::EncodedVideoFrame::timestamp ( ) const
inline

Return video frame presentation timestamp.

Referenced by gnash::media::MediaParser::nextVideoFrameTimestamp().

Member Data Documentation

§ extradata

std::unique_ptr<EncodedExtraData> gnash::media::EncodedVideoFrame::extradata

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