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.ColorBalanceTypeof this implementation.
- get_value(channel)[source]¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel) – AGstVideo.ColorBalanceChannelinstance- 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.ColorBalanceChannelobject.
- list_channels()[source]¶
- Returns:
A
GLib.Listcontaining pointers toGstVideo.ColorBalanceChannelobjects. The list is owned by theGstVideo.ColorBalanceinstance and must not be freed.- Return type:
Retrieve a list of the available channels.
- set_value(channel, value)[source]¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel) – AGstVideo.ColorBalanceChannelinstancevalue (
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.ColorBalanceChannelobject.
- value_changed(channel, value)[source]¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel) – AGstVideo.ColorBalanceChannelwhose value has changedvalue (
int) – The new value of the channel
A helper function called by implementations of the
GstVideo.ColorBalanceinterface. It fires theGstVideo.ColorBalance::value-changedsignal on the instance, and theGstVideo.ColorBalanceChannel::value-changedsignal on the channel object.
- do_get_balance_type() virtual¶
- Returns:
A the
GstVideo.ColorBalanceType.- Return type:
Get the
GstVideo.ColorBalanceTypeof this implementation.
- do_get_value(channel) virtual¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel) – AGstVideo.ColorBalanceChannelinstance- 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.ColorBalanceChannelobject.
- do_list_channels() virtual¶
- Returns:
A
GLib.Listcontaining pointers toGstVideo.ColorBalanceChannelobjects. The list is owned by theGstVideo.ColorBalanceinstance 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.ColorBalanceChannelinstancevalue (
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.ColorBalanceChannelobject.
- do_value_changed(channel, value) virtual¶
- Parameters:
channel (
GstVideo.ColorBalanceChannel) – AGstVideo.ColorBalanceChannelwhose value has changedvalue (
int) – The new value of the channel
A helper function called by implementations of the
GstVideo.ColorBalanceinterface. It fires theGstVideo.ColorBalance::value-changedsignal on the instance, and theGstVideo.ColorBalanceChannel::value-changedsignal 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.ColorBalanceChannelvalue (
int) – The new value
Fired when the value of the indicated channel has changed.