VideoEncoder.allocateOutputBuffer

Helper function that allocates a buffer to hold an encoded video frame for encoder's current #GstVideoCodecState.

class VideoEncoder
allocateOutputBuffer
(
size_t size
)

Parameters

size size_t

size of the buffer

Return Value

Type: gst.buffer.Buffer

allocated buffer