ADTF
Loading...
Searching...
No Matches
media_description_type.h
Go to the documentation of this file.
1
7#pragma once
8#include "sample_codec.h"
12
13
14#ifdef USE_ADTF_MEDIA_DESCRIPTION_LEGACY
15 #ifndef NO_ADTF_MEDIA_DESCRIPTION_LEGACY
17 #endif
18#endif
19
21#include <utility>
22
23namespace adtf
24{
25namespace mediadescription
26{
27namespace osborn
28{
38ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*, ddl::tDataRepresentation) instead.")
39tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription, ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType, ddl::tDataRepresentation eRep = ddl::tDataRepresentation::Deserialized);
40
50tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription, ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType, cSampleCodecFactory& oFactory, ddl::tDataRepresentation eRep = ddl::tDataRepresentation::Deserialized);
51
62ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, ddl::tDataRepresentation) instead.")
64 ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
65 ddl::tDataRepresentation eRep = ddl::tDataRepresentation::Deserialized);
66
78ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, ddl::dd::DataDefinition, ddl::tDataRepresentation) instead.")
80 ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
81 cSampleCodecFactory& oFactory,
82 ddl::tDataRepresentation eRep = ddl::tDataRepresentation::Deserialized);
89tResult add_stream_meta_type(const adtf::streaming::IStreamMetaType& oStreamTypeDef,
90 ddl::DataDescription& oDescription);
91
93
94tResult get_stream_description_xml(const char* strName,
95 const adtf::streaming::IStreamType& oStreamType,
96 adtf::base::IString&& strDDLStream);
97
98tResult create_stream_type_from_xml(const char* strXML,
99 adtf::base::IString&& strName,
100 ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType);
101
102tResult get_stream_description_xml(const std::vector<std::pair<adtf_util::cString,
103 const adtf::streaming::IStreamType*>> oStreams,
104 adtf::base::IString&& strDDLStreams);
105
107
116ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const ddl::DDStructure&) instead.")
117ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const ddl::DDStructure& type_definition);
118
127ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*) instead.")
128ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription);
129
136ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const std::pair<std::string, std::string>& oTypeDescription);
137
144template<typename Struct>
145ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<T>>() instead.")
147{
148 static_assert(has_description_v<Struct>,
149 "create_adtf_default_stream_type<T>() can only be used if ddl description was generated with adtf_mdgen! "
150 "If you have another source for the description, use create_adtf_default_stream_type(...).");
151
154}
155
165ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, ddl::tDataRepresentation) instead.")
166ucom::ant::object_ptr<streaming::ant::IStreamType>
167 stream_type_from_service(const char* strStructName,
168 ddl::tDataRepresentation eRep = ddl::tDataRepresentation::Deserialized);
169
170} //namespace osborn
171
174
176using osborn::get_stream_description_xml;
177using osborn::create_stream_type_from_xml;
179
180} // namespace mediadescription
181} // namespace adtf
#define ADTF3_DEPRECATED(_depr_message_)
Definition adtf_base_deprecated.h:27
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Namespace for the ADTF Base SDK.
Definition adtf_base_type_traits.h:13
Namespace for all functionality of the ADTF Mediadescription SDK provided since v3....
Definition media_description_type_legacy.h:31
Namespace for all functionality of the ADTF Mediadescription SDK provided since v3....
Definition codec_sample_streamer.h:24
tResult add_stream_meta_type(const adtf::streaming::IStreamMetaType &oStreamTypeDef, ddl::DataDescription &oDescription)
tResult create_adtf_default_stream_type_from_service(const char *strStructName, ucom::iobject_ptr< adtf::streaming::IStreamType > &pStreamType, ddl::tDataRepresentation eRep=ddl::tDataRepresentation::Deserialized)
ucom::ant::object_ptr< streaming::ant::IStreamType > stream_type_from_service(const char *strStructName, ddl::tDataRepresentation eRep=ddl::tDataRepresentation::Deserialized)
constexpr bool has_description_v
Definition md_sample_data.h:61
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)
ucom::ant::object_ptr< streaming::ant::IStreamType > create_adtf_default_stream_type()
Create a stream type from a generated media description.
Definition media_description_type.h:146
Namespace for the ADTF Mediadescription SDK.
Definition codec_sample_streamer.h:22
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
Namespace for the ADTF uCOM SDK.
Definition adtf_system.h:324
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
definition of the ddl namespace
Definition codec.h:21
Definition md_sample_data.h:54