Shaka Packager SDK
|
#include <es_descriptor.h>
Public Member Functions | |
BaseDescriptor (DescriptorTag tag) | |
bool | Parse (const std::vector< uint8_t > &data) |
bool | Read (BitReader *reader) |
void | Write (BufferWriter *writer) |
size_t | ComputeSize () |
Protected Member Functions | |
void | WriteHeader (BufferWriter *writer) |
Write descriptor header. | |
size_t | data_size () const |
Defines the base Descriptor object as defined in ISO 14496-1:2004 Systems section 7.2.2.2. All descriptors inherit from either BaseDescriptor.
Definition at line 42 of file es_descriptor.h.
size_t shaka::media::BaseDescriptor::ComputeSize | ( | ) |
Compute the size of this descriptor. It will also update descriptor size.
Definition at line 110 of file es_descriptor.cc.
|
inlineprotected |
Definition at line 69 of file es_descriptor.h.
bool shaka::media::BaseDescriptor::Parse | ( | const std::vector< uint8_t > & | data | ) |
Parse the descriptor from input data.
data | contains the descriptor data. |
Definition at line 83 of file es_descriptor.cc.
bool shaka::media::BaseDescriptor::Read | ( | BitReader * | reader | ) |
Read the descriptor.
reader | points to a BitReader object. |
Definition at line 88 of file es_descriptor.cc.
void shaka::media::BaseDescriptor::Write | ( | BufferWriter * | writer | ) |
Write the descriptor to buffer. This function calls ComputeSize internally to compute and update descriptor size.
writer | points to a BufferWriter object which wraps the buffer for writing. |
Definition at line 100 of file es_descriptor.cc.