11#ifdef USE_ADTF_MEDIA_DESCRIPTION_LEGACY
12 #ifndef NO_ADTF_MEDIA_DESCRIPTION_LEGACY
30template<
typename ReaderImplementation = streaming::flash::cDynamicSampleReader>
39 ReaderImplementation::SetAcceptTypeCallback(
45 if (m_fnAcceptCallback)
47 RETURN_IF_FAILED(m_fnAcceptCallback(pStreamType));
55 RETURN_IF_FAILED(ReaderImplementation::SetType(pStreamType));
58 if (pStreamType.
Get())
75 m_fnAcceptCallback = fnAcceptTypeCallback;
100 auto oResult = ReaderImplementation::GetNextSample(pSample);
103 if (oResult == ERR_EMPTY)
138 auto oResult = ReaderImplementation::GetLastSample(pSample);
141 if (oResult == ERR_EMPTY)
212template<
typename WriterImplementation = streaming::flash::cSampleWriter>
232 RETURN_IF_FAILED(WriterImplementation::SetType(pStreamType));
233 if (pStreamType.
Get())
247 RETURN_IF_FAILED(WriterImplementation::ChangeType(pStreamType));
253 using WriterImplementation::Write;
269using osborn::decoding_sample_reader;
270using osborn::encoding_sample_writer;
#define IS_FAILED(s)
Check if result is failed.
Definition result.h:20
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
Definition result.h:29
#define THROW_IF_FAILED(s)
throws if the expression returns a failed tResult
Definition result.h:88
virtual T * Get() const =0
Get raw pointer to shared object.
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Definition object_ptr.h:384
tResult alloc_sample(ucom::ant::iobject_ptr< ucom::ant::IObject > &pSample)
base::flash::tNanoSeconds get_sample_time(const ucom::ant::iobject_ptr< const ant::ISample > &pSample)
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
A timestamp with nanosecond precision.
Definition chrono.h:23