ADTF
Loading...
Searching...
No Matches
samplestreamer_intf.h
Go to the documentation of this file.
1
7#pragma once
8#include "streamtype_intf.h"
9#include "samplestream_intf.h"
10#include "streamitem_intf.h"
11#include "sample_intf.h"
12
15
16namespace adtf
17{
18namespace streaming
19{
20namespace ant
21{
29 {
30
31 protected:
33 ~ISampleStreamer() = default;
34
35 public:
40 virtual tResult EndStreaming() = 0;
47
48 };
49
55 {
56
57 protected:
59 ~ISampleReader() = default;
60
61 public:
67 virtual tResult BeginStreaming(ISampleStream& pStream) = 0;
68
69 };
70
76 {
77
78 protected:
80 ~ISampleWriter() = default;
81
82 public:
88 virtual tResult BeginStreaming(ISampleStream& pStream) = 0;
89
90 };
91
96 {
97 public:
103 virtual tResult Push(const IStreamItem& oStreamItem, tTimeStamp tmTime) = 0;
104
108 virtual void Clear() = 0;
109
115 virtual tResult Pop(IStreamItem& oStreamItem) = 0;
116
117 };
118
119} //namespace ant
120
121namespace flash
122{
123
124class IStreamerPin;
125
130{
131
132 protected:
133 virtual ~ISampleStreamer() = default;
134
135 public:
140 virtual void SetName(const char* strName) = 0;
141
147 virtual tResult GetName(base::ant::IString&& strName) = 0;
148
155
162
169
174 virtual tResult EndStreaming() = 0;
175
182};
183
229
234{
235 public:
242
249
254 virtual tResult Flush() = 0;
255
262 virtual tResult SetStreamError(tResult oError) = 0;
263
271};
272
273}
274
276using flash::ISampleStreamer;
278using flash::ISampleReader;
280using flash::ISampleWriter;
282using ant::ISampleReaderQueue;
283
284} //namespace streaming
285} //namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition string_intf.h:29
Interface to create a sample reader buffer.
Definition samplestreamer_intf.h:96
virtual tResult Pop(IStreamItem &oStreamItem)=0
Returns the next sample from the queue.
virtual tResult Push(const IStreamItem &oStreamItem, tTimeStamp tmTime)=0
Push a new value to the internal sample queue.
Definition samplestreamer_intf.h:55
~ISampleReader()=default
not destructable
virtual tResult BeginStreaming(ISampleStream &pStream)=0
Definition samplestream_intf.h:30
Local Sample Streamer Interface. This interface is only used to create a cInPin and cOutPin in a gene...
Definition samplestreamer_intf.h:29
~ISampleStreamer()=default
not destructable
virtual tResult GetType(ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const =0
Definition samplestreamer_intf.h:76
virtual tResult BeginStreaming(ISampleStream &pStream)=0
~ISampleWriter()=default
not destructable
Definition streamitem_intf.h:25
Definition samplestreamer_intf.h:188
virtual tResult GetLastSample(ucom::ant::iobject_ptr< const ant::ISample > &pSample)=0
virtual tResult SetStreamError(tResult oError)=0
virtual tResult ReadAllAvailableItems()=0
virtual tResult GetLastType(ucom::ant::iobject_ptr< const IStreamType > &pType)=0
virtual tResult GetNextSample(ucom::ant::iobject_ptr< const ant::ISample > &pSample)=0
Definition samplestreamer_intf.h:130
virtual tResult BeginStreaming(ant::ISampleStream &pStream)=0
virtual void SetName(const char *strName)=0
virtual tResult SetType(const ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType)=0
virtual tResult SetStreamerPin(const ucom::ant::iobject_ptr< flash::IStreamerPin > &pStreamerPin)=0
virtual tResult GetType(ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) const =0
virtual tResult GetName(base::ant::IString &&strName)=0
Definition samplestreamer_intf.h:234
virtual tResult ChangeType(const ucom::ant::iobject_ptr< const ant::IStreamType > &pType)=0
virtual tResult SetStreamError(tResult oError)=0
virtual tResult Write(const ucom::ant::iobject_ptr< const ant::ISample > &pSample)=0
virtual tResult ManualTrigger(base::flash::tNanoSeconds tmActivationTime=base::flash::tNanoSeconds{-1})=0
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition bindingproxyoutport.h:16
Namespace for all functionality of the ADTF Streaming SDK provided since v3.5.
Definition filterbase.h:255
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
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