|
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) |
|
virtual bool | ConvertUnitToByteStreamWithSubsamples (const uint8_t *sample, size_t sample_size, bool is_key_frame, std::vector< uint8_t > *output, std::vector< SubsampleEntry > *subsamples) |
|
|
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. |
[out] | output | is set to the the converted sample, on success. |
- Returns
- true on success, false otherwise.
Definition at line 163 of file nal_unit_to_byte_stream_converter.cc.
bool shaka::media::NalUnitToByteStreamConverter::ConvertUnitToByteStreamWithSubsamples |
( |
const uint8_t * |
sample, |
|
|
size_t |
sample_size, |
|
|
bool |
is_key_frame, |
|
|
std::vector< uint8_t > * |
output, |
|
|
std::vector< SubsampleEntry > * |
subsamples |
|
) |
| |
|
virtual |
Converts unit stream to byte stream using the data passed to Initialize() and update the corresponding subsamples of the media sample. 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. |
[out] | output | is set to the the converted sample, on success. |
[in,out] | subsamples | has the input subsamples and output updated subsamples, on sucess. |
- Returns
- true on success, false otherwise.
Definition at line 175 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 113 of file nal_unit_to_byte_stream_converter.cc.
The documentation for this class was generated from the following files: