{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaConvert.Types.Vp8Settings
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.Vp8Settings 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.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

-- | Required when you set (Codec) under (VideoDescription)>(CodecSettings)
-- to the value VP8.
--
-- /See:/ 'newVp8Settings' smart constructor.
data Vp8Settings = Vp8Settings'
  { -- | Target bitrate in bits\/second. For example, enter five megabits per
    -- second as 5000000.
    Vp8Settings -> Maybe Natural
bitrate :: Prelude.Maybe Prelude.Natural,
    -- | If you are using the console, use the Framerate setting to specify the
    -- frame rate for this output. If you want to keep the same frame rate as
    -- the input video, choose Follow source. If you want to do frame rate
    -- conversion, choose a frame rate from the dropdown list or choose Custom.
    -- The framerates shown in the dropdown list are decimal approximations of
    -- fractions. If you choose Custom, specify your frame rate as a fraction.
    -- If you are creating your transcoding job specification as a JSON file
    -- without the console, use FramerateControl to specify which value the
    -- service uses for the frame rate for this output. Choose
    -- INITIALIZE_FROM_SOURCE if you want the service to use the frame rate
    -- from the input. Choose SPECIFIED if you want the service to use the
    -- frame rate you specify in the settings FramerateNumerator and
    -- FramerateDenominator.
    Vp8Settings -> Maybe Vp8FramerateControl
framerateControl :: Prelude.Maybe Vp8FramerateControl,
    -- | Choose the method that you want MediaConvert to use when increasing or
    -- decreasing the frame rate. We recommend using drop duplicate
    -- (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to
    -- 30 fps. For numerically complex conversions, you can use interpolate
    -- (INTERPOLATE) to avoid stutter. This results in a smooth picture, but
    -- might introduce undesirable video artifacts. For complex frame rate
    -- conversions, especially if your source video has already been converted
    -- from its original cadence, use FrameFormer (FRAMEFORMER) to do
    -- motion-compensated interpolation. FrameFormer chooses the best
    -- conversion method frame by frame. Note that using FrameFormer increases
    -- the transcoding time and incurs a significant add-on cost.
    Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm :: Prelude.Maybe Vp8FramerateConversionAlgorithm,
    -- | When you use the API for transcode jobs that use frame rate conversion,
    -- specify the frame rate as a fraction. For example, 24000 \/ 1001 =
    -- 23.976 fps. Use FramerateDenominator to specify the denominator of this
    -- fraction. In this example, use 1001 for the value of
    -- FramerateDenominator. When you use the console for transcode jobs that
    -- use frame rate conversion, provide the value as a decimal number for
    -- Framerate. In this example, specify 23.976.
    Vp8Settings -> Maybe Natural
framerateDenominator :: Prelude.Maybe Prelude.Natural,
    -- | When you use the API for transcode jobs that use frame rate conversion,
    -- specify the frame rate as a fraction. For example, 24000 \/ 1001 =
    -- 23.976 fps. Use FramerateNumerator to specify the numerator of this
    -- fraction. In this example, use 24000 for the value of
    -- FramerateNumerator. When you use the console for transcode jobs that use
    -- frame rate conversion, provide the value as a decimal number for
    -- Framerate. In this example, specify 23.976.
    Vp8Settings -> Maybe Natural
framerateNumerator :: Prelude.Maybe Prelude.Natural,
    -- | GOP Length (keyframe interval) in frames. Must be greater than zero.
    Vp8Settings -> Maybe Double
gopSize :: Prelude.Maybe Prelude.Double,
    -- | Optional. Size of buffer (HRD buffer model) in bits. For example, enter
    -- five megabits as 5000000.
    Vp8Settings -> Maybe Natural
hrdBufferSize :: Prelude.Maybe Prelude.Natural,
    -- | Ignore this setting unless you set qualityTuningLevel to MULTI_PASS.
    -- Optional. Specify the maximum bitrate in bits\/second. For example,
    -- enter five megabits per second as 5000000. The default behavior uses
    -- twice the target bitrate as the maximum bitrate.
    Vp8Settings -> Maybe Natural
maxBitrate :: Prelude.Maybe Prelude.Natural,
    -- | Optional. Specify how the service determines the pixel aspect ratio
    -- (PAR) for this output. The default behavior, Follow source
    -- (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your
    -- output. To specify a different PAR in the console, choose any value
    -- other than Follow source. To specify a different PAR by editing the JSON
    -- job specification, choose SPECIFIED. When you choose SPECIFIED for this
    -- setting, you must also specify values for the parNumerator and
    -- parDenominator settings.
    Vp8Settings -> Maybe Vp8ParControl
parControl :: Prelude.Maybe Vp8ParControl,
    -- | Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On
    -- the console, this corresponds to any value other than Follow source.
    -- When you specify an output pixel aspect ratio (PAR) that is different
    -- from your input video PAR, provide your output PAR as a ratio. For
    -- example, for D1\/DV NTSC widescreen, you would specify the ratio 40:33.
    -- In this example, the value for parDenominator is 33.
    Vp8Settings -> Maybe Natural
parDenominator :: Prelude.Maybe Prelude.Natural,
    -- | Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On
    -- the console, this corresponds to any value other than Follow source.
    -- When you specify an output pixel aspect ratio (PAR) that is different
    -- from your input video PAR, provide your output PAR as a ratio. For
    -- example, for D1\/DV NTSC widescreen, you would specify the ratio 40:33.
    -- In this example, the value for parNumerator is 40.
    Vp8Settings -> Maybe Natural
parNumerator :: Prelude.Maybe Prelude.Natural,
    -- | Optional. Use Quality tuning level (qualityTuningLevel) to choose how
    -- you want to trade off encoding speed for output video quality. The
    -- default behavior is faster, lower quality, multi-pass encoding.
    Vp8Settings -> Maybe Vp8QualityTuningLevel
qualityTuningLevel :: Prelude.Maybe Vp8QualityTuningLevel,
    -- | With the VP8 codec, you can use only the variable bitrate (VBR) rate
    -- control mode.
    Vp8Settings -> Maybe Vp8RateControlMode
rateControlMode :: Prelude.Maybe Vp8RateControlMode
  }
  deriving (Vp8Settings -> Vp8Settings -> Bool
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]
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
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. 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)

-- |
-- Create a value of 'Vp8Settings' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'bitrate', 'vp8Settings_bitrate' - Target bitrate in bits\/second. For example, enter five megabits per
-- second as 5000000.
--
-- 'framerateControl', 'vp8Settings_framerateControl' - If you are using the console, use the Framerate setting to specify the
-- frame rate for this output. If you want to keep the same frame rate as
-- the input video, choose Follow source. If you want to do frame rate
-- conversion, choose a frame rate from the dropdown list or choose Custom.
-- The framerates shown in the dropdown list are decimal approximations of
-- fractions. If you choose Custom, specify your frame rate as a fraction.
-- If you are creating your transcoding job specification as a JSON file
-- without the console, use FramerateControl to specify which value the
-- service uses for the frame rate for this output. Choose
-- INITIALIZE_FROM_SOURCE if you want the service to use the frame rate
-- from the input. Choose SPECIFIED if you want the service to use the
-- frame rate you specify in the settings FramerateNumerator and
-- FramerateDenominator.
--
-- 'framerateConversionAlgorithm', 'vp8Settings_framerateConversionAlgorithm' - Choose the method that you want MediaConvert to use when increasing or
-- decreasing the frame rate. We recommend using drop duplicate
-- (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to
-- 30 fps. For numerically complex conversions, you can use interpolate
-- (INTERPOLATE) to avoid stutter. This results in a smooth picture, but
-- might introduce undesirable video artifacts. For complex frame rate
-- conversions, especially if your source video has already been converted
-- from its original cadence, use FrameFormer (FRAMEFORMER) to do
-- motion-compensated interpolation. FrameFormer chooses the best
-- conversion method frame by frame. Note that using FrameFormer increases
-- the transcoding time and incurs a significant add-on cost.
--
-- 'framerateDenominator', 'vp8Settings_framerateDenominator' - When you use the API for transcode jobs that use frame rate conversion,
-- specify the frame rate as a fraction. For example, 24000 \/ 1001 =
-- 23.976 fps. Use FramerateDenominator to specify the denominator of this
-- fraction. In this example, use 1001 for the value of
-- FramerateDenominator. When you use the console for transcode jobs that
-- use frame rate conversion, provide the value as a decimal number for
-- Framerate. In this example, specify 23.976.
--
-- 'framerateNumerator', 'vp8Settings_framerateNumerator' - When you use the API for transcode jobs that use frame rate conversion,
-- specify the frame rate as a fraction. For example, 24000 \/ 1001 =
-- 23.976 fps. Use FramerateNumerator to specify the numerator of this
-- fraction. In this example, use 24000 for the value of
-- FramerateNumerator. When you use the console for transcode jobs that use
-- frame rate conversion, provide the value as a decimal number for
-- Framerate. In this example, specify 23.976.
--
-- 'gopSize', 'vp8Settings_gopSize' - GOP Length (keyframe interval) in frames. Must be greater than zero.
--
-- 'hrdBufferSize', 'vp8Settings_hrdBufferSize' - Optional. Size of buffer (HRD buffer model) in bits. For example, enter
-- five megabits as 5000000.
--
-- 'maxBitrate', 'vp8Settings_maxBitrate' - Ignore this setting unless you set qualityTuningLevel to MULTI_PASS.
-- Optional. Specify the maximum bitrate in bits\/second. For example,
-- enter five megabits per second as 5000000. The default behavior uses
-- twice the target bitrate as the maximum bitrate.
--
-- 'parControl', 'vp8Settings_parControl' - Optional. Specify how the service determines the pixel aspect ratio
-- (PAR) for this output. The default behavior, Follow source
-- (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your
-- output. To specify a different PAR in the console, choose any value
-- other than Follow source. To specify a different PAR by editing the JSON
-- job specification, choose SPECIFIED. When you choose SPECIFIED for this
-- setting, you must also specify values for the parNumerator and
-- parDenominator settings.
--
-- 'parDenominator', 'vp8Settings_parDenominator' - Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On
-- the console, this corresponds to any value other than Follow source.
-- When you specify an output pixel aspect ratio (PAR) that is different
-- from your input video PAR, provide your output PAR as a ratio. For
-- example, for D1\/DV NTSC widescreen, you would specify the ratio 40:33.
-- In this example, the value for parDenominator is 33.
--
-- 'parNumerator', 'vp8Settings_parNumerator' - Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On
-- the console, this corresponds to any value other than Follow source.
-- When you specify an output pixel aspect ratio (PAR) that is different
-- from your input video PAR, provide your output PAR as a ratio. For
-- example, for D1\/DV NTSC widescreen, you would specify the ratio 40:33.
-- In this example, the value for parNumerator is 40.
--
-- 'qualityTuningLevel', 'vp8Settings_qualityTuningLevel' - Optional. Use Quality tuning level (qualityTuningLevel) to choose how
-- you want to trade off encoding speed for output video quality. The
-- default behavior is faster, lower quality, multi-pass encoding.
--
-- 'rateControlMode', 'vp8Settings_rateControlMode' - With the VP8 codec, you can use only the variable bitrate (VBR) rate
-- control mode.
newVp8Settings ::
  Vp8Settings
newVp8Settings :: Vp8Settings
newVp8Settings =
  Vp8Settings'
    { $sel:bitrate:Vp8Settings' :: Maybe Natural
bitrate = forall a. Maybe a
Prelude.Nothing,
      $sel:framerateControl:Vp8Settings' :: Maybe Vp8FramerateControl
framerateControl = forall a. Maybe a
Prelude.Nothing,
      $sel:framerateConversionAlgorithm:Vp8Settings' :: Maybe Vp8FramerateConversionAlgorithm
framerateConversionAlgorithm = forall a. Maybe a
Prelude.Nothing,
      $sel:framerateDenominator:Vp8Settings' :: Maybe Natural
framerateDenominator = forall a. Maybe a
Prelude.Nothing,
      $sel:framerateNumerator:Vp8Settings' :: Maybe Natural
framerateNumerator = forall a. Maybe a
Prelude.Nothing,
      $sel:gopSize:Vp8Settings' :: Maybe Double
gopSize = forall a. Maybe a
Prelude.Nothing,
      $sel:hrdBufferSize:Vp8Settings' :: Maybe Natural
hrdBufferSize = forall a. Maybe a
Prelude.Nothing,
      $sel:maxBitrate:Vp8Settings' :: Maybe Natural
maxBitrate = forall a. Maybe a
Prelude.Nothing,
      $sel:parControl:Vp8Settings' :: Maybe Vp8ParControl
parControl = forall a. Maybe a
Prelude.Nothing,
      $sel:parDenominator:Vp8Settings' :: Maybe Natural
parDenominator = forall a. Maybe a
Prelude.Nothing,
      $sel:parNumerator:Vp8Settings' :: Maybe Natural
parNumerator = forall a. Maybe a
Prelude.Nothing,
      $sel:qualityTuningLevel:Vp8Settings' :: Maybe Vp8QualityTuningLevel
qualityTuningLevel = forall a. Maybe a
Prelude.Nothing,
      $sel:rateControlMode:Vp8Settings' :: Maybe Vp8RateControlMode
rateControlMode = forall a. Maybe a
Prelude.Nothing
    }

-- | Target bitrate in bits\/second. For example, enter five megabits per
-- second as 5000000.
vp8Settings_bitrate :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_bitrate :: Lens' Vp8Settings (Maybe Natural)
vp8Settings_bitrate = 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)

-- | If you are using the console, use the Framerate setting to specify the
-- frame rate for this output. If you want to keep the same frame rate as
-- the input video, choose Follow source. If you want to do frame rate
-- conversion, choose a frame rate from the dropdown list or choose Custom.
-- The framerates shown in the dropdown list are decimal approximations of
-- fractions. If you choose Custom, specify your frame rate as a fraction.
-- If you are creating your transcoding job specification as a JSON file
-- without the console, use FramerateControl to specify which value the
-- service uses for the frame rate for this output. Choose
-- INITIALIZE_FROM_SOURCE if you want the service to use the frame rate
-- from the input. Choose SPECIFIED if you want the service to use the
-- frame rate you specify in the settings FramerateNumerator and
-- FramerateDenominator.
vp8Settings_framerateControl :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8FramerateControl)
vp8Settings_framerateControl :: Lens' Vp8Settings (Maybe Vp8FramerateControl)
vp8Settings_framerateControl = 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)

-- | Choose the method that you want MediaConvert to use when increasing or
-- decreasing the frame rate. We recommend using drop duplicate
-- (DUPLICATE_DROP) for numerically simple conversions, such as 60 fps to
-- 30 fps. For numerically complex conversions, you can use interpolate
-- (INTERPOLATE) to avoid stutter. This results in a smooth picture, but
-- might introduce undesirable video artifacts. For complex frame rate
-- conversions, especially if your source video has already been converted
-- from its original cadence, use FrameFormer (FRAMEFORMER) to do
-- motion-compensated interpolation. FrameFormer chooses the best
-- conversion method frame by frame. Note that using FrameFormer increases
-- the transcoding time and incurs a significant add-on cost.
vp8Settings_framerateConversionAlgorithm :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8FramerateConversionAlgorithm)
vp8Settings_framerateConversionAlgorithm :: Lens' Vp8Settings (Maybe Vp8FramerateConversionAlgorithm)
vp8Settings_framerateConversionAlgorithm = 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)

-- | When you use the API for transcode jobs that use frame rate conversion,
-- specify the frame rate as a fraction. For example, 24000 \/ 1001 =
-- 23.976 fps. Use FramerateDenominator to specify the denominator of this
-- fraction. In this example, use 1001 for the value of
-- FramerateDenominator. When you use the console for transcode jobs that
-- use frame rate conversion, provide the value as a decimal number for
-- Framerate. In this example, specify 23.976.
vp8Settings_framerateDenominator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_framerateDenominator :: Lens' Vp8Settings (Maybe Natural)
vp8Settings_framerateDenominator = 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)

-- | When you use the API for transcode jobs that use frame rate conversion,
-- specify the frame rate as a fraction. For example, 24000 \/ 1001 =
-- 23.976 fps. Use FramerateNumerator to specify the numerator of this
-- fraction. In this example, use 24000 for the value of
-- FramerateNumerator. When you use the console for transcode jobs that use
-- frame rate conversion, provide the value as a decimal number for
-- Framerate. In this example, specify 23.976.
vp8Settings_framerateNumerator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_framerateNumerator :: Lens' Vp8Settings (Maybe Natural)
vp8Settings_framerateNumerator = 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)

-- | GOP Length (keyframe interval) in frames. Must be greater than zero.
vp8Settings_gopSize :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Double)
vp8Settings_gopSize :: Lens' Vp8Settings (Maybe Double)
vp8Settings_gopSize = 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)

-- | Optional. Size of buffer (HRD buffer model) in bits. For example, enter
-- five megabits as 5000000.
vp8Settings_hrdBufferSize :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_hrdBufferSize :: Lens' Vp8Settings (Maybe Natural)
vp8Settings_hrdBufferSize = 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)

-- | Ignore this setting unless you set qualityTuningLevel to MULTI_PASS.
-- Optional. Specify the maximum bitrate in bits\/second. For example,
-- enter five megabits per second as 5000000. The default behavior uses
-- twice the target bitrate as the maximum bitrate.
vp8Settings_maxBitrate :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_maxBitrate :: Lens' Vp8Settings (Maybe Natural)
vp8Settings_maxBitrate = 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)

-- | Optional. Specify how the service determines the pixel aspect ratio
-- (PAR) for this output. The default behavior, Follow source
-- (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your
-- output. To specify a different PAR in the console, choose any value
-- other than Follow source. To specify a different PAR by editing the JSON
-- job specification, choose SPECIFIED. When you choose SPECIFIED for this
-- setting, you must also specify values for the parNumerator and
-- parDenominator settings.
vp8Settings_parControl :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8ParControl)
vp8Settings_parControl :: Lens' Vp8Settings (Maybe Vp8ParControl)
vp8Settings_parControl = 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)

-- | Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On
-- the console, this corresponds to any value other than Follow source.
-- When you specify an output pixel aspect ratio (PAR) that is different
-- from your input video PAR, provide your output PAR as a ratio. For
-- example, for D1\/DV NTSC widescreen, you would specify the ratio 40:33.
-- In this example, the value for parDenominator is 33.
vp8Settings_parDenominator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_parDenominator :: Lens' Vp8Settings (Maybe Natural)
vp8Settings_parDenominator = 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)

-- | Required when you set Pixel aspect ratio (parControl) to SPECIFIED. On
-- the console, this corresponds to any value other than Follow source.
-- When you specify an output pixel aspect ratio (PAR) that is different
-- from your input video PAR, provide your output PAR as a ratio. For
-- example, for D1\/DV NTSC widescreen, you would specify the ratio 40:33.
-- In this example, the value for parNumerator is 40.
vp8Settings_parNumerator :: Lens.Lens' Vp8Settings (Prelude.Maybe Prelude.Natural)
vp8Settings_parNumerator :: Lens' Vp8Settings (Maybe Natural)
vp8Settings_parNumerator = 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)

-- | Optional. Use Quality tuning level (qualityTuningLevel) to choose how
-- you want to trade off encoding speed for output video quality. The
-- default behavior is faster, lower quality, multi-pass encoding.
vp8Settings_qualityTuningLevel :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8QualityTuningLevel)
vp8Settings_qualityTuningLevel :: Lens' Vp8Settings (Maybe Vp8QualityTuningLevel)
vp8Settings_qualityTuningLevel = 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)

-- | With the VP8 codec, you can use only the variable bitrate (VBR) rate
-- control mode.
vp8Settings_rateControlMode :: Lens.Lens' Vp8Settings (Prelude.Maybe Vp8RateControlMode)
vp8Settings_rateControlMode :: Lens' Vp8Settings (Maybe Vp8RateControlMode)
vp8Settings_rateControlMode = 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)

instance Data.FromJSON Vp8Settings where
  parseJSON :: Value -> Parser Vp8Settings
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Vp8Settings"
      ( \Object
x ->
          Maybe Natural
-> Maybe Vp8FramerateControl
-> Maybe Vp8FramerateConversionAlgorithm
-> Maybe Natural
-> Maybe Natural
-> Maybe Double
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8ParControl
-> Maybe Natural
-> Maybe Natural
-> Maybe Vp8QualityTuningLevel
-> Maybe Vp8RateControlMode
-> Vp8Settings
Vp8Settings'
            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
"bitrate")
            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
"gopSize")
            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
"hrdBufferSize")
            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
"maxBitrate")
            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
"qualityTuningLevel")
            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
"rateControlMode")
      )

instance Prelude.Hashable Vp8Settings where
  hashWithSalt :: Int -> Vp8Settings -> Int
hashWithSalt Int
_salt Vp8Settings' {Maybe Double
Maybe Natural
Maybe Vp8FramerateControl
Maybe Vp8FramerateConversionAlgorithm
Maybe Vp8ParControl
Maybe Vp8QualityTuningLevel
Maybe Vp8RateControlMode
rateControlMode :: Maybe Vp8RateControlMode
qualityTuningLevel :: Maybe Vp8QualityTuningLevel
parNumerator :: Maybe Natural
parDenominator :: Maybe Natural
parControl :: Maybe Vp8ParControl
maxBitrate :: Maybe Natural
hrdBufferSize :: Maybe Natural
gopSize :: Maybe Double
framerateNumerator :: Maybe Natural
framerateDenominator :: Maybe Natural
framerateConversionAlgorithm :: Maybe Vp8FramerateConversionAlgorithm
framerateControl :: Maybe Vp8FramerateControl
bitrate :: Maybe Natural
$sel:rateControlMode:Vp8Settings' :: Vp8Settings -> Maybe Vp8RateControlMode
$sel:qualityTuningLevel:Vp8Settings' :: Vp8Settings -> Maybe Vp8QualityTuningLevel
$sel:parNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:parDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:parControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8ParControl
$sel:maxBitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:hrdBufferSize:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:gopSize:Vp8Settings' :: Vp8Settings -> Maybe Double
$sel:framerateNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateConversionAlgorithm:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm
$sel:framerateControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateControl
$sel:bitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
bitrate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Vp8FramerateControl
framerateControl
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Vp8FramerateConversionAlgorithm
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 Double
gopSize
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
hrdBufferSize
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxBitrate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Vp8ParControl
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 Vp8QualityTuningLevel
qualityTuningLevel
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Vp8RateControlMode
rateControlMode

instance Prelude.NFData Vp8Settings where
  rnf :: Vp8Settings -> ()
rnf Vp8Settings' {Maybe Double
Maybe Natural
Maybe Vp8FramerateControl
Maybe Vp8FramerateConversionAlgorithm
Maybe Vp8ParControl
Maybe Vp8QualityTuningLevel
Maybe Vp8RateControlMode
rateControlMode :: Maybe Vp8RateControlMode
qualityTuningLevel :: Maybe Vp8QualityTuningLevel
parNumerator :: Maybe Natural
parDenominator :: Maybe Natural
parControl :: Maybe Vp8ParControl
maxBitrate :: Maybe Natural
hrdBufferSize :: Maybe Natural
gopSize :: Maybe Double
framerateNumerator :: Maybe Natural
framerateDenominator :: Maybe Natural
framerateConversionAlgorithm :: Maybe Vp8FramerateConversionAlgorithm
framerateControl :: Maybe Vp8FramerateControl
bitrate :: Maybe Natural
$sel:rateControlMode:Vp8Settings' :: Vp8Settings -> Maybe Vp8RateControlMode
$sel:qualityTuningLevel:Vp8Settings' :: Vp8Settings -> Maybe Vp8QualityTuningLevel
$sel:parNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:parDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:parControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8ParControl
$sel:maxBitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:hrdBufferSize:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:gopSize:Vp8Settings' :: Vp8Settings -> Maybe Double
$sel:framerateNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateConversionAlgorithm:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm
$sel:framerateControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateControl
$sel:bitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
bitrate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Vp8FramerateControl
framerateControl
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Vp8FramerateConversionAlgorithm
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 Double
gopSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
hrdBufferSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxBitrate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Vp8ParControl
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 Vp8QualityTuningLevel
qualityTuningLevel
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Vp8RateControlMode
rateControlMode

instance Data.ToJSON Vp8Settings where
  toJSON :: Vp8Settings -> Value
toJSON Vp8Settings' {Maybe Double
Maybe Natural
Maybe Vp8FramerateControl
Maybe Vp8FramerateConversionAlgorithm
Maybe Vp8ParControl
Maybe Vp8QualityTuningLevel
Maybe Vp8RateControlMode
rateControlMode :: Maybe Vp8RateControlMode
qualityTuningLevel :: Maybe Vp8QualityTuningLevel
parNumerator :: Maybe Natural
parDenominator :: Maybe Natural
parControl :: Maybe Vp8ParControl
maxBitrate :: Maybe Natural
hrdBufferSize :: Maybe Natural
gopSize :: Maybe Double
framerateNumerator :: Maybe Natural
framerateDenominator :: Maybe Natural
framerateConversionAlgorithm :: Maybe Vp8FramerateConversionAlgorithm
framerateControl :: Maybe Vp8FramerateControl
bitrate :: Maybe Natural
$sel:rateControlMode:Vp8Settings' :: Vp8Settings -> Maybe Vp8RateControlMode
$sel:qualityTuningLevel:Vp8Settings' :: Vp8Settings -> Maybe Vp8QualityTuningLevel
$sel:parNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:parDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:parControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8ParControl
$sel:maxBitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:hrdBufferSize:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:gopSize:Vp8Settings' :: Vp8Settings -> Maybe Double
$sel:framerateNumerator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateDenominator:Vp8Settings' :: Vp8Settings -> Maybe Natural
$sel:framerateConversionAlgorithm:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateConversionAlgorithm
$sel:framerateControl:Vp8Settings' :: Vp8Settings -> Maybe Vp8FramerateControl
$sel:bitrate:Vp8Settings' :: Vp8Settings -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"bitrate" 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
bitrate,
            (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 Vp8FramerateControl
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 Vp8FramerateConversionAlgorithm
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
"gopSize" 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 Double
gopSize,
            (Key
"hrdBufferSize" 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
hrdBufferSize,
            (Key
"maxBitrate" 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
maxBitrate,
            (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 Vp8ParControl
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
"qualityTuningLevel" 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 Vp8QualityTuningLevel
qualityTuningLevel,
            (Key
"rateControlMode" 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 Vp8RateControlMode
rateControlMode
          ]
      )