{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MediaConvert.Types.Hdr10Metadata where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Hdr10Metadata = Hdr10Metadata'
{
Hdr10Metadata -> Maybe Natural
redPrimaryX :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
bluePrimaryX :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
maxFrameAverageLightLevel :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
whitePointY :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
maxContentLightLevel :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
whitePointX :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
bluePrimaryY :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
greenPrimaryY :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
greenPrimaryX :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
minLuminance :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
redPrimaryY :: Prelude.Maybe Prelude.Natural,
Hdr10Metadata -> Maybe Natural
maxLuminance :: Prelude.Maybe Prelude.Natural
}
deriving (Hdr10Metadata -> Hdr10Metadata -> Bool
(Hdr10Metadata -> Hdr10Metadata -> Bool)
-> (Hdr10Metadata -> Hdr10Metadata -> Bool) -> Eq Hdr10Metadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Hdr10Metadata -> Hdr10Metadata -> Bool
$c/= :: Hdr10Metadata -> Hdr10Metadata -> Bool
== :: Hdr10Metadata -> Hdr10Metadata -> Bool
$c== :: Hdr10Metadata -> Hdr10Metadata -> Bool
Prelude.Eq, ReadPrec [Hdr10Metadata]
ReadPrec Hdr10Metadata
Int -> ReadS Hdr10Metadata
ReadS [Hdr10Metadata]
(Int -> ReadS Hdr10Metadata)
-> ReadS [Hdr10Metadata]
-> ReadPrec Hdr10Metadata
-> ReadPrec [Hdr10Metadata]
-> Read Hdr10Metadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Hdr10Metadata]
$creadListPrec :: ReadPrec [Hdr10Metadata]
readPrec :: ReadPrec Hdr10Metadata
$creadPrec :: ReadPrec Hdr10Metadata
readList :: ReadS [Hdr10Metadata]
$creadList :: ReadS [Hdr10Metadata]
readsPrec :: Int -> ReadS Hdr10Metadata
$creadsPrec :: Int -> ReadS Hdr10Metadata
Prelude.Read, Int -> Hdr10Metadata -> ShowS
[Hdr10Metadata] -> ShowS
Hdr10Metadata -> String
(Int -> Hdr10Metadata -> ShowS)
-> (Hdr10Metadata -> String)
-> ([Hdr10Metadata] -> ShowS)
-> Show Hdr10Metadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Hdr10Metadata] -> ShowS
$cshowList :: [Hdr10Metadata] -> ShowS
show :: Hdr10Metadata -> String
$cshow :: Hdr10Metadata -> String
showsPrec :: Int -> Hdr10Metadata -> ShowS
$cshowsPrec :: Int -> Hdr10Metadata -> ShowS
Prelude.Show, (forall x. Hdr10Metadata -> Rep Hdr10Metadata x)
-> (forall x. Rep Hdr10Metadata x -> Hdr10Metadata)
-> Generic Hdr10Metadata
forall x. Rep Hdr10Metadata x -> Hdr10Metadata
forall x. Hdr10Metadata -> Rep Hdr10Metadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Hdr10Metadata x -> Hdr10Metadata
$cfrom :: forall x. Hdr10Metadata -> Rep Hdr10Metadata x
Prelude.Generic)
newHdr10Metadata ::
Hdr10Metadata
newHdr10Metadata :: Hdr10Metadata
newHdr10Metadata =
Hdr10Metadata' :: Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata
Hdr10Metadata'
{ $sel:redPrimaryX:Hdr10Metadata' :: Maybe Natural
redPrimaryX = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:bluePrimaryX:Hdr10Metadata' :: Maybe Natural
bluePrimaryX = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:maxFrameAverageLightLevel:Hdr10Metadata' :: Maybe Natural
maxFrameAverageLightLevel = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:whitePointY:Hdr10Metadata' :: Maybe Natural
whitePointY = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:maxContentLightLevel:Hdr10Metadata' :: Maybe Natural
maxContentLightLevel = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:whitePointX:Hdr10Metadata' :: Maybe Natural
whitePointX = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:bluePrimaryY:Hdr10Metadata' :: Maybe Natural
bluePrimaryY = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:greenPrimaryY:Hdr10Metadata' :: Maybe Natural
greenPrimaryY = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:greenPrimaryX:Hdr10Metadata' :: Maybe Natural
greenPrimaryX = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:minLuminance:Hdr10Metadata' :: Maybe Natural
minLuminance = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:redPrimaryY:Hdr10Metadata' :: Maybe Natural
redPrimaryY = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:maxLuminance:Hdr10Metadata' :: Maybe Natural
maxLuminance = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
hdr10Metadata_redPrimaryX :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_redPrimaryX :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_redPrimaryX = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
redPrimaryX :: Maybe Natural
$sel:redPrimaryX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
redPrimaryX} -> Maybe Natural
redPrimaryX) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:redPrimaryX:Hdr10Metadata' :: Maybe Natural
redPrimaryX = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_bluePrimaryX :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_bluePrimaryX :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_bluePrimaryX = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
bluePrimaryX :: Maybe Natural
$sel:bluePrimaryX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
bluePrimaryX} -> Maybe Natural
bluePrimaryX) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:bluePrimaryX:Hdr10Metadata' :: Maybe Natural
bluePrimaryX = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_maxFrameAverageLightLevel :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_maxFrameAverageLightLevel :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_maxFrameAverageLightLevel = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
maxFrameAverageLightLevel :: Maybe Natural
$sel:maxFrameAverageLightLevel:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
maxFrameAverageLightLevel} -> Maybe Natural
maxFrameAverageLightLevel) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:maxFrameAverageLightLevel:Hdr10Metadata' :: Maybe Natural
maxFrameAverageLightLevel = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_whitePointY :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_whitePointY :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_whitePointY = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
whitePointY :: Maybe Natural
$sel:whitePointY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
whitePointY} -> Maybe Natural
whitePointY) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:whitePointY:Hdr10Metadata' :: Maybe Natural
whitePointY = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_maxContentLightLevel :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_maxContentLightLevel :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_maxContentLightLevel = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
maxContentLightLevel :: Maybe Natural
$sel:maxContentLightLevel:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
maxContentLightLevel} -> Maybe Natural
maxContentLightLevel) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:maxContentLightLevel:Hdr10Metadata' :: Maybe Natural
maxContentLightLevel = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_whitePointX :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_whitePointX :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_whitePointX = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
whitePointX :: Maybe Natural
$sel:whitePointX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
whitePointX} -> Maybe Natural
whitePointX) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:whitePointX:Hdr10Metadata' :: Maybe Natural
whitePointX = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_bluePrimaryY :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_bluePrimaryY :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_bluePrimaryY = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
bluePrimaryY :: Maybe Natural
$sel:bluePrimaryY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
bluePrimaryY} -> Maybe Natural
bluePrimaryY) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:bluePrimaryY:Hdr10Metadata' :: Maybe Natural
bluePrimaryY = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_greenPrimaryY :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_greenPrimaryY :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_greenPrimaryY = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
greenPrimaryY :: Maybe Natural
$sel:greenPrimaryY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
greenPrimaryY} -> Maybe Natural
greenPrimaryY) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:greenPrimaryY:Hdr10Metadata' :: Maybe Natural
greenPrimaryY = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_greenPrimaryX :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_greenPrimaryX :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_greenPrimaryX = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
greenPrimaryX :: Maybe Natural
$sel:greenPrimaryX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
greenPrimaryX} -> Maybe Natural
greenPrimaryX) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:greenPrimaryX:Hdr10Metadata' :: Maybe Natural
greenPrimaryX = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_minLuminance :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_minLuminance :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_minLuminance = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
minLuminance :: Maybe Natural
$sel:minLuminance:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
minLuminance} -> Maybe Natural
minLuminance) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:minLuminance:Hdr10Metadata' :: Maybe Natural
minLuminance = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_redPrimaryY :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_redPrimaryY :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_redPrimaryY = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
redPrimaryY :: Maybe Natural
$sel:redPrimaryY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
redPrimaryY} -> Maybe Natural
redPrimaryY) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:redPrimaryY:Hdr10Metadata' :: Maybe Natural
redPrimaryY = Maybe Natural
a} :: Hdr10Metadata)
hdr10Metadata_maxLuminance :: Lens.Lens' Hdr10Metadata (Prelude.Maybe Prelude.Natural)
hdr10Metadata_maxLuminance :: (Maybe Natural -> f (Maybe Natural))
-> Hdr10Metadata -> f Hdr10Metadata
hdr10Metadata_maxLuminance = (Hdr10Metadata -> Maybe Natural)
-> (Hdr10Metadata -> Maybe Natural -> Hdr10Metadata)
-> Lens Hdr10Metadata Hdr10Metadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Hdr10Metadata' {Maybe Natural
maxLuminance :: Maybe Natural
$sel:maxLuminance:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
maxLuminance} -> Maybe Natural
maxLuminance) (\s :: Hdr10Metadata
s@Hdr10Metadata' {} Maybe Natural
a -> Hdr10Metadata
s {$sel:maxLuminance:Hdr10Metadata' :: Maybe Natural
maxLuminance = Maybe Natural
a} :: Hdr10Metadata)
instance Core.FromJSON Hdr10Metadata where
parseJSON :: Value -> Parser Hdr10Metadata
parseJSON =
String
-> (Object -> Parser Hdr10Metadata)
-> Value
-> Parser Hdr10Metadata
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Hdr10Metadata"
( \Object
x ->
Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata
Hdr10Metadata'
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"redPrimaryX")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"bluePrimaryX")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"maxFrameAverageLightLevel")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"whitePointY")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"maxContentLightLevel")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"whitePointX")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"bluePrimaryY")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"greenPrimaryY")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural -> Maybe Natural -> Maybe Natural -> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"greenPrimaryX")
Parser
(Maybe Natural -> Maybe Natural -> Maybe Natural -> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser (Maybe Natural -> Maybe Natural -> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"minLuminance")
Parser (Maybe Natural -> Maybe Natural -> Hdr10Metadata)
-> Parser (Maybe Natural)
-> Parser (Maybe Natural -> Hdr10Metadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"redPrimaryY")
Parser (Maybe Natural -> Hdr10Metadata)
-> Parser (Maybe Natural) -> Parser Hdr10Metadata
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"maxLuminance")
)
instance Prelude.Hashable Hdr10Metadata
instance Prelude.NFData Hdr10Metadata
instance Core.ToJSON Hdr10Metadata where
toJSON :: Hdr10Metadata -> Value
toJSON Hdr10Metadata' {Maybe Natural
maxLuminance :: Maybe Natural
redPrimaryY :: Maybe Natural
minLuminance :: Maybe Natural
greenPrimaryX :: Maybe Natural
greenPrimaryY :: Maybe Natural
bluePrimaryY :: Maybe Natural
whitePointX :: Maybe Natural
maxContentLightLevel :: Maybe Natural
whitePointY :: Maybe Natural
maxFrameAverageLightLevel :: Maybe Natural
bluePrimaryX :: Maybe Natural
redPrimaryX :: Maybe Natural
$sel:maxLuminance:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:redPrimaryY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:minLuminance:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:greenPrimaryX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:greenPrimaryY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:bluePrimaryY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:whitePointX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:maxContentLightLevel:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:whitePointY:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:maxFrameAverageLightLevel:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:bluePrimaryX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
$sel:redPrimaryX:Hdr10Metadata' :: Hdr10Metadata -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"redPrimaryX" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
redPrimaryX,
(Text
"bluePrimaryX" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
bluePrimaryX,
(Text
"maxFrameAverageLightLevel" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxFrameAverageLightLevel,
(Text
"whitePointY" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
whitePointY,
(Text
"maxContentLightLevel" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxContentLightLevel,
(Text
"whitePointX" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
whitePointX,
(Text
"bluePrimaryY" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
bluePrimaryY,
(Text
"greenPrimaryY" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
greenPrimaryY,
(Text
"greenPrimaryX" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
greenPrimaryX,
(Text
"minLuminance" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
minLuminance,
(Text
"redPrimaryY" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
redPrimaryY,
(Text
"maxLuminance" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxLuminance
]
)