gstvideo.color_balance_mixin

Module for [ColorBalance] interface mixin

Templates 2

tmplColorBalanceT()

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'

Functions

Get the #GstColorBalanceType of this implementation.

Returns

A the #GstColorBalanceType.

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

channelA #GstColorBalanceChannel instance

Returns

The current value of the channel.

Retrieve a list of the available channels.

Returns

A

GList containing pointers to #GstColorBalanceChannel objects. The list is owned by the #GstColorBalance instance and must not be freed.

void setValue(gstvideo.color_balance_channel.ColorBalanceChannel channel, int value)

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

channelA #GstColorBalanceChannel instance
valueThe new value for the channel.
void valueChanged(gstvideo.color_balance_channel.ColorBalanceChannel channel, int value)

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

channelA #GstColorBalanceChannel whose value has changed
valueThe new value of the channel
gulong connectValueChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gstvideo.color_balance_channel.ColorBalanceChannel))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gstvideo.color_balance.ColorBalance))) && Parameters!T.length < 4)

Connect to ValueChanged signal.

Fired when the value of the indicated channel has changed.

Parameters

callbacksignal 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)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID
tmplColorBalanceGidBuilderT()