The returned #GstGLAllocationParams will by null before the first successful call to gst.buffer_pool.BufferPool.setConfig. Subsequent successful calls to gst.buffer_pool.BufferPool.setConfig will cause this function to return a new #GstGLAllocationParams which may or may not contain the same information.
Enables the option in config. This will instruct the bufferpool to enable the specified option on the buffers that it allocates.
Gets the allocator and params from config.
Parses an available config and gets the option at index of the options API array.
Gets the configuration values from config.
Checks if config contains option.
Retrieves the number of values currently stored in the options array of the config structure.
Sets the allocator and params on config.
Configures config with the given parameters.
Validates that changes made to config are still valid in the context of the expected parameters. This function is a helper that can be used to validate changes made by a pool to a config when gst.buffer_pool.BufferPool.setConfig returns false. This expects that caps haven't changed and that min_buffers aren't lower then what we initially expected. This does not check if options or allocator parameters are still valid, won't check if size have changed, since changing the size is valid to adapt padding.
Acquires a buffer from pool. buffer should point to a memory location that can hold a pointer to the new buffer. When the pool is empty, this function will by default block until a buffer is released into the pool again or when the pool is set to flushing or deactivated.
Gets a copy of the current configuration of the pool. This configuration can be modified and used for the gst.buffer_pool.BufferPool.setConfig call.
Gets a null terminated array of string with supported bufferpool options for pool. An option would typically be enabled with gst.buffer_pool.BufferPool.configAddOption.
Checks if the bufferpool supports option.
Checks if pool is active. A pool can be activated with the gst.buffer_pool.BufferPool.setActive call.
Releases buffer to pool. buffer should have previously been allocated from pool with gst.buffer_pool.BufferPool.acquireBuffer.
Controls the active state of pool. When the pool is inactive, new calls to gst.buffer_pool.BufferPool.acquireBuffer will return with gst.types.FlowReturn.Flushing.
Sets the configuration of the pool. If the pool is already configured, and the configuration hasn't changed, this function will return true. If the pool is active, this method will return false and active configuration will remain. Buffers allocated from this pool must be returned or else this function will do nothing and return false.
Enables or disables the flushing state of a pool without freeing or allocating buffers.
a #GstGLBufferPool is an object that allocates buffers with #GstGLBaseMemory
A #GstGLBufferPool is created with gstgl.glbuffer_pool.GLBufferPool.new_
#GstGLBufferPool implements the VideoMeta buffer pool option GST_BUFFER_POOL_OPTION_VIDEO_META, the VideoAligment buffer pool option GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT as well as the OpenGL specific GST_BUFFER_POOL_OPTION_GL_SYNC_META buffer pool option.