Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Structure describing the color info.
Synopsis
- newtype VideoColorimetry = VideoColorimetry (ManagedPtr VideoColorimetry)
- newZeroVideoColorimetry :: MonadIO m => m VideoColorimetry
- noVideoColorimetry :: Maybe VideoColorimetry
- videoColorimetryFromString :: (HasCallStack, MonadIO m) => VideoColorimetry -> Text -> m Bool
- videoColorimetryIsEqual :: (HasCallStack, MonadIO m) => VideoColorimetry -> VideoColorimetry -> m Bool
- videoColorimetryMatches :: (HasCallStack, MonadIO m) => VideoColorimetry -> Text -> m Bool
- videoColorimetryToString :: (HasCallStack, MonadIO m) => VideoColorimetry -> m 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.
Instances
WrappedPtr VideoColorimetry Source # | |
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.
noVideoColorimetry :: Maybe VideoColorimetry Source #
A convenience alias for Nothing
:: Maybe
VideoColorimetry
.
Methods
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
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 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 ]