{-# 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.Ac3DynamicRangeCompressionProfile
-- 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.Ac3DynamicRangeCompressionProfile
  ( Ac3DynamicRangeCompressionProfile
      ( ..,
        Ac3DynamicRangeCompressionProfile_FILM_STANDARD,
        Ac3DynamicRangeCompressionProfile_NONE
      ),
  )
where

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

-- | When you want to add Dolby dynamic range compression (DRC) signaling to
-- your output stream, we recommend that you use the mode-specific settings
-- instead of Dynamic range compression profile
-- (DynamicRangeCompressionProfile). The mode-specific settings are Dynamic
-- range compression profile, line mode (dynamicRangeCompressionLine) and
-- Dynamic range compression profile, RF mode (dynamicRangeCompressionRf).
-- Note that when you specify values for all three settings, MediaConvert
-- ignores the value of this setting in favor of the mode-specific
-- settings. If you do use this setting instead of the mode-specific
-- settings, choose None (NONE) to leave out DRC signaling. Keep the
-- default Film standard (FILM_STANDARD) to set the profile to Dolby\'s
-- film standard profile for all operating modes.
newtype Ac3DynamicRangeCompressionProfile = Ac3DynamicRangeCompressionProfile'
  { Ac3DynamicRangeCompressionProfile -> Text
fromAc3DynamicRangeCompressionProfile ::
      Core.Text
  }
  deriving stock
    ( Int -> Ac3DynamicRangeCompressionProfile -> ShowS
[Ac3DynamicRangeCompressionProfile] -> ShowS
Ac3DynamicRangeCompressionProfile -> String
(Int -> Ac3DynamicRangeCompressionProfile -> ShowS)
-> (Ac3DynamicRangeCompressionProfile -> String)
-> ([Ac3DynamicRangeCompressionProfile] -> ShowS)
-> Show Ac3DynamicRangeCompressionProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Ac3DynamicRangeCompressionProfile] -> ShowS
$cshowList :: [Ac3DynamicRangeCompressionProfile] -> ShowS
show :: Ac3DynamicRangeCompressionProfile -> String
$cshow :: Ac3DynamicRangeCompressionProfile -> String
showsPrec :: Int -> Ac3DynamicRangeCompressionProfile -> ShowS
$cshowsPrec :: Int -> Ac3DynamicRangeCompressionProfile -> ShowS
Prelude.Show,
      ReadPrec [Ac3DynamicRangeCompressionProfile]
ReadPrec Ac3DynamicRangeCompressionProfile
Int -> ReadS Ac3DynamicRangeCompressionProfile
ReadS [Ac3DynamicRangeCompressionProfile]
(Int -> ReadS Ac3DynamicRangeCompressionProfile)
-> ReadS [Ac3DynamicRangeCompressionProfile]
-> ReadPrec Ac3DynamicRangeCompressionProfile
-> ReadPrec [Ac3DynamicRangeCompressionProfile]
-> Read Ac3DynamicRangeCompressionProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Ac3DynamicRangeCompressionProfile]
$creadListPrec :: ReadPrec [Ac3DynamicRangeCompressionProfile]
readPrec :: ReadPrec Ac3DynamicRangeCompressionProfile
$creadPrec :: ReadPrec Ac3DynamicRangeCompressionProfile
readList :: ReadS [Ac3DynamicRangeCompressionProfile]
$creadList :: ReadS [Ac3DynamicRangeCompressionProfile]
readsPrec :: Int -> ReadS Ac3DynamicRangeCompressionProfile
$creadsPrec :: Int -> ReadS Ac3DynamicRangeCompressionProfile
Prelude.Read,
      Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
(Ac3DynamicRangeCompressionProfile
 -> Ac3DynamicRangeCompressionProfile -> Bool)
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile -> Bool)
-> Eq Ac3DynamicRangeCompressionProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
$c/= :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
== :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
$c== :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
Prelude.Eq,
      Eq Ac3DynamicRangeCompressionProfile
Eq Ac3DynamicRangeCompressionProfile
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile -> Ordering)
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile -> Bool)
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile -> Bool)
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile -> Bool)
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile -> Bool)
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile)
-> (Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile
    -> Ac3DynamicRangeCompressionProfile)
-> Ord Ac3DynamicRangeCompressionProfile
Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Ordering
Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
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 :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
$cmin :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
max :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
$cmax :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile
>= :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
$c>= :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
> :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
$c> :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
<= :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
$c<= :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
< :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
$c< :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Bool
compare :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Ordering
$ccompare :: Ac3DynamicRangeCompressionProfile
-> Ac3DynamicRangeCompressionProfile -> Ordering
$cp1Ord :: Eq Ac3DynamicRangeCompressionProfile
Prelude.Ord,
      (forall x.
 Ac3DynamicRangeCompressionProfile
 -> Rep Ac3DynamicRangeCompressionProfile x)
-> (forall x.
    Rep Ac3DynamicRangeCompressionProfile x
    -> Ac3DynamicRangeCompressionProfile)
-> Generic Ac3DynamicRangeCompressionProfile
forall x.
Rep Ac3DynamicRangeCompressionProfile x
-> Ac3DynamicRangeCompressionProfile
forall x.
Ac3DynamicRangeCompressionProfile
-> Rep Ac3DynamicRangeCompressionProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Ac3DynamicRangeCompressionProfile x
-> Ac3DynamicRangeCompressionProfile
$cfrom :: forall x.
Ac3DynamicRangeCompressionProfile
-> Rep Ac3DynamicRangeCompressionProfile x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Ac3DynamicRangeCompressionProfile -> Int
Ac3DynamicRangeCompressionProfile -> Int
(Int -> Ac3DynamicRangeCompressionProfile -> Int)
-> (Ac3DynamicRangeCompressionProfile -> Int)
-> Hashable Ac3DynamicRangeCompressionProfile
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Ac3DynamicRangeCompressionProfile -> Int
$chash :: Ac3DynamicRangeCompressionProfile -> Int
hashWithSalt :: Int -> Ac3DynamicRangeCompressionProfile -> Int
$chashWithSalt :: Int -> Ac3DynamicRangeCompressionProfile -> Int
Prelude.Hashable,
      Ac3DynamicRangeCompressionProfile -> ()
(Ac3DynamicRangeCompressionProfile -> ())
-> NFData Ac3DynamicRangeCompressionProfile
forall a. (a -> ()) -> NFData a
rnf :: Ac3DynamicRangeCompressionProfile -> ()
$crnf :: Ac3DynamicRangeCompressionProfile -> ()
Prelude.NFData,
      Text -> Either String Ac3DynamicRangeCompressionProfile
(Text -> Either String Ac3DynamicRangeCompressionProfile)
-> FromText Ac3DynamicRangeCompressionProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Ac3DynamicRangeCompressionProfile
$cfromText :: Text -> Either String Ac3DynamicRangeCompressionProfile
Core.FromText,
      Ac3DynamicRangeCompressionProfile -> Text
(Ac3DynamicRangeCompressionProfile -> Text)
-> ToText Ac3DynamicRangeCompressionProfile
forall a. (a -> Text) -> ToText a
toText :: Ac3DynamicRangeCompressionProfile -> Text
$ctoText :: Ac3DynamicRangeCompressionProfile -> Text
Core.ToText,
      Ac3DynamicRangeCompressionProfile -> ByteString
(Ac3DynamicRangeCompressionProfile -> ByteString)
-> ToByteString Ac3DynamicRangeCompressionProfile
forall a. (a -> ByteString) -> ToByteString a
toBS :: Ac3DynamicRangeCompressionProfile -> ByteString
$ctoBS :: Ac3DynamicRangeCompressionProfile -> ByteString
Core.ToByteString,
      Ac3DynamicRangeCompressionProfile -> ByteStringBuilder
(Ac3DynamicRangeCompressionProfile -> ByteStringBuilder)
-> ToLog Ac3DynamicRangeCompressionProfile
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Ac3DynamicRangeCompressionProfile -> ByteStringBuilder
$cbuild :: Ac3DynamicRangeCompressionProfile -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Ac3DynamicRangeCompressionProfile -> [Header]
(HeaderName -> Ac3DynamicRangeCompressionProfile -> [Header])
-> ToHeader Ac3DynamicRangeCompressionProfile
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Ac3DynamicRangeCompressionProfile -> [Header]
$ctoHeader :: HeaderName -> Ac3DynamicRangeCompressionProfile -> [Header]
Core.ToHeader,
      Ac3DynamicRangeCompressionProfile -> QueryString
(Ac3DynamicRangeCompressionProfile -> QueryString)
-> ToQuery Ac3DynamicRangeCompressionProfile
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Ac3DynamicRangeCompressionProfile -> QueryString
$ctoQuery :: Ac3DynamicRangeCompressionProfile -> QueryString
Core.ToQuery,
      Value -> Parser [Ac3DynamicRangeCompressionProfile]
Value -> Parser Ac3DynamicRangeCompressionProfile
(Value -> Parser Ac3DynamicRangeCompressionProfile)
-> (Value -> Parser [Ac3DynamicRangeCompressionProfile])
-> FromJSON Ac3DynamicRangeCompressionProfile
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Ac3DynamicRangeCompressionProfile]
$cparseJSONList :: Value -> Parser [Ac3DynamicRangeCompressionProfile]
parseJSON :: Value -> Parser Ac3DynamicRangeCompressionProfile
$cparseJSON :: Value -> Parser Ac3DynamicRangeCompressionProfile
Core.FromJSON,
      FromJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
FromJSONKeyFunction Ac3DynamicRangeCompressionProfile
FromJSONKeyFunction Ac3DynamicRangeCompressionProfile
-> FromJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
-> FromJSONKey Ac3DynamicRangeCompressionProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
fromJSONKey :: FromJSONKeyFunction Ac3DynamicRangeCompressionProfile
$cfromJSONKey :: FromJSONKeyFunction Ac3DynamicRangeCompressionProfile
Core.FromJSONKey,
      [Ac3DynamicRangeCompressionProfile] -> Encoding
[Ac3DynamicRangeCompressionProfile] -> Value
Ac3DynamicRangeCompressionProfile -> Encoding
Ac3DynamicRangeCompressionProfile -> Value
(Ac3DynamicRangeCompressionProfile -> Value)
-> (Ac3DynamicRangeCompressionProfile -> Encoding)
-> ([Ac3DynamicRangeCompressionProfile] -> Value)
-> ([Ac3DynamicRangeCompressionProfile] -> Encoding)
-> ToJSON Ac3DynamicRangeCompressionProfile
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Ac3DynamicRangeCompressionProfile] -> Encoding
$ctoEncodingList :: [Ac3DynamicRangeCompressionProfile] -> Encoding
toJSONList :: [Ac3DynamicRangeCompressionProfile] -> Value
$ctoJSONList :: [Ac3DynamicRangeCompressionProfile] -> Value
toEncoding :: Ac3DynamicRangeCompressionProfile -> Encoding
$ctoEncoding :: Ac3DynamicRangeCompressionProfile -> Encoding
toJSON :: Ac3DynamicRangeCompressionProfile -> Value
$ctoJSON :: Ac3DynamicRangeCompressionProfile -> Value
Core.ToJSON,
      ToJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
ToJSONKeyFunction Ac3DynamicRangeCompressionProfile
ToJSONKeyFunction Ac3DynamicRangeCompressionProfile
-> ToJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
-> ToJSONKey Ac3DynamicRangeCompressionProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [Ac3DynamicRangeCompressionProfile]
toJSONKey :: ToJSONKeyFunction Ac3DynamicRangeCompressionProfile
$ctoJSONKey :: ToJSONKeyFunction Ac3DynamicRangeCompressionProfile
Core.ToJSONKey,
      [Node] -> Either String Ac3DynamicRangeCompressionProfile
([Node] -> Either String Ac3DynamicRangeCompressionProfile)
-> FromXML Ac3DynamicRangeCompressionProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Ac3DynamicRangeCompressionProfile
$cparseXML :: [Node] -> Either String Ac3DynamicRangeCompressionProfile
Core.FromXML,
      Ac3DynamicRangeCompressionProfile -> XML
(Ac3DynamicRangeCompressionProfile -> XML)
-> ToXML Ac3DynamicRangeCompressionProfile
forall a. (a -> XML) -> ToXML a
toXML :: Ac3DynamicRangeCompressionProfile -> XML
$ctoXML :: Ac3DynamicRangeCompressionProfile -> XML
Core.ToXML
    )

pattern Ac3DynamicRangeCompressionProfile_FILM_STANDARD :: Ac3DynamicRangeCompressionProfile
pattern $bAc3DynamicRangeCompressionProfile_FILM_STANDARD :: Ac3DynamicRangeCompressionProfile
$mAc3DynamicRangeCompressionProfile_FILM_STANDARD :: forall r.
Ac3DynamicRangeCompressionProfile
-> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionProfile_FILM_STANDARD = Ac3DynamicRangeCompressionProfile' "FILM_STANDARD"

pattern Ac3DynamicRangeCompressionProfile_NONE :: Ac3DynamicRangeCompressionProfile
pattern $bAc3DynamicRangeCompressionProfile_NONE :: Ac3DynamicRangeCompressionProfile
$mAc3DynamicRangeCompressionProfile_NONE :: forall r.
Ac3DynamicRangeCompressionProfile
-> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionProfile_NONE = Ac3DynamicRangeCompressionProfile' "NONE"

{-# COMPLETE
  Ac3DynamicRangeCompressionProfile_FILM_STANDARD,
  Ac3DynamicRangeCompressionProfile_NONE,
  Ac3DynamicRangeCompressionProfile'
  #-}