Shaka Packager SDK
|
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. | |
Definition at line 19 of file video_slice_header_parser.h.
|
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.
|
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.