|
ADTF
|
Namespace for the ADTF Mediadescription SDK. More...
Namespaces | |
| namespace | adtf_ddl_legacy |
| Namespace for collect all classes valid before DDL Library switch from the internal to the open source variant. | |
| namespace | ant |
| Namespace for all functionality of the ADTF Mediadescription SDK provided since v3.0. | |
| namespace | flash |
| Namespace for all functionality of the ADTF Mediadescription SDK provided since v3.5. | |
| namespace | osborn |
| Namespace for all functionality of the ADTF Mediadescription SDK provided since v3.14. | |
| namespace | quiet |
| Namespace for all functionality of the ADTF Mediadescription SDK provided since v3.16. | |
Classes | |
| class | cDDLPrinter |
| class | cDumper |
| class | cSampleCodec |
| class | cSampleCodecFactory |
| class | cSampleDecoder |
| class | cStaticSampleCodec |
| class | cStaticSampleDecoder |
| class | cType |
| class | decoding_sample_reader |
| struct | description |
| class | encoding_sample_writer |
| class | enumeration |
| class | md_array |
| class | md_sample_data |
| class | md_sample_data_factory |
| class | md_struct_array |
| struct | stream_meta_type_default |
| Use this Stream Meta Type if your sample data are structured and the memory layout can be described via DDL Specification. More... | |
| class | stream_type_default |
| Generator template to create an instance of the stream_meta_type_default. More... | |
| class | stream_type_default_array |
| Generator template to create an instance of the stream_meta_type_default. More... | |
| class | structure |
Typedefs | |
| using | tCodecLeafIndex = osborn::tCodecLeafIndex |
| using | tCodecIndex = osborn::tCodecIndex |
| using | tLeafCodecIndex |
| redefitnion for a ddl::codec::LeafCodecIndex | |
Functions | |
| template<typename T> | |
| std::vector< tLeafCodecIndex > | get_leaf_codec_indices (const T &oDecoderOrFactory, ddl::DataRepresentation rep) |
| Get the leaf indices object. | |
| template<typename READER> | |
| tResult | make_sample_reader (READER &oReader, const char *strNameOfReader, const char *strDDLStructType) |
| template<typename WRITER> | |
| tResult | make_sample_writer (WRITER &oWriter, const char *strNameOfWriter, const char *strDDLStructType) |
| tResult | create_adtf_default_stream_type (const char *strStructName, const char *strMediaDescription, ucom::iobject_ptr< adtf::streaming::IStreamType > &pStreamType, ddl::tDataRepresentation eRep=ddl::tDataRepresentation::Deserialized) |
| tResult | create_adtf_default_stream_type_from_service (const char *strStructName, ucom::iobject_ptr< adtf::streaming::IStreamType > &pStreamType, ddl::tDataRepresentation eRep=ddl::tDataRepresentation::Deserialized) |
| tResult | add_stream_meta_type (const adtf::streaming::IStreamMetaType &oStreamTypeDef, ddl::DataDescription &oDescription) |
| ucom::ant::object_ptr< streaming::ant::IStreamType > | stream_type_from_service (const char *strStructName, ddl::tDataRepresentation eRep=ddl::tDataRepresentation::Deserialized) |
| template<typename ElementsType> | |
| void | for_each_leaf_element (ElementsType &oElements, const element_callback< ElementsType > &fnCallback) |
| Iterates ALL leaf elements within ALL array elements. | |
| template<typename ElementsType> | |
| void | for_each_element (ElementsType &oElements, const element_callback< ElementsType > &fnCallback) |
| Iterates elements without array elements (also structures). | |
| template<typename T> | |
| adtf_util::cVariant | get_value_as_variant (const T &oDecoder, const tCodecIndex &oCodecIndex) |
| Get value as variant. This is for your convenience! | |
| template<typename T> | |
| std::vector< tCodecIndex > | get_codec_indices (const T &oDecoderOrFactory) |
| Get the codec indices object. | |
| template<typename ElementsType> | |
| void | for_each_element_infix (ElementsType &oElements, const element_callback< ElementsType > &fnLeafCallback, const element_control_callback< ElementsType > &fnEnterMemberCallback, const element_callback< ElementsType > &fnLeaveMemberCallback, const array_element_control_callback< ElementsType > &fnEnterArrayMemberCallback, const array_element_callback< ElementsType > &fnLeaveArrayMemberCallback) |
| Iterates elements and array elements in a callback-controlled fashion. | |
| template<typename ElementsType> | |
| void | for_each_element_infix (ElementsType &oElements, const ddl::dd::datamodel::StructType::Elements &oModelElements, const ddl::dd::datamodel::DataDefinition &oDataDefinition, const element_callback< ElementsType > &fnLeafCallback, const element_control_callback< ElementsType > &fnEnterMemberCallback, const element_callback< ElementsType > &fnLeaveMemberCallback, const array_element_control_callback< ElementsType > &fnEnterArrayMemberCallback, const array_element_callback< ElementsType > &fnLeaveArrayMemberCallback) |
| Iterates elements and array elements in a callback-controlled fashion. This version also provides access to the corresponding elements in the data model. This can be used to access min/max and/or the element description. | |
| void | set_stream_type_media_description (streaming::ant::IStreamType &oStreamType, const ddl::DDStructure &type_definition) |
| tResult | set_stream_type_media_description_from_service (adtf::streaming::IStreamType &oStreamType, const char *strStructName, ddl::tDataRepresentation eRep=ddl::tDataRepresentation::Deserialized) |
| tResult | set_media_description_properties (base::ant::IProperties &oProperties, const char *strStructName, const char *strMediaDescription, ddl::tDataRepresentation eRep=ddl::tDataRepresentation::Deserialized) |
| tResult | get_codec_factory_from_stream_type (const adtf::streaming::IStreamType &oStreamType, cSampleCodecFactory &oFactory) |
| std::tuple< std::string, std::string, ddl::tDataRepresentation > | get_media_description_from_stream_type (const adtf::streaming::IStreamType &oStreamType) |
Variables | |
| template<typename T> | |
| constexpr bool | has_description_v |
Namespace for the ADTF Mediadescription SDK.
Within this namespace all interfaces, classes and functions always refer to their last revised implementation (version namespace). When using types defined within this namespace it is guaranteed to always use the latest version of the types.
The ADTF Mediadescription Package brings the Data Definiton Language (DDL) and Data Definiton Language (DDL) from Dev Essential into ADTF's scope.
To use ADTF in a common generic way we are providing tools and utilities for convenience access and generation to handle the DDL.
With this language you are able to describe the stuctured content of the data sent via by sample streams from one filter to another (as well as using streaming services).
The package will provide a default stream meta type and many functionality around that support utilities writing, reading and describing memory content (sample content) with the help of the DDL.
Fast Access Index Type for the coders. The Codec Index ist a vector of element indexes {{[element_index=0][array_pos]},{[element_sub_index][array_pos]}} pairs to access the elements of one level in a fast way. You can access leafs and elements at each level.
Leaf Index Type for the coders (is between 0 and getElementCount()). This leaf index includes all leafs (known ddl::dd::PrefefinedDataTypes and UserTypes). If the leaf is an array the i.e. of 5 x uint8_t Value there are 5 Leafs.
| tResult adtf::mediadescription::osborn::add_stream_meta_type | ( | const adtf::streaming::IStreamMetaType & | oStreamTypeDef, |
| ddl::DataDescription & | oDescription ) |
Add the stream meta type to an OODDL description.
| [in] | oStreamTypeDef | The stream meta type. |
| [out] | oDescription | The description that the meta type should be added to. |
| tResult adtf::mediadescription::osborn::create_adtf_default_stream_type | ( | const char * | strStructName, |
| const char * | strMediaDescription, | ||
| ucom::iobject_ptr< adtf::streaming::IStreamType > & | pStreamType, | ||
| ddl::tDataRepresentation | eRep = ddl::tDataRepresentation::Deserialized ) |
Create an instance of an ADTF default stream type.
| [in] | strStructName | The name of the media description struct. |
| [in] | strMediaDescription | The media description. |
| [out] | pStreamType | The new instance. |
| [in] | eRep | Representation of the data (serialized or deserialized) |
| tResult adtf::mediadescription::osborn::create_adtf_default_stream_type_from_service | ( | const char * | strStructName, |
| ucom::iobject_ptr< adtf::streaming::IStreamType > & | pStreamType, | ||
| ddl::tDataRepresentation | eRep = ddl::tDataRepresentation::Deserialized ) |
Create an instance of an ADTF default stream type. Retrieves the media description from the media description service
| [in] | strStructName | The name of the media description struct. |
| [out] | pStreamType | The new instance. |
| [in] | eRep | Representation of the data (serialized or deserialized) |
| void adtf::mediadescription::osborn::for_each_element | ( | ElementsType & | oElements, |
| const element_callback< ElementsType > & | fnCallback ) |
Iterates elements without array elements (also structures).
Usage:
| ElementsType | The type of elements. |
| oElements | The elements. |
| fnCallback | The function to call per leaf element. |
| void adtf::mediadescription::quiet::for_each_element_infix | ( | ElementsType & | oElements, |
| const ddl::dd::datamodel::StructType::Elements & | oModelElements, | ||
| const ddl::dd::datamodel::DataDefinition & | oDataDefinition, | ||
| const element_callback< ElementsType > & | fnLeafCallback, | ||
| const element_control_callback< ElementsType > & | fnEnterMemberCallback, | ||
| const element_callback< ElementsType > & | fnLeaveMemberCallback, | ||
| const array_element_control_callback< ElementsType > & | fnEnterArrayMemberCallback, | ||
| const array_element_callback< ElementsType > & | fnLeaveArrayMemberCallback ) |
Iterates elements and array elements in a callback-controlled fashion. This version also provides access to the corresponding elements in the data model. This can be used to access min/max and/or the element description.
| ElementsType | The type of elements. |
| oElements | The elements. |
| oModelElements | The corresponding elements from the data model. |
| oDataDefinition | The data definition that contains the data model. |
| fnLeafCallback | The function to call per leaf element. |
| fnEnterMemberCallback | The function to call per named member (leaf and intermediate). Controlls traversal of this member. |
| fnLeaveMemberCallback | The function to call when leaving a member. |
| fnEnterArrayMemberCallback | The function to call per array element. Controlls traversal of this element. |
| fnLeaveArrayMemberCallback | The function to call when leaving an array element. |
| void adtf::mediadescription::osborn::for_each_element_infix | ( | ElementsType & | oElements, |
| const element_callback< ElementsType > & | fnLeafCallback, | ||
| const element_control_callback< ElementsType > & | fnEnterMemberCallback, | ||
| const element_callback< ElementsType > & | fnLeaveMemberCallback, | ||
| const array_element_control_callback< ElementsType > & | fnEnterArrayMemberCallback, | ||
| const array_element_callback< ElementsType > & | fnLeaveArrayMemberCallback ) |
Iterates elements and array elements in a callback-controlled fashion.
| ElementsType | The type of elements. |
| oElements | The elements. |
| fnLeafCallback | The function to call per leaf element. |
| fnEnterMemberCallback | The function to call per named member (leaf and intermediate). Controlls traversal of this member. |
| fnLeaveMemberCallback | The function to call when leaving a member. |
| fnEnterArrayMemberCallback | The function to call per array element. Controlls traversal of this element. |
| fnLeaveArrayMemberCallback | The function to call when leaving an array element. |
| void adtf::mediadescription::osborn::for_each_leaf_element | ( | ElementsType & | oElements, |
| const element_callback< ElementsType > & | fnCallback ) |
Iterates ALL leaf elements within ALL array elements.
Usage:
| ElementsType | The type of elements. |
| oElements | The elements |
| fnCallback | The function to call per leaf element |
| tResult adtf::mediadescription::osborn::get_codec_factory_from_stream_type | ( | const adtf::streaming::IStreamType & | oStreamType, |
| cSampleCodecFactory & | oFactory ) |
Create a sample codec factory from a given stream type.
| [in] | oStreamType | The stream type. |
| [out] | oFactory | The new factory. |
| std::vector< tCodecIndex > adtf::mediadescription::osborn::get_codec_indices | ( | const T & | oDecoderOrFactory | ) |
Get the codec indices object.
| T | The type of the decoder or factory to retrieve all indices from. |
| oDecoderOrFactory | The decoder or factory to retrieve all indices from. |
| std::vector< tLeafCodecIndex > adtf::mediadescription::penguin::get_leaf_codec_indices | ( | const T & | oDecoderOrFactory, |
| ddl::DataRepresentation | rep ) |
Get the leaf indices object.
| T | The type of the decoder or factory to retrieve all leaf indices from. |
| oDecoderOrFactory | The decoder or factory to retrieve all indices from. |
| rep | Datarepresentation of the leaf layout to extract from codec index |
| std::tuple< std::string, std::string, ddl::tDataRepresentation > adtf::mediadescription::osborn::get_media_description_from_stream_type | ( | const adtf::streaming::IStreamType & | oStreamType | ) |
Extract the media description information from stream type.
| [in] | oStreamType | The stream type containing the media description information. |
| tResult | in case the description could not be retrieved. |
| adtf_util::cVariant adtf::mediadescription::osborn::get_value_as_variant | ( | const T & | oDecoder, |
| const tCodecIndex & | oCodecIndex ) |
Get value as variant. This is for your convenience!
| T | The decoder type |
| oDecoder | The decoder to retrieve the value from |
| oCodecIndex | the codec index for the value |
|
inline |
Helper template to setup a sample reader with a stream type set from the (deprecated) media description service.
| [in,out] | oReader | The reader that should be setup. |
| [in] | strNameOfReader | The name of the reader, which will be used to create an input pin. |
| [in] | strDDLStructType | The name of the struct that the description should be retrieved from the (deprecated) media description service. |
|
inline |
Helper template to setup a sample writer with a stream type set from the (deprecated) media description service.
| [in,out] | oWriter | The writer that should be setup. |
| [in] | strNameOfWriter | The name of the writer, which will be used to create an output pin. |
| [in] | strDDLStructType | The name of the struct that the description should be retrieved from the (deprecated) media description service. |
| tResult adtf::mediadescription::osborn::set_media_description_properties | ( | base::ant::IProperties & | oProperties, |
| const char * | strStructName, | ||
| const char * | strMediaDescription, | ||
| ddl::tDataRepresentation | eRep = ddl::tDataRepresentation::Deserialized ) |
Adds the media description properties to a properties object.
| [out] | oProperties | The properties object where the properties should be added/set to. |
| [in] | strStructName | The name of the struct. |
| [in] | strMediaDescription | The media description containing the struct definition. |
| [in] | eRep | The data representation of the struct that samples contain. |
| void adtf::mediadescription::osborn::set_stream_type_media_description | ( | streaming::ant::IStreamType & | oStreamType, |
| const ddl::DDStructure & | type_definition ) |
Adds the media description properties to a stream type.
| [out] | oStreamType | The stream type where the properties should be added/set to. |
| [in] | type_definition | A structure type definition. |
| tResult | in case of error. |
| tResult adtf::mediadescription::osborn::set_stream_type_media_description_from_service | ( | adtf::streaming::IStreamType & | oStreamType, |
| const char * | strStructName, | ||
| ddl::tDataRepresentation | eRep = ddl::tDataRepresentation::Deserialized ) |
Set the media description properties of a stream type. Retrieves the media description from the (deprecated) media description service.
| [out] | oStreamType | The stream type. |
| [in] | strStructName | The name of the media description struct. |
| [in] | eRep | Representation of the data (serialized or deserialized) |
| ucom::ant::object_ptr< streaming::ant::IStreamType > adtf::mediadescription::osborn::stream_type_from_service | ( | const char * | strStructName, |
| ddl::tDataRepresentation | eRep = ddl::tDataRepresentation::Deserialized ) |
Get a stream type containing the media description of a struct from the (deprecated) media description service.
| [in] | strStructName | The name of the struct. |
| [in] | eRep | Representation of the data (serialized or deserialized) |
| tResult | in case the description could not be retrieved. |
|
constexpr |
Type trait to check if a description<T> specialization exists.
| T | The type to check for a description specialization. |