Shaka Packager SDK
Public Member Functions | List of all members
shaka::media::VideoSliceHeaderParser Class Referenceabstract
Inheritance diagram for shaka::media::VideoSliceHeaderParser:
shaka::media::H264VideoSliceHeaderParser shaka::media::H265VideoSliceHeaderParser

Public Member Functions

virtual bool Initialize (const std::vector< uint8_t > &decoder_configuration)=0
 
virtual bool ProcessNalu (const Nalu &nalu)=0
 
virtual int64_t GetHeaderSize (const Nalu &nalu)=0
 Gets the header size of the given NALU. Returns < 0 on error.
 

Detailed Description

Definition at line 19 of file video_slice_header_parser.h.

Member Function Documentation

◆ Initialize()

virtual bool shaka::media::VideoSliceHeaderParser::Initialize ( const std::vector< uint8_t > &  decoder_configuration)
pure virtual

Adds decoder configuration from the given data. This must be called once before any calls to GetHeaderSize.

Implemented in shaka::media::H265VideoSliceHeaderParser, and shaka::media::H264VideoSliceHeaderParser.

◆ ProcessNalu()

virtual bool shaka::media::VideoSliceHeaderParser::ProcessNalu ( const Nalu nalu)
pure virtual

Process NAL unit, in particular parameter set NAL units. Non parameter set NAL unit is allowed but the function always returns true. Returns false if there is any problem processing the parameter set NAL unit. This function is needed to handle parameter set NAL units not in decoder configuration record, i.e. in the samples.

Implemented in shaka::media::H265VideoSliceHeaderParser, and shaka::media::H264VideoSliceHeaderParser.


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