{-# 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.H264AdaptiveQuantization
-- 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.H264AdaptiveQuantization
  ( H264AdaptiveQuantization
      ( ..,
        H264AdaptiveQuantization_AUTO,
        H264AdaptiveQuantization_HIGH,
        H264AdaptiveQuantization_HIGHER,
        H264AdaptiveQuantization_LOW,
        H264AdaptiveQuantization_MAX,
        H264AdaptiveQuantization_MEDIUM,
        H264AdaptiveQuantization_OFF
      ),
  )
where

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

-- | Keep the default value, Auto (AUTO), for this setting to have
-- MediaConvert automatically apply the best types of quantization for your
-- video content. When you want to apply your quantization settings
-- manually, you must set H264AdaptiveQuantization to a value other than
-- Auto (AUTO). Use this setting to specify the strength of any adaptive
-- quantization filters that you enable. If you don\'t want MediaConvert to
-- do any adaptive quantization in this transcode, set Adaptive
-- quantization (H264AdaptiveQuantization) to Off (OFF). Related settings:
-- The value that you choose here applies to the following settings:
-- H264FlickerAdaptiveQuantization, H264SpatialAdaptiveQuantization, and
-- H264TemporalAdaptiveQuantization.
newtype H264AdaptiveQuantization = H264AdaptiveQuantization'
  { H264AdaptiveQuantization -> Text
fromH264AdaptiveQuantization ::
      Core.Text
  }
  deriving stock
    ( Int -> H264AdaptiveQuantization -> ShowS
[H264AdaptiveQuantization] -> ShowS
H264AdaptiveQuantization -> String
(Int -> H264AdaptiveQuantization -> ShowS)
-> (H264AdaptiveQuantization -> String)
-> ([H264AdaptiveQuantization] -> ShowS)
-> Show H264AdaptiveQuantization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H264AdaptiveQuantization] -> ShowS
$cshowList :: [H264AdaptiveQuantization] -> ShowS
show :: H264AdaptiveQuantization -> String
$cshow :: H264AdaptiveQuantization -> String
showsPrec :: Int -> H264AdaptiveQuantization -> ShowS
$cshowsPrec :: Int -> H264AdaptiveQuantization -> ShowS
Prelude.Show,
      ReadPrec [H264AdaptiveQuantization]
ReadPrec H264AdaptiveQuantization
Int -> ReadS H264AdaptiveQuantization
ReadS [H264AdaptiveQuantization]
(Int -> ReadS H264AdaptiveQuantization)
-> ReadS [H264AdaptiveQuantization]
-> ReadPrec H264AdaptiveQuantization
-> ReadPrec [H264AdaptiveQuantization]
-> Read H264AdaptiveQuantization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H264AdaptiveQuantization]
$creadListPrec :: ReadPrec [H264AdaptiveQuantization]
readPrec :: ReadPrec H264AdaptiveQuantization
$creadPrec :: ReadPrec H264AdaptiveQuantization
readList :: ReadS [H264AdaptiveQuantization]
$creadList :: ReadS [H264AdaptiveQuantization]
readsPrec :: Int -> ReadS H264AdaptiveQuantization
$creadsPrec :: Int -> ReadS H264AdaptiveQuantization
Prelude.Read,
      H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
(H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool)
-> (H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool)
-> Eq H264AdaptiveQuantization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
$c/= :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
== :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
$c== :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
Prelude.Eq,
      Eq H264AdaptiveQuantization
Eq H264AdaptiveQuantization
-> (H264AdaptiveQuantization
    -> H264AdaptiveQuantization -> Ordering)
-> (H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool)
-> (H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool)
-> (H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool)
-> (H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool)
-> (H264AdaptiveQuantization
    -> H264AdaptiveQuantization -> H264AdaptiveQuantization)
-> (H264AdaptiveQuantization
    -> H264AdaptiveQuantization -> H264AdaptiveQuantization)
-> Ord H264AdaptiveQuantization
H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
H264AdaptiveQuantization -> H264AdaptiveQuantization -> Ordering
H264AdaptiveQuantization
-> H264AdaptiveQuantization -> H264AdaptiveQuantization
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 :: H264AdaptiveQuantization
-> H264AdaptiveQuantization -> H264AdaptiveQuantization
$cmin :: H264AdaptiveQuantization
-> H264AdaptiveQuantization -> H264AdaptiveQuantization
max :: H264AdaptiveQuantization
-> H264AdaptiveQuantization -> H264AdaptiveQuantization
$cmax :: H264AdaptiveQuantization
-> H264AdaptiveQuantization -> H264AdaptiveQuantization
>= :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
$c>= :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
> :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
$c> :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
<= :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
$c<= :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
< :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
$c< :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Bool
compare :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Ordering
$ccompare :: H264AdaptiveQuantization -> H264AdaptiveQuantization -> Ordering
$cp1Ord :: Eq H264AdaptiveQuantization
Prelude.Ord,
      (forall x.
 H264AdaptiveQuantization -> Rep H264AdaptiveQuantization x)
-> (forall x.
    Rep H264AdaptiveQuantization x -> H264AdaptiveQuantization)
-> Generic H264AdaptiveQuantization
forall x.
Rep H264AdaptiveQuantization x -> H264AdaptiveQuantization
forall x.
H264AdaptiveQuantization -> Rep H264AdaptiveQuantization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep H264AdaptiveQuantization x -> H264AdaptiveQuantization
$cfrom :: forall x.
H264AdaptiveQuantization -> Rep H264AdaptiveQuantization x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H264AdaptiveQuantization -> Int
H264AdaptiveQuantization -> Int
(Int -> H264AdaptiveQuantization -> Int)
-> (H264AdaptiveQuantization -> Int)
-> Hashable H264AdaptiveQuantization
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H264AdaptiveQuantization -> Int
$chash :: H264AdaptiveQuantization -> Int
hashWithSalt :: Int -> H264AdaptiveQuantization -> Int
$chashWithSalt :: Int -> H264AdaptiveQuantization -> Int
Prelude.Hashable,
      H264AdaptiveQuantization -> ()
(H264AdaptiveQuantization -> ()) -> NFData H264AdaptiveQuantization
forall a. (a -> ()) -> NFData a
rnf :: H264AdaptiveQuantization -> ()
$crnf :: H264AdaptiveQuantization -> ()
Prelude.NFData,
      Text -> Either String H264AdaptiveQuantization
(Text -> Either String H264AdaptiveQuantization)
-> FromText H264AdaptiveQuantization
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264AdaptiveQuantization
$cfromText :: Text -> Either String H264AdaptiveQuantization
Core.FromText,
      H264AdaptiveQuantization -> Text
(H264AdaptiveQuantization -> Text)
-> ToText H264AdaptiveQuantization
forall a. (a -> Text) -> ToText a
toText :: H264AdaptiveQuantization -> Text
$ctoText :: H264AdaptiveQuantization -> Text
Core.ToText,
      H264AdaptiveQuantization -> ByteString
(H264AdaptiveQuantization -> ByteString)
-> ToByteString H264AdaptiveQuantization
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264AdaptiveQuantization -> ByteString
$ctoBS :: H264AdaptiveQuantization -> ByteString
Core.ToByteString,
      H264AdaptiveQuantization -> ByteStringBuilder
(H264AdaptiveQuantization -> ByteStringBuilder)
-> ToLog H264AdaptiveQuantization
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264AdaptiveQuantization -> ByteStringBuilder
$cbuild :: H264AdaptiveQuantization -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H264AdaptiveQuantization -> [Header]
(HeaderName -> H264AdaptiveQuantization -> [Header])
-> ToHeader H264AdaptiveQuantization
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264AdaptiveQuantization -> [Header]
$ctoHeader :: HeaderName -> H264AdaptiveQuantization -> [Header]
Core.ToHeader,
      H264AdaptiveQuantization -> QueryString
(H264AdaptiveQuantization -> QueryString)
-> ToQuery H264AdaptiveQuantization
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264AdaptiveQuantization -> QueryString
$ctoQuery :: H264AdaptiveQuantization -> QueryString
Core.ToQuery,
      Value -> Parser [H264AdaptiveQuantization]
Value -> Parser H264AdaptiveQuantization
(Value -> Parser H264AdaptiveQuantization)
-> (Value -> Parser [H264AdaptiveQuantization])
-> FromJSON H264AdaptiveQuantization
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H264AdaptiveQuantization]
$cparseJSONList :: Value -> Parser [H264AdaptiveQuantization]
parseJSON :: Value -> Parser H264AdaptiveQuantization
$cparseJSON :: Value -> Parser H264AdaptiveQuantization
Core.FromJSON,
      FromJSONKeyFunction [H264AdaptiveQuantization]
FromJSONKeyFunction H264AdaptiveQuantization
FromJSONKeyFunction H264AdaptiveQuantization
-> FromJSONKeyFunction [H264AdaptiveQuantization]
-> FromJSONKey H264AdaptiveQuantization
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264AdaptiveQuantization]
$cfromJSONKeyList :: FromJSONKeyFunction [H264AdaptiveQuantization]
fromJSONKey :: FromJSONKeyFunction H264AdaptiveQuantization
$cfromJSONKey :: FromJSONKeyFunction H264AdaptiveQuantization
Core.FromJSONKey,
      [H264AdaptiveQuantization] -> Encoding
[H264AdaptiveQuantization] -> Value
H264AdaptiveQuantization -> Encoding
H264AdaptiveQuantization -> Value
(H264AdaptiveQuantization -> Value)
-> (H264AdaptiveQuantization -> Encoding)
-> ([H264AdaptiveQuantization] -> Value)
-> ([H264AdaptiveQuantization] -> Encoding)
-> ToJSON H264AdaptiveQuantization
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H264AdaptiveQuantization] -> Encoding
$ctoEncodingList :: [H264AdaptiveQuantization] -> Encoding
toJSONList :: [H264AdaptiveQuantization] -> Value
$ctoJSONList :: [H264AdaptiveQuantization] -> Value
toEncoding :: H264AdaptiveQuantization -> Encoding
$ctoEncoding :: H264AdaptiveQuantization -> Encoding
toJSON :: H264AdaptiveQuantization -> Value
$ctoJSON :: H264AdaptiveQuantization -> Value
Core.ToJSON,
      ToJSONKeyFunction [H264AdaptiveQuantization]
ToJSONKeyFunction H264AdaptiveQuantization
ToJSONKeyFunction H264AdaptiveQuantization
-> ToJSONKeyFunction [H264AdaptiveQuantization]
-> ToJSONKey H264AdaptiveQuantization
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264AdaptiveQuantization]
$ctoJSONKeyList :: ToJSONKeyFunction [H264AdaptiveQuantization]
toJSONKey :: ToJSONKeyFunction H264AdaptiveQuantization
$ctoJSONKey :: ToJSONKeyFunction H264AdaptiveQuantization
Core.ToJSONKey,
      [Node] -> Either String H264AdaptiveQuantization
([Node] -> Either String H264AdaptiveQuantization)
-> FromXML H264AdaptiveQuantization
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264AdaptiveQuantization
$cparseXML :: [Node] -> Either String H264AdaptiveQuantization
Core.FromXML,
      H264AdaptiveQuantization -> XML
(H264AdaptiveQuantization -> XML) -> ToXML H264AdaptiveQuantization
forall a. (a -> XML) -> ToXML a
toXML :: H264AdaptiveQuantization -> XML
$ctoXML :: H264AdaptiveQuantization -> XML
Core.ToXML
    )

pattern H264AdaptiveQuantization_AUTO :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_AUTO :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_AUTO :: forall r.
H264AdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
H264AdaptiveQuantization_AUTO = H264AdaptiveQuantization' "AUTO"

pattern H264AdaptiveQuantization_HIGH :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_HIGH :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_HIGH :: forall r.
H264AdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
H264AdaptiveQuantization_HIGH = H264AdaptiveQuantization' "HIGH"

pattern H264AdaptiveQuantization_HIGHER :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_HIGHER :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_HIGHER :: forall r.
H264AdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
H264AdaptiveQuantization_HIGHER = H264AdaptiveQuantization' "HIGHER"

pattern H264AdaptiveQuantization_LOW :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_LOW :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_LOW :: forall r.
H264AdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
H264AdaptiveQuantization_LOW = H264AdaptiveQuantization' "LOW"

pattern H264AdaptiveQuantization_MAX :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_MAX :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_MAX :: forall r.
H264AdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
H264AdaptiveQuantization_MAX = H264AdaptiveQuantization' "MAX"

pattern H264AdaptiveQuantization_MEDIUM :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_MEDIUM :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_MEDIUM :: forall r.
H264AdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
H264AdaptiveQuantization_MEDIUM = H264AdaptiveQuantization' "MEDIUM"

pattern H264AdaptiveQuantization_OFF :: H264AdaptiveQuantization
pattern $bH264AdaptiveQuantization_OFF :: H264AdaptiveQuantization
$mH264AdaptiveQuantization_OFF :: forall r.
H264AdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
H264AdaptiveQuantization_OFF = H264AdaptiveQuantization' "OFF"

{-# COMPLETE
  H264AdaptiveQuantization_AUTO,
  H264AdaptiveQuantization_HIGH,
  H264AdaptiveQuantization_HIGHER,
  H264AdaptiveQuantization_LOW,
  H264AdaptiveQuantization_MAX,
  H264AdaptiveQuantization_MEDIUM,
  H264AdaptiveQuantization_OFF,
  H264AdaptiveQuantization'
  #-}