{-# 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.Ac3DynamicRangeCompressionLine
-- 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.Ac3DynamicRangeCompressionLine
  ( Ac3DynamicRangeCompressionLine
      ( ..,
        Ac3DynamicRangeCompressionLine_FILM_LIGHT,
        Ac3DynamicRangeCompressionLine_FILM_STANDARD,
        Ac3DynamicRangeCompressionLine_MUSIC_LIGHT,
        Ac3DynamicRangeCompressionLine_MUSIC_STANDARD,
        Ac3DynamicRangeCompressionLine_NONE,
        Ac3DynamicRangeCompressionLine_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 line 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 Ac3DynamicRangeCompressionLine = Ac3DynamicRangeCompressionLine'
  { Ac3DynamicRangeCompressionLine -> Text
fromAc3DynamicRangeCompressionLine ::
      Core.Text
  }
  deriving stock
    ( Int -> Ac3DynamicRangeCompressionLine -> ShowS
[Ac3DynamicRangeCompressionLine] -> ShowS
Ac3DynamicRangeCompressionLine -> String
(Int -> Ac3DynamicRangeCompressionLine -> ShowS)
-> (Ac3DynamicRangeCompressionLine -> String)
-> ([Ac3DynamicRangeCompressionLine] -> ShowS)
-> Show Ac3DynamicRangeCompressionLine
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Ac3DynamicRangeCompressionLine] -> ShowS
$cshowList :: [Ac3DynamicRangeCompressionLine] -> ShowS
show :: Ac3DynamicRangeCompressionLine -> String
$cshow :: Ac3DynamicRangeCompressionLine -> String
showsPrec :: Int -> Ac3DynamicRangeCompressionLine -> ShowS
$cshowsPrec :: Int -> Ac3DynamicRangeCompressionLine -> ShowS
Prelude.Show,
      ReadPrec [Ac3DynamicRangeCompressionLine]
ReadPrec Ac3DynamicRangeCompressionLine
Int -> ReadS Ac3DynamicRangeCompressionLine
ReadS [Ac3DynamicRangeCompressionLine]
(Int -> ReadS Ac3DynamicRangeCompressionLine)
-> ReadS [Ac3DynamicRangeCompressionLine]
-> ReadPrec Ac3DynamicRangeCompressionLine
-> ReadPrec [Ac3DynamicRangeCompressionLine]
-> Read Ac3DynamicRangeCompressionLine
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Ac3DynamicRangeCompressionLine]
$creadListPrec :: ReadPrec [Ac3DynamicRangeCompressionLine]
readPrec :: ReadPrec Ac3DynamicRangeCompressionLine
$creadPrec :: ReadPrec Ac3DynamicRangeCompressionLine
readList :: ReadS [Ac3DynamicRangeCompressionLine]
$creadList :: ReadS [Ac3DynamicRangeCompressionLine]
readsPrec :: Int -> ReadS Ac3DynamicRangeCompressionLine
$creadsPrec :: Int -> ReadS Ac3DynamicRangeCompressionLine
Prelude.Read,
      Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
(Ac3DynamicRangeCompressionLine
 -> Ac3DynamicRangeCompressionLine -> Bool)
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine -> Bool)
-> Eq Ac3DynamicRangeCompressionLine
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
$c/= :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
== :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
$c== :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
Prelude.Eq,
      Eq Ac3DynamicRangeCompressionLine
Eq Ac3DynamicRangeCompressionLine
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine -> Ordering)
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine -> Bool)
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine -> Bool)
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine -> Bool)
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine -> Bool)
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine)
-> (Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine
    -> Ac3DynamicRangeCompressionLine)
-> Ord Ac3DynamicRangeCompressionLine
Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ordering
Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ac3DynamicRangeCompressionLine
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 :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ac3DynamicRangeCompressionLine
$cmin :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ac3DynamicRangeCompressionLine
max :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ac3DynamicRangeCompressionLine
$cmax :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ac3DynamicRangeCompressionLine
>= :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
$c>= :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
> :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
$c> :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
<= :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
$c<= :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
< :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
$c< :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Bool
compare :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ordering
$ccompare :: Ac3DynamicRangeCompressionLine
-> Ac3DynamicRangeCompressionLine -> Ordering
$cp1Ord :: Eq Ac3DynamicRangeCompressionLine
Prelude.Ord,
      (forall x.
 Ac3DynamicRangeCompressionLine
 -> Rep Ac3DynamicRangeCompressionLine x)
-> (forall x.
    Rep Ac3DynamicRangeCompressionLine x
    -> Ac3DynamicRangeCompressionLine)
-> Generic Ac3DynamicRangeCompressionLine
forall x.
Rep Ac3DynamicRangeCompressionLine x
-> Ac3DynamicRangeCompressionLine
forall x.
Ac3DynamicRangeCompressionLine
-> Rep Ac3DynamicRangeCompressionLine x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Ac3DynamicRangeCompressionLine x
-> Ac3DynamicRangeCompressionLine
$cfrom :: forall x.
Ac3DynamicRangeCompressionLine
-> Rep Ac3DynamicRangeCompressionLine x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Ac3DynamicRangeCompressionLine -> Int
Ac3DynamicRangeCompressionLine -> Int
(Int -> Ac3DynamicRangeCompressionLine -> Int)
-> (Ac3DynamicRangeCompressionLine -> Int)
-> Hashable Ac3DynamicRangeCompressionLine
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Ac3DynamicRangeCompressionLine -> Int
$chash :: Ac3DynamicRangeCompressionLine -> Int
hashWithSalt :: Int -> Ac3DynamicRangeCompressionLine -> Int
$chashWithSalt :: Int -> Ac3DynamicRangeCompressionLine -> Int
Prelude.Hashable,
      Ac3DynamicRangeCompressionLine -> ()
(Ac3DynamicRangeCompressionLine -> ())
-> NFData Ac3DynamicRangeCompressionLine
forall a. (a -> ()) -> NFData a
rnf :: Ac3DynamicRangeCompressionLine -> ()
$crnf :: Ac3DynamicRangeCompressionLine -> ()
Prelude.NFData,
      Text -> Either String Ac3DynamicRangeCompressionLine
(Text -> Either String Ac3DynamicRangeCompressionLine)
-> FromText Ac3DynamicRangeCompressionLine
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Ac3DynamicRangeCompressionLine
$cfromText :: Text -> Either String Ac3DynamicRangeCompressionLine
Core.FromText,
      Ac3DynamicRangeCompressionLine -> Text
(Ac3DynamicRangeCompressionLine -> Text)
-> ToText Ac3DynamicRangeCompressionLine
forall a. (a -> Text) -> ToText a
toText :: Ac3DynamicRangeCompressionLine -> Text
$ctoText :: Ac3DynamicRangeCompressionLine -> Text
Core.ToText,
      Ac3DynamicRangeCompressionLine -> ByteString
(Ac3DynamicRangeCompressionLine -> ByteString)
-> ToByteString Ac3DynamicRangeCompressionLine
forall a. (a -> ByteString) -> ToByteString a
toBS :: Ac3DynamicRangeCompressionLine -> ByteString
$ctoBS :: Ac3DynamicRangeCompressionLine -> ByteString
Core.ToByteString,
      Ac3DynamicRangeCompressionLine -> ByteStringBuilder
(Ac3DynamicRangeCompressionLine -> ByteStringBuilder)
-> ToLog Ac3DynamicRangeCompressionLine
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Ac3DynamicRangeCompressionLine -> ByteStringBuilder
$cbuild :: Ac3DynamicRangeCompressionLine -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Ac3DynamicRangeCompressionLine -> [Header]
(HeaderName -> Ac3DynamicRangeCompressionLine -> [Header])
-> ToHeader Ac3DynamicRangeCompressionLine
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Ac3DynamicRangeCompressionLine -> [Header]
$ctoHeader :: HeaderName -> Ac3DynamicRangeCompressionLine -> [Header]
Core.ToHeader,
      Ac3DynamicRangeCompressionLine -> QueryString
(Ac3DynamicRangeCompressionLine -> QueryString)
-> ToQuery Ac3DynamicRangeCompressionLine
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Ac3DynamicRangeCompressionLine -> QueryString
$ctoQuery :: Ac3DynamicRangeCompressionLine -> QueryString
Core.ToQuery,
      Value -> Parser [Ac3DynamicRangeCompressionLine]
Value -> Parser Ac3DynamicRangeCompressionLine
(Value -> Parser Ac3DynamicRangeCompressionLine)
-> (Value -> Parser [Ac3DynamicRangeCompressionLine])
-> FromJSON Ac3DynamicRangeCompressionLine
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Ac3DynamicRangeCompressionLine]
$cparseJSONList :: Value -> Parser [Ac3DynamicRangeCompressionLine]
parseJSON :: Value -> Parser Ac3DynamicRangeCompressionLine
$cparseJSON :: Value -> Parser Ac3DynamicRangeCompressionLine
Core.FromJSON,
      FromJSONKeyFunction [Ac3DynamicRangeCompressionLine]
FromJSONKeyFunction Ac3DynamicRangeCompressionLine
FromJSONKeyFunction Ac3DynamicRangeCompressionLine
-> FromJSONKeyFunction [Ac3DynamicRangeCompressionLine]
-> FromJSONKey Ac3DynamicRangeCompressionLine
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Ac3DynamicRangeCompressionLine]
$cfromJSONKeyList :: FromJSONKeyFunction [Ac3DynamicRangeCompressionLine]
fromJSONKey :: FromJSONKeyFunction Ac3DynamicRangeCompressionLine
$cfromJSONKey :: FromJSONKeyFunction Ac3DynamicRangeCompressionLine
Core.FromJSONKey,
      [Ac3DynamicRangeCompressionLine] -> Encoding
[Ac3DynamicRangeCompressionLine] -> Value
Ac3DynamicRangeCompressionLine -> Encoding
Ac3DynamicRangeCompressionLine -> Value
(Ac3DynamicRangeCompressionLine -> Value)
-> (Ac3DynamicRangeCompressionLine -> Encoding)
-> ([Ac3DynamicRangeCompressionLine] -> Value)
-> ([Ac3DynamicRangeCompressionLine] -> Encoding)
-> ToJSON Ac3DynamicRangeCompressionLine
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Ac3DynamicRangeCompressionLine] -> Encoding
$ctoEncodingList :: [Ac3DynamicRangeCompressionLine] -> Encoding
toJSONList :: [Ac3DynamicRangeCompressionLine] -> Value
$ctoJSONList :: [Ac3DynamicRangeCompressionLine] -> Value
toEncoding :: Ac3DynamicRangeCompressionLine -> Encoding
$ctoEncoding :: Ac3DynamicRangeCompressionLine -> Encoding
toJSON :: Ac3DynamicRangeCompressionLine -> Value
$ctoJSON :: Ac3DynamicRangeCompressionLine -> Value
Core.ToJSON,
      ToJSONKeyFunction [Ac3DynamicRangeCompressionLine]
ToJSONKeyFunction Ac3DynamicRangeCompressionLine
ToJSONKeyFunction Ac3DynamicRangeCompressionLine
-> ToJSONKeyFunction [Ac3DynamicRangeCompressionLine]
-> ToJSONKey Ac3DynamicRangeCompressionLine
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Ac3DynamicRangeCompressionLine]
$ctoJSONKeyList :: ToJSONKeyFunction [Ac3DynamicRangeCompressionLine]
toJSONKey :: ToJSONKeyFunction Ac3DynamicRangeCompressionLine
$ctoJSONKey :: ToJSONKeyFunction Ac3DynamicRangeCompressionLine
Core.ToJSONKey,
      [Node] -> Either String Ac3DynamicRangeCompressionLine
([Node] -> Either String Ac3DynamicRangeCompressionLine)
-> FromXML Ac3DynamicRangeCompressionLine
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Ac3DynamicRangeCompressionLine
$cparseXML :: [Node] -> Either String Ac3DynamicRangeCompressionLine
Core.FromXML,
      Ac3DynamicRangeCompressionLine -> XML
(Ac3DynamicRangeCompressionLine -> XML)
-> ToXML Ac3DynamicRangeCompressionLine
forall a. (a -> XML) -> ToXML a
toXML :: Ac3DynamicRangeCompressionLine -> XML
$ctoXML :: Ac3DynamicRangeCompressionLine -> XML
Core.ToXML
    )

pattern Ac3DynamicRangeCompressionLine_FILM_LIGHT :: Ac3DynamicRangeCompressionLine
pattern $bAc3DynamicRangeCompressionLine_FILM_LIGHT :: Ac3DynamicRangeCompressionLine
$mAc3DynamicRangeCompressionLine_FILM_LIGHT :: forall r.
Ac3DynamicRangeCompressionLine -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionLine_FILM_LIGHT = Ac3DynamicRangeCompressionLine' "FILM_LIGHT"

pattern Ac3DynamicRangeCompressionLine_FILM_STANDARD :: Ac3DynamicRangeCompressionLine
pattern $bAc3DynamicRangeCompressionLine_FILM_STANDARD :: Ac3DynamicRangeCompressionLine
$mAc3DynamicRangeCompressionLine_FILM_STANDARD :: forall r.
Ac3DynamicRangeCompressionLine -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionLine_FILM_STANDARD = Ac3DynamicRangeCompressionLine' "FILM_STANDARD"

pattern Ac3DynamicRangeCompressionLine_MUSIC_LIGHT :: Ac3DynamicRangeCompressionLine
pattern $bAc3DynamicRangeCompressionLine_MUSIC_LIGHT :: Ac3DynamicRangeCompressionLine
$mAc3DynamicRangeCompressionLine_MUSIC_LIGHT :: forall r.
Ac3DynamicRangeCompressionLine -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionLine_MUSIC_LIGHT = Ac3DynamicRangeCompressionLine' "MUSIC_LIGHT"

pattern Ac3DynamicRangeCompressionLine_MUSIC_STANDARD :: Ac3DynamicRangeCompressionLine
pattern $bAc3DynamicRangeCompressionLine_MUSIC_STANDARD :: Ac3DynamicRangeCompressionLine
$mAc3DynamicRangeCompressionLine_MUSIC_STANDARD :: forall r.
Ac3DynamicRangeCompressionLine -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionLine_MUSIC_STANDARD = Ac3DynamicRangeCompressionLine' "MUSIC_STANDARD"

pattern Ac3DynamicRangeCompressionLine_NONE :: Ac3DynamicRangeCompressionLine
pattern $bAc3DynamicRangeCompressionLine_NONE :: Ac3DynamicRangeCompressionLine
$mAc3DynamicRangeCompressionLine_NONE :: forall r.
Ac3DynamicRangeCompressionLine -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionLine_NONE = Ac3DynamicRangeCompressionLine' "NONE"

pattern Ac3DynamicRangeCompressionLine_SPEECH :: Ac3DynamicRangeCompressionLine
pattern $bAc3DynamicRangeCompressionLine_SPEECH :: Ac3DynamicRangeCompressionLine
$mAc3DynamicRangeCompressionLine_SPEECH :: forall r.
Ac3DynamicRangeCompressionLine -> (Void# -> r) -> (Void# -> r) -> r
Ac3DynamicRangeCompressionLine_SPEECH = Ac3DynamicRangeCompressionLine' "SPEECH"

{-# COMPLETE
  Ac3DynamicRangeCompressionLine_FILM_LIGHT,
  Ac3DynamicRangeCompressionLine_FILM_STANDARD,
  Ac3DynamicRangeCompressionLine_MUSIC_LIGHT,
  Ac3DynamicRangeCompressionLine_MUSIC_STANDARD,
  Ac3DynamicRangeCompressionLine_NONE,
  Ac3DynamicRangeCompressionLine_SPEECH,
  Ac3DynamicRangeCompressionLine'
  #-}