ADTF  3.18.2
ISampleBufferFactoryabstract

The SampleBuffer factory manages and can create SampleBuffers. More...

Inheritance diagram for ISampleBufferFactory:
[legend]

Public Member Functions

 ADTF_IID (ISampleBufferFactory, "samplebufferfactory.ant.streaming.adtf.iid")
 defintion of interfac id
 
virtual tResult GetBuffer (ucom::ant::iobject_ptr< ISampleBuffer > &pBuffer, size_t szPreAllocateSize)=0
 Retrieve a Buffer of the factory with the szPreAllocateSize in bytes. More...
 
- Public Member Functions inherited from IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 Marks the IObject to be castable with the ucom_cast() More...
 

Protected Member Functions

 ~ISampleBufferFactory ()=default
 not destructable
 
- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Use implemented Destroy() instead of delete!
 

Detailed Description

The SampleBuffer factory manages and can create SampleBuffers.

Definition at line 104 of file samplebuffer_intf.h.

Member Function Documentation

◆ GetBuffer()

virtual tResult GetBuffer ( ucom::ant::iobject_ptr< ISampleBuffer > &  pBuffer,
size_t  szPreAllocateSize 
)
pure virtual

Retrieve a Buffer of the factory with the szPreAllocateSize in bytes.

Parameters
pBuffer[in,out] object refernce to set the created buffer to.
szPreAllocateSize[in] size in byte which to preallocate.
Returns
Standard Result Code.