{-# 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.ProresSettings where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaConvert.Types.ProresChromaSampling
import Amazonka.MediaConvert.Types.ProresCodecProfile
import Amazonka.MediaConvert.Types.ProresFramerateControl
import Amazonka.MediaConvert.Types.ProresFramerateConversionAlgorithm
import Amazonka.MediaConvert.Types.ProresInterlaceMode
import Amazonka.MediaConvert.Types.ProresParControl
import Amazonka.MediaConvert.Types.ProresScanTypeConversionMode
import Amazonka.MediaConvert.Types.ProresSlowPal
import Amazonka.MediaConvert.Types.ProresTelecine
import qualified Amazonka.Prelude as Prelude
data ProresSettings = ProresSettings'
{
ProresSettings -> Maybe ProresChromaSampling
chromaSampling :: Prelude.Maybe ProresChromaSampling,
ProresSettings -> Maybe ProresCodecProfile
codecProfile :: Prelude.Maybe ProresCodecProfile,
ProresSettings -> Maybe ProresFramerateControl
framerateControl :: Prelude.Maybe ProresFramerateControl,
ProresSettings -> Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm :: Prelude.Maybe ProresFramerateConversionAlgorithm,
ProresSettings -> Maybe Natural
framerateDenominator :: Prelude.Maybe Prelude.Natural,
ProresSettings -> Maybe Natural
framerateNumerator :: Prelude.Maybe Prelude.Natural,
ProresSettings -> Maybe ProresInterlaceMode
interlaceMode :: Prelude.Maybe ProresInterlaceMode,
ProresSettings -> Maybe ProresParControl
parControl :: Prelude.Maybe ProresParControl,
ProresSettings -> Maybe Natural
parDenominator :: Prelude.Maybe Prelude.Natural,
ProresSettings -> Maybe Natural
parNumerator :: Prelude.Maybe Prelude.Natural,
ProresSettings -> Maybe ProresScanTypeConversionMode
scanTypeConversionMode :: Prelude.Maybe ProresScanTypeConversionMode,
ProresSettings -> Maybe ProresSlowPal
slowPal :: Prelude.Maybe ProresSlowPal,
ProresSettings -> Maybe ProresTelecine
telecine :: Prelude.Maybe ProresTelecine
}
deriving (ProresSettings -> ProresSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProresSettings -> ProresSettings -> Bool
$c/= :: ProresSettings -> ProresSettings -> Bool
== :: ProresSettings -> ProresSettings -> Bool
$c== :: ProresSettings -> ProresSettings -> Bool
Prelude.Eq, ReadPrec [ProresSettings]
ReadPrec ProresSettings
Int -> ReadS ProresSettings
ReadS [ProresSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProresSettings]
$creadListPrec :: ReadPrec [ProresSettings]
readPrec :: ReadPrec ProresSettings
$creadPrec :: ReadPrec ProresSettings
readList :: ReadS [ProresSettings]
$creadList :: ReadS [ProresSettings]
readsPrec :: Int -> ReadS ProresSettings
$creadsPrec :: Int -> ReadS ProresSettings
Prelude.Read, Int -> ProresSettings -> ShowS
[ProresSettings] -> ShowS
ProresSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProresSettings] -> ShowS
$cshowList :: [ProresSettings] -> ShowS
show :: ProresSettings -> String
$cshow :: ProresSettings -> String
showsPrec :: Int -> ProresSettings -> ShowS
$cshowsPrec :: Int -> ProresSettings -> ShowS
Prelude.Show, forall x. Rep ProresSettings x -> ProresSettings
forall x. ProresSettings -> Rep ProresSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProresSettings x -> ProresSettings
$cfrom :: forall x. ProresSettings -> Rep ProresSettings x
Prelude.Generic)
newProresSettings ::
ProresSettings
newProresSettings :: ProresSettings
newProresSettings =
ProresSettings'
{ $sel:chromaSampling:ProresSettings' :: Maybe ProresChromaSampling
chromaSampling = forall a. Maybe a
Prelude.Nothing,
$sel:codecProfile:ProresSettings' :: Maybe ProresCodecProfile
codecProfile = forall a. Maybe a
Prelude.Nothing,
$sel:framerateControl:ProresSettings' :: Maybe ProresFramerateControl
framerateControl = forall a. Maybe a
Prelude.Nothing,
$sel:framerateConversionAlgorithm:ProresSettings' :: Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm = forall a. Maybe a
Prelude.Nothing,
$sel:framerateDenominator:ProresSettings' :: Maybe Natural
framerateDenominator = forall a. Maybe a
Prelude.Nothing,
$sel:framerateNumerator:ProresSettings' :: Maybe Natural
framerateNumerator = forall a. Maybe a
Prelude.Nothing,
$sel:interlaceMode:ProresSettings' :: Maybe ProresInterlaceMode
interlaceMode = forall a. Maybe a
Prelude.Nothing,
$sel:parControl:ProresSettings' :: Maybe ProresParControl
parControl = forall a. Maybe a
Prelude.Nothing,
$sel:parDenominator:ProresSettings' :: Maybe Natural
parDenominator = forall a. Maybe a
Prelude.Nothing,
$sel:parNumerator:ProresSettings' :: Maybe Natural
parNumerator = forall a. Maybe a
Prelude.Nothing,
$sel:scanTypeConversionMode:ProresSettings' :: Maybe ProresScanTypeConversionMode
scanTypeConversionMode = forall a. Maybe a
Prelude.Nothing,
$sel:slowPal:ProresSettings' :: Maybe ProresSlowPal
slowPal = forall a. Maybe a
Prelude.Nothing,
$sel:telecine:ProresSettings' :: Maybe ProresTelecine
telecine = forall a. Maybe a
Prelude.Nothing
}
proresSettings_chromaSampling :: Lens.Lens' ProresSettings (Prelude.Maybe ProresChromaSampling)
proresSettings_chromaSampling :: Lens' ProresSettings (Maybe ProresChromaSampling)
proresSettings_chromaSampling = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresChromaSampling
chromaSampling :: Maybe ProresChromaSampling
$sel:chromaSampling:ProresSettings' :: ProresSettings -> Maybe ProresChromaSampling
chromaSampling} -> Maybe ProresChromaSampling
chromaSampling) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresChromaSampling
a -> ProresSettings
s {$sel:chromaSampling:ProresSettings' :: Maybe ProresChromaSampling
chromaSampling = Maybe ProresChromaSampling
a} :: ProresSettings)
proresSettings_codecProfile :: Lens.Lens' ProresSettings (Prelude.Maybe ProresCodecProfile)
proresSettings_codecProfile :: Lens' ProresSettings (Maybe ProresCodecProfile)
proresSettings_codecProfile = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresCodecProfile
codecProfile :: Maybe ProresCodecProfile
$sel:codecProfile:ProresSettings' :: ProresSettings -> Maybe ProresCodecProfile
codecProfile} -> Maybe ProresCodecProfile
codecProfile) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresCodecProfile
a -> ProresSettings
s {$sel:codecProfile:ProresSettings' :: Maybe ProresCodecProfile
codecProfile = Maybe ProresCodecProfile
a} :: ProresSettings)
proresSettings_framerateControl :: Lens.Lens' ProresSettings (Prelude.Maybe ProresFramerateControl)
proresSettings_framerateControl :: Lens' ProresSettings (Maybe ProresFramerateControl)
proresSettings_framerateControl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresFramerateControl
framerateControl :: Maybe ProresFramerateControl
$sel:framerateControl:ProresSettings' :: ProresSettings -> Maybe ProresFramerateControl
framerateControl} -> Maybe ProresFramerateControl
framerateControl) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresFramerateControl
a -> ProresSettings
s {$sel:framerateControl:ProresSettings' :: Maybe ProresFramerateControl
framerateControl = Maybe ProresFramerateControl
a} :: ProresSettings)
proresSettings_framerateConversionAlgorithm :: Lens.Lens' ProresSettings (Prelude.Maybe ProresFramerateConversionAlgorithm)
proresSettings_framerateConversionAlgorithm :: Lens' ProresSettings (Maybe ProresFramerateConversionAlgorithm)
proresSettings_framerateConversionAlgorithm = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm :: Maybe ProresFramerateConversionAlgorithm
$sel:framerateConversionAlgorithm:ProresSettings' :: ProresSettings -> Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm} -> Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresFramerateConversionAlgorithm
a -> ProresSettings
s {$sel:framerateConversionAlgorithm:ProresSettings' :: Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm = Maybe ProresFramerateConversionAlgorithm
a} :: ProresSettings)
proresSettings_framerateDenominator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_framerateDenominator :: Lens' ProresSettings (Maybe Natural)
proresSettings_framerateDenominator = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe Natural
framerateDenominator :: Maybe Natural
$sel:framerateDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
framerateDenominator} -> Maybe Natural
framerateDenominator) (\s :: ProresSettings
s@ProresSettings' {} Maybe Natural
a -> ProresSettings
s {$sel:framerateDenominator:ProresSettings' :: Maybe Natural
framerateDenominator = Maybe Natural
a} :: ProresSettings)
proresSettings_framerateNumerator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_framerateNumerator :: Lens' ProresSettings (Maybe Natural)
proresSettings_framerateNumerator = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe Natural
framerateNumerator :: Maybe Natural
$sel:framerateNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
framerateNumerator} -> Maybe Natural
framerateNumerator) (\s :: ProresSettings
s@ProresSettings' {} Maybe Natural
a -> ProresSettings
s {$sel:framerateNumerator:ProresSettings' :: Maybe Natural
framerateNumerator = Maybe Natural
a} :: ProresSettings)
proresSettings_interlaceMode :: Lens.Lens' ProresSettings (Prelude.Maybe ProresInterlaceMode)
proresSettings_interlaceMode :: Lens' ProresSettings (Maybe ProresInterlaceMode)
proresSettings_interlaceMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresInterlaceMode
interlaceMode :: Maybe ProresInterlaceMode
$sel:interlaceMode:ProresSettings' :: ProresSettings -> Maybe ProresInterlaceMode
interlaceMode} -> Maybe ProresInterlaceMode
interlaceMode) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresInterlaceMode
a -> ProresSettings
s {$sel:interlaceMode:ProresSettings' :: Maybe ProresInterlaceMode
interlaceMode = Maybe ProresInterlaceMode
a} :: ProresSettings)
proresSettings_parControl :: Lens.Lens' ProresSettings (Prelude.Maybe ProresParControl)
proresSettings_parControl :: Lens' ProresSettings (Maybe ProresParControl)
proresSettings_parControl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresParControl
parControl :: Maybe ProresParControl
$sel:parControl:ProresSettings' :: ProresSettings -> Maybe ProresParControl
parControl} -> Maybe ProresParControl
parControl) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresParControl
a -> ProresSettings
s {$sel:parControl:ProresSettings' :: Maybe ProresParControl
parControl = Maybe ProresParControl
a} :: ProresSettings)
proresSettings_parDenominator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_parDenominator :: Lens' ProresSettings (Maybe Natural)
proresSettings_parDenominator = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe Natural
parDenominator :: Maybe Natural
$sel:parDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
parDenominator} -> Maybe Natural
parDenominator) (\s :: ProresSettings
s@ProresSettings' {} Maybe Natural
a -> ProresSettings
s {$sel:parDenominator:ProresSettings' :: Maybe Natural
parDenominator = Maybe Natural
a} :: ProresSettings)
proresSettings_parNumerator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_parNumerator :: Lens' ProresSettings (Maybe Natural)
proresSettings_parNumerator = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe Natural
parNumerator :: Maybe Natural
$sel:parNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
parNumerator} -> Maybe Natural
parNumerator) (\s :: ProresSettings
s@ProresSettings' {} Maybe Natural
a -> ProresSettings
s {$sel:parNumerator:ProresSettings' :: Maybe Natural
parNumerator = Maybe Natural
a} :: ProresSettings)
proresSettings_scanTypeConversionMode :: Lens.Lens' ProresSettings (Prelude.Maybe ProresScanTypeConversionMode)
proresSettings_scanTypeConversionMode :: Lens' ProresSettings (Maybe ProresScanTypeConversionMode)
proresSettings_scanTypeConversionMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresScanTypeConversionMode
scanTypeConversionMode :: Maybe ProresScanTypeConversionMode
$sel:scanTypeConversionMode:ProresSettings' :: ProresSettings -> Maybe ProresScanTypeConversionMode
scanTypeConversionMode} -> Maybe ProresScanTypeConversionMode
scanTypeConversionMode) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresScanTypeConversionMode
a -> ProresSettings
s {$sel:scanTypeConversionMode:ProresSettings' :: Maybe ProresScanTypeConversionMode
scanTypeConversionMode = Maybe ProresScanTypeConversionMode
a} :: ProresSettings)
proresSettings_slowPal :: Lens.Lens' ProresSettings (Prelude.Maybe ProresSlowPal)
proresSettings_slowPal :: Lens' ProresSettings (Maybe ProresSlowPal)
proresSettings_slowPal = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresSlowPal
slowPal :: Maybe ProresSlowPal
$sel:slowPal:ProresSettings' :: ProresSettings -> Maybe ProresSlowPal
slowPal} -> Maybe ProresSlowPal
slowPal) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresSlowPal
a -> ProresSettings
s {$sel:slowPal:ProresSettings' :: Maybe ProresSlowPal
slowPal = Maybe ProresSlowPal
a} :: ProresSettings)
proresSettings_telecine :: Lens.Lens' ProresSettings (Prelude.Maybe ProresTelecine)
proresSettings_telecine :: Lens' ProresSettings (Maybe ProresTelecine)
proresSettings_telecine = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProresSettings' {Maybe ProresTelecine
telecine :: Maybe ProresTelecine
$sel:telecine:ProresSettings' :: ProresSettings -> Maybe ProresTelecine
telecine} -> Maybe ProresTelecine
telecine) (\s :: ProresSettings
s@ProresSettings' {} Maybe ProresTelecine
a -> ProresSettings
s {$sel:telecine:ProresSettings' :: Maybe ProresTelecine
telecine = Maybe ProresTelecine
a} :: ProresSettings)
instance Data.FromJSON ProresSettings where
parseJSON :: Value -> Parser ProresSettings
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ProresSettings"
( \Object
x ->
Maybe ProresChromaSampling
-> Maybe ProresCodecProfile
-> Maybe ProresFramerateControl
-> Maybe ProresFramerateConversionAlgorithm
-> Maybe Natural
-> Maybe Natural
-> Maybe ProresInterlaceMode
-> Maybe ProresParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe ProresScanTypeConversionMode
-> Maybe ProresSlowPal
-> Maybe ProresTelecine
-> ProresSettings
ProresSettings'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"chromaSampling")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"codecProfile")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"framerateControl")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"framerateConversionAlgorithm")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"framerateDenominator")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"framerateNumerator")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"interlaceMode")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"parControl")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"parDenominator")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"parNumerator")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"scanTypeConversionMode")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"slowPal")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"telecine")
)
instance Prelude.Hashable ProresSettings where
hashWithSalt :: Int -> ProresSettings -> Int
hashWithSalt Int
_salt ProresSettings' {Maybe Natural
Maybe ProresChromaSampling
Maybe ProresCodecProfile
Maybe ProresFramerateControl
Maybe ProresFramerateConversionAlgorithm
Maybe ProresInterlaceMode
Maybe ProresParControl
Maybe ProresScanTypeConversionMode
Maybe ProresSlowPal
Maybe ProresTelecine
telecine :: Maybe ProresTelecine
slowPal :: Maybe ProresSlowPal
scanTypeConversionMode :: Maybe ProresScanTypeConversionMode
parNumerator :: Maybe Natural
parDenominator :: Maybe Natural
parControl :: Maybe ProresParControl
interlaceMode :: Maybe ProresInterlaceMode
framerateNumerator :: Maybe Natural
framerateDenominator :: Maybe Natural
framerateConversionAlgorithm :: Maybe ProresFramerateConversionAlgorithm
framerateControl :: Maybe ProresFramerateControl
codecProfile :: Maybe ProresCodecProfile
chromaSampling :: Maybe ProresChromaSampling
$sel:telecine:ProresSettings' :: ProresSettings -> Maybe ProresTelecine
$sel:slowPal:ProresSettings' :: ProresSettings -> Maybe ProresSlowPal
$sel:scanTypeConversionMode:ProresSettings' :: ProresSettings -> Maybe ProresScanTypeConversionMode
$sel:parNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:parDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:parControl:ProresSettings' :: ProresSettings -> Maybe ProresParControl
$sel:interlaceMode:ProresSettings' :: ProresSettings -> Maybe ProresInterlaceMode
$sel:framerateNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:framerateDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:framerateConversionAlgorithm:ProresSettings' :: ProresSettings -> Maybe ProresFramerateConversionAlgorithm
$sel:framerateControl:ProresSettings' :: ProresSettings -> Maybe ProresFramerateControl
$sel:codecProfile:ProresSettings' :: ProresSettings -> Maybe ProresCodecProfile
$sel:chromaSampling:ProresSettings' :: ProresSettings -> Maybe ProresChromaSampling
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresChromaSampling
chromaSampling
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresCodecProfile
codecProfile
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresFramerateControl
framerateControl
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
framerateDenominator
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
framerateNumerator
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresInterlaceMode
interlaceMode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresParControl
parControl
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
parDenominator
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
parNumerator
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresScanTypeConversionMode
scanTypeConversionMode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresSlowPal
slowPal
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProresTelecine
telecine
instance Prelude.NFData ProresSettings where
rnf :: ProresSettings -> ()
rnf ProresSettings' {Maybe Natural
Maybe ProresChromaSampling
Maybe ProresCodecProfile
Maybe ProresFramerateControl
Maybe ProresFramerateConversionAlgorithm
Maybe ProresInterlaceMode
Maybe ProresParControl
Maybe ProresScanTypeConversionMode
Maybe ProresSlowPal
Maybe ProresTelecine
telecine :: Maybe ProresTelecine
slowPal :: Maybe ProresSlowPal
scanTypeConversionMode :: Maybe ProresScanTypeConversionMode
parNumerator :: Maybe Natural
parDenominator :: Maybe Natural
parControl :: Maybe ProresParControl
interlaceMode :: Maybe ProresInterlaceMode
framerateNumerator :: Maybe Natural
framerateDenominator :: Maybe Natural
framerateConversionAlgorithm :: Maybe ProresFramerateConversionAlgorithm
framerateControl :: Maybe ProresFramerateControl
codecProfile :: Maybe ProresCodecProfile
chromaSampling :: Maybe ProresChromaSampling
$sel:telecine:ProresSettings' :: ProresSettings -> Maybe ProresTelecine
$sel:slowPal:ProresSettings' :: ProresSettings -> Maybe ProresSlowPal
$sel:scanTypeConversionMode:ProresSettings' :: ProresSettings -> Maybe ProresScanTypeConversionMode
$sel:parNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:parDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:parControl:ProresSettings' :: ProresSettings -> Maybe ProresParControl
$sel:interlaceMode:ProresSettings' :: ProresSettings -> Maybe ProresInterlaceMode
$sel:framerateNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:framerateDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:framerateConversionAlgorithm:ProresSettings' :: ProresSettings -> Maybe ProresFramerateConversionAlgorithm
$sel:framerateControl:ProresSettings' :: ProresSettings -> Maybe ProresFramerateControl
$sel:codecProfile:ProresSettings' :: ProresSettings -> Maybe ProresCodecProfile
$sel:chromaSampling:ProresSettings' :: ProresSettings -> Maybe ProresChromaSampling
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresChromaSampling
chromaSampling
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresCodecProfile
codecProfile
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresFramerateControl
framerateControl
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
framerateDenominator
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
framerateNumerator
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresInterlaceMode
interlaceMode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresParControl
parControl
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
parDenominator
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
parNumerator
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresScanTypeConversionMode
scanTypeConversionMode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresSlowPal
slowPal
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProresTelecine
telecine
instance Data.ToJSON ProresSettings where
toJSON :: ProresSettings -> Value
toJSON ProresSettings' {Maybe Natural
Maybe ProresChromaSampling
Maybe ProresCodecProfile
Maybe ProresFramerateControl
Maybe ProresFramerateConversionAlgorithm
Maybe ProresInterlaceMode
Maybe ProresParControl
Maybe ProresScanTypeConversionMode
Maybe ProresSlowPal
Maybe ProresTelecine
telecine :: Maybe ProresTelecine
slowPal :: Maybe ProresSlowPal
scanTypeConversionMode :: Maybe ProresScanTypeConversionMode
parNumerator :: Maybe Natural
parDenominator :: Maybe Natural
parControl :: Maybe ProresParControl
interlaceMode :: Maybe ProresInterlaceMode
framerateNumerator :: Maybe Natural
framerateDenominator :: Maybe Natural
framerateConversionAlgorithm :: Maybe ProresFramerateConversionAlgorithm
framerateControl :: Maybe ProresFramerateControl
codecProfile :: Maybe ProresCodecProfile
chromaSampling :: Maybe ProresChromaSampling
$sel:telecine:ProresSettings' :: ProresSettings -> Maybe ProresTelecine
$sel:slowPal:ProresSettings' :: ProresSettings -> Maybe ProresSlowPal
$sel:scanTypeConversionMode:ProresSettings' :: ProresSettings -> Maybe ProresScanTypeConversionMode
$sel:parNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:parDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:parControl:ProresSettings' :: ProresSettings -> Maybe ProresParControl
$sel:interlaceMode:ProresSettings' :: ProresSettings -> Maybe ProresInterlaceMode
$sel:framerateNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:framerateDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:framerateConversionAlgorithm:ProresSettings' :: ProresSettings -> Maybe ProresFramerateConversionAlgorithm
$sel:framerateControl:ProresSettings' :: ProresSettings -> Maybe ProresFramerateControl
$sel:codecProfile:ProresSettings' :: ProresSettings -> Maybe ProresCodecProfile
$sel:chromaSampling:ProresSettings' :: ProresSettings -> Maybe ProresChromaSampling
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"chromaSampling" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresChromaSampling
chromaSampling,
(Key
"codecProfile" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresCodecProfile
codecProfile,
(Key
"framerateControl" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresFramerateControl
framerateControl,
(Key
"framerateConversionAlgorithm" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm,
(Key
"framerateDenominator" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
framerateDenominator,
(Key
"framerateNumerator" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
framerateNumerator,
(Key
"interlaceMode" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresInterlaceMode
interlaceMode,
(Key
"parControl" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresParControl
parControl,
(Key
"parDenominator" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
parDenominator,
(Key
"parNumerator" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
parNumerator,
(Key
"scanTypeConversionMode" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresScanTypeConversionMode
scanTypeConversionMode,
(Key
"slowPal" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresSlowPal
slowPal,
(Key
"telecine" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresTelecine
telecine
]
)