Package org.freedesktop.gstreamer.video
Interface ColorBalance
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
ColorBalance.ColorBalanceImpl
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'
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The ColorBalanceImpl type represents a native instance of the ColorBalance interface.static class
Color-balance interface.static interface
Functional interface declaration of theValueChangedCallback
callback. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
emitValueChanged
(ColorBalanceChannel channel, int value) Emits the "value-changed" signal.default ColorBalanceType
Get theGstColorBalanceType
of this implementation.static Type
getType()
Get the GType of the ColorBalance classdefault int
getValue
(ColorBalanceChannel channel) Retrieve the current value of the indicated channel, between min_value and max_value.default List
<ColorBalanceChannel> Retrieve a list of the available channels.Fired when the value of the indicated channel has changed.default void
setValue
(ColorBalanceChannel channel, int value) Sets the current value of the channel to the passed value, which must be between min_value and max_value.default void
valueChanged
(ColorBalanceChannel channel, int value) A helper function called by implementations of the GstColorBalance interface.
-
Method Details
-
getType
-
getBalanceType
Get theGstColorBalanceType
of this implementation.- Returns:
- A the
GstColorBalanceType
.
-
getValue
Retrieve the current value of the indicated channel, between min_value and max_value.See Also: The
GstColorBalanceChannel
.min_value andGstColorBalanceChannel
.max_value members of theGstColorBalanceChannel
object.- Parameters:
channel
- AGstColorBalanceChannel
instance- Returns:
- The current value of the channel.
-
listChannels
Retrieve a list of the available channels.- Returns:
- A
GList containing pointers to
GstColorBalanceChannel
objects. The list is owned by theGstColorBalance
instance and must not be freed.
-
setValue
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 andGstColorBalanceChannel
.max_value members of theGstColorBalanceChannel
object.- Parameters:
channel
- AGstColorBalanceChannel
instancevalue
- The new value for the channel.
-
valueChanged
A helper function called by implementations of the GstColorBalance interface. It fires theGstColorBalance
::value-changed signal on the instance, and theGstColorBalanceChannel
::value-changed signal on the channel object.- Parameters:
channel
- AGstColorBalanceChannel
whose value has changedvalue
- The new value of the channel
-
onValueChanged
default SignalConnection<ColorBalance.ValueChangedCallback> onValueChanged(ColorBalance.ValueChangedCallback handler) Fired when the value of the indicated channel has changed.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitValueChanged
Emits the "value-changed" signal. SeeonValueChanged(org.freedesktop.gstreamer.video.ColorBalance.ValueChangedCallback)
.
-