ADTF
Loading...
Searching...
No Matches
media_description_type_legacy.h
Go to the documentation of this file.
1
7#pragma once
11
16
17#ifdef ADTF3_NO_DEPRECATED_WARNING
18 #ifndef PKG_ADTF_DDL_NO_DEPRECATED_WARNING
19 #define PKG_ADTF_DDL_NO_DEPRECATED_WARNING
20 #endif
21#endif
22#include <pkg_ddl.h>
23#include <utility>
25
26namespace adtf
27{
28namespace mediadescription
29{
30namespace ant
31{
32
42ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*, adtf_ddl::tDataRepresentation) instead.")
43tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription,
44 ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
45 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
46
56tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription,
57 ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
58 cSampleCodecFactory& oFactory,
59 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
60
71ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, adtf_ddl::tDataRepresentation) instead.")
73 ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
74 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
75
87 ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
88 cSampleCodecFactory& oFactory,
89 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
90
100 const char* strStructName,
101 const char* strMediaDescription,
102 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
103
113ADTF3_DEPRECATED("The ADTF Media Description Service is deprecated.")
115 const char* strStructName,
116 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
117
118
126 cSampleCodecFactory& oFactory);
127
134tResult add_stream_meta_type(const adtf::streaming::IStreamMetaType& oStreamTypeDef,
135 adtf_ddl::cDDLDescription& oDescription);
136
144template <typename WRITER>
145inline tResult make_sample_writer(WRITER& oWriter,
146 const char* strNameOfWriter,
147 const char* strDDLStructType)
148{
151 return adtf::streaming::ant::make_sample_writer(oWriter, strNameOfWriter, pType);
152}
153
161template <typename READER>
162inline tResult make_sample_reader(READER& oReader,
163 const char* strNameOfReader,
164 const char* strDDLStructType)
165{
168 return adtf::streaming::ant::make_sample_reader(oReader, strNameOfReader, pType);
169}
170
171
173
174tResult get_stream_description_xml(const char* strName,
175 const adtf::streaming::IStreamType& oStreamType,
176 adtf::base::IString&& strDDLStream);
177
178tResult create_stream_type_from_xml(const char* strXML,
179 adtf::base::IString&& strName,
181
182tResult get_stream_description_xml(const std::vector<std::pair<adtf_util::cString,
183 const adtf::streaming::IStreamType*>> oStreams,
184 adtf::base::IString&& strDDLStreams);
185
186class cXercesInitializer
187{
188 public:
189 cXercesInitializer() = default;
190 ~cXercesInitializer() = default;
191};
192
194
195} // namespace ant
196
197namespace flash
198{
199
208template <typename WRITER>
209ADTF3_DEPRECATED("The ADTF Media Description Service is deprecated.")
210inline tResult make_sample_writer(WRITER& oWriter,
211 const char* strNameOfWriter,
212 const char* strDDLStructType)
213{
216 return streaming::flash::make_sample_writer(oWriter, strNameOfWriter, pType);
217}
218
227template <typename READER>
228ADTF3_DEPRECATED("The ADTF Media Description Service is deprecated.")
229inline tResult make_sample_reader(READER& oReader,
230 const char* strNameOfReader,
231 const char* strDDLStructType)
232{
235 return streaming::flash::make_sample_reader(oReader, strNameOfReader, pType);
236}
237
246
255ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*) instead.")
256ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription);
257
264template <typename Struct>
265ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<T>>() instead.")
272
282 const char* strStructName,
283 const char* strMediaDescription,
284 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
285
294 const cStructureType& type_definition,
295 adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
296
304
305} // namespace flash
306
307namespace hollow
308{
309
316std::tuple<std::string, std::string, adtf_ddl::tDataRepresentation> get_media_description_from_stream_type(const adtf::streaming::IStreamType& oStreamType);
317
326ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, ddl::tDataRepresentation) instead.")
327ucom::ant::object_ptr<streaming::ant::IStreamType> stream_type_from_service(const char* strStructName, adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
328
329} // namespace hollow
330
331} // namespace mediadescription
332
333} // 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
#define RETURN_IF_THROWS(s)
if the expression throws an exception, returns a tResult containing the exception information.
Definition result.h:123
Definition property_intf.h:213
Definition string_intf.h:29
Definition sample_codec_legacy.h:175
Definition type_reflection_legacy.h:289
Generator template to create an instance of the stream_meta_type_default.
Definition stream_type_default.h:158
Defines access methods for the interface of a Stream Type.
Definition streamtype_intf.h:96
Definition object_ptr.h:384
ucom::ant::object_ptr< streaming::ant::IStreamType > stream_type_from_service(const char *strStructName, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
std::tuple< std::string, std::string, adtf_ddl::tDataRepresentation > get_media_description_from_stream_type(const adtf::streaming::IStreamType &oStreamType)
Namespace for all functionality of the ADTF Mediadescription SDK provided since v3....
Definition media_description_type_legacy.h:31
tResult get_codec_factory_from_stream_type(const adtf::streaming::IStreamType &oStreamType, cSampleCodecFactory &oFactory)
tResult make_sample_writer(WRITER &oWriter, const char *strNameOfWriter, const char *strDDLStructType)
Definition media_description_type_legacy.h:145
tResult create_adtf_default_stream_type(const char *strStructName, const char *strMediaDescription, ucom::iobject_ptr< adtf::streaming::IStreamType > &pStreamType, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
tResult add_stream_meta_type(const adtf::streaming::IStreamMetaType &oStreamTypeDef, adtf_ddl::cDDLDescription &oDescription)
tResult set_stream_type_media_description(adtf::streaming::IStreamType &oStreamType, const char *strStructName, const char *strMediaDescription, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
tResult create_adtf_default_stream_type_from_service(const char *strStructName, ucom::iobject_ptr< adtf::streaming::IStreamType > &pStreamType, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
tResult make_sample_reader(READER &oReader, const char *strNameOfReader, const char *strDDLStructType)
Definition media_description_type_legacy.h:162
tResult set_stream_type_media_description_from_service(adtf::streaming::IStreamType &oStreamType, const char *strStructName, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
ucom::ant::object_ptr< streaming::ant::IStreamType > create_adtf_default_stream_type(const cStructureType &type_definition)
Create a stream type containing the media description of a given structure type definition.
void set_stream_type_media_description(streaming::ant::IStreamType &oStreamType, const cStructureType &type_definition)
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_legacy.h:266
tResult make_sample_reader(READER &oReader, const char *strNameOfReader, const char *strDDLStructType)
Definition media_description_type_legacy.h:229
tResult make_sample_writer(WRITER &oWriter, const char *strNameOfWriter, const char *strDDLStructType)
Definition media_description_type_legacy.h:210
tResult set_media_description_properties(base::ant::IProperties &oProperties, const char *strStructName, const char *strMediaDescription, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
Namespace for the ADTF Mediadescription SDK.
Definition codec_sample_streamer.h:22
tResult make_sample_writer(cSampleWriter &oWriter, const char *strNameOfWriter, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)
Definition samplewriter.h:344
tResult make_sample_reader(cSampleReader &oReader, const char *strNameOfReader, const ucom::iobject_ptr< const IStreamType > &pStreamType)
Definition samplereader.h:910
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
Namespace for the ADTF uCOM SDK.
Definition adtf_system.h:324
ant::iobject_ptr< T > iobject_ptr
Alias always bringing the latest version of ant::iobject_ptr into scope.
Definition object_ptr_intf.h:437
object_ptr< Implementation > make_object_ptr(Args &&... args)
Alias always bringing the latest version of ant::make_object_ptr() into scope.
Definition object_ptr_utilities.h:129
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
Definition md_sample_data_legacy.h:36