allocate_output_frame


Description:

public FlowReturn allocate_output_frame (CodecFrame frame, size_t size)

Helper function that allocates a buffer to hold an encoded video frame for this's current CodecState.

Subclass should already have configured video state and set src pad caps.

The buffer allocated here is owned by the frame and you should only keep references to the frame, not the buffer.

Parameters:

this

a Encoder

frame

a CodecFrame

size

size of the buffer

Returns:

gst_flow_ok if an output buffer could be allocated