Package org.freedesktop.gstreamer.video
Interface ColorBalance
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
ColorBalance.ColorBalance$Impl
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe ColorBalance$Impl type represents a native instance of the ColorBalance interface.static classColor-balance interface.static interfaceFunctional interface declaration of theValueChangedCallbackcallback. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidemitValueChanged(@Nullable ColorBalanceChannel channel, int value) Emits the "value-changed" signal.default ColorBalanceTypeGet theGstColorBalanceTypeof this implementation.static @Nullable TypegetType()Get the GType of the ColorBalance classdefault intgetValue(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 voidsetValue(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 voidvalueChanged(ColorBalanceChannel channel, int value) A helper function called by implementations of the GstColorBalance interface.
-
Method Details
-
getType
-
getBalanceType
Get theGstColorBalanceTypeof 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 theGstColorBalanceChannelobject.- Parameters:
channel- AGstColorBalanceChannelinstance- Returns:
- The current value of the channel.
-
listChannels
Retrieve a list of the available channels.- Returns:
- A
GList containing pointers to
GstColorBalanceChannelobjects. The list is owned by theGstColorBalanceinstance 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 theGstColorBalanceChannelobject.- Parameters:
channel- AGstColorBalanceChannelinstancevalue- 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- AGstColorBalanceChannelwhose 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).
-