gstvideo.color_balance_mixin
Module for [ColorBalance] interface mixin
Templates 2
This interface is implemented by elements which can perform some color balance operation on video frames they process. For example, modifying the brightness, contrast, hue or saturation.
Example elements are 'xvimagesink' and 'colorbalance'
Get the #GstColorBalanceType of this implementation.
Returns
Retrieve the current value of the indicated channel, between min_value and max_value.
See Also: The #GstColorBalanceChannel.min_value and #GstColorBalanceChannel.max_value members of the #GstColorBalanceChannel object.
Parameters
channel | A #GstColorBalanceChannel instance |
Returns
Retrieve a list of the available channels.
Returns
GList containing pointers to #GstColorBalanceChannel objects. The list is owned by the #GstColorBalance instance and must not be freed.
Sets the current value of the channel to the passed value, which must be between min_value and max_value.
See Also: The #GstColorBalanceChannel.min_value and #GstColorBalanceChannel.max_value members of the #GstColorBalanceChannel object.
Parameters
channel | A #GstColorBalanceChannel instance |
value | The new value for the channel. |
A helper function called by implementations of the GstColorBalance interface. It fires the #GstColorBalance::value-changed signal on the instance, and the #GstColorBalanceChannel::value-changed signal on the channel object.
Parameters
channel | A #GstColorBalanceChannel whose value has changed |
value | The new value of the channel |
Connect to ValueChanged signal.
Fired when the value of the indicated channel has changed.
Parameters
callback | signal callback delegate or function to connect void callback(gstvideo.color_balance_channel.ColorBalanceChannel channel, int value, gstvideo.color_balance.ColorBalance colorBalance) channel The #GstColorBalanceChannel (optional) value The new value (optional) colorBalance the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |