{-# 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.Ac3DynamicRangeCompressionRf
-- 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.Ac3DynamicRangeCompressionRf
  ( Ac3DynamicRangeCompressionRf
      ( ..,
        Ac3DynamicRangeCompressionRf_FILM_LIGHT,
        Ac3DynamicRangeCompressionRf_FILM_STANDARD,
        Ac3DynamicRangeCompressionRf_MUSIC_LIGHT,
        Ac3DynamicRangeCompressionRf_MUSIC_STANDARD,
        Ac3DynamicRangeCompressionRf_NONE,
        Ac3DynamicRangeCompressionRf_SPEECH
      ),
  )
where

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

-- | Choose the Dolby Digital dynamic range control (DRC) profile that
-- MediaConvert uses when encoding the metadata in the Dolby Digital stream
-- for the RF operating mode. Related setting: When you use this setting,
-- MediaConvert ignores any value you provide for Dynamic range compression
-- profile (DynamicRangeCompressionProfile). For information about the
-- Dolby Digital DRC operating modes and profiles, see the Dynamic Range
-- Control chapter of the Dolby Metadata Guide at
-- https:\/\/developer.dolby.com\/globalassets\/professional\/documents\/dolby-metadata-guide.pdf.
newtype Ac3DynamicRangeCompressionRf = Ac3DynamicRangeCompressionRf'
  { Ac3DynamicRangeCompressionRf -> Text
fromAc3DynamicRangeCompressionRf ::
      Core.Text
  }
  deriving stock
    ( Int -> Ac3DynamicRangeCompressionRf -> ShowS
[Ac3DynamicRangeCompressionRf] -> ShowS
Ac3DynamicRangeCompressionRf -> String
(Int -> Ac3DynamicRangeCompressionRf -> ShowS)
-> (Ac3DynamicRangeCompressionRf -> String)
-> ([Ac3DynamicRangeCompressionRf] -> ShowS)
-> Show Ac3DynamicRangeCompressionRf
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Ac3DynamicRangeCompressionRf] -> ShowS
$cshowList :: [Ac3DynamicRangeCompressionRf] -> ShowS
show :: Ac3DynamicRangeCompressionRf -> String
$cshow :: Ac3DynamicRangeCompressionRf -> String
showsPrec :: Int -> Ac3DynamicRangeCompressionRf -> ShowS
$cshowsPrec :: Int -> Ac3DynamicRangeCompressionRf -> ShowS
Prelude.Show,
      ReadPrec [Ac3DynamicRangeCompressionRf]
ReadPrec Ac3DynamicRangeCompressionRf
Int -> ReadS Ac3DynamicRangeCompressionRf
ReadS [Ac3DynamicRangeCompressionRf]
(Int -> ReadS Ac3DynamicRangeCompressionRf)
-> ReadS [Ac3DynamicRangeCompressionRf]
-> ReadPrec Ac3DynamicRangeCompressionRf
-> ReadPrec [Ac3DynamicRangeCompressionRf]
-> Read Ac3DynamicRangeCompressionRf
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Ac3DynamicRangeCompressionRf]
$creadListPrec :: ReadPrec [Ac3DynamicRangeCompressionRf]
readPrec :: ReadPrec Ac3DynamicRangeCompressionRf
$creadPrec :: ReadPrec Ac3DynamicRangeCompressionRf
readList :: ReadS [Ac3DynamicRangeCompressionRf]
$creadList :: ReadS [Ac3DynamicRangeCompressionRf]
readsPrec :: Int -> ReadS Ac3DynamicRangeCompressionRf
$creadsPrec :: Int -> ReadS Ac3DynamicRangeCompressionRf
Prelude.Read,
      Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
(Ac3DynamicRangeCompressionRf
 -> Ac3DynamicRangeCompressionRf -> Bool)
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Bool)
-> Eq Ac3DynamicRangeCompressionRf
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
$c/= :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
== :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
$c== :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
Prelude.Eq,
      Eq Ac3DynamicRangeCompressionRf
Eq Ac3DynamicRangeCompressionRf
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Ordering)
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Bool)
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Bool)
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Bool)
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Bool)
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Ac3DynamicRangeCompressionRf)
-> (Ac3DynamicRangeCompressionRf
    -> Ac3DynamicRangeCompressionRf -> Ac3DynamicRangeCompressionRf)
-> Ord Ac3DynamicRangeCompressionRf
Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ordering
Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ac3DynamicRangeCompressionRf
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 :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ac3DynamicRangeCompressionRf
$cmin :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ac3DynamicRangeCompressionRf
max :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ac3DynamicRangeCompressionRf
$cmax :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ac3DynamicRangeCompressionRf
>= :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
$c>= :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
> :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
$c> :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
<= :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
$c<= :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
< :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
$c< :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Bool
compare :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ordering
$ccompare :: Ac3DynamicRangeCompressionRf
-> Ac3DynamicRangeCompressionRf -> Ordering
$cp1Ord :: Eq Ac3DynamicRangeCompressionRf
Prelude.Ord,
      (forall x.
 Ac3DynamicRangeCompressionRf -> Rep Ac3DynamicRangeCompressionRf x)
-> (forall x.
    Rep Ac3DynamicRangeCompressionRf x -> Ac3DynamicRangeCompressionRf)
-> Generic Ac3DynamicRangeCompressionRf
forall x.
Rep Ac3DynamicRangeCompressionRf x -> Ac3DynamicRangeCompressionRf
forall x.
Ac3DynamicRangeCompressionRf -> Rep Ac3DynamicRangeCompressionRf x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Ac3DynamicRangeCompressionRf x -> Ac3DynamicRangeCompressionRf
$cfrom :: forall x.
Ac3DynamicRangeCompressionRf -> Rep Ac3DynamicRangeCompressionRf x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Ac3DynamicRangeCompressionRf -> Int
Ac3DynamicRangeCompressionRf -> Int
(Int -> Ac3DynamicRangeCompressionRf -> Int)
-> (Ac3DynamicRangeCompressionRf -> Int)
-> Hashable Ac3DynamicRangeCompressionRf
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Ac3DynamicRangeCompressionRf -> Int
$chash :: Ac3DynamicRangeCompressionRf -> Int
hashWithSalt :: Int -> Ac3DynamicRangeCompressionRf -> Int
$chashWithSalt :: Int -> Ac3DynamicRangeCompressionRf -> Int
Prelude.Hashable,
      Ac3DynamicRangeCompressionRf -> ()
(Ac3DynamicRangeCompressionRf -> ())
-> NFData Ac3DynamicRangeCompressionRf
forall a. (a -> ()) -> NFData a
rnf :: Ac3DynamicRangeCompressionRf -> ()
$crnf :: Ac3DynamicRangeCompressionRf -> ()
Prelude.NFData,
      Text -> Either String Ac3DynamicRangeCompressionRf
(Text -> Either String Ac3DynamicRangeCompressionRf)
-> FromText Ac3DynamicRangeCompressionRf
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Ac3DynamicRangeCompressionRf
$cfromText :: Text -> Either String Ac3DynamicRangeCompressionRf
Core.FromText,
      Ac3DynamicRangeCompressionRf -> Text
(Ac3DynamicRangeCompressionRf -> Text)
-> ToText Ac3DynamicRangeCompressionRf
forall a. (a -> Text) -> ToText a
toText :: Ac3DynamicRangeCompressionRf -> Text
$ctoText :: Ac3DynamicRangeCompressionRf -> Text
Core.ToText,
      Ac3DynamicRangeCompressionRf -> ByteString
(Ac3DynamicRangeCompressionRf -> ByteString)
-> ToByteString Ac3DynamicRangeCompressionRf
forall a. (a -> ByteString) -> ToByteString a
toBS :: Ac3DynamicRangeCompressionRf -> ByteString
$ctoBS :: Ac3DynamicRangeCompressionRf -> ByteString
Core.ToByteString,
      Ac3DynamicRangeCompressionRf -> ByteStringBuilder
(Ac3DynamicRangeCompressionRf -> ByteStringBuilder)
-> ToLog Ac3DynamicRangeCompressionRf
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Ac3DynamicRangeCompressionRf -> ByteStringBuilder
$cbuild :: Ac3DynamicRangeCompressionRf -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Ac3DynamicRangeCompressionRf -> [Header]
(HeaderName -> Ac3DynamicRangeCompressionRf -> [Header])
-> ToHeader Ac3DynamicRangeCompressionRf
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Ac3DynamicRangeCompressionRf -> [Header]
$ctoHeader :: HeaderName -> Ac3DynamicRangeCompressionRf -> [Header]
Core.ToHeader,
      Ac3DynamicRangeCompressionRf -> QueryString
(Ac3DynamicRangeCompressionRf -> QueryString)
-> ToQuery Ac3DynamicRangeCompressionRf
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Ac3DynamicRangeCompressionRf -> QueryString
$ctoQuery :: Ac3DynamicRangeCompressionRf -> QueryString
Core.ToQuery,
      Value -> Parser [Ac3DynamicRangeCompressionRf]
Value -> Parser Ac3DynamicRangeCompressionRf
(Value -> Parser Ac3DynamicRangeCompressionRf)
-> (Value -> Parser [Ac3DynamicRangeCompressionRf])
-> FromJSON Ac3DynamicRangeCompressionRf
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Ac3DynamicRangeCompressionRf]
$cparseJSONList :: Value -> Parser [Ac3DynamicRangeCompressionRf]
parseJSON :: Value -> Parser Ac3DynamicRangeCompressionRf
$cparseJSON :: Value -> Parser Ac3DynamicRangeCompressionRf
Core.FromJSON,
      FromJSONKeyFunction [Ac3DynamicRangeCompressionRf]
FromJSONKeyFunction Ac3DynamicRangeCompressionRf
FromJSONKeyFunction Ac3DynamicRangeCompressionRf
-> FromJSONKeyFunction [Ac3DynamicRangeCompressionRf]
-> FromJSONKey Ac3DynamicRangeCompressionRf
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Ac3DynamicRangeCompressionRf]
$cfromJSONKeyList :: FromJSONKeyFunction [Ac3DynamicRangeCompressionRf]
fromJSONKey :: FromJSONKeyFunction Ac3DynamicRangeCompressionRf
$cfromJSONKey :: FromJSONKeyFunction Ac3DynamicRangeCompressionRf
Core.FromJSONKey,
      [Ac3DynamicRangeCompressionRf] -> Encoding
[Ac3DynamicRangeCompressionRf] -> Value
Ac3DynamicRangeCompressionRf -> Encoding
Ac3DynamicRangeCompressionRf -> Value
(Ac3DynamicRangeCompressionRf -> Value)
-> (Ac3DynamicRangeCompressionRf -> Encoding)
-> ([Ac3DynamicRangeCompressionRf] -> Value)
-> ([Ac3DynamicRangeCompressionRf] -> Encoding)
-> ToJSON Ac3DynamicRangeCompressionRf
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Ac3DynamicRangeCompressionRf] -> Encoding
$ctoEncodingList :: [Ac3DynamicRangeCompressionRf] -> Encoding
toJSONList :: [Ac3DynamicRangeCompressionRf] -> Value
$ctoJSONList :: [Ac3DynamicRangeCompressionRf] -> Value
toEncoding :: Ac3DynamicRangeCompressionRf -> Encoding
$ctoEncoding :: Ac3DynamicRangeCompressionRf -> Encoding
toJSON :: Ac3DynamicRangeCompressionRf -> Value
$ctoJSON :: Ac3DynamicRangeCompressionRf -> Value
Core.ToJSON,
      ToJSONKeyFunction [Ac3DynamicRangeCompressionRf]
ToJSONKeyFunction Ac3DynamicRangeCompressionRf
ToJSONKeyFunction Ac3DynamicRangeCompressionRf
-> ToJSONKeyFunction [Ac3DynamicRangeCompressionRf]
-> ToJSONKey Ac3DynamicRangeCompressionRf
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Ac3DynamicRangeCompressionRf]
$ctoJSONKeyList :: ToJSONKeyFunction [Ac3DynamicRangeCompressionRf]
toJSONKey :: ToJSONKeyFunction Ac3DynamicRangeCompressionRf
$ctoJSONKey :: ToJSONKeyFunction Ac3DynamicRangeCompressionRf
Core.ToJSONKey,
      [Node] -> Either String Ac3DynamicRangeCompressionRf
([Node] -> Either String Ac3DynamicRangeCompressionRf)
-> FromXML Ac3DynamicRangeCompressionRf
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Ac3DynamicRangeCompressionRf
$cparseXML :: [Node] -> Either String Ac3DynamicRangeCompressionRf
Core.FromXML,
      Ac3DynamicRangeCompressionRf -> XML
(Ac3DynamicRangeCompressionRf -> XML)
-> ToXML Ac3DynamicRangeCompressionRf
forall a. (a -> XML) -> ToXML a
toXML :: Ac3DynamicRangeCompressionRf -> XML
$ctoXML :: Ac3DynamicRangeCompressionRf -> XML
Core.ToXML
    )

pattern Ac3DynamicRangeCompressionRf_FILM_LIGHT :: Ac3DynamicRangeCompressionRf
pattern $bAc3DynamicRangeCompressionRf_FILM_LIGHT :: Ac3DynamicRangeCompressionRf
$mAc3DynamicRangeCompressionRf_FILM_LIGHT :: forall r.
Ac3DynamicRangeCompressionRf -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionRf_FILM_LIGHT = Ac3DynamicRangeCompressionRf' "FILM_LIGHT"

pattern Ac3DynamicRangeCompressionRf_FILM_STANDARD :: Ac3DynamicRangeCompressionRf
pattern $bAc3DynamicRangeCompressionRf_FILM_STANDARD :: Ac3DynamicRangeCompressionRf
$mAc3DynamicRangeCompressionRf_FILM_STANDARD :: forall r.
Ac3DynamicRangeCompressionRf -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionRf_FILM_STANDARD = Ac3DynamicRangeCompressionRf' "FILM_STANDARD"

pattern Ac3DynamicRangeCompressionRf_MUSIC_LIGHT :: Ac3DynamicRangeCompressionRf
pattern $bAc3DynamicRangeCompressionRf_MUSIC_LIGHT :: Ac3DynamicRangeCompressionRf
$mAc3DynamicRangeCompressionRf_MUSIC_LIGHT :: forall r.
Ac3DynamicRangeCompressionRf -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionRf_MUSIC_LIGHT = Ac3DynamicRangeCompressionRf' "MUSIC_LIGHT"

pattern Ac3DynamicRangeCompressionRf_MUSIC_STANDARD :: Ac3DynamicRangeCompressionRf
pattern $bAc3DynamicRangeCompressionRf_MUSIC_STANDARD :: Ac3DynamicRangeCompressionRf
$mAc3DynamicRangeCompressionRf_MUSIC_STANDARD :: forall r.
Ac3DynamicRangeCompressionRf -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionRf_MUSIC_STANDARD = Ac3DynamicRangeCompressionRf' "MUSIC_STANDARD"

pattern Ac3DynamicRangeCompressionRf_NONE :: Ac3DynamicRangeCompressionRf
pattern $bAc3DynamicRangeCompressionRf_NONE :: Ac3DynamicRangeCompressionRf
$mAc3DynamicRangeCompressionRf_NONE :: forall r.
Ac3DynamicRangeCompressionRf -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionRf_NONE = Ac3DynamicRangeCompressionRf' "NONE"

pattern Ac3DynamicRangeCompressionRf_SPEECH :: Ac3DynamicRangeCompressionRf
pattern $bAc3DynamicRangeCompressionRf_SPEECH :: Ac3DynamicRangeCompressionRf
$mAc3DynamicRangeCompressionRf_SPEECH :: forall r.
Ac3DynamicRangeCompressionRf -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionRf_SPEECH = Ac3DynamicRangeCompressionRf' "SPEECH"

{-# COMPLETE
  Ac3DynamicRangeCompressionRf_FILM_LIGHT,
  Ac3DynamicRangeCompressionRf_FILM_STANDARD,
  Ac3DynamicRangeCompressionRf_MUSIC_LIGHT,
  Ac3DynamicRangeCompressionRf_MUSIC_STANDARD,
  Ac3DynamicRangeCompressionRf_NONE,
  Ac3DynamicRangeCompressionRf_SPEECH,
  Ac3DynamicRangeCompressionRf'
  #-}