| 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 |
GI.GstVideo.Structs.VideoMasteringDisplayInfo
Description
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.
Constructors
| VideoMasteringDisplayInfo (ManagedPtr VideoMasteringDisplayInfo) |
Instances
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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => VideoMasteringDisplayInfo |
|
| -> Caps |
|
| -> m Bool | Returns: |
Set string representation of minfo to caps
Since: 1.18
fromCaps
videoMasteringDisplayInfoFromCaps Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => VideoMasteringDisplayInfo |
|
| -> Caps |
|
| -> m Bool | Returns: |
Parse caps and update minfo
Since: 1.18
fromString
videoMasteringDisplayInfoFromString Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m (Bool, VideoMasteringDisplayInfo) | Returns: |
Extract VideoMasteringDisplayInfo from mastering
Since: 1.18
init
videoMasteringDisplayInfoInit Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => VideoMasteringDisplayInfo |
|
| -> m () |
Initialize minfo
Since: 1.18
isEqual
videoMasteringDisplayInfoIsEqual Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => VideoMasteringDisplayInfo |
|
| -> VideoMasteringDisplayInfo |
|
| -> m Bool | Returns: |
Checks equality between minfo and other.
Since: 1.18
toString
videoMasteringDisplayInfoToString Source #
Arguments
| :: (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
setvideoMasteringDisplayInfo [ #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
setvideoMasteringDisplayInfo [ #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