Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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'
Synopsis
- newtype ColorBalance = ColorBalance (ManagedPtr ColorBalance)
- class (GObject o, IsDescendantOf ColorBalance o) => IsColorBalance o
- toColorBalance :: (MonadIO m, IsColorBalance o) => o -> m ColorBalance
- colorBalanceGetBalanceType :: (HasCallStack, MonadIO m, IsColorBalance a) => a -> m ColorBalanceType
- colorBalanceGetValue :: (HasCallStack, MonadIO m, IsColorBalance a, IsColorBalanceChannel b) => a -> b -> m Int32
- colorBalanceListChannels :: (HasCallStack, MonadIO m, IsColorBalance a) => a -> m [ColorBalanceChannel]
- colorBalanceSetValue :: (HasCallStack, MonadIO m, IsColorBalance a, IsColorBalanceChannel b) => a -> b -> Int32 -> m ()
- colorBalanceValueChanged :: (HasCallStack, MonadIO m, IsColorBalance a, IsColorBalanceChannel b) => a -> b -> Int32 -> m ()
- type ColorBalanceValueChangedCallback = ColorBalanceChannel -> Int32 -> IO ()
- afterColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ((?self :: a) => ColorBalanceValueChangedCallback) -> m SignalHandlerId
- onColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ((?self :: a) => ColorBalanceValueChangedCallback) -> m SignalHandlerId
Exported types
newtype ColorBalance Source #
Memory-managed wrapper type.
ColorBalance (ManagedPtr ColorBalance) |
Instances
Eq ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance (==) :: ColorBalance -> ColorBalance -> Bool # (/=) :: ColorBalance -> ColorBalance -> Bool # | |
GObject ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance | |
ManagedPtrNewtype ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance toManagedPtr :: ColorBalance -> ManagedPtr ColorBalance | |
TypedObject ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance | |
HasParentTypes ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance | |
IsGValue (Maybe ColorBalance) Source # | Convert |
Defined in GI.GstVideo.Interfaces.ColorBalance gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ColorBalance -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ColorBalance) | |
type ParentTypes ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance type ParentTypes ColorBalance = '[Object] |
class (GObject o, IsDescendantOf ColorBalance o) => IsColorBalance o Source #
Type class for types which can be safely cast to ColorBalance
, for instance with toColorBalance
.
Instances
(GObject o, IsDescendantOf ColorBalance o) => IsColorBalance o Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance |
toColorBalance :: (MonadIO m, IsColorBalance o) => o -> m ColorBalance Source #
Cast to ColorBalance
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, listChannels, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, valueChanged, watchClosure.
Getters
getBalanceType, getData, getProperty, getQdata, getValue.
Setters
getBalanceType
colorBalanceGetBalanceType Source #
:: (HasCallStack, MonadIO m, IsColorBalance a) | |
=> a |
|
-> m ColorBalanceType | Returns: A the |
Get the ColorBalanceType
of this implementation.
getValue
:: (HasCallStack, MonadIO m, IsColorBalance a, IsColorBalanceChannel b) | |
=> a |
|
-> b |
|
-> m Int32 | Returns: The current value of the channel. |
Retrieve the current value of the indicated channel, between min_value and max_value.
See Also: The ColorBalanceChannel
.min_value
and
ColorBalanceChannel
.max_value
members of the
ColorBalanceChannel
object.
listChannels
colorBalanceListChannels Source #
:: (HasCallStack, MonadIO m, IsColorBalance a) | |
=> a |
|
-> m [ColorBalanceChannel] | Returns: A
GList containing pointers to |
Retrieve a list of the available channels.
setValue
:: (HasCallStack, MonadIO m, IsColorBalance a, IsColorBalanceChannel b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> m () |
Sets the current value of the channel to the passed value, which must be between min_value and max_value.
See Also: The ColorBalanceChannel
.min_value
and
ColorBalanceChannel
.max_value
members of the
ColorBalanceChannel
object.
valueChanged
colorBalanceValueChanged Source #
:: (HasCallStack, MonadIO m, IsColorBalance a, IsColorBalanceChannel b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> m () |
A helper function called by implementations of the GstColorBalance interface. It fires the ColorBalance::valueChanged signal on the instance, and the ColorBalanceChannel::valueChanged signal on the channel object.
Signals
valueChanged
type ColorBalanceValueChangedCallback Source #
= ColorBalanceChannel |
|
-> Int32 |
|
-> IO () |
Fired when the value of the indicated channel has changed.
afterColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ((?self :: a) => ColorBalanceValueChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the valueChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
colorBalance #valueChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ((?self :: a) => ColorBalanceValueChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the valueChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
colorBalance #valueChanged callback