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

#include <h265_byte_to_unit_stream_converter.h>

Inheritance diagram for shaka::media::H265ByteToUnitStreamConverter:
shaka::media::H26xByteToUnitStreamConverter

Public Member Functions

 H265ByteToUnitStreamConverter ()
 
 H265ByteToUnitStreamConverter (H26xStreamFormat stream_format)
 
H26xByteToUnitStreamConverter implementation override.
bool GetDecoderConfigurationRecord (std::vector< uint8_t > *decoder_config) const override
 
- Public Member Functions inherited from shaka::media::H26xByteToUnitStreamConverter
 H26xByteToUnitStreamConverter (Nalu::CodecType type)
 
 H26xByteToUnitStreamConverter (Nalu::CodecType type, H26xStreamFormat stream_format)
 
bool ConvertByteStreamToNalUnitStream (const uint8_t *input_frame, size_t input_frame_size, std::vector< uint8_t > *output_frame)
 
H26xStreamFormat stream_format () const
 

Additional Inherited Members

- Static Public Attributes inherited from shaka::media::H26xByteToUnitStreamConverter
static constexpr size_t kUnitStreamNaluLengthSize = 4
 
- Protected Member Functions inherited from shaka::media::H26xByteToUnitStreamConverter
bool strip_parameter_set_nalus () const
 
void WarnIfNotMatch (int nalu_type, const uint8_t *nalu_ptr, size_t nalu_size, const std::vector< uint8_t > &vector)
 

Detailed Description

Class which converts H.265 byte streams (as specified in ISO/IEC 14496-10 Annex B) into H.265 NAL unit streams (as specified in ISO/IEC 14496-15).

Definition at line 22 of file h265_byte_to_unit_stream_converter.h.

Constructor & Destructor Documentation

◆ H265ByteToUnitStreamConverter() [1/2]

shaka::media::H265ByteToUnitStreamConverter::H265ByteToUnitStreamConverter ( )

Create a H265 byte to unit stream converter. The setting of KeepParameterSetNalus is defined by a gflag.

Definition at line 21 of file h265_byte_to_unit_stream_converter.cc.

◆ H265ByteToUnitStreamConverter() [2/2]

shaka::media::H265ByteToUnitStreamConverter::H265ByteToUnitStreamConverter ( H26xStreamFormat  stream_format)
explicit

Create a H265 byte to unit stream converter with desired output stream format (whether to include parameter set nal units).

Definition at line 24 of file h265_byte_to_unit_stream_converter.cc.

Member Function Documentation

◆ GetDecoderConfigurationRecord()

bool shaka::media::H265ByteToUnitStreamConverter::GetDecoderConfigurationRecord ( std::vector< uint8_t > *  decoder_config) const
overridevirtual

Creates either an AVCDecoderConfigurationRecord or a HEVCDecoderConfigurationRecord from the units extracted from the byte stream.

Parameters
decoder_configis a pointer to a vector, which on successful return will contain the computed record.
Returns
true if successful, or false otherwise.

Implements shaka::media::H26xByteToUnitStreamConverter.

Definition at line 30 of file h265_byte_to_unit_stream_converter.cc.


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