DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions | List of all members
shaka::media::VP9Parser Class Reference

Class to parse a vp9 bit stream. More...

#include <vp9_parser.h>

Inheritance diagram for shaka::media::VP9Parser:
shaka::media::VPxParser

Public Member Functions

bool Parse (const uint8_t *data, size_t data_size, std::vector< VPxFrameInfo > *vpx_frames) override
 
- Public Member Functions inherited from shaka::media::VPxParser
const VPCodecConfigurationRecordcodec_config () const
 

Static Public Member Functions

static bool IsKeyframe (const uint8_t *data, size_t data_size)
 

Additional Inherited Members

- Protected Member Functions inherited from shaka::media::VPxParser
VPCodecConfigurationRecordwritable_codec_config ()
 

Detailed Description

Class to parse a vp9 bit stream.

Definition at line 20 of file vp9_parser.h.

Member Function Documentation

bool shaka::media::VP9Parser::IsKeyframe ( const uint8_t *  data,
size_t  data_size 
)
static

A convenient utility function to check whether the frame is a keyframe. Note that this function does not do a full parse of the frame header, so should be more efficient than Parse().

Parameters
data_sizeSize of the sample in bytes.
Returns
true if it is, false if it is not or if there is parsing error.

Definition at line 535 of file vp9_parser.cc.

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

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.

Implements shaka::media::VPxParser.

Definition at line 418 of file vp9_parser.cc.


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