GstVideo.ColorBalance¶
- Implementations:
None
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
Fired when the value of the indicated channel has changed. |
Fields¶
None
Class Details¶
- class GstVideo.ColorBalance¶
- Bases:
- Structure:
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_balance_type()[source]¶
- Returns:
A the
GstVideo.ColorBalanceType
.- Return type:
Get the
GstVideo.ColorBalanceType
of this implementation.
- get_value(channel)[source]¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel
) – AGstVideo.ColorBalanceChannel
instance- Returns:
The current value of the channel.
- Return type:
Retrieve the current value of the indicated channel, between min_value and max_value.
See Also: The GstVideo.ColorBalanceChannel.min_value and GstVideo.ColorBalanceChannel.max_value members of the
GstVideo.ColorBalanceChannel
object.
- list_channels()[source]¶
- Returns:
A
GLib.List
containing pointers toGstVideo.ColorBalanceChannel
objects. The list is owned by theGstVideo.ColorBalance
instance and must not be freed.- Return type:
Retrieve a list of the available channels.
- set_value(channel, value)[source]¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel
) – AGstVideo.ColorBalanceChannel
instancevalue (
int
) – The new value for the channel.
Sets the current value of the channel to the passed value, which must be between min_value and max_value.
See Also: The GstVideo.ColorBalanceChannel.min_value and GstVideo.ColorBalanceChannel.max_value members of the
GstVideo.ColorBalanceChannel
object.
- value_changed(channel, value)[source]¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel
) – AGstVideo.ColorBalanceChannel
whose value has changedvalue (
int
) – The new value of the channel
A helper function called by implementations of the
GstVideo.ColorBalance
interface. It fires theGstVideo.ColorBalance
::value-changed
signal on the instance, and theGstVideo.ColorBalanceChannel
::value-changed
signal on the channel object.
- do_get_balance_type() virtual¶
- Returns:
A the
GstVideo.ColorBalanceType
.- Return type:
Get the
GstVideo.ColorBalanceType
of this implementation.
- do_get_value(channel) virtual¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel
) – AGstVideo.ColorBalanceChannel
instance- Returns:
The current value of the channel.
- Return type:
Retrieve the current value of the indicated channel, between min_value and max_value.
See Also: The GstVideo.ColorBalanceChannel.min_value and GstVideo.ColorBalanceChannel.max_value members of the
GstVideo.ColorBalanceChannel
object.
- do_list_channels() virtual¶
- Returns:
A
GLib.List
containing pointers toGstVideo.ColorBalanceChannel
objects. The list is owned by theGstVideo.ColorBalance
instance and must not be freed.- Return type:
Retrieve a list of the available channels.
- do_set_value(channel, value) virtual¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel
) – AGstVideo.ColorBalanceChannel
instancevalue (
int
) – The new value for the channel.
Sets the current value of the channel to the passed value, which must be between min_value and max_value.
See Also: The GstVideo.ColorBalanceChannel.min_value and GstVideo.ColorBalanceChannel.max_value members of the
GstVideo.ColorBalanceChannel
object.
- do_value_changed(channel, value) virtual¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel
) – AGstVideo.ColorBalanceChannel
whose value has changedvalue (
int
) – The new value of the channel
A helper function called by implementations of the
GstVideo.ColorBalance
interface. It fires theGstVideo.ColorBalance
::value-changed
signal on the instance, and theGstVideo.ColorBalanceChannel
::value-changed
signal on the channel object.
Signal Details¶
- GstVideo.ColorBalance.signals.value_changed(color_balance, channel, value)¶
- Signal Name:
value-changed
- Flags:
- Parameters:
color_balance (
GstVideo.ColorBalance
) – The object which received the signalchannel (
GstVideo.ColorBalanceChannel
) – TheGstVideo.ColorBalanceChannel
value (
int
) – The new value
Fired when the value of the indicated channel has changed.