{-# 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.ProresSettings
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.ProresSettings where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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

-- | Required when you set (Codec) under (VideoDescription)>(CodecSettings)
-- to the value PRORES.
--
-- /See:/ 'newProresSettings' smart constructor.
data ProresSettings = ProresSettings'
  { -- | Ignore this setting unless your input frame rate is 23.976 or 24 frames
    -- per second (fps). Enable slow PAL to create a 25 fps output. When you
    -- enable slow PAL, MediaConvert relabels the video frames to 25 fps and
    -- resamples your audio to keep it synchronized with the video. Note that
    -- enabling this setting will slightly reduce the duration of your video.
    -- Required settings: You must also set Framerate to 25. In your JSON job
    -- specification, set (framerateControl) to (SPECIFIED),
    -- (framerateNumerator) to 25 and (framerateDenominator) to 1.
    ProresSettings -> Maybe ProresSlowPal
slowPal :: Prelude.Maybe ProresSlowPal,
    -- | 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.
    ProresSettings -> Maybe Natural
parNumerator :: Prelude.Maybe Prelude.Natural,
    -- | When you do frame rate conversion from 23.976 frames per second (fps) to
    -- 29.97 fps, and your output scan type is interlaced, you can optionally
    -- enable hard telecine (HARD) to create a smoother picture. When you keep
    -- the default value, None (NONE), MediaConvert does a standard frame rate
    -- conversion to 29.97 without doing anything with the field polarity to
    -- create a smoother picture.
    ProresSettings -> Maybe ProresTelecine
telecine :: Prelude.Maybe ProresTelecine,
    -- | Choose the scan line type for the output. Keep the default value,
    -- Progressive (PROGRESSIVE) to create a progressive output, regardless of
    -- the scan type of your input. Use Top field first (TOP_FIELD) or Bottom
    -- field first (BOTTOM_FIELD) to create an output that\'s interlaced with
    -- the same field polarity throughout. Use Follow, default top
    -- (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to
    -- produce outputs with the same field polarity as the source. For jobs
    -- that have multiple inputs, the output field polarity might change over
    -- the course of the output. Follow behavior depends on the input scan
    -- type. If the source is interlaced, the output will be interlaced with
    -- the same polarity as the source. If the source is progressive, the
    -- output will be interlaced with top field bottom field first, depending
    -- on which of the Follow options you choose.
    ProresSettings -> Maybe ProresInterlaceMode
interlaceMode :: Prelude.Maybe ProresInterlaceMode,
    -- | 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.
    ProresSettings -> Maybe ProresParControl
parControl :: Prelude.Maybe ProresParControl,
    -- | Use this setting for interlaced outputs, when your output frame rate is
    -- half of your input frame rate. In this situation, choose Optimized
    -- interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced
    -- output. In this case, each progressive frame from the input corresponds
    -- to an interlaced field in the output. Keep the default value, Basic
    -- interlacing (INTERLACED), for all other output frame rates. With basic
    -- interlacing, MediaConvert performs any frame rate conversion first and
    -- then interlaces the frames. When you choose Optimized interlacing and
    -- you set your output frame rate to a value that isn\'t suitable for
    -- optimized interlacing, MediaConvert automatically falls back to basic
    -- interlacing. Required settings: To use optimized interlacing, you must
    -- set Telecine (telecine) to None (NONE) or Soft (SOFT). You can\'t use
    -- optimized interlacing for hard telecine outputs. You must also set
    -- Interlace mode (interlaceMode) to a value other than Progressive
    -- (PROGRESSIVE).
    ProresSettings -> Maybe ProresScanTypeConversionMode
scanTypeConversionMode :: Prelude.Maybe ProresScanTypeConversionMode,
    -- | Use Profile (ProResCodecProfile) to specify the type of Apple ProRes
    -- codec to use for this output.
    ProresSettings -> Maybe ProresCodecProfile
codecProfile :: Prelude.Maybe ProresCodecProfile,
    -- | 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.
    ProresSettings -> Maybe Natural
framerateDenominator :: Prelude.Maybe Prelude.Natural,
    -- | 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.
    ProresSettings -> Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm :: Prelude.Maybe ProresFramerateConversionAlgorithm,
    -- | 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.
    ProresSettings -> Maybe ProresFramerateControl
framerateControl :: Prelude.Maybe ProresFramerateControl,
    -- | 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.
    ProresSettings -> Maybe Natural
framerateNumerator :: Prelude.Maybe Prelude.Natural,
    -- | This setting applies only to ProRes 4444 and ProRes 4444 XQ outputs that
    -- you create from inputs that use 4:4:4 chroma sampling. Set Preserve
    -- 4:4:4 sampling (PRESERVE_444_SAMPLING) to allow outputs to also use
    -- 4:4:4 chroma sampling. You must specify a value for this setting when
    -- your output codec profile supports 4:4:4 chroma sampling. Related
    -- Settings: When you set Chroma sampling to Preserve 4:4:4 sampling
    -- (PRESERVE_444_SAMPLING), you must choose an output codec profile that
    -- supports 4:4:4 chroma sampling. These values for Profile (CodecProfile)
    -- support 4:4:4 chroma sampling: Apple ProRes 4444 (APPLE_PRORES_4444) or
    -- Apple ProRes 4444 XQ (APPLE_PRORES_4444_XQ). When you set Chroma
    -- sampling to Preserve 4:4:4 sampling, you must disable all video
    -- preprocessors except for Nexguard file marker (PartnerWatermarking).
    -- When you set Chroma sampling to Preserve 4:4:4 sampling and use
    -- framerate conversion, you must set Frame rate conversion algorithm
    -- (FramerateConversionAlgorithm) to Drop duplicate (DUPLICATE_DROP).
    ProresSettings -> Maybe ProresChromaSampling
chromaSampling :: Prelude.Maybe ProresChromaSampling,
    -- | 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.
    ProresSettings -> Maybe Natural
parDenominator :: Prelude.Maybe Prelude.Natural
  }
  deriving (ProresSettings -> ProresSettings -> Bool
(ProresSettings -> ProresSettings -> Bool)
-> (ProresSettings -> ProresSettings -> Bool) -> Eq ProresSettings
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]
(Int -> ReadS ProresSettings)
-> ReadS [ProresSettings]
-> ReadPrec ProresSettings
-> ReadPrec [ProresSettings]
-> Read 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
(Int -> ProresSettings -> ShowS)
-> (ProresSettings -> String)
-> ([ProresSettings] -> ShowS)
-> Show ProresSettings
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. ProresSettings -> Rep ProresSettings x)
-> (forall x. Rep ProresSettings x -> ProresSettings)
-> Generic ProresSettings
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)

-- |
-- Create a value of 'ProresSettings' 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:
--
-- 'slowPal', 'proresSettings_slowPal' - Ignore this setting unless your input frame rate is 23.976 or 24 frames
-- per second (fps). Enable slow PAL to create a 25 fps output. When you
-- enable slow PAL, MediaConvert relabels the video frames to 25 fps and
-- resamples your audio to keep it synchronized with the video. Note that
-- enabling this setting will slightly reduce the duration of your video.
-- Required settings: You must also set Framerate to 25. In your JSON job
-- specification, set (framerateControl) to (SPECIFIED),
-- (framerateNumerator) to 25 and (framerateDenominator) to 1.
--
-- 'parNumerator', 'proresSettings_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.
--
-- 'telecine', 'proresSettings_telecine' - When you do frame rate conversion from 23.976 frames per second (fps) to
-- 29.97 fps, and your output scan type is interlaced, you can optionally
-- enable hard telecine (HARD) to create a smoother picture. When you keep
-- the default value, None (NONE), MediaConvert does a standard frame rate
-- conversion to 29.97 without doing anything with the field polarity to
-- create a smoother picture.
--
-- 'interlaceMode', 'proresSettings_interlaceMode' - Choose the scan line type for the output. Keep the default value,
-- Progressive (PROGRESSIVE) to create a progressive output, regardless of
-- the scan type of your input. Use Top field first (TOP_FIELD) or Bottom
-- field first (BOTTOM_FIELD) to create an output that\'s interlaced with
-- the same field polarity throughout. Use Follow, default top
-- (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to
-- produce outputs with the same field polarity as the source. For jobs
-- that have multiple inputs, the output field polarity might change over
-- the course of the output. Follow behavior depends on the input scan
-- type. If the source is interlaced, the output will be interlaced with
-- the same polarity as the source. If the source is progressive, the
-- output will be interlaced with top field bottom field first, depending
-- on which of the Follow options you choose.
--
-- 'parControl', 'proresSettings_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.
--
-- 'scanTypeConversionMode', 'proresSettings_scanTypeConversionMode' - Use this setting for interlaced outputs, when your output frame rate is
-- half of your input frame rate. In this situation, choose Optimized
-- interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced
-- output. In this case, each progressive frame from the input corresponds
-- to an interlaced field in the output. Keep the default value, Basic
-- interlacing (INTERLACED), for all other output frame rates. With basic
-- interlacing, MediaConvert performs any frame rate conversion first and
-- then interlaces the frames. When you choose Optimized interlacing and
-- you set your output frame rate to a value that isn\'t suitable for
-- optimized interlacing, MediaConvert automatically falls back to basic
-- interlacing. Required settings: To use optimized interlacing, you must
-- set Telecine (telecine) to None (NONE) or Soft (SOFT). You can\'t use
-- optimized interlacing for hard telecine outputs. You must also set
-- Interlace mode (interlaceMode) to a value other than Progressive
-- (PROGRESSIVE).
--
-- 'codecProfile', 'proresSettings_codecProfile' - Use Profile (ProResCodecProfile) to specify the type of Apple ProRes
-- codec to use for this output.
--
-- 'framerateDenominator', 'proresSettings_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.
--
-- 'framerateConversionAlgorithm', 'proresSettings_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.
--
-- 'framerateControl', 'proresSettings_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.
--
-- 'framerateNumerator', 'proresSettings_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.
--
-- 'chromaSampling', 'proresSettings_chromaSampling' - This setting applies only to ProRes 4444 and ProRes 4444 XQ outputs that
-- you create from inputs that use 4:4:4 chroma sampling. Set Preserve
-- 4:4:4 sampling (PRESERVE_444_SAMPLING) to allow outputs to also use
-- 4:4:4 chroma sampling. You must specify a value for this setting when
-- your output codec profile supports 4:4:4 chroma sampling. Related
-- Settings: When you set Chroma sampling to Preserve 4:4:4 sampling
-- (PRESERVE_444_SAMPLING), you must choose an output codec profile that
-- supports 4:4:4 chroma sampling. These values for Profile (CodecProfile)
-- support 4:4:4 chroma sampling: Apple ProRes 4444 (APPLE_PRORES_4444) or
-- Apple ProRes 4444 XQ (APPLE_PRORES_4444_XQ). When you set Chroma
-- sampling to Preserve 4:4:4 sampling, you must disable all video
-- preprocessors except for Nexguard file marker (PartnerWatermarking).
-- When you set Chroma sampling to Preserve 4:4:4 sampling and use
-- framerate conversion, you must set Frame rate conversion algorithm
-- (FramerateConversionAlgorithm) to Drop duplicate (DUPLICATE_DROP).
--
-- 'parDenominator', 'proresSettings_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.
newProresSettings ::
  ProresSettings
newProresSettings :: ProresSettings
newProresSettings =
  ProresSettings' :: Maybe ProresSlowPal
-> Maybe Natural
-> Maybe ProresTelecine
-> Maybe ProresInterlaceMode
-> Maybe ProresParControl
-> Maybe ProresScanTypeConversionMode
-> Maybe ProresCodecProfile
-> Maybe Natural
-> Maybe ProresFramerateConversionAlgorithm
-> Maybe ProresFramerateControl
-> Maybe Natural
-> Maybe ProresChromaSampling
-> Maybe Natural
-> ProresSettings
ProresSettings'
    { $sel:slowPal:ProresSettings' :: Maybe ProresSlowPal
slowPal = Maybe ProresSlowPal
forall a. Maybe a
Prelude.Nothing,
      $sel:parNumerator:ProresSettings' :: Maybe Natural
parNumerator = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:telecine:ProresSettings' :: Maybe ProresTelecine
telecine = Maybe ProresTelecine
forall a. Maybe a
Prelude.Nothing,
      $sel:interlaceMode:ProresSettings' :: Maybe ProresInterlaceMode
interlaceMode = Maybe ProresInterlaceMode
forall a. Maybe a
Prelude.Nothing,
      $sel:parControl:ProresSettings' :: Maybe ProresParControl
parControl = Maybe ProresParControl
forall a. Maybe a
Prelude.Nothing,
      $sel:scanTypeConversionMode:ProresSettings' :: Maybe ProresScanTypeConversionMode
scanTypeConversionMode = Maybe ProresScanTypeConversionMode
forall a. Maybe a
Prelude.Nothing,
      $sel:codecProfile:ProresSettings' :: Maybe ProresCodecProfile
codecProfile = Maybe ProresCodecProfile
forall a. Maybe a
Prelude.Nothing,
      $sel:framerateDenominator:ProresSettings' :: Maybe Natural
framerateDenominator = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:framerateConversionAlgorithm:ProresSettings' :: Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm = Maybe ProresFramerateConversionAlgorithm
forall a. Maybe a
Prelude.Nothing,
      $sel:framerateControl:ProresSettings' :: Maybe ProresFramerateControl
framerateControl = Maybe ProresFramerateControl
forall a. Maybe a
Prelude.Nothing,
      $sel:framerateNumerator:ProresSettings' :: Maybe Natural
framerateNumerator = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:chromaSampling:ProresSettings' :: Maybe ProresChromaSampling
chromaSampling = Maybe ProresChromaSampling
forall a. Maybe a
Prelude.Nothing,
      $sel:parDenominator:ProresSettings' :: Maybe Natural
parDenominator = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Ignore this setting unless your input frame rate is 23.976 or 24 frames
-- per second (fps). Enable slow PAL to create a 25 fps output. When you
-- enable slow PAL, MediaConvert relabels the video frames to 25 fps and
-- resamples your audio to keep it synchronized with the video. Note that
-- enabling this setting will slightly reduce the duration of your video.
-- Required settings: You must also set Framerate to 25. In your JSON job
-- specification, set (framerateControl) to (SPECIFIED),
-- (framerateNumerator) to 25 and (framerateDenominator) to 1.
proresSettings_slowPal :: Lens.Lens' ProresSettings (Prelude.Maybe ProresSlowPal)
proresSettings_slowPal :: (Maybe ProresSlowPal -> f (Maybe ProresSlowPal))
-> ProresSettings -> f ProresSettings
proresSettings_slowPal = (ProresSettings -> Maybe ProresSlowPal)
-> (ProresSettings -> Maybe ProresSlowPal -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresSlowPal)
     (Maybe ProresSlowPal)
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)

-- | 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.
proresSettings_parNumerator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_parNumerator :: (Maybe Natural -> f (Maybe Natural))
-> ProresSettings -> f ProresSettings
proresSettings_parNumerator = (ProresSettings -> Maybe Natural)
-> (ProresSettings -> Maybe Natural -> ProresSettings)
-> Lens
     ProresSettings ProresSettings (Maybe Natural) (Maybe Natural)
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)

-- | When you do frame rate conversion from 23.976 frames per second (fps) to
-- 29.97 fps, and your output scan type is interlaced, you can optionally
-- enable hard telecine (HARD) to create a smoother picture. When you keep
-- the default value, None (NONE), MediaConvert does a standard frame rate
-- conversion to 29.97 without doing anything with the field polarity to
-- create a smoother picture.
proresSettings_telecine :: Lens.Lens' ProresSettings (Prelude.Maybe ProresTelecine)
proresSettings_telecine :: (Maybe ProresTelecine -> f (Maybe ProresTelecine))
-> ProresSettings -> f ProresSettings
proresSettings_telecine = (ProresSettings -> Maybe ProresTelecine)
-> (ProresSettings -> Maybe ProresTelecine -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresTelecine)
     (Maybe ProresTelecine)
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)

-- | Choose the scan line type for the output. Keep the default value,
-- Progressive (PROGRESSIVE) to create a progressive output, regardless of
-- the scan type of your input. Use Top field first (TOP_FIELD) or Bottom
-- field first (BOTTOM_FIELD) to create an output that\'s interlaced with
-- the same field polarity throughout. Use Follow, default top
-- (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to
-- produce outputs with the same field polarity as the source. For jobs
-- that have multiple inputs, the output field polarity might change over
-- the course of the output. Follow behavior depends on the input scan
-- type. If the source is interlaced, the output will be interlaced with
-- the same polarity as the source. If the source is progressive, the
-- output will be interlaced with top field bottom field first, depending
-- on which of the Follow options you choose.
proresSettings_interlaceMode :: Lens.Lens' ProresSettings (Prelude.Maybe ProresInterlaceMode)
proresSettings_interlaceMode :: (Maybe ProresInterlaceMode -> f (Maybe ProresInterlaceMode))
-> ProresSettings -> f ProresSettings
proresSettings_interlaceMode = (ProresSettings -> Maybe ProresInterlaceMode)
-> (ProresSettings -> Maybe ProresInterlaceMode -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresInterlaceMode)
     (Maybe ProresInterlaceMode)
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)

-- | 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.
proresSettings_parControl :: Lens.Lens' ProresSettings (Prelude.Maybe ProresParControl)
proresSettings_parControl :: (Maybe ProresParControl -> f (Maybe ProresParControl))
-> ProresSettings -> f ProresSettings
proresSettings_parControl = (ProresSettings -> Maybe ProresParControl)
-> (ProresSettings -> Maybe ProresParControl -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresParControl)
     (Maybe ProresParControl)
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)

-- | Use this setting for interlaced outputs, when your output frame rate is
-- half of your input frame rate. In this situation, choose Optimized
-- interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced
-- output. In this case, each progressive frame from the input corresponds
-- to an interlaced field in the output. Keep the default value, Basic
-- interlacing (INTERLACED), for all other output frame rates. With basic
-- interlacing, MediaConvert performs any frame rate conversion first and
-- then interlaces the frames. When you choose Optimized interlacing and
-- you set your output frame rate to a value that isn\'t suitable for
-- optimized interlacing, MediaConvert automatically falls back to basic
-- interlacing. Required settings: To use optimized interlacing, you must
-- set Telecine (telecine) to None (NONE) or Soft (SOFT). You can\'t use
-- optimized interlacing for hard telecine outputs. You must also set
-- Interlace mode (interlaceMode) to a value other than Progressive
-- (PROGRESSIVE).
proresSettings_scanTypeConversionMode :: Lens.Lens' ProresSettings (Prelude.Maybe ProresScanTypeConversionMode)
proresSettings_scanTypeConversionMode :: (Maybe ProresScanTypeConversionMode
 -> f (Maybe ProresScanTypeConversionMode))
-> ProresSettings -> f ProresSettings
proresSettings_scanTypeConversionMode = (ProresSettings -> Maybe ProresScanTypeConversionMode)
-> (ProresSettings
    -> Maybe ProresScanTypeConversionMode -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresScanTypeConversionMode)
     (Maybe ProresScanTypeConversionMode)
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)

-- | Use Profile (ProResCodecProfile) to specify the type of Apple ProRes
-- codec to use for this output.
proresSettings_codecProfile :: Lens.Lens' ProresSettings (Prelude.Maybe ProresCodecProfile)
proresSettings_codecProfile :: (Maybe ProresCodecProfile -> f (Maybe ProresCodecProfile))
-> ProresSettings -> f ProresSettings
proresSettings_codecProfile = (ProresSettings -> Maybe ProresCodecProfile)
-> (ProresSettings -> Maybe ProresCodecProfile -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresCodecProfile)
     (Maybe ProresCodecProfile)
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)

-- | 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.
proresSettings_framerateDenominator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_framerateDenominator :: (Maybe Natural -> f (Maybe Natural))
-> ProresSettings -> f ProresSettings
proresSettings_framerateDenominator = (ProresSettings -> Maybe Natural)
-> (ProresSettings -> Maybe Natural -> ProresSettings)
-> Lens
     ProresSettings ProresSettings (Maybe Natural) (Maybe Natural)
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)

-- | 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.
proresSettings_framerateConversionAlgorithm :: Lens.Lens' ProresSettings (Prelude.Maybe ProresFramerateConversionAlgorithm)
proresSettings_framerateConversionAlgorithm :: (Maybe ProresFramerateConversionAlgorithm
 -> f (Maybe ProresFramerateConversionAlgorithm))
-> ProresSettings -> f ProresSettings
proresSettings_framerateConversionAlgorithm = (ProresSettings -> Maybe ProresFramerateConversionAlgorithm)
-> (ProresSettings
    -> Maybe ProresFramerateConversionAlgorithm -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresFramerateConversionAlgorithm)
     (Maybe ProresFramerateConversionAlgorithm)
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)

-- | 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.
proresSettings_framerateControl :: Lens.Lens' ProresSettings (Prelude.Maybe ProresFramerateControl)
proresSettings_framerateControl :: (Maybe ProresFramerateControl -> f (Maybe ProresFramerateControl))
-> ProresSettings -> f ProresSettings
proresSettings_framerateControl = (ProresSettings -> Maybe ProresFramerateControl)
-> (ProresSettings
    -> Maybe ProresFramerateControl -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresFramerateControl)
     (Maybe ProresFramerateControl)
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)

-- | 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.
proresSettings_framerateNumerator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_framerateNumerator :: (Maybe Natural -> f (Maybe Natural))
-> ProresSettings -> f ProresSettings
proresSettings_framerateNumerator = (ProresSettings -> Maybe Natural)
-> (ProresSettings -> Maybe Natural -> ProresSettings)
-> Lens
     ProresSettings ProresSettings (Maybe Natural) (Maybe Natural)
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)

-- | This setting applies only to ProRes 4444 and ProRes 4444 XQ outputs that
-- you create from inputs that use 4:4:4 chroma sampling. Set Preserve
-- 4:4:4 sampling (PRESERVE_444_SAMPLING) to allow outputs to also use
-- 4:4:4 chroma sampling. You must specify a value for this setting when
-- your output codec profile supports 4:4:4 chroma sampling. Related
-- Settings: When you set Chroma sampling to Preserve 4:4:4 sampling
-- (PRESERVE_444_SAMPLING), you must choose an output codec profile that
-- supports 4:4:4 chroma sampling. These values for Profile (CodecProfile)
-- support 4:4:4 chroma sampling: Apple ProRes 4444 (APPLE_PRORES_4444) or
-- Apple ProRes 4444 XQ (APPLE_PRORES_4444_XQ). When you set Chroma
-- sampling to Preserve 4:4:4 sampling, you must disable all video
-- preprocessors except for Nexguard file marker (PartnerWatermarking).
-- When you set Chroma sampling to Preserve 4:4:4 sampling and use
-- framerate conversion, you must set Frame rate conversion algorithm
-- (FramerateConversionAlgorithm) to Drop duplicate (DUPLICATE_DROP).
proresSettings_chromaSampling :: Lens.Lens' ProresSettings (Prelude.Maybe ProresChromaSampling)
proresSettings_chromaSampling :: (Maybe ProresChromaSampling -> f (Maybe ProresChromaSampling))
-> ProresSettings -> f ProresSettings
proresSettings_chromaSampling = (ProresSettings -> Maybe ProresChromaSampling)
-> (ProresSettings -> Maybe ProresChromaSampling -> ProresSettings)
-> Lens
     ProresSettings
     ProresSettings
     (Maybe ProresChromaSampling)
     (Maybe ProresChromaSampling)
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)

-- | 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.
proresSettings_parDenominator :: Lens.Lens' ProresSettings (Prelude.Maybe Prelude.Natural)
proresSettings_parDenominator :: (Maybe Natural -> f (Maybe Natural))
-> ProresSettings -> f ProresSettings
proresSettings_parDenominator = (ProresSettings -> Maybe Natural)
-> (ProresSettings -> Maybe Natural -> ProresSettings)
-> Lens
     ProresSettings ProresSettings (Maybe Natural) (Maybe Natural)
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)

instance Core.FromJSON ProresSettings where
  parseJSON :: Value -> Parser ProresSettings
parseJSON =
    String
-> (Object -> Parser ProresSettings)
-> Value
-> Parser ProresSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ProresSettings"
      ( \Object
x ->
          Maybe ProresSlowPal
-> Maybe Natural
-> Maybe ProresTelecine
-> Maybe ProresInterlaceMode
-> Maybe ProresParControl
-> Maybe ProresScanTypeConversionMode
-> Maybe ProresCodecProfile
-> Maybe Natural
-> Maybe ProresFramerateConversionAlgorithm
-> Maybe ProresFramerateControl
-> Maybe Natural
-> Maybe ProresChromaSampling
-> Maybe Natural
-> ProresSettings
ProresSettings'
            (Maybe ProresSlowPal
 -> Maybe Natural
 -> Maybe ProresTelecine
 -> Maybe ProresInterlaceMode
 -> Maybe ProresParControl
 -> Maybe ProresScanTypeConversionMode
 -> Maybe ProresCodecProfile
 -> Maybe Natural
 -> Maybe ProresFramerateConversionAlgorithm
 -> Maybe ProresFramerateControl
 -> Maybe Natural
 -> Maybe ProresChromaSampling
 -> Maybe Natural
 -> ProresSettings)
-> Parser (Maybe ProresSlowPal)
-> Parser
     (Maybe Natural
      -> Maybe ProresTelecine
      -> Maybe ProresInterlaceMode
      -> Maybe ProresParControl
      -> Maybe ProresScanTypeConversionMode
      -> Maybe ProresCodecProfile
      -> Maybe Natural
      -> Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ProresSlowPal)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"slowPal")
            Parser
  (Maybe Natural
   -> Maybe ProresTelecine
   -> Maybe ProresInterlaceMode
   -> Maybe ProresParControl
   -> Maybe ProresScanTypeConversionMode
   -> Maybe ProresCodecProfile
   -> Maybe Natural
   -> Maybe ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe ProresTelecine
      -> Maybe ProresInterlaceMode
      -> Maybe ProresParControl
      -> Maybe ProresScanTypeConversionMode
      -> Maybe ProresCodecProfile
      -> Maybe Natural
      -> Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
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 ProresTelecine
   -> Maybe ProresInterlaceMode
   -> Maybe ProresParControl
   -> Maybe ProresScanTypeConversionMode
   -> Maybe ProresCodecProfile
   -> Maybe Natural
   -> Maybe ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe ProresTelecine)
-> Parser
     (Maybe ProresInterlaceMode
      -> Maybe ProresParControl
      -> Maybe ProresScanTypeConversionMode
      -> Maybe ProresCodecProfile
      -> Maybe Natural
      -> Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresTelecine)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"telecine")
            Parser
  (Maybe ProresInterlaceMode
   -> Maybe ProresParControl
   -> Maybe ProresScanTypeConversionMode
   -> Maybe ProresCodecProfile
   -> Maybe Natural
   -> Maybe ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe ProresInterlaceMode)
-> Parser
     (Maybe ProresParControl
      -> Maybe ProresScanTypeConversionMode
      -> Maybe ProresCodecProfile
      -> Maybe Natural
      -> Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresInterlaceMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"interlaceMode")
            Parser
  (Maybe ProresParControl
   -> Maybe ProresScanTypeConversionMode
   -> Maybe ProresCodecProfile
   -> Maybe Natural
   -> Maybe ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe ProresParControl)
-> Parser
     (Maybe ProresScanTypeConversionMode
      -> Maybe ProresCodecProfile
      -> Maybe Natural
      -> Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresParControl)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"parControl")
            Parser
  (Maybe ProresScanTypeConversionMode
   -> Maybe ProresCodecProfile
   -> Maybe Natural
   -> Maybe ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe ProresScanTypeConversionMode)
-> Parser
     (Maybe ProresCodecProfile
      -> Maybe Natural
      -> Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresScanTypeConversionMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"scanTypeConversionMode")
            Parser
  (Maybe ProresCodecProfile
   -> Maybe Natural
   -> Maybe ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe ProresCodecProfile)
-> Parser
     (Maybe Natural
      -> Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresCodecProfile)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"codecProfile")
            Parser
  (Maybe Natural
   -> Maybe ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe ProresFramerateConversionAlgorithm
      -> Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
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 ProresFramerateConversionAlgorithm
   -> Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe ProresFramerateConversionAlgorithm)
-> Parser
     (Maybe ProresFramerateControl
      -> Maybe Natural
      -> Maybe ProresChromaSampling
      -> Maybe Natural
      -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresFramerateConversionAlgorithm)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"framerateConversionAlgorithm")
            Parser
  (Maybe ProresFramerateControl
   -> Maybe Natural
   -> Maybe ProresChromaSampling
   -> Maybe Natural
   -> ProresSettings)
-> Parser (Maybe ProresFramerateControl)
-> Parser
     (Maybe Natural
      -> Maybe ProresChromaSampling -> Maybe Natural -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresFramerateControl)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"framerateControl")
            Parser
  (Maybe Natural
   -> Maybe ProresChromaSampling -> Maybe Natural -> ProresSettings)
-> Parser (Maybe Natural)
-> Parser
     (Maybe ProresChromaSampling -> Maybe Natural -> ProresSettings)
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 ProresChromaSampling -> Maybe Natural -> ProresSettings)
-> Parser (Maybe ProresChromaSampling)
-> Parser (Maybe Natural -> ProresSettings)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProresChromaSampling)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"chromaSampling")
            Parser (Maybe Natural -> ProresSettings)
-> Parser (Maybe Natural) -> Parser ProresSettings
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 ProresSettings

instance Prelude.NFData ProresSettings

instance Core.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
parDenominator :: Maybe Natural
chromaSampling :: Maybe ProresChromaSampling
framerateNumerator :: Maybe Natural
framerateControl :: Maybe ProresFramerateControl
framerateConversionAlgorithm :: Maybe ProresFramerateConversionAlgorithm
framerateDenominator :: Maybe Natural
codecProfile :: Maybe ProresCodecProfile
scanTypeConversionMode :: Maybe ProresScanTypeConversionMode
parControl :: Maybe ProresParControl
interlaceMode :: Maybe ProresInterlaceMode
telecine :: Maybe ProresTelecine
parNumerator :: Maybe Natural
slowPal :: Maybe ProresSlowPal
$sel:parDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:chromaSampling:ProresSettings' :: ProresSettings -> Maybe ProresChromaSampling
$sel:framerateNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:framerateControl:ProresSettings' :: ProresSettings -> Maybe ProresFramerateControl
$sel:framerateConversionAlgorithm:ProresSettings' :: ProresSettings -> Maybe ProresFramerateConversionAlgorithm
$sel:framerateDenominator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:codecProfile:ProresSettings' :: ProresSettings -> Maybe ProresCodecProfile
$sel:scanTypeConversionMode:ProresSettings' :: ProresSettings -> Maybe ProresScanTypeConversionMode
$sel:parControl:ProresSettings' :: ProresSettings -> Maybe ProresParControl
$sel:interlaceMode:ProresSettings' :: ProresSettings -> Maybe ProresInterlaceMode
$sel:telecine:ProresSettings' :: ProresSettings -> Maybe ProresTelecine
$sel:parNumerator:ProresSettings' :: ProresSettings -> Maybe Natural
$sel:slowPal:ProresSettings' :: ProresSettings -> Maybe ProresSlowPal
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"slowPal" Text -> ProresSlowPal -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ProresSlowPal -> Pair) -> Maybe ProresSlowPal -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresSlowPal
slowPal,
            (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
"telecine" Text -> ProresTelecine -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ProresTelecine -> Pair) -> Maybe ProresTelecine -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresTelecine
telecine,
            (Text
"interlaceMode" Text -> ProresInterlaceMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ProresInterlaceMode -> Pair)
-> Maybe ProresInterlaceMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresInterlaceMode
interlaceMode,
            (Text
"parControl" Text -> ProresParControl -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ProresParControl -> Pair) -> Maybe ProresParControl -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresParControl
parControl,
            (Text
"scanTypeConversionMode" Text -> ProresScanTypeConversionMode -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ProresScanTypeConversionMode -> Pair)
-> Maybe ProresScanTypeConversionMode -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresScanTypeConversionMode
scanTypeConversionMode,
            (Text
"codecProfile" Text -> ProresCodecProfile -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ProresCodecProfile -> Pair)
-> Maybe ProresCodecProfile -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresCodecProfile
codecProfile,
            (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 -> ProresFramerateConversionAlgorithm -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ProresFramerateConversionAlgorithm -> Pair)
-> Maybe ProresFramerateConversionAlgorithm -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresFramerateConversionAlgorithm
framerateConversionAlgorithm,
            (Text
"framerateControl" Text -> ProresFramerateControl -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ProresFramerateControl -> Pair)
-> Maybe ProresFramerateControl -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresFramerateControl
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
"chromaSampling" Text -> ProresChromaSampling -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ProresChromaSampling -> Pair)
-> Maybe ProresChromaSampling -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProresChromaSampling
chromaSampling,
            (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
          ]
      )