Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
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)
- noColorBalance :: Maybe ColorBalance
- class GObject 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 C_ColorBalanceValueChangedCallback = Ptr () -> Ptr ColorBalanceChannel -> Int32 -> Ptr () -> IO ()
- type ColorBalanceValueChangedCallback = ColorBalanceChannel -> Int32 -> IO ()
- afterColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ColorBalanceValueChangedCallback -> m SignalHandlerId
- genClosure_ColorBalanceValueChanged :: ColorBalanceValueChangedCallback -> IO Closure
- mk_ColorBalanceValueChangedCallback :: C_ColorBalanceValueChangedCallback -> IO (FunPtr C_ColorBalanceValueChangedCallback)
- noColorBalanceValueChangedCallback :: Maybe ColorBalanceValueChangedCallback
- onColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ColorBalanceValueChangedCallback -> m SignalHandlerId
- wrap_ColorBalanceValueChangedCallback :: ColorBalanceValueChangedCallback -> C_ColorBalanceValueChangedCallback
Exported types
newtype ColorBalance Source #
Memory-managed wrapper type.
Instances
GObject ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance gobjectType :: ColorBalance -> IO GType # | |
IsObject ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance | |
IsColorBalance ColorBalance Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance |
noColorBalance :: Maybe ColorBalance Source #
A convenience alias for Nothing
:: Maybe
ColorBalance
.
class GObject o => IsColorBalance o Source #
Type class for types which can be safely cast to ColorBalance
, for instance with toColorBalance
.
Instances
(GObject a, (UnknownAncestorError ColorBalance a :: Constraint)) => IsColorBalance a Source # | |
Defined in GI.GstVideo.Interfaces.ColorBalance | |
IsColorBalance ColorBalance 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
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
::value-changed
signal on the
instance, and the ColorBalanceChannel
::value-changed
signal on the
channel object.
Signals
valueChanged
type C_ColorBalanceValueChangedCallback = Ptr () -> Ptr ColorBalanceChannel -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ColorBalanceValueChangedCallback Source #
= ColorBalanceChannel |
|
-> Int32 |
|
-> IO () |
Fired when the value of the indicated channel has changed.
afterColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ColorBalanceValueChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “value-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
colorBalance #valueChanged callback
genClosure_ColorBalanceValueChanged :: ColorBalanceValueChangedCallback -> IO Closure Source #
Wrap the callback into a Closure
.
mk_ColorBalanceValueChangedCallback :: C_ColorBalanceValueChangedCallback -> IO (FunPtr C_ColorBalanceValueChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ColorBalanceValueChangedCallback
.
noColorBalanceValueChangedCallback :: Maybe ColorBalanceValueChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ColorBalanceValueChangedCallback
onColorBalanceValueChanged :: (IsColorBalance a, MonadIO m) => a -> ColorBalanceValueChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “value-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
colorBalance #valueChanged callback