{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.MediaConvert.Types.Eac3AtmosDynamicRangeControl
-- 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.Eac3AtmosDynamicRangeControl
  ( Eac3AtmosDynamicRangeControl
      ( ..,
        Eac3AtmosDynamicRangeControl_INITIALIZE_FROM_SOURCE,
        Eac3AtmosDynamicRangeControl_SPECIFIED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | Specify whether MediaConvert should use any dynamic range control
-- metadata from your input file. Keep the default value, Custom
-- (SPECIFIED), to provide dynamic range control values in your job
-- settings. Choose Follow source (INITIALIZE_FROM_SOURCE) to use the
-- metadata from your input. Related settings--Use these settings to
-- specify your dynamic range control values: Dynamic range compression
-- line (DynamicRangeCompressionLine) and Dynamic range compression RF
-- (DynamicRangeCompressionRf). When you keep the value Custom (SPECIFIED)
-- for Dynamic range control (DynamicRangeControl) and you don\'t specify
-- values for the related settings, MediaConvert uses default values for
-- those settings.
newtype Eac3AtmosDynamicRangeControl = Eac3AtmosDynamicRangeControl'
  { Eac3AtmosDynamicRangeControl -> Text
fromEac3AtmosDynamicRangeControl ::
      Core.Text
  }
  deriving stock
    ( Int -> Eac3AtmosDynamicRangeControl -> ShowS
[Eac3AtmosDynamicRangeControl] -> ShowS
Eac3AtmosDynamicRangeControl -> String
(Int -> Eac3AtmosDynamicRangeControl -> ShowS)
-> (Eac3AtmosDynamicRangeControl -> String)
-> ([Eac3AtmosDynamicRangeControl] -> ShowS)
-> Show Eac3AtmosDynamicRangeControl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Eac3AtmosDynamicRangeControl] -> ShowS
$cshowList :: [Eac3AtmosDynamicRangeControl] -> ShowS
show :: Eac3AtmosDynamicRangeControl -> String
$cshow :: Eac3AtmosDynamicRangeControl -> String
showsPrec :: Int -> Eac3AtmosDynamicRangeControl -> ShowS
$cshowsPrec :: Int -> Eac3AtmosDynamicRangeControl -> ShowS
Prelude.Show,
      ReadPrec [Eac3AtmosDynamicRangeControl]
ReadPrec Eac3AtmosDynamicRangeControl
Int -> ReadS Eac3AtmosDynamicRangeControl
ReadS [Eac3AtmosDynamicRangeControl]
(Int -> ReadS Eac3AtmosDynamicRangeControl)
-> ReadS [Eac3AtmosDynamicRangeControl]
-> ReadPrec Eac3AtmosDynamicRangeControl
-> ReadPrec [Eac3AtmosDynamicRangeControl]
-> Read Eac3AtmosDynamicRangeControl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Eac3AtmosDynamicRangeControl]
$creadListPrec :: ReadPrec [Eac3AtmosDynamicRangeControl]
readPrec :: ReadPrec Eac3AtmosDynamicRangeControl
$creadPrec :: ReadPrec Eac3AtmosDynamicRangeControl
readList :: ReadS [Eac3AtmosDynamicRangeControl]
$creadList :: ReadS [Eac3AtmosDynamicRangeControl]
readsPrec :: Int -> ReadS Eac3AtmosDynamicRangeControl
$creadsPrec :: Int -> ReadS Eac3AtmosDynamicRangeControl
Prelude.Read,
      Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
(Eac3AtmosDynamicRangeControl
 -> Eac3AtmosDynamicRangeControl -> Bool)
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Bool)
-> Eq Eac3AtmosDynamicRangeControl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
$c/= :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
== :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
$c== :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
Prelude.Eq,
      Eq Eac3AtmosDynamicRangeControl
Eq Eac3AtmosDynamicRangeControl
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Ordering)
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Bool)
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Bool)
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Bool)
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Bool)
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Eac3AtmosDynamicRangeControl)
-> (Eac3AtmosDynamicRangeControl
    -> Eac3AtmosDynamicRangeControl -> Eac3AtmosDynamicRangeControl)
-> Ord Eac3AtmosDynamicRangeControl
Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Ordering
Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Eac3AtmosDynamicRangeControl
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Eac3AtmosDynamicRangeControl
$cmin :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Eac3AtmosDynamicRangeControl
max :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Eac3AtmosDynamicRangeControl
$cmax :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Eac3AtmosDynamicRangeControl
>= :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
$c>= :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
> :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
$c> :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
<= :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
$c<= :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
< :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
$c< :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Bool
compare :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Ordering
$ccompare :: Eac3AtmosDynamicRangeControl
-> Eac3AtmosDynamicRangeControl -> Ordering
$cp1Ord :: Eq Eac3AtmosDynamicRangeControl
Prelude.Ord,
      (forall x.
 Eac3AtmosDynamicRangeControl -> Rep Eac3AtmosDynamicRangeControl x)
-> (forall x.
    Rep Eac3AtmosDynamicRangeControl x -> Eac3AtmosDynamicRangeControl)
-> Generic Eac3AtmosDynamicRangeControl
forall x.
Rep Eac3AtmosDynamicRangeControl x -> Eac3AtmosDynamicRangeControl
forall x.
Eac3AtmosDynamicRangeControl -> Rep Eac3AtmosDynamicRangeControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Eac3AtmosDynamicRangeControl x -> Eac3AtmosDynamicRangeControl
$cfrom :: forall x.
Eac3AtmosDynamicRangeControl -> Rep Eac3AtmosDynamicRangeControl x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Eac3AtmosDynamicRangeControl -> Int
Eac3AtmosDynamicRangeControl -> Int
(Int -> Eac3AtmosDynamicRangeControl -> Int)
-> (Eac3AtmosDynamicRangeControl -> Int)
-> Hashable Eac3AtmosDynamicRangeControl
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Eac3AtmosDynamicRangeControl -> Int
$chash :: Eac3AtmosDynamicRangeControl -> Int
hashWithSalt :: Int -> Eac3AtmosDynamicRangeControl -> Int
$chashWithSalt :: Int -> Eac3AtmosDynamicRangeControl -> Int
Prelude.Hashable,
      Eac3AtmosDynamicRangeControl -> ()
(Eac3AtmosDynamicRangeControl -> ())
-> NFData Eac3AtmosDynamicRangeControl
forall a. (a -> ()) -> NFData a
rnf :: Eac3AtmosDynamicRangeControl -> ()
$crnf :: Eac3AtmosDynamicRangeControl -> ()
Prelude.NFData,
      Text -> Either String Eac3AtmosDynamicRangeControl
(Text -> Either String Eac3AtmosDynamicRangeControl)
-> FromText Eac3AtmosDynamicRangeControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Eac3AtmosDynamicRangeControl
$cfromText :: Text -> Either String Eac3AtmosDynamicRangeControl
Core.FromText,
      Eac3AtmosDynamicRangeControl -> Text
(Eac3AtmosDynamicRangeControl -> Text)
-> ToText Eac3AtmosDynamicRangeControl
forall a. (a -> Text) -> ToText a
toText :: Eac3AtmosDynamicRangeControl -> Text
$ctoText :: Eac3AtmosDynamicRangeControl -> Text
Core.ToText,
      Eac3AtmosDynamicRangeControl -> ByteString
(Eac3AtmosDynamicRangeControl -> ByteString)
-> ToByteString Eac3AtmosDynamicRangeControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: Eac3AtmosDynamicRangeControl -> ByteString
$ctoBS :: Eac3AtmosDynamicRangeControl -> ByteString
Core.ToByteString,
      Eac3AtmosDynamicRangeControl -> ByteStringBuilder
(Eac3AtmosDynamicRangeControl -> ByteStringBuilder)
-> ToLog Eac3AtmosDynamicRangeControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Eac3AtmosDynamicRangeControl -> ByteStringBuilder
$cbuild :: Eac3AtmosDynamicRangeControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Eac3AtmosDynamicRangeControl -> [Header]
(HeaderName -> Eac3AtmosDynamicRangeControl -> [Header])
-> ToHeader Eac3AtmosDynamicRangeControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Eac3AtmosDynamicRangeControl -> [Header]
$ctoHeader :: HeaderName -> Eac3AtmosDynamicRangeControl -> [Header]
Core.ToHeader,
      Eac3AtmosDynamicRangeControl -> QueryString
(Eac3AtmosDynamicRangeControl -> QueryString)
-> ToQuery Eac3AtmosDynamicRangeControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Eac3AtmosDynamicRangeControl -> QueryString
$ctoQuery :: Eac3AtmosDynamicRangeControl -> QueryString
Core.ToQuery,
      Value -> Parser [Eac3AtmosDynamicRangeControl]
Value -> Parser Eac3AtmosDynamicRangeControl
(Value -> Parser Eac3AtmosDynamicRangeControl)
-> (Value -> Parser [Eac3AtmosDynamicRangeControl])
-> FromJSON Eac3AtmosDynamicRangeControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Eac3AtmosDynamicRangeControl]
$cparseJSONList :: Value -> Parser [Eac3AtmosDynamicRangeControl]
parseJSON :: Value -> Parser Eac3AtmosDynamicRangeControl
$cparseJSON :: Value -> Parser Eac3AtmosDynamicRangeControl
Core.FromJSON,
      FromJSONKeyFunction [Eac3AtmosDynamicRangeControl]
FromJSONKeyFunction Eac3AtmosDynamicRangeControl
FromJSONKeyFunction Eac3AtmosDynamicRangeControl
-> FromJSONKeyFunction [Eac3AtmosDynamicRangeControl]
-> FromJSONKey Eac3AtmosDynamicRangeControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Eac3AtmosDynamicRangeControl]
$cfromJSONKeyList :: FromJSONKeyFunction [Eac3AtmosDynamicRangeControl]
fromJSONKey :: FromJSONKeyFunction Eac3AtmosDynamicRangeControl
$cfromJSONKey :: FromJSONKeyFunction Eac3AtmosDynamicRangeControl
Core.FromJSONKey,
      [Eac3AtmosDynamicRangeControl] -> Encoding
[Eac3AtmosDynamicRangeControl] -> Value
Eac3AtmosDynamicRangeControl -> Encoding
Eac3AtmosDynamicRangeControl -> Value
(Eac3AtmosDynamicRangeControl -> Value)
-> (Eac3AtmosDynamicRangeControl -> Encoding)
-> ([Eac3AtmosDynamicRangeControl] -> Value)
-> ([Eac3AtmosDynamicRangeControl] -> Encoding)
-> ToJSON Eac3AtmosDynamicRangeControl
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Eac3AtmosDynamicRangeControl] -> Encoding
$ctoEncodingList :: [Eac3AtmosDynamicRangeControl] -> Encoding
toJSONList :: [Eac3AtmosDynamicRangeControl] -> Value
$ctoJSONList :: [Eac3AtmosDynamicRangeControl] -> Value
toEncoding :: Eac3AtmosDynamicRangeControl -> Encoding
$ctoEncoding :: Eac3AtmosDynamicRangeControl -> Encoding
toJSON :: Eac3AtmosDynamicRangeControl -> Value
$ctoJSON :: Eac3AtmosDynamicRangeControl -> Value
Core.ToJSON,
      ToJSONKeyFunction [Eac3AtmosDynamicRangeControl]
ToJSONKeyFunction Eac3AtmosDynamicRangeControl
ToJSONKeyFunction Eac3AtmosDynamicRangeControl
-> ToJSONKeyFunction [Eac3AtmosDynamicRangeControl]
-> ToJSONKey Eac3AtmosDynamicRangeControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Eac3AtmosDynamicRangeControl]
$ctoJSONKeyList :: ToJSONKeyFunction [Eac3AtmosDynamicRangeControl]
toJSONKey :: ToJSONKeyFunction Eac3AtmosDynamicRangeControl
$ctoJSONKey :: ToJSONKeyFunction Eac3AtmosDynamicRangeControl
Core.ToJSONKey,
      [Node] -> Either String Eac3AtmosDynamicRangeControl
([Node] -> Either String Eac3AtmosDynamicRangeControl)
-> FromXML Eac3AtmosDynamicRangeControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Eac3AtmosDynamicRangeControl
$cparseXML :: [Node] -> Either String Eac3AtmosDynamicRangeControl
Core.FromXML,
      Eac3AtmosDynamicRangeControl -> XML
(Eac3AtmosDynamicRangeControl -> XML)
-> ToXML Eac3AtmosDynamicRangeControl
forall a. (a -> XML) -> ToXML a
toXML :: Eac3AtmosDynamicRangeControl -> XML
$ctoXML :: Eac3AtmosDynamicRangeControl -> XML
Core.ToXML
    )

pattern Eac3AtmosDynamicRangeControl_INITIALIZE_FROM_SOURCE :: Eac3AtmosDynamicRangeControl
pattern $bEac3AtmosDynamicRangeControl_INITIALIZE_FROM_SOURCE :: Eac3AtmosDynamicRangeControl
$mEac3AtmosDynamicRangeControl_INITIALIZE_FROM_SOURCE :: forall r.
Eac3AtmosDynamicRangeControl -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosDynamicRangeControl_INITIALIZE_FROM_SOURCE = Eac3AtmosDynamicRangeControl' "INITIALIZE_FROM_SOURCE"

pattern Eac3AtmosDynamicRangeControl_SPECIFIED :: Eac3AtmosDynamicRangeControl
pattern $bEac3AtmosDynamicRangeControl_SPECIFIED :: Eac3AtmosDynamicRangeControl
$mEac3AtmosDynamicRangeControl_SPECIFIED :: forall r.
Eac3AtmosDynamicRangeControl -> (Void# -> r) -> (Void# -> r) -> r
Eac3AtmosDynamicRangeControl_SPECIFIED = Eac3AtmosDynamicRangeControl' "SPECIFIED"

{-# COMPLETE
  Eac3AtmosDynamicRangeControl_INITIALIZE_FROM_SOURCE,
  Eac3AtmosDynamicRangeControl_SPECIFIED,
  Eac3AtmosDynamicRangeControl'
  #-}