videoencoder: Allocate output bitstreams from bufferpool
Implement allocation of output bitstreams from a GstBufferPool. Subclass can configure the buffer pool buffer_size, min_buffers and max_buffers options by implementing the decide_allocation
virtual method.
-
gst_video_encoder_allocate_output_buffer(encoder, size)
andgst_video_encoder_allocate_output_frame(encoder, frame, size)
will try to acquire a buffer from the buffer pool. If an error occured or if the acquired buffer size is less thansize
, a fresh buffer will be created withgst_buffer_new_allocate
as fallback -
gst_video_encoder_allocate_output_frame_with_params
was added. It does the same asgst_video_encoder_allocate_output_frame
except it allows passing GstBufferPoolAcquireParams to the sub callgst_buffer_pool_acquire_buffer