11 #ifdef USE_ADTF_MEDIA_DESCRIPTION_LEGACY
12 #ifndef NO_ADTF_MEDIA_DESCRIPTION_LEGACY
21 namespace mediadescription
32 template<
typename ReaderImplementation = streaming::flash::cDynamicSampleReader>
34 public ReaderImplementation,
47 if (m_fnAcceptCallback)
60 if (pStreamType.Get())
74 m_fnAcceptCallback = fnAcceptTypeCallback;
99 auto oResult = ReaderImplementation::GetNextSample(pSample);
102 if (oResult == ERR_EMPTY)
137 auto oResult = ReaderImplementation::GetLastSample(pSample);
140 if (oResult == ERR_EMPTY)
201 template<
typename WriterImplementation = streaming::flash::cSampleWriter>
203 public WriterImplementation,
224 if (pStreamType.Get())
244 using WriterImplementation::Write;
260 using osborn::decoding_sample_reader;
261 using osborn::encoding_sample_writer;
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
#define IS_FAILED(s)
Check if result is failed.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
Copyright © Audi Electronics Venture GmbH.
tResult alloc_sample(ucom::ant::iobject_ptr< ucom::ant::IObject > &pSampleObject, const char *strSampleCID)
Helper Function to get a Sample Instance through the adtf::ucom::ant::IRuntime.
base::flash::tNanoSeconds get_sample_time(const ucom::ant::iobject_ptr< const ant::ISample > &pSample)
Returns the sample time stamp with nanosecond precision.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
A timestamp with nanosecond precision.
#define THROW_IF_FAILED(s)
throws if the expression returns a failed tResult