Operates buffers allocators
Methods
MFBufferAlloc
Allocates a buffer with a specified size, and optionally copy memory
Syntax
void MFBufferAlloc( uint _cbSize, long _lpBuffer, out IMFBuffer _ppBuffer, eMFBufferFlags _eFlags )
Parameters
_cbSize - the size of the buffer in memory
_lpBuffer - a pointer to the buffer in memory
_ppBuffer - the buffer object
_eFlags - buffer flags
MFBufferAllocPacket
Allocate and initialized packet with a specified size, and optionally copy memory.
Syntax
void MFBufferAllocPacket( ref M_STREAM_INFO _pStreamInfo, ref M_PACKET_INFO _pPacketInfo, out IMFPacket _ppPacket )
Parameters
_pStreamInfo - stream information
_pPacketInfo - packet information
_ppPacket - packet to initialize
MFBufferTransferIPC
Transfer buffer from external process to a local process (if remote buffer from the same process, the same buffer return)
Syntax
void MFBufferTransferIPC( object _pRemoteBuffer, out IMFBuffer _ppLocalBuffer, eMFTransferFlags _eFlags )
Parameters
_pRemoteBuffer - remote buffer object
_ppLocalBuffer - local buffer transfer flags
_eFlags - buffer flags.