Shaka Packager SDK
Public Member Functions | Protected Member Functions | List of all members
shaka::media::VPxParser Class Referenceabstract
Inheritance diagram for shaka::media::VPxParser:
shaka::media::VP8Parser shaka::media::VP9Parser

Public Member Functions

virtual bool Parse (const uint8_t *data, size_t data_size, std::vector< VPxFrameInfo > *vpx_frames)=0
 
const VPCodecConfigurationRecordcodec_config () const
 

Protected Member Functions

VPCodecConfigurationRecordwritable_codec_config ()
 

Detailed Description

Definition at line 27 of file vpx_parser.h.

Member Function Documentation

◆ codec_config()

const VPCodecConfigurationRecord& shaka::media::VPxParser::codec_config ( ) const
inline
Returns
VPx codec configuration extracted. Note that it is only valid after parsing a keyframe or intra frame successfully.

Definition at line 44 of file vpx_parser.h.

◆ Parse()

virtual bool shaka::media::VPxParser::Parse ( const uint8_t *  data,
size_t  data_size,
std::vector< VPxFrameInfo > *  vpx_frames 
)
pure virtual

Parse data with size data_size.

Parameters
data_sizeSize of the sample in bytes. Note that it should be a full sample.
[out]vpx_framespoints to the list of VPx frames for the current sample on success. Cannot be NULL.
Returns
true on success, false otherwise.

Implemented in shaka::media::VP9Parser, and shaka::media::VP8Parser.


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