Shaka Packager SDK
Public Member Functions | Static Public Member Functions | List of all members
shaka::media::VP8Parser Class Reference

#include <vp8_parser.h>

Inheritance diagram for shaka::media::VP8Parser:
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 vp8 bit stream. Implemented according to https://tools.ietf.org/html/rfc6386.

Definition at line 21 of file vp8_parser.h.

Member Function Documentation

◆ IsKeyframe()

bool shaka::media::VP8Parser::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 182 of file vp8_parser.cc.

◆ Parse()

bool shaka::media::VP8Parser::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 103 of file vp8_parser.cc.


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