| AVBlocks for C++
    3.1
    Audio and Video Software Development Kit | 
A Block is a unit that can produce, consume or transform media samples from/to multiple inputs/outputs. More...
#include <avb.h>
 
  
| Public Member Functions | |
| virtual void | close ()=0 | 
| Closes the block. | |
| virtual bool_t | endOfStream (int32_t inputIndex)=0 | 
| Tells the block that there's no more data for the specified input socket. | |
| virtual const primo::error::ErrorInfo * | error () const =0 | 
| Returns the error information for the last operation. | |
| virtual bool_t | flush ()=0 | 
| Flushes the data buffered in the block to the output. | |
| virtual MediaSocketList * | inputs () const =0 | 
| Returns a modifiable collection of MediaSocket objects which describe the input data of the block. | |
| virtual bool_t | open ()=0 | 
| Initializes the block based on the specified inputs and outputs. | |
| virtual MediaSocketList * | outputs () const =0 | 
| Returns a modifiable collection of MediaSocket objects which describe the output data of the block. | |
| virtual bool_t | pull (int32_t &outputIndex, primo::codecs::MediaSample *outputData)=0 | 
| Pulls output data from the block. | |
| virtual bool_t | push (int32_t inputIndex, primo::codecs::MediaSample *inputSample)=0 | 
| Pushes input data to the block. | |
|  Public Member Functions inherited from Reference | |
| virtual int32_t | release () const =0 | 
| Releases the instance. | |
| virtual int32_t | retain () const =0 | 
| Retains the instance. | |
| virtual int32_t | retainCount () const =0 | 
| Returns the current reference count. | |
A Block is a unit that can produce, consume or transform media samples from/to multiple inputs/outputs.
| 
 | pure virtual | 
| 
 | pure virtual | 
Tells the block that there's no more data for the specified input socket.
This method can be used only in push mode.
| inputIndex | [in] specifies the index of the input socket for which there's no more data. | 
Implemented in Transcoder.
| 
 | pure virtual | 
Returns the error information for the last operation.
Implemented in Transcoder.
| 
 | pure virtual | 
Flushes the data buffered in the block to the output.
This method can be used only in push mode.
Implemented in Transcoder.
| 
 | pure virtual | 
Returns a modifiable collection of MediaSocket objects which describe the input data of the block.
Implemented in MediaInfo, and Transcoder.
| 
 | pure virtual | 
Initializes the block based on the specified inputs and outputs.
Implemented in MediaInfo, and Transcoder.
| 
 | pure virtual | 
Returns a modifiable collection of MediaSocket objects which describe the output data of the block.
Implemented in MediaInfo, and Transcoder.
| 
 | pure virtual | 
Pulls output data from the block.
| outputIndex | [out] contains the index of the output socket to which the data belongs. | 
| outputData | [out] A pointer to a MediaSample object that receives the output data. | 
Implemented in Transcoder.
| 
 | pure virtual | 
Pushes input data to the block.
| inputIndex | [in] Specifies the index of the input socket whose data is pushed to the block. | 
| inputSample | [in] A pointer to a MediaSample object that contains the input data. | 
Implemented in MediaInfo, and Transcoder.