Implementation for decoder access concept (ddl::codec::DecoderElementAccess).
More...
#include <sample_codec_access_types.h>
Inherited by adtf::mediadescription::osborn::sample_codec_access< AccessType >.
|
| static element_type | getElement (access_type &access, std::string_view full_element_name) |
| | Get a element object for the given full_element_name.
|
| |
| static element_type | getChildElement (const access_type &access, const index_type &parent_index, std::string_view element_path) |
| | Get a child element object for the given index.
|
| |
| static element_type | getElement (access_type &access, const index_type &index) |
| | Get a element object for the given index.
|
| |
| static size_t | getChildCount (access_type &access, const index_type &index) |
| | Get the Child Count.
|
| |
| static std::string | getFullName (access_type &access, const index_type &index) |
| | Get the full name of the element within its main structure. If the element is an array you get the elements array name respresentation: "main_element.element_name[0]" or main_element.element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "main_element.element_name".
|
| |
| static std::string | getName (access_type &access, const index_type &index) |
| | Get the name of the element within its level structure. If the element is an array you get the elements array name respresentation: "element_name[0]" or element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "element_name".
|
| |
| static std::string | getBaseName (access_type &access, const index_type &index) |
| | Get the base name of the element within its level structure. If the element is an array you get the elements base name respresentation : "element_name" for each array element. If the element is not an array you get the elements name respresentation is also the base name respresentation: "element_name".
|
| |
| template<typename T> |
| static T | getValue (access_type &access, const index_type &index) |
| | Get the value.
|
| |
| static a_util::variant::Variant | getVariantValue (access_type &access, const index_type &index) |
| | Get the value as variant.
|
| |
| static std::string | getStringValue (access_type &access, const index_type &index) |
| | Get the value as string.
|
| |
| static void | getRawValue (access_type &access, const index_type &index, void *value, size_t value_size) |
| | Get the value by copy to the given value buffer.
|
| |
| static const void * | getAddress (access_type &access, const index_type &index) |
| | Get the address.
|
| |
| static void | resolve (access_type &access, index_type &index) |
| | Resolves the given CodecIndex and set the layout information.
|
| |
template<typename AccessType>
class adtf::mediadescription::osborn::sample_decoder_access< AccessType >
Implementation for decoder access concept (ddl::codec::DecoderElementAccess).
- Template Parameters
-
| AccessType | The adtf access type to use. |
◆ getAddress()
template<typename AccessType>
Get the address.
- Parameters
-
| access | defined access type. |
| index | The codec index. |
- Returns
- const void*
◆ getBaseName()
template<typename AccessType>
Get the base name of the element within its level structure. If the element is an array you get the elements base name respresentation : "element_name" for each array element. If the element is not an array you get the elements name respresentation is also the base name respresentation: "element_name".
- Parameters
-
| access | defined access type. |
| index | The codec index |
- Returns
- std::string
◆ getChildCount()
template<typename AccessType>
Get the Child Count.
- Parameters
-
| access | defined access type. |
| index | The codec index |
- Returns
- size_t
◆ getChildElement()
template<typename AccessType>
Get a child element object for the given index.
- Parameters
-
| access | defined access type. |
| index | The codec index of the parent. |
| element_path | The child element path. |
- Returns
- element_type
◆ getElement() [1/2]
template<typename AccessType>
Get a element object for the given index.
- Parameters
-
| access | defined access type. |
| index | The codec index. |
- Returns
- element_type
◆ getElement() [2/2]
template<typename AccessType>
Get a element object for the given full_element_name.
- Parameters
-
| access | defined access type. |
| full_element_name | The full name of the element in point notation (i.e. "element1.child_element[4].element_value"). |
- Returns
- element_type
◆ getFullName()
template<typename AccessType>
Get the full name of the element within its main structure. If the element is an array you get the elements array name respresentation: "main_element.element_name[0]" or main_element.element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "main_element.element_name".
- Parameters
-
| access | defined access type. |
| index | The codec index |
- Returns
- std::string
◆ getName()
template<typename AccessType>
Get the name of the element within its level structure. If the element is an array you get the elements array name respresentation: "element_name[0]" or element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "element_name".
- Parameters
-
| access | defined access type. |
| index | The codec index |
- Returns
- std::string
◆ getRawValue()
template<typename AccessType>
Get the value by copy to the given value buffer.
- Parameters
-
| access | defined access type. |
| index | The codec index. |
| value | the value buffer pointer. |
| value_size | the size of the value buffer in bytes. |
◆ getStringValue()
template<typename AccessType>
Get the value as string.
- Parameters
-
| access | defined access type. |
| index | The codec index. |
- Returns
- value as string (the value is returned as element name in case of enum type)
◆ getValue()
template<typename AccessType>
template<typename T>
Get the value.
- Parameters
-
| access | defined access type. |
| index | The codec index. |
- Template Parameters
-
| T | The type of the value to return. |
- Returns
- value in type T (supported types: all int types, bool, float, double, std::string)
◆ getVariantValue()
template<typename AccessType>
Get the value as variant.
- Parameters
-
| access | defined access type. |
| index | The codec index. |
- Returns
- value as variant (supported types: all int types, bool, float, double, std::string)
◆ resolve()
template<typename AccessType>
Resolves the given CodecIndex and set the layout information.
- Parameters
-
| access | defined access type. |
| index | The codec index to resolve |
- Exceptions
-
The documentation for this class was generated from the following file: