The ISampleInStream interface is return by the ISampleStream::Open call which allows to read from a corresponding reader of the opened ISampleStream instance.
More...
The ISampleInStream interface is return by the ISampleStream::Open call which allows to read from a corresponding reader of the opened ISampleStream instance.
- See also
- ISampleStream, Sample Stream
Definition at line 26 of file sampleinstream_intf.h.
◆ GetMode()
◆ Read()
This will read one Queue Item from the readers queue.
- Warning
- If working in ISampleStreamAccess::tMode::PushRead you are recommended to read until the Read return with ERR_EMPTY. Otherwise the queue items are lost !
- Parameters
-
oItem | [out] Item interface to set the event to. See IStreamItem for default implementation provided. |
tmTimeOut | [in] if tmTimeOut == 0 ... non blocking call, it will return immediatelly. if tmTimeOut < 0 ... blocking call, wait infinite time. if tmTimeOut > 0 ... blocking call, wait specified tmTimeOut time (in microsec). |
- Returns
- Standard Result Code
- Return values
-
ERR_NOERROR | A item was read into oItem |
ERR_EMPTY | Queue is empty. |
ERR_TIMEOUT | No items in queue in the specified tmTimeOut . (only at blocking call)! |
Referenced by adtf::streaming::ant::operator>>().
◆ SetStreamError()
Forward an error to the corresponding stream.
- Parameters
-
oError | [in] The error passed to the SampleStream. |
- Returns
- Standard Result Code.