DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Friends | List of all members
shaka::media::NalUnitToByteStreamConverter Class Reference

Public Member Functions

virtual bool Initialize (const uint8_t *decoder_configuration_data, size_t decoder_configuration_data_size, bool escape_data)
 
virtual bool ConvertUnitToByteStream (const uint8_t *sample, size_t sample_size, bool is_key_frame, std::vector< uint8_t > *output)
 

Friends

class NalUnitToByteStreamConverterTest
 

Detailed Description

Definition at line 34 of file nal_unit_to_byte_stream_converter.h.

Member Function Documentation

bool shaka::media::NalUnitToByteStreamConverter::ConvertUnitToByteStream ( const uint8_t *  sample,
size_t  sample_size,
bool  is_key_frame,
std::vector< uint8_t > *  output 
)
virtual

Converts unit stream to byte stream using the data passed to Initialize(). The method will function correctly even if sample is encrypted using SAMPLE-AES encryption.

Parameters
sampleis the sample to be converted.
sample_sizeis the size of sample.
outputis set to the the converted sample, on success.
Returns
true on success, false otherwise.

Definition at line 142 of file nal_unit_to_byte_stream_converter.cc.

bool shaka::media::NalUnitToByteStreamConverter::Initialize ( const uint8_t *  decoder_configuration_data,
size_t  decoder_configuration_data_size,
bool  escape_data 
)
virtual

This must be called before calling other methods.

Parameters
decoder_configuration_datais the pointer to a decoder config data.
decoder_configuration_data_sizeis the size of decoder_configuration_data.
escape_dataflags whether the decoder configuration and data passed to ConvertUnitToByteStream() should be escaped with emulation prevention byte.
Returns
true on success, false otherwise.

Definition at line 92 of file nal_unit_to_byte_stream_converter.cc.


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