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 |
Structure describing the color info.
Synopsis
- newtype VideoColorimetry = VideoColorimetry (ManagedPtr VideoColorimetry)
- newZeroVideoColorimetry :: MonadIO m => m VideoColorimetry
- videoColorimetryFromString :: (HasCallStack, MonadIO m) => VideoColorimetry -> Text -> m Bool
- videoColorimetryIsEqual :: (HasCallStack, MonadIO m) => VideoColorimetry -> VideoColorimetry -> m Bool
- videoColorimetryIsEquivalent :: (HasCallStack, MonadIO m) => VideoColorimetry -> Word32 -> VideoColorimetry -> Word32 -> m Bool
- videoColorimetryMatches :: (HasCallStack, MonadIO m) => VideoColorimetry -> Text -> m Bool
- videoColorimetryToString :: (HasCallStack, MonadIO m) => VideoColorimetry -> m (Maybe Text)
- getVideoColorimetryMatrix :: MonadIO m => VideoColorimetry -> m VideoColorMatrix
- setVideoColorimetryMatrix :: MonadIO m => VideoColorimetry -> VideoColorMatrix -> m ()
- getVideoColorimetryPrimaries :: MonadIO m => VideoColorimetry -> m VideoColorPrimaries
- setVideoColorimetryPrimaries :: MonadIO m => VideoColorimetry -> VideoColorPrimaries -> m ()
- getVideoColorimetryRange :: MonadIO m => VideoColorimetry -> m VideoColorRange
- setVideoColorimetryRange :: MonadIO m => VideoColorimetry -> VideoColorRange -> m ()
- getVideoColorimetryTransfer :: MonadIO m => VideoColorimetry -> m VideoTransferFunction
- setVideoColorimetryTransfer :: MonadIO m => VideoColorimetry -> VideoTransferFunction -> m ()
Exported types
newtype VideoColorimetry Source #
Memory-managed wrapper type.
VideoColorimetry (ManagedPtr VideoColorimetry) |
Instances
Eq VideoColorimetry Source # | |
Defined in GI.GstVideo.Structs.VideoColorimetry (==) :: VideoColorimetry -> VideoColorimetry -> Bool # (/=) :: VideoColorimetry -> VideoColorimetry -> Bool # | |
BoxedPtr VideoColorimetry Source # | |
Defined in GI.GstVideo.Structs.VideoColorimetry boxedPtrCopy :: VideoColorimetry -> IO VideoColorimetry boxedPtrFree :: VideoColorimetry -> IO () | |
CallocPtr VideoColorimetry Source # | |
Defined in GI.GstVideo.Structs.VideoColorimetry | |
ManagedPtrNewtype VideoColorimetry Source # | |
Defined in GI.GstVideo.Structs.VideoColorimetry toManagedPtr :: VideoColorimetry -> ManagedPtr VideoColorimetry | |
tag ~ 'AttrSet => Constructible VideoColorimetry tag Source # | |
Defined in GI.GstVideo.Structs.VideoColorimetry new :: MonadIO m => (ManagedPtr VideoColorimetry -> VideoColorimetry) -> [AttrOp VideoColorimetry tag] -> m VideoColorimetry |
newZeroVideoColorimetry :: MonadIO m => m VideoColorimetry Source #
Construct a VideoColorimetry
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
fromString
videoColorimetryFromString Source #
:: (HasCallStack, MonadIO m) | |
=> VideoColorimetry |
|
-> Text |
|
-> m Bool | Returns: |
Parse the colorimetry string and update cinfo
with the parsed
values.
isEqual
videoColorimetryIsEqual Source #
:: (HasCallStack, MonadIO m) | |
=> VideoColorimetry |
|
-> VideoColorimetry |
|
-> m Bool | Returns: |
Compare the 2 colorimetry sets for equality
Since: 1.6
isEquivalent
videoColorimetryIsEquivalent Source #
:: (HasCallStack, MonadIO m) | |
=> VideoColorimetry |
|
-> Word32 |
|
-> VideoColorimetry |
|
-> Word32 |
|
-> m Bool | Returns: |
Compare the 2 colorimetry sets for functionally equality
Since: 1.22
matches
videoColorimetryMatches Source #
:: (HasCallStack, MonadIO m) | |
=> VideoColorimetry |
|
-> Text |
|
-> m Bool | Returns: |
Check if the colorimetry information in info
matches that of the
string color
.
toString
videoColorimetryToString Source #
:: (HasCallStack, MonadIO m) | |
=> VideoColorimetry |
|
-> m (Maybe Text) | Returns: a string representation of |
Make a string representation of cinfo
.
Properties
matrix
the color matrix. Used to convert between Y'PbPr and non-linear RGB (R'G'B')
getVideoColorimetryMatrix :: MonadIO m => VideoColorimetry -> m VideoColorMatrix Source #
Get the value of the “matrix
” field.
When overloading is enabled, this is equivalent to
get
videoColorimetry #matrix
setVideoColorimetryMatrix :: MonadIO m => VideoColorimetry -> VideoColorMatrix -> m () Source #
Set the value of the “matrix
” field.
When overloading is enabled, this is equivalent to
set
videoColorimetry [ #matrix:=
value ]
primaries
color primaries. used to convert between R'G'B' and CIE XYZ
getVideoColorimetryPrimaries :: MonadIO m => VideoColorimetry -> m VideoColorPrimaries Source #
Get the value of the “primaries
” field.
When overloading is enabled, this is equivalent to
get
videoColorimetry #primaries
setVideoColorimetryPrimaries :: MonadIO m => VideoColorimetry -> VideoColorPrimaries -> m () Source #
Set the value of the “primaries
” field.
When overloading is enabled, this is equivalent to
set
videoColorimetry [ #primaries:=
value ]
range
the color range. This is the valid range for the samples. It is used to convert the samples to Y'PbPr values.
getVideoColorimetryRange :: MonadIO m => VideoColorimetry -> m VideoColorRange Source #
Get the value of the “range
” field.
When overloading is enabled, this is equivalent to
get
videoColorimetry #range
setVideoColorimetryRange :: MonadIO m => VideoColorimetry -> VideoColorRange -> m () Source #
Set the value of the “range
” field.
When overloading is enabled, this is equivalent to
set
videoColorimetry [ #range:=
value ]
transfer
the transfer function. used to convert between R'G'B' and RGB
getVideoColorimetryTransfer :: MonadIO m => VideoColorimetry -> m VideoTransferFunction Source #
Get the value of the “transfer
” field.
When overloading is enabled, this is equivalent to
get
videoColorimetry #transfer
setVideoColorimetryTransfer :: MonadIO m => VideoColorimetry -> VideoTransferFunction -> m () Source #
Set the value of the “transfer
” field.
When overloading is enabled, this is equivalent to
set
videoColorimetry [ #transfer:=
value ]