Shaka Packager SDK
List of all members
shaka::media::H265VideoSliceHeaderParser Class Reference
Inheritance diagram for shaka::media::H265VideoSliceHeaderParser:
shaka::media::VideoSliceHeaderParser

Public Member Functions

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

Detailed Description

Definition at line 62 of file video_slice_header_parser.h.

Member Function Documentation

◆ Initialize()

bool shaka::media::H265VideoSliceHeaderParser::Initialize ( const std::vector< uint8_t > &  decoder_configuration)
overridevirtual

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

Implements shaka::media::VideoSliceHeaderParser.

Definition at line 70 of file video_slice_header_parser.cc.

◆ ProcessNalu()

bool shaka::media::H265VideoSliceHeaderParser::ProcessNalu ( const Nalu nalu)
overridevirtual

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.

Implements shaka::media::VideoSliceHeaderParser.

Definition at line 93 of file video_slice_header_parser.cc.


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