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 |
GstVideoDither provides implementations of several dithering algorithms that can be applied to lines of video pixels to quantize and dither them.
Synopsis
- newtype VideoDither = VideoDither (ManagedPtr VideoDither)
- videoDitherFree :: (HasCallStack, MonadIO m) => VideoDither -> m ()
- videoDitherLine :: (HasCallStack, MonadIO m) => VideoDither -> Ptr () -> Word32 -> Word32 -> Word32 -> m ()
Exported types
newtype VideoDither Source #
Memory-managed wrapper type.
VideoDither (ManagedPtr VideoDither) |
Instances
Eq VideoDither Source # | |
Defined in GI.GstVideo.Structs.VideoDither (==) :: VideoDither -> VideoDither -> Bool # (/=) :: VideoDither -> VideoDither -> Bool # | |
BoxedPtr VideoDither Source # | |
Defined in GI.GstVideo.Structs.VideoDither boxedPtrCopy :: VideoDither -> IO VideoDither boxedPtrFree :: VideoDither -> IO () | |
ManagedPtrNewtype VideoDither Source # | |
Defined in GI.GstVideo.Structs.VideoDither toManagedPtr :: VideoDither -> ManagedPtr VideoDither |
Methods
Click to display all available methods, including inherited ones
free
:: (HasCallStack, MonadIO m) | |
=> VideoDither |
|
-> m () |
Free dither
line
:: (HasCallStack, MonadIO m) | |
=> VideoDither |
|
-> Ptr () |
|
-> Word32 |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Dither width
pixels starting from offset x
in line
using dither
.
y
is the line number of line
in the output image.