alloc_buffer
Description:
[ NoWrapper ]
public virtual FlowReturn alloc_buffer (out Buffer? buffer, BufferPoolAcquireParams? @params)
public virtual FlowReturn alloc_buffer (out Buffer? buffer, BufferPoolAcquireParams? @params)
Allocate a buffer.
the default implementation allocates buffers from the configured memory allocator and with the configured parameters. All metadata that is
present on the allocated buffer will be marked as POOLED and
LOCKED and will not be removed from the buffer in
GstBufferPoolClass::reset_buffer
. The buffer should have the
TAG_MEMORY cleared.
Parameters:
this |
the BufferPool |
buffer |
a location for a Buffer |
params |
parameters. |
Returns:
a FlowReturn to indicate whether the allocation was successful. |