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

pattern Eac3DynamicRangeCompressionLine_FILM_LIGHT :: Eac3DynamicRangeCompressionLine
pattern $bEac3DynamicRangeCompressionLine_FILM_LIGHT :: Eac3DynamicRangeCompressionLine
$mEac3DynamicRangeCompressionLine_FILM_LIGHT :: forall r.
Eac3DynamicRangeCompressionLine
-> (Void# -> r) -> (Void# -> r) -> r
Eac3DynamicRangeCompressionLine_FILM_LIGHT = Eac3DynamicRangeCompressionLine' "FILM_LIGHT"

pattern Eac3DynamicRangeCompressionLine_FILM_STANDARD :: Eac3DynamicRangeCompressionLine
pattern $bEac3DynamicRangeCompressionLine_FILM_STANDARD :: Eac3DynamicRangeCompressionLine
$mEac3DynamicRangeCompressionLine_FILM_STANDARD :: forall r.
Eac3DynamicRangeCompressionLine
-> (Void# -> r) -> (Void# -> r) -> r
Eac3DynamicRangeCompressionLine_FILM_STANDARD = Eac3DynamicRangeCompressionLine' "FILM_STANDARD"

pattern Eac3DynamicRangeCompressionLine_MUSIC_LIGHT :: Eac3DynamicRangeCompressionLine
pattern $bEac3DynamicRangeCompressionLine_MUSIC_LIGHT :: Eac3DynamicRangeCompressionLine
$mEac3DynamicRangeCompressionLine_MUSIC_LIGHT :: forall r.
Eac3DynamicRangeCompressionLine
-> (Void# -> r) -> (Void# -> r) -> r
Eac3DynamicRangeCompressionLine_MUSIC_LIGHT = Eac3DynamicRangeCompressionLine' "MUSIC_LIGHT"

pattern Eac3DynamicRangeCompressionLine_MUSIC_STANDARD :: Eac3DynamicRangeCompressionLine
pattern $bEac3DynamicRangeCompressionLine_MUSIC_STANDARD :: Eac3DynamicRangeCompressionLine
$mEac3DynamicRangeCompressionLine_MUSIC_STANDARD :: forall r.
Eac3DynamicRangeCompressionLine
-> (Void# -> r) -> (Void# -> r) -> r
Eac3DynamicRangeCompressionLine_MUSIC_STANDARD = Eac3DynamicRangeCompressionLine' "MUSIC_STANDARD"

pattern Eac3DynamicRangeCompressionLine_NONE :: Eac3DynamicRangeCompressionLine
pattern $bEac3DynamicRangeCompressionLine_NONE :: Eac3DynamicRangeCompressionLine
$mEac3DynamicRangeCompressionLine_NONE :: forall r.
Eac3DynamicRangeCompressionLine
-> (Void# -> r) -> (Void# -> r) -> r
Eac3DynamicRangeCompressionLine_NONE = Eac3DynamicRangeCompressionLine' "NONE"

pattern Eac3DynamicRangeCompressionLine_SPEECH :: Eac3DynamicRangeCompressionLine
pattern $bEac3DynamicRangeCompressionLine_SPEECH :: Eac3DynamicRangeCompressionLine
$mEac3DynamicRangeCompressionLine_SPEECH :: forall r.
Eac3DynamicRangeCompressionLine
-> (Void# -> r) -> (Void# -> r) -> r
Eac3DynamicRangeCompressionLine_SPEECH = Eac3DynamicRangeCompressionLine' "SPEECH"

{-# COMPLETE
  Eac3DynamicRangeCompressionLine_FILM_LIGHT,
  Eac3DynamicRangeCompressionLine_FILM_STANDARD,
  Eac3DynamicRangeCompressionLine_MUSIC_LIGHT,
  Eac3DynamicRangeCompressionLine_MUSIC_STANDARD,
  Eac3DynamicRangeCompressionLine_NONE,
  Eac3DynamicRangeCompressionLine_SPEECH,
  Eac3DynamicRangeCompressionLine'
  #-}