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 |
Mastering display color volume information defined by SMPTE ST 2086 (a.k.a static HDR metadata).
Since: 1.18
Synopsis
- newtype VideoMasteringDisplayInfo = VideoMasteringDisplayInfo (ManagedPtr VideoMasteringDisplayInfo)
- newZeroVideoMasteringDisplayInfo :: MonadIO m => m VideoMasteringDisplayInfo
- videoMasteringDisplayInfoAddToCaps :: (HasCallStack, MonadIO m) => VideoMasteringDisplayInfo -> Caps -> m Bool
- videoMasteringDisplayInfoFromCaps :: (HasCallStack, MonadIO m) => VideoMasteringDisplayInfo -> Caps -> m Bool
- videoMasteringDisplayInfoFromString :: (HasCallStack, MonadIO m) => Text -> m (Bool, VideoMasteringDisplayInfo)
- videoMasteringDisplayInfoInit :: (HasCallStack, MonadIO m) => VideoMasteringDisplayInfo -> m ()
- videoMasteringDisplayInfoIsEqual :: (HasCallStack, MonadIO m) => VideoMasteringDisplayInfo -> VideoMasteringDisplayInfo -> m Bool
- videoMasteringDisplayInfoToString :: (HasCallStack, MonadIO m) => VideoMasteringDisplayInfo -> m Text
- getVideoMasteringDisplayInfoMaxDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> m Word32
- setVideoMasteringDisplayInfoMaxDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> Word32 -> m ()
- getVideoMasteringDisplayInfoMinDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> m Word32
- setVideoMasteringDisplayInfoMinDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> Word32 -> m ()
- getVideoMasteringDisplayInfoWhitePoint :: MonadIO m => VideoMasteringDisplayInfo -> m VideoMasteringDisplayInfoCoordinates
Exported types
newtype VideoMasteringDisplayInfo Source #
Memory-managed wrapper type.
VideoMasteringDisplayInfo (ManagedPtr VideoMasteringDisplayInfo) |
Instances
Eq VideoMasteringDisplayInfo Source # | |
BoxedPtr VideoMasteringDisplayInfo Source # | |
CallocPtr VideoMasteringDisplayInfo Source # | |
ManagedPtrNewtype VideoMasteringDisplayInfo Source # | |
Defined in GI.GstVideo.Structs.VideoMasteringDisplayInfo toManagedPtr :: VideoMasteringDisplayInfo -> ManagedPtr VideoMasteringDisplayInfo | |
tag ~ 'AttrSet => Constructible VideoMasteringDisplayInfo tag Source # | |
Defined in GI.GstVideo.Structs.VideoMasteringDisplayInfo new :: MonadIO m => (ManagedPtr VideoMasteringDisplayInfo -> VideoMasteringDisplayInfo) -> [AttrOp VideoMasteringDisplayInfo tag] -> m VideoMasteringDisplayInfo |
newZeroVideoMasteringDisplayInfo :: MonadIO m => m VideoMasteringDisplayInfo Source #
Construct a VideoMasteringDisplayInfo
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
addToCaps
videoMasteringDisplayInfoAddToCaps Source #
:: (HasCallStack, MonadIO m) | |
=> VideoMasteringDisplayInfo |
|
-> Caps |
|
-> m Bool | Returns: |
Set string representation of minfo
to caps
Since: 1.18
fromCaps
videoMasteringDisplayInfoFromCaps Source #
:: (HasCallStack, MonadIO m) | |
=> VideoMasteringDisplayInfo |
|
-> Caps |
|
-> m Bool | Returns: |
Parse caps
and update minfo
Since: 1.18
fromString
videoMasteringDisplayInfoFromString Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Bool, VideoMasteringDisplayInfo) | Returns: |
Extract VideoMasteringDisplayInfo
from mastering
Since: 1.18
init
videoMasteringDisplayInfoInit Source #
:: (HasCallStack, MonadIO m) | |
=> VideoMasteringDisplayInfo |
|
-> m () |
Initialize minfo
Since: 1.18
isEqual
videoMasteringDisplayInfoIsEqual Source #
:: (HasCallStack, MonadIO m) | |
=> VideoMasteringDisplayInfo |
|
-> VideoMasteringDisplayInfo |
|
-> m Bool | Returns: |
Checks equality between minfo
and other
.
Since: 1.18
toString
videoMasteringDisplayInfoToString Source #
:: (HasCallStack, MonadIO m) | |
=> VideoMasteringDisplayInfo |
|
-> m Text | Returns: a string representation of |
Convert minfo
to its string representation
Since: 1.18
Properties
maxDisplayMasteringLuminance
the maximum value of display luminance in unit of 0.0001 candelas per square metre (cd/m^2 and nit)
getVideoMasteringDisplayInfoMaxDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> m Word32 Source #
Get the value of the “max_display_mastering_luminance
” field.
When overloading is enabled, this is equivalent to
get
videoMasteringDisplayInfo #maxDisplayMasteringLuminance
setVideoMasteringDisplayInfoMaxDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> Word32 -> m () Source #
Set the value of the “max_display_mastering_luminance
” field.
When overloading is enabled, this is equivalent to
set
videoMasteringDisplayInfo [ #maxDisplayMasteringLuminance:=
value ]
minDisplayMasteringLuminance
the minimum value of display luminance in unit of 0.0001 candelas per square metre (cd/m^2 and nit)
getVideoMasteringDisplayInfoMinDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> m Word32 Source #
Get the value of the “min_display_mastering_luminance
” field.
When overloading is enabled, this is equivalent to
get
videoMasteringDisplayInfo #minDisplayMasteringLuminance
setVideoMasteringDisplayInfoMinDisplayMasteringLuminance :: MonadIO m => VideoMasteringDisplayInfo -> Word32 -> m () Source #
Set the value of the “min_display_mastering_luminance
” field.
When overloading is enabled, this is equivalent to
set
videoMasteringDisplayInfo [ #minDisplayMasteringLuminance:=
value ]
whitePoint
the xy coordinates of white point in the CIE 1931 color space. each value is normalized to 50000 (meaning that in unit of 0.00002)
getVideoMasteringDisplayInfoWhitePoint :: MonadIO m => VideoMasteringDisplayInfo -> m VideoMasteringDisplayInfoCoordinates Source #
Get the value of the “white_point
” field.
When overloading is enabled, this is equivalent to
get
videoMasteringDisplayInfo #whitePoint