16 namespace mediadescription
29 template <
typename ReaderImplementation = streaming::flash::cDynamicSampleReader>
31 public ReaderImplementation,
45 if (m_fnAcceptCallback)
58 if (pStreamType.Get())
72 m_fnAcceptCallback = fnAcceptTypeCallback;
97 auto oResult = ReaderImplementation::GetNextSample(pSample);
100 if (oResult == ERR_EMPTY)
135 auto oResult = ReaderImplementation::GetLastSample(pSample);
138 if (oResult == ERR_EMPTY)
199 template <
typename WriterImplementation = streaming::flash::cSampleWriter>
201 public WriterImplementation,
222 if (pStreamType.Get())
242 using WriterImplementation::Write;
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.
virtual tResult IsValid() const override
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