|
virtual bool | Initialize (const uint8_t *decoder_configuration_data, size_t decoder_configuration_data_size) |
|
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, bool escape_encrypted_nalu, std::vector< uint8_t > *output, std::vector< SubsampleEntry > *subsamples) |
|
|
class | NalUnitToByteStreamConverterTest |
|
◆ ConvertUnitToByteStream()
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. |
| is_key_frame | indicates if the sample is a key frame. |
[out] | output | is set to the the converted sample, on success. |
- Returns
- true on success, false otherwise.
Definition at line 256 of file nal_unit_to_byte_stream_converter.cc.
◆ ConvertUnitToByteStreamWithSubsamples()
bool shaka::media::NalUnitToByteStreamConverter::ConvertUnitToByteStreamWithSubsamples |
( |
const uint8_t * |
sample, |
|
|
size_t |
sample_size, |
|
|
bool |
is_key_frame, |
|
|
bool |
escape_encrypted_nalu, |
|
|
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. |
| is_key_frame | indicates if the sample is a key frame. |
| escape_encrypted_nalu | indicates whether an encrypted nalu should be escaped. This is needed for Apple Sample AES. Note that |subsamples| on return contains the sizes before escaping. |
[out] | output | is set to the the converted sample, on success. |
[in,out] | subsamples | has the input subsamples and output updated subsamples, on success. |
- Returns
- true on success, false otherwise.
Definition at line 269 of file nal_unit_to_byte_stream_converter.cc.
◆ Initialize()
bool shaka::media::NalUnitToByteStreamConverter::Initialize |
( |
const uint8_t * |
decoder_configuration_data, |
|
|
size_t |
decoder_configuration_data_size |
|
) |
| |
|
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. |
- Returns
- true on success, false otherwise.
Definition at line 211 of file nal_unit_to_byte_stream_converter.cc.
The documentation for this class was generated from the following files: