|
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) |
|
|
class | NalUnitToByteStreamConverterTest |
|
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
-
sample | is the sample to be converted. |
sample_size | is the size of sample. |
output | is 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_data | is the pointer to a decoder config data. |
decoder_configuration_data_size | is the size of decoder_configuration_data. |
escape_data | flags 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: