|
| Codec () |
| Default constructor.
|
|
| Codec (Codec &&) |
| Move constructor.
|
|
Codec & | operator= (Codec &&) |
| Move assignment operator.
|
|
| Codec (const Codec &)=delete |
| No copy constructor.
|
|
Codec & | operator= (const Codec &)=delete |
| No copy assignment operator.
|
|
Element | getElement (const CodecIndex &codec_index) |
| Retrieves an element instance based on the codec index of that element. More...
|
|
Element | getElement (const std::string &full_element_name) |
| Retrieves an element instance based on the full name of the element. More...
|
|
Elements & | getElements () |
| Retrieves the elements of the codec to get element information. More...
|
|
template<typename T > |
void | setElementValue (const CodecIndex &codec_index, const T &value) |
| Sets the current value of the given element from given value in type T. More...
|
|
void | setElementVariantValue (const CodecIndex &codec_index, const a_util::variant::Variant &value) |
| Sets the current value of the given element from the given variant. More...
|
|
void | setElementStringValue (const CodecIndex &codec_index, const std::string &value) |
| Sets the current value of the given element from the given string. More...
|
|
void | setElementRawValue (const CodecIndex &codec_index, const void *value, size_t value_size) |
| Sets the current value of the given element by copying its data from the passed-in location. More...
|
|
void * | getElementAddress (const CodecIndex &codec_index) |
|
void | resetValues (bool zero_values=false) |
| Sets all elements to their default values, constant values defined in the data definition or zero if zero_values is set. More...
|
|
Element | getElement (const CodecIndex &index) const |
| Retrieves an element instance based on the codec index of that element. More...
|
|
Element | getElement (const std::string &full_element_name) const |
| Retrieves an element instance based on the full name of the element. More...
|
|
const Elements & | getElements () const |
| Retrieves the elements of the decoder to get element information and get values. More...
|
|
| Decoder () |
| Default constructor.
|
|
| Decoder (Decoder &&) |
| Move constructor.
|
|
Decoder & | operator= (Decoder &&) |
| Move assignment operator.
|
|
| Decoder (const Decoder &)=delete |
| No copy constructor.
|
|
Decoder & | operator= (const Decoder &)=delete |
| No copy assignment operator.
|
|
a_util::result::Result | isValid () const override |
|
Element | getElement (const CodecIndex &index) const |
| Retrieves an element instance based on the codec index of that element. More...
|
|
Element | getElement (const std::string &full_element_name) const |
| Retrieves an element instance based on the full name of the element. More...
|
|
const Elements & | getElements () const |
| Retrieves the elements of the decoder to get element information and get values. More...
|
|
size_t | getBufferSize () const |
| Gets the buffer size in bytes for the main structure. More...
|
|
size_t | getBufferSize (DataRepresentation representation) const |
| Gets the buffer size in bytes for the main structure. More...
|
|
Codec | makeCodecFor (void *data, size_t data_size, DataRepresentation representation) const |
| Create a new codec with the current dynamic structure layout for a new data buffer. More...
|
|
| StaticDecoder () |
| Default constructor.
|
|
| StaticDecoder (const StaticDecoder &)=delete |
| Noncopyable.
|
|
StaticDecoder & | operator= (const StaticDecoder &)=delete |
| Noncopyable.
|
|
| StaticDecoder (StaticDecoder &&) |
| Move constructor.
|
|
StaticDecoder & | operator= (StaticDecoder &&) |
| Move assignment operator.
|
|
Element | getElement (const CodecIndex &codec_index) const |
| Retrieves an element instance based on the codec index of that element. More...
|
|
Element | getElement (const std::string &full_element_name) const |
| Retrieves an element instance based on the full name of the element. More...
|
|
const Elements & | getElements () const |
| Retrieves the elements of the static decoder to get element information. More...
|
|
size_t | getElementChildCount (const CodecIndex &codec_index=CodecIndex()) const |
| Retrieves the amount of child elements for the given codec index. More...
|
|
std::string | getElementFullName (const CodecIndex &codec_index) const |
| Retrieves the full name of the element within its main structure. More...
|
|
std::string | getElementName (const CodecIndex &codec_index) const |
| Retrieves the name of the element within its structured element. More...
|
|
const std::string & | getElementBaseName (const CodecIndex &codec_index) const |
| Retrieves the base name of the element within its structured element. More...
|
|
template<typename T > |
T | getElementValue (const CodecIndex &codec_index) const |
| Returns the current value of the given element as a T if supported. More...
|
|
a_util::variant::Variant | getElementVariantValue (const CodecIndex &codec_index) const |
| Returns the current value of the given element as a variant. More...
|
|
void | getElementVariantValue (const CodecIndex &codec_index, a_util::variant::Variant &value) const |
| Returns the current value of the given element as a variant. More...
|
|
std::string | getElementStringValue (const CodecIndex &codec_index) const |
| Returns the current value of the given element as a string. More...
|
|
void | getElementRawValue (const CodecIndex &index, void *value, size_t value_size) const |
| Returns the current value of the given element as a variant. More...
|
|
const void * | getElementAddress (const CodecIndex &index) const |
|
size_t | getStaticBufferSize () const |
| Gets the static buffer size in bytes for the main structure. More...
|
|
size_t | getStaticBufferSize (DataRepresentation rep) const |
| Gets the static buffer size in bytes for the main structure. More...
|
|
DataRepresentation | getRepresentation () const |
| Returns the current data representation the decoder decodes from. More...
|
|
CodecIndex | resolve (size_t leaf_index) const |
|
size_t | getElementCount () const |
| is the leaf count More...
|
|
a_util::result::Result | getElement (size_t leaf_index, const ddl::StructElement *&legacy_struct_element) const |
| Returns the StructElement of the element with given leaf index. More...
|
|
void | resolve (CodecIndex &codec_index) const |
| The codec index will be resolved for fast access. More...
|
|
Decoder for dynamic structures defined by a DataDefinition definition.
Currently the amount of dynamic elements is determined during construction only (by the current values in the structure).
Definition at line 131 of file repo/src/libraries/mediadescription/include/ddl/codec_preview/codec.h.