VideoDecoder.allocateOutputFrame
gst.types.FlowReturn allocateOutputFrame(gstvideo.video_codec_frame.VideoCodecFrame frame)Helper function that allocates a buffer to hold a video frame for decoder's current #GstVideoCodecState. 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
frame | a #GstVideoCodecFrame |
Returns
[gst.types.FlowReturn.Ok] if an output buffer could be allocated