{-# 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.Vp8Settings where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaConvert.Types.Vp8FramerateControl
import Amazonka.MediaConvert.Types.Vp8FramerateConversionAlgorithm
import Amazonka.MediaConvert.Types.Vp8ParControl
import Amazonka.MediaConvert.Types.Vp8QualityTuningLevel
import Amazonka.MediaConvert.Types.Vp8RateControlMode
import qualified Amazonka.Prelude as Prelude
data Vp8Settings = Vp8Settings'
{
Vp8Settings -> Maybe Vp8QualityTuningLevel
qualityTuningLevel :: Prelude.Maybe Vp8QualityTuningLevel,
Vp8Settings -> Maybe Natural
parNumerator :: Prelude.Maybe Prelude.Natural,
Vp8Settings -> Maybe Double
gopSize :: Prelude.Maybe Prelude.Double,
Vp8Settings -> Maybe Natural
hrdBufferSize :: Prelude.Maybe Prelude.Natural,
Vp8Settings -> Maybe Vp8RateControlMode
rateControlMode :: Prelude.Maybe Vp8RateControlMode,
Vp8Settings -> Maybe Vp8ParControl
parControl :: Prelude.Maybe Vp8ParControl,
Vp8Settings -> Maybe Natural
bitrate :: Prelude.Maybe Prelude.Natural,
Vp8Settings -> Maybe Natural
framerateDenominator :: Prelude.Maybe Prelude.Natural,
Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm :: Prelude.Maybe Vp8FramerateConversionAlgorithm,
Vp8Settings -> Maybe Vp8FramerateControl
framerateControl :: Prelude.Maybe Vp8FramerateControl,
Vp8Settings -> Maybe Natural
framerateNumerator :: Prelude.Maybe Prelude.Natural,
Vp8Settings -> Maybe Natural
maxBitrate :: Prelude.Maybe Prelude.Natural,
Vp8Settings -> Maybe Natural
parDenominator :: Prelude.Maybe Prelude.Natural
}
deriving (Vp8Settings -> Vp8Settings -> Bool
(Vp8Settings -> Vp8Settings -> Bool)
-> (Vp8Settings -> Vp8Settings -> Bool) -> Eq Vp8Settings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Vp8Settings -> Vp8Settings -> Bool
$c/= :: Vp8Settings -> Vp8Settings -> Bool
== :: Vp8Settings -> Vp8Settings -> Bool
$c== :: Vp8Settings -> Vp8Settings -> Bool
Prelude.Eq, ReadPrec [Vp8Settings]
ReadPrec Vp8Settings
Int -> ReadS Vp8Settings
ReadS [Vp8Settings]
(Int -> ReadS Vp8Settings)
-> ReadS [Vp8Settings]
-> ReadPrec Vp8Settings
-> ReadPrec [Vp8Settings]
-> Read Vp8Settings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Vp8Settings]
$creadListPrec :: ReadPrec [Vp8Settings]
readPrec :: ReadPrec Vp8Settings
$creadPrec :: ReadPrec Vp8Settings
readList :: ReadS [Vp8Settings]
$creadList :: ReadS [Vp8Settings]
readsPrec :: Int -> ReadS Vp8Settings
$creadsPrec :: Int -> ReadS Vp8Settings
Prelude.Read, Int -> Vp8Settings -> ShowS
[Vp8Settings] -> ShowS
Vp8Settings -> String
(Int -> Vp8Settings -> ShowS)
-> (Vp8Settings -> String)
-> ([Vp8Settings] -> ShowS)
-> Show Vp8Settings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Vp8Settings] -> ShowS
$cshowList :: [Vp8Settings] -> ShowS
show :: Vp8Settings -> String
$cshow :: Vp8Settings -> String
showsPrec :: Int -> Vp8Settings -> ShowS
$cshowsPrec :: Int -> Vp8Settings -> ShowS
Prelude.Show, (forall x. Vp8Settings -> Rep Vp8Settings x)
-> (forall x. Rep Vp8Settings x -> Vp8Settings)
-> Generic Vp8Settings
forall x. Rep Vp8Settings x -> Vp8Settings
forall x. Vp8Settings -> Rep Vp8Settings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Vp8Settings x -> Vp8Settings
$cfrom :: forall x. Vp8Settings -> Rep Vp8Settings x
Prelude.Generic)
newVp8Settings ::
Vp8Settings
newVp8Settings :: Vp8Settings
newVp8Settings =
Vp8Settings' :: Maybe Vp8QualityTuningLevel
-> Maybe Natural
-> Maybe Double
-> Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings
Vp8Settings'
{ $sel:qualityTuningLevel:Vp8Settings' :: Maybe Vp8QualityTuningLevel
qualityTuningLevel = Maybe Vp8QualityTuningLevel
forall a. Maybe a
Prelude.Nothing,
$sel:parNumerator:Vp8Settings' :: Maybe Natural
parNumerator = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:gopSize:Vp8Settings' :: Maybe Double
gopSize = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:hrdBufferSize:Vp8Settings' :: Maybe Natural
hrdBufferSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:rateControlMode:Vp8Settings' :: Maybe Vp8RateControlMode
rateControlMode = Maybe Vp8RateControlMode
forall a. Maybe a
Prelude.Nothing,
$sel:parControl:Vp8Settings' :: Maybe Vp8ParControl
parControl = Maybe Vp8ParControl
forall a. Maybe a
Prelude.Nothing,
$sel:bitrate:Vp8Settings' :: Maybe Natural
bitrate = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:framerateDenominator:Vp8Settings' :: Maybe Natural
framerateDenominator = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:framerateConversionAlgorithm:Vp8Settings' :: Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm = Maybe Vp8FramerateConversionAlgorithm
forall a. Maybe a
Prelude.Nothing,
$sel:framerateControl:Vp8Settings' :: Maybe Vp8FramerateControl
framerateControl = Maybe Vp8FramerateControl
forall a. Maybe a
Prelude.Nothing,
$sel:framerateNumerator:Vp8Settings' :: Maybe Natural
framerateNumerator = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:maxBitrate:Vp8Settings' :: Maybe Natural
maxBitrate = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:parDenominator:Vp8Settings' :: Maybe Natural
parDenominator = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
vp8Settings_qualityTuningLevel :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8QualityTuningLevel)
vp8Settings_qualityTuningLevel :: (Maybe Vp8QualityTuningLevel -> f (Maybe Vp8QualityTuningLevel))
-> Vp8Settings -> f Vp8Settings
vp8Settings_qualityTuningLevel = (Vp8Settings -> Maybe Vp8QualityTuningLevel)
-> (Vp8Settings -> Maybe Vp8QualityTuningLevel -> Vp8Settings)
-> Lens
Vp8Settings
Vp8Settings
(Maybe Vp8QualityTuningLevel)
(Maybe Vp8QualityTuningLevel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Vp8QualityTuningLevel
qualityTuningLevel :: Maybe Vp8QualityTuningLevel
$sel:qualityTuningLevel:Vp8Settings' :: Vp8Settings -> Maybe Vp8QualityTuningLevel
qualityTuningLevel} -> Maybe Vp8QualityTuningLevel
qualityTuningLevel) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Vp8QualityTuningLevel
a -> Vp8Settings
s {$sel:qualityTuningLevel:Vp8Settings' :: Maybe Vp8QualityTuningLevel
qualityTuningLevel = Maybe Vp8QualityTuningLevel
a} :: Vp8Settings)
vp8Settings_parNumerator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_parNumerator :: (Maybe Natural -> f (Maybe Natural))
-> Vp8Settings -> f Vp8Settings
vp8Settings_parNumerator = (Vp8Settings -> Maybe Natural)
-> (Vp8Settings -> Maybe Natural -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Natural
parNumerator :: Maybe Natural
$sel:parNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
parNumerator} -> Maybe Natural
parNumerator) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Natural
a -> Vp8Settings
s {$sel:parNumerator:Vp8Settings' :: Maybe Natural
parNumerator = Maybe Natural
a} :: Vp8Settings)
vp8Settings_gopSize :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Double)
vp8Settings_gopSize :: (Maybe Double -> f (Maybe Double)) -> Vp8Settings -> f Vp8Settings
vp8Settings_gopSize = (Vp8Settings -> Maybe Double)
-> (Vp8Settings -> Maybe Double -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Double
gopSize :: Maybe Double
$sel:gopSize:Vp8Settings' :: Vp8Settings -> Maybe Double
gopSize} -> Maybe Double
gopSize) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Double
a -> Vp8Settings
s {$sel:gopSize:Vp8Settings' :: Maybe Double
gopSize = Maybe Double
a} :: Vp8Settings)
vp8Settings_hrdBufferSize :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_hrdBufferSize :: (Maybe Natural -> f (Maybe Natural))
-> Vp8Settings -> f Vp8Settings
vp8Settings_hrdBufferSize = (Vp8Settings -> Maybe Natural)
-> (Vp8Settings -> Maybe Natural -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Natural
hrdBufferSize :: Maybe Natural
$sel:hrdBufferSize:Vp8Settings' :: Vp8Settings -> Maybe Natural
hrdBufferSize} -> Maybe Natural
hrdBufferSize) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Natural
a -> Vp8Settings
s {$sel:hrdBufferSize:Vp8Settings' :: Maybe Natural
hrdBufferSize = Maybe Natural
a} :: Vp8Settings)
vp8Settings_rateControlMode :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8RateControlMode)
vp8Settings_rateControlMode :: (Maybe Vp8RateControlMode -> f (Maybe Vp8RateControlMode))
-> Vp8Settings -> f Vp8Settings
vp8Settings_rateControlMode = (Vp8Settings -> Maybe Vp8RateControlMode)
-> (Vp8Settings -> Maybe Vp8RateControlMode -> Vp8Settings)
-> Lens
Vp8Settings
Vp8Settings
(Maybe Vp8RateControlMode)
(Maybe Vp8RateControlMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Vp8RateControlMode
rateControlMode :: Maybe Vp8RateControlMode
$sel:rateControlMode:Vp8Settings' :: Vp8Settings -> Maybe Vp8RateControlMode
rateControlMode} -> Maybe Vp8RateControlMode
rateControlMode) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Vp8RateControlMode
a -> Vp8Settings
s {$sel:rateControlMode:Vp8Settings' :: Maybe Vp8RateControlMode
rateControlMode = Maybe Vp8RateControlMode
a} :: Vp8Settings)
vp8Settings_parControl :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8ParControl)
vp8Settings_parControl :: (Maybe Vp8ParControl -> f (Maybe Vp8ParControl))
-> Vp8Settings -> f Vp8Settings
vp8Settings_parControl = (Vp8Settings -> Maybe Vp8ParControl)
-> (Vp8Settings -> Maybe Vp8ParControl -> Vp8Settings)
-> Lens
Vp8Settings Vp8Settings (Maybe Vp8ParControl) (Maybe Vp8ParControl)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Vp8ParControl
parControl :: Maybe Vp8ParControl
$sel:parControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8ParControl
parControl} -> Maybe Vp8ParControl
parControl) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Vp8ParControl
a -> Vp8Settings
s {$sel:parControl:Vp8Settings' :: Maybe Vp8ParControl
parControl = Maybe Vp8ParControl
a} :: Vp8Settings)
vp8Settings_bitrate :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_bitrate :: (Maybe Natural -> f (Maybe Natural))
-> Vp8Settings -> f Vp8Settings
vp8Settings_bitrate = (Vp8Settings -> Maybe Natural)
-> (Vp8Settings -> Maybe Natural -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Natural
bitrate :: Maybe Natural
$sel:bitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
bitrate} -> Maybe Natural
bitrate) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Natural
a -> Vp8Settings
s {$sel:bitrate:Vp8Settings' :: Maybe Natural
bitrate = Maybe Natural
a} :: Vp8Settings)
vp8Settings_framerateDenominator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_framerateDenominator :: (Maybe Natural -> f (Maybe Natural))
-> Vp8Settings -> f Vp8Settings
vp8Settings_framerateDenominator = (Vp8Settings -> Maybe Natural)
-> (Vp8Settings -> Maybe Natural -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Natural
framerateDenominator :: Maybe Natural
$sel:framerateDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
framerateDenominator} -> Maybe Natural
framerateDenominator) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Natural
a -> Vp8Settings
s {$sel:framerateDenominator:Vp8Settings' :: Maybe Natural
framerateDenominator = Maybe Natural
a} :: Vp8Settings)
vp8Settings_framerateConversionAlgorithm :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8FramerateConversionAlgorithm)
vp8Settings_framerateConversionAlgorithm :: (Maybe Vp8FramerateConversionAlgorithm
-> f (Maybe Vp8FramerateConversionAlgorithm))
-> Vp8Settings -> f Vp8Settings
vp8Settings_framerateConversionAlgorithm = (Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm)
-> (Vp8Settings
-> Maybe Vp8FramerateConversionAlgorithm -> Vp8Settings)
-> Lens
Vp8Settings
Vp8Settings
(Maybe Vp8FramerateConversionAlgorithm)
(Maybe Vp8FramerateConversionAlgorithm)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm :: Maybe Vp8FramerateConversionAlgorithm
$sel:framerateConversionAlgorithm:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm} -> Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Vp8FramerateConversionAlgorithm
a -> Vp8Settings
s {$sel:framerateConversionAlgorithm:Vp8Settings' :: Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm = Maybe Vp8FramerateConversionAlgorithm
a} :: Vp8Settings)
vp8Settings_framerateControl :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8FramerateControl)
vp8Settings_framerateControl :: (Maybe Vp8FramerateControl -> f (Maybe Vp8FramerateControl))
-> Vp8Settings -> f Vp8Settings
vp8Settings_framerateControl = (Vp8Settings -> Maybe Vp8FramerateControl)
-> (Vp8Settings -> Maybe Vp8FramerateControl -> Vp8Settings)
-> Lens
Vp8Settings
Vp8Settings
(Maybe Vp8FramerateControl)
(Maybe Vp8FramerateControl)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Vp8FramerateControl
framerateControl :: Maybe Vp8FramerateControl
$sel:framerateControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateControl
framerateControl} -> Maybe Vp8FramerateControl
framerateControl) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Vp8FramerateControl
a -> Vp8Settings
s {$sel:framerateControl:Vp8Settings' :: Maybe Vp8FramerateControl
framerateControl = Maybe Vp8FramerateControl
a} :: Vp8Settings)
vp8Settings_framerateNumerator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_framerateNumerator :: (Maybe Natural -> f (Maybe Natural))
-> Vp8Settings -> f Vp8Settings
vp8Settings_framerateNumerator = (Vp8Settings -> Maybe Natural)
-> (Vp8Settings -> Maybe Natural -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Natural
framerateNumerator :: Maybe Natural
$sel:framerateNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
framerateNumerator} -> Maybe Natural
framerateNumerator) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Natural
a -> Vp8Settings
s {$sel:framerateNumerator:Vp8Settings' :: Maybe Natural
framerateNumerator = Maybe Natural
a} :: Vp8Settings)
vp8Settings_maxBitrate :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_maxBitrate :: (Maybe Natural -> f (Maybe Natural))
-> Vp8Settings -> f Vp8Settings
vp8Settings_maxBitrate = (Vp8Settings -> Maybe Natural)
-> (Vp8Settings -> Maybe Natural -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Natural
maxBitrate :: Maybe Natural
$sel:maxBitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
maxBitrate} -> Maybe Natural
maxBitrate) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Natural
a -> Vp8Settings
s {$sel:maxBitrate:Vp8Settings' :: Maybe Natural
maxBitrate = Maybe Natural
a} :: Vp8Settings)
vp8Settings_parDenominator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_parDenominator :: (Maybe Natural -> f (Maybe Natural))
-> Vp8Settings -> f Vp8Settings
vp8Settings_parDenominator = (Vp8Settings -> Maybe Natural)
-> (Vp8Settings -> Maybe Natural -> Vp8Settings)
-> Lens Vp8Settings Vp8Settings (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Vp8Settings' {Maybe Natural
parDenominator :: Maybe Natural
$sel:parDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
parDenominator} -> Maybe Natural
parDenominator) (\s :: Vp8Settings
s@Vp8Settings' {} Maybe Natural
a -> Vp8Settings
s {$sel:parDenominator:Vp8Settings' :: Maybe Natural
parDenominator = Maybe Natural
a} :: Vp8Settings)
instance Core.FromJSON Vp8Settings where
parseJSON :: Value -> Parser Vp8Settings
parseJSON =
String
-> (Object -> Parser Vp8Settings) -> Value -> Parser Vp8Settings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Vp8Settings"
( \Object
x ->
Maybe Vp8QualityTuningLevel
-> Maybe Natural
-> Maybe Double
-> Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings
Vp8Settings'
(Maybe Vp8QualityTuningLevel
-> Maybe Natural
-> Maybe Double
-> Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Vp8QualityTuningLevel)
-> Parser
(Maybe Natural
-> Maybe Double
-> Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Vp8QualityTuningLevel)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"qualityTuningLevel")
Parser
(Maybe Natural
-> Maybe Double
-> Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Double
-> Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
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
"parNumerator")
Parser
(Maybe Double
-> Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Double)
-> Parser
(Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"gopSize")
Parser
(Maybe Natural
-> Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
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
"hrdBufferSize")
Parser
(Maybe Vp8RateControlMode
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Vp8RateControlMode)
-> Parser
(Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Vp8RateControlMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"rateControlMode")
Parser
(Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Vp8ParControl)
-> Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Vp8ParControl)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"parControl")
Parser
(Maybe Natural
-> Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
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
"bitrate")
Parser
(Maybe Natural
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Natural)
-> Parser
(Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
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
"framerateDenominator")
Parser
(Maybe Vp8FramerateConversionAlgorithm
-> Maybe Vp8FramerateControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Vp8Settings)
-> Parser (Maybe Vp8FramerateConversionAlgorithm)
-> Parser
(Maybe Vp8FramerateControl
-> Maybe Natural -> Maybe Natural -> Maybe Natural -> Vp8Settings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Vp8FramerateConversionAlgorithm)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"framerateConversionAlgorithm")
Parser
(Maybe Vp8FramerateControl
-> Maybe Natural -> Maybe Natural -> Maybe Natural -> Vp8Settings)
-> Parser (Maybe Vp8FramerateControl)
-> Parser
(Maybe Natural -> Maybe Natural -> Maybe Natural -> Vp8Settings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Vp8FramerateControl)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"framerateControl")
Parser
(Maybe Natural -> Maybe Natural -> Maybe Natural -> Vp8Settings)
-> Parser (Maybe Natural)
-> Parser (Maybe Natural -> Maybe Natural -> Vp8Settings)
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
"framerateNumerator")
Parser (Maybe Natural -> Maybe Natural -> Vp8Settings)
-> Parser (Maybe Natural) -> Parser (Maybe Natural -> Vp8Settings)
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
"maxBitrate")
Parser (Maybe Natural -> Vp8Settings)
-> Parser (Maybe Natural) -> Parser Vp8Settings
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
"parDenominator")
)
instance Prelude.Hashable Vp8Settings
instance Prelude.NFData Vp8Settings
instance Core.ToJSON Vp8Settings where
toJSON :: Vp8Settings -> Value
toJSON Vp8Settings' {Maybe Double
Maybe Natural
Maybe Vp8FramerateControl
Maybe Vp8FramerateConversionAlgorithm
Maybe Vp8ParControl
Maybe Vp8QualityTuningLevel
Maybe Vp8RateControlMode
parDenominator :: Maybe Natural
maxBitrate :: Maybe Natural
framerateNumerator :: Maybe Natural
framerateControl :: Maybe Vp8FramerateControl
framerateConversionAlgorithm :: Maybe Vp8FramerateConversionAlgorithm
framerateDenominator :: Maybe Natural
bitrate :: Maybe Natural
parControl :: Maybe Vp8ParControl
rateControlMode :: Maybe Vp8RateControlMode
hrdBufferSize :: Maybe Natural
gopSize :: Maybe Double
parNumerator :: Maybe Natural
qualityTuningLevel :: Maybe Vp8QualityTuningLevel
$sel:parDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:maxBitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateControl
$sel:framerateConversionAlgorithm:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm
$sel:framerateDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:bitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:parControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8ParControl
$sel:rateControlMode:Vp8Settings' :: Vp8Settings -> Maybe Vp8RateControlMode
$sel:hrdBufferSize:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:gopSize:Vp8Settings' :: Vp8Settings -> Maybe Double
$sel:parNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:qualityTuningLevel:Vp8Settings' :: Vp8Settings -> Maybe Vp8QualityTuningLevel
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"qualityTuningLevel" Text -> Vp8QualityTuningLevel -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Vp8QualityTuningLevel -> Pair)
-> Maybe Vp8QualityTuningLevel -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Vp8QualityTuningLevel
qualityTuningLevel,
(Text
"parNumerator" 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
parNumerator,
(Text
"gopSize" Text -> Double -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Double -> Pair) -> Maybe Double -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Double
gopSize,
(Text
"hrdBufferSize" 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
hrdBufferSize,
(Text
"rateControlMode" Text -> Vp8RateControlMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Vp8RateControlMode -> Pair)
-> Maybe Vp8RateControlMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Vp8RateControlMode
rateControlMode,
(Text
"parControl" Text -> Vp8ParControl -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Vp8ParControl -> Pair) -> Maybe Vp8ParControl -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Vp8ParControl
parControl,
(Text
"bitrate" 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
bitrate,
(Text
"framerateDenominator" 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
framerateDenominator,
(Text
"framerateConversionAlgorithm" Text -> Vp8FramerateConversionAlgorithm -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Vp8FramerateConversionAlgorithm -> Pair)
-> Maybe Vp8FramerateConversionAlgorithm -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm,
(Text
"framerateControl" Text -> Vp8FramerateControl -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Vp8FramerateControl -> Pair)
-> Maybe Vp8FramerateControl -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Vp8FramerateControl
framerateControl,
(Text
"framerateNumerator" 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
framerateNumerator,
(Text
"maxBitrate" 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
maxBitrate,
(Text
"parDenominator" 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
parDenominator
]
)