Creates a new #GstBufferPool instance.
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.
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.
Checks to see if there is any object named name in list. This function does not do any locking of any kind. You might want to protect the provided list with the lock of the owner of the list. This function will lock each #GstObject in the list to compare the name, so be careful when passing a list with a locked object.
A default deep_notify signal callback for an object. The user data should contain a pointer to an array of strings that should be excluded from the notify. The default handler will print the new value of the property using g_print.
Atomically modifies a pointer to point to a new object. The reference count of oldobj is decreased and the reference count of newobj is increased.
Attach the #GstControlBinding to the object. If there already was a #GstControlBinding for this property it will be replaced.
A default error function that uses glib.global.printerr to display the error message and the optional debug string..
Gets the corresponding #GstControlBinding for the property. This should be unreferenced again after use.
Obtain the control-rate for this object. Audio processing #GstElement objects will use this rate to sub-divide their processing loop and call gst.object.ObjectGst.syncValues in between. The length of the processing segment should be up to control-rate nanoseconds.
Gets a number of #GValues for the given controlled property starting at the requested time. The array values need to hold enough space for n_values of #GValue.
Returns a copy of the name of object. Caller should glib.global.gfree the return value after usage. For a nameless object, this returns null, which you can safely glib.global.gfree as well.
Returns the parent of object. This function increases the refcount of the parent object so you should gst.object.ObjectGst.unref it after usage.
Generates a string describing the path of object in the object hierarchy. Only useful (or used) for debugging.
Gets the value for the given controlled property at the requested time.
Check if the object has active controlled properties.
Check if object has an ancestor ancestor somewhere up in the hierarchy. One can e.g. check if a #GstElement is inside a #GstPipeline.
Check if object has an ancestor ancestor somewhere up in the hierarchy. One can e.g. check if a #GstElement is inside a #GstPipeline.
Check if parent is the parent of object. E.g. a #GstElement can check if it owns a given #GstPad.
Removes the corresponding #GstControlBinding. If it was the last ref of the binding, it will be disposed.
This function is used to disable the control bindings on a property for some time, i.e. gst.object.ObjectGst.syncValues will do nothing for the property.
This function is used to disable all controlled properties of the object for some time, i.e. gst.object.ObjectGst.syncValues will do nothing.
Change the control-rate for this object. Audio processing #GstElement objects will use this rate to sub-divide their processing loop and call gst.object.ObjectGst.syncValues in between. The length of the processing segment should be up to control-rate nanoseconds.
Sets the name of object, or gives object a guaranteed unique name (if name is null). This function makes a copy of the provided name, so the caller retains ownership of the name it sent.
Sets the parent of object to parent. The object's reference count will be incremented, and any floating reference will be removed (see gst.object.ObjectGst.refSink).
Returns a suggestion for timestamps where buffers should be split to get best controller results.
Sets the properties of the object, according to the #GstControlSources that (maybe) handle them and for the given timestamp.
Clear the parent of object, removing the associated reference. This function decreases the refcount of object.
Connect to DeepNotify signal.
A #GstBufferPool is an object that can be used to pre-allocate and recycle buffers of the same size and with the same properties.
A #GstBufferPool is created with gst.buffer_pool.BufferPool.new_.
Once a pool is created, it needs to be configured. A call to gst.buffer_pool.BufferPool.getConfig returns the current configuration structure from the pool. With gst.buffer_pool.BufferPool.configSetParams and gst.buffer_pool.BufferPool.configSetAllocator the bufferpool parameters and allocator can be configured. Other properties can be configured in the pool depending on the pool implementation.
A bufferpool can have extra options that can be enabled with gst.buffer_pool.BufferPool.configAddOption. The available options can be retrieved with gst.buffer_pool.BufferPool.getOptions. Some options allow for additional configuration properties to be set.
After the configuration structure has been configured, gst.buffer_pool.BufferPool.setConfig updates the configuration in the pool. This can fail when the configuration structure is not accepted.
After the pool has been configured, it can be activated with gst.buffer_pool.BufferPool.setActive. This will preallocate the configured resources in the pool.
When the pool is active, gst.buffer_pool.BufferPool.acquireBuffer can be used to retrieve a buffer from the pool.
Buffers allocated from a bufferpool will automatically be returned to the pool with gst.buffer_pool.BufferPool.releaseBuffer when their refcount drops to 0.
The bufferpool can be deactivated again with gst.buffer_pool.BufferPool.setActive. All further gst.buffer_pool.BufferPool.acquireBuffer calls will return an error. When all buffers are returned to the pool they will be freed.