{-# 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.XavcAdaptiveQuantization
-- 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.XavcAdaptiveQuantization
  ( XavcAdaptiveQuantization
      ( ..,
        XavcAdaptiveQuantization_AUTO,
        XavcAdaptiveQuantization_HIGH,
        XavcAdaptiveQuantization_HIGHER,
        XavcAdaptiveQuantization_LOW,
        XavcAdaptiveQuantization_MAX,
        XavcAdaptiveQuantization_MEDIUM,
        XavcAdaptiveQuantization_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 Adaptive quantization (adaptiveQuantization) 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 to Off (OFF). Related settings: The value that you
-- choose here applies to the following settings: Flicker adaptive
-- quantization (flickerAdaptiveQuantization), Spatial adaptive
-- quantization (spatialAdaptiveQuantization), and Temporal adaptive
-- quantization (temporalAdaptiveQuantization).
newtype XavcAdaptiveQuantization = XavcAdaptiveQuantization'
  { XavcAdaptiveQuantization -> Text
fromXavcAdaptiveQuantization ::
      Core.Text
  }
  deriving stock
    ( Int -> XavcAdaptiveQuantization -> ShowS
[XavcAdaptiveQuantization] -> ShowS
XavcAdaptiveQuantization -> String
(Int -> XavcAdaptiveQuantization -> ShowS)
-> (XavcAdaptiveQuantization -> String)
-> ([XavcAdaptiveQuantization] -> ShowS)
-> Show XavcAdaptiveQuantization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [XavcAdaptiveQuantization] -> ShowS
$cshowList :: [XavcAdaptiveQuantization] -> ShowS
show :: XavcAdaptiveQuantization -> String
$cshow :: XavcAdaptiveQuantization -> String
showsPrec :: Int -> XavcAdaptiveQuantization -> ShowS
$cshowsPrec :: Int -> XavcAdaptiveQuantization -> ShowS
Prelude.Show,
      ReadPrec [XavcAdaptiveQuantization]
ReadPrec XavcAdaptiveQuantization
Int -> ReadS XavcAdaptiveQuantization
ReadS [XavcAdaptiveQuantization]
(Int -> ReadS XavcAdaptiveQuantization)
-> ReadS [XavcAdaptiveQuantization]
-> ReadPrec XavcAdaptiveQuantization
-> ReadPrec [XavcAdaptiveQuantization]
-> Read XavcAdaptiveQuantization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [XavcAdaptiveQuantization]
$creadListPrec :: ReadPrec [XavcAdaptiveQuantization]
readPrec :: ReadPrec XavcAdaptiveQuantization
$creadPrec :: ReadPrec XavcAdaptiveQuantization
readList :: ReadS [XavcAdaptiveQuantization]
$creadList :: ReadS [XavcAdaptiveQuantization]
readsPrec :: Int -> ReadS XavcAdaptiveQuantization
$creadsPrec :: Int -> ReadS XavcAdaptiveQuantization
Prelude.Read,
      XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
(XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool)
-> (XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool)
-> Eq XavcAdaptiveQuantization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
$c/= :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
== :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
$c== :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
Prelude.Eq,
      Eq XavcAdaptiveQuantization
Eq XavcAdaptiveQuantization
-> (XavcAdaptiveQuantization
    -> XavcAdaptiveQuantization -> Ordering)
-> (XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool)
-> (XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool)
-> (XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool)
-> (XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool)
-> (XavcAdaptiveQuantization
    -> XavcAdaptiveQuantization -> XavcAdaptiveQuantization)
-> (XavcAdaptiveQuantization
    -> XavcAdaptiveQuantization -> XavcAdaptiveQuantization)
-> Ord XavcAdaptiveQuantization
XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Ordering
XavcAdaptiveQuantization
-> XavcAdaptiveQuantization -> XavcAdaptiveQuantization
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 :: XavcAdaptiveQuantization
-> XavcAdaptiveQuantization -> XavcAdaptiveQuantization
$cmin :: XavcAdaptiveQuantization
-> XavcAdaptiveQuantization -> XavcAdaptiveQuantization
max :: XavcAdaptiveQuantization
-> XavcAdaptiveQuantization -> XavcAdaptiveQuantization
$cmax :: XavcAdaptiveQuantization
-> XavcAdaptiveQuantization -> XavcAdaptiveQuantization
>= :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
$c>= :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
> :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
$c> :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
<= :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
$c<= :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
< :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
$c< :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Bool
compare :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Ordering
$ccompare :: XavcAdaptiveQuantization -> XavcAdaptiveQuantization -> Ordering
$cp1Ord :: Eq XavcAdaptiveQuantization
Prelude.Ord,
      (forall x.
 XavcAdaptiveQuantization -> Rep XavcAdaptiveQuantization x)
-> (forall x.
    Rep XavcAdaptiveQuantization x -> XavcAdaptiveQuantization)
-> Generic XavcAdaptiveQuantization
forall x.
Rep XavcAdaptiveQuantization x -> XavcAdaptiveQuantization
forall x.
XavcAdaptiveQuantization -> Rep XavcAdaptiveQuantization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep XavcAdaptiveQuantization x -> XavcAdaptiveQuantization
$cfrom :: forall x.
XavcAdaptiveQuantization -> Rep XavcAdaptiveQuantization x
Prelude.Generic
    )
  deriving newtype
    ( Int -> XavcAdaptiveQuantization -> Int
XavcAdaptiveQuantization -> Int
(Int -> XavcAdaptiveQuantization -> Int)
-> (XavcAdaptiveQuantization -> Int)
-> Hashable XavcAdaptiveQuantization
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: XavcAdaptiveQuantization -> Int
$chash :: XavcAdaptiveQuantization -> Int
hashWithSalt :: Int -> XavcAdaptiveQuantization -> Int
$chashWithSalt :: Int -> XavcAdaptiveQuantization -> Int
Prelude.Hashable,
      XavcAdaptiveQuantization -> ()
(XavcAdaptiveQuantization -> ()) -> NFData XavcAdaptiveQuantization
forall a. (a -> ()) -> NFData a
rnf :: XavcAdaptiveQuantization -> ()
$crnf :: XavcAdaptiveQuantization -> ()
Prelude.NFData,
      Text -> Either String XavcAdaptiveQuantization
(Text -> Either String XavcAdaptiveQuantization)
-> FromText XavcAdaptiveQuantization
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String XavcAdaptiveQuantization
$cfromText :: Text -> Either String XavcAdaptiveQuantization
Core.FromText,
      XavcAdaptiveQuantization -> Text
(XavcAdaptiveQuantization -> Text)
-> ToText XavcAdaptiveQuantization
forall a. (a -> Text) -> ToText a
toText :: XavcAdaptiveQuantization -> Text
$ctoText :: XavcAdaptiveQuantization -> Text
Core.ToText,
      XavcAdaptiveQuantization -> ByteString
(XavcAdaptiveQuantization -> ByteString)
-> ToByteString XavcAdaptiveQuantization
forall a. (a -> ByteString) -> ToByteString a
toBS :: XavcAdaptiveQuantization -> ByteString
$ctoBS :: XavcAdaptiveQuantization -> ByteString
Core.ToByteString,
      XavcAdaptiveQuantization -> ByteStringBuilder
(XavcAdaptiveQuantization -> ByteStringBuilder)
-> ToLog XavcAdaptiveQuantization
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: XavcAdaptiveQuantization -> ByteStringBuilder
$cbuild :: XavcAdaptiveQuantization -> ByteStringBuilder
Core.ToLog,
      HeaderName -> XavcAdaptiveQuantization -> [Header]
(HeaderName -> XavcAdaptiveQuantization -> [Header])
-> ToHeader XavcAdaptiveQuantization
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> XavcAdaptiveQuantization -> [Header]
$ctoHeader :: HeaderName -> XavcAdaptiveQuantization -> [Header]
Core.ToHeader,
      XavcAdaptiveQuantization -> QueryString
(XavcAdaptiveQuantization -> QueryString)
-> ToQuery XavcAdaptiveQuantization
forall a. (a -> QueryString) -> ToQuery a
toQuery :: XavcAdaptiveQuantization -> QueryString
$ctoQuery :: XavcAdaptiveQuantization -> QueryString
Core.ToQuery,
      Value -> Parser [XavcAdaptiveQuantization]
Value -> Parser XavcAdaptiveQuantization
(Value -> Parser XavcAdaptiveQuantization)
-> (Value -> Parser [XavcAdaptiveQuantization])
-> FromJSON XavcAdaptiveQuantization
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [XavcAdaptiveQuantization]
$cparseJSONList :: Value -> Parser [XavcAdaptiveQuantization]
parseJSON :: Value -> Parser XavcAdaptiveQuantization
$cparseJSON :: Value -> Parser XavcAdaptiveQuantization
Core.FromJSON,
      FromJSONKeyFunction [XavcAdaptiveQuantization]
FromJSONKeyFunction XavcAdaptiveQuantization
FromJSONKeyFunction XavcAdaptiveQuantization
-> FromJSONKeyFunction [XavcAdaptiveQuantization]
-> FromJSONKey XavcAdaptiveQuantization
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [XavcAdaptiveQuantization]
$cfromJSONKeyList :: FromJSONKeyFunction [XavcAdaptiveQuantization]
fromJSONKey :: FromJSONKeyFunction XavcAdaptiveQuantization
$cfromJSONKey :: FromJSONKeyFunction XavcAdaptiveQuantization
Core.FromJSONKey,
      [XavcAdaptiveQuantization] -> Encoding
[XavcAdaptiveQuantization] -> Value
XavcAdaptiveQuantization -> Encoding
XavcAdaptiveQuantization -> Value
(XavcAdaptiveQuantization -> Value)
-> (XavcAdaptiveQuantization -> Encoding)
-> ([XavcAdaptiveQuantization] -> Value)
-> ([XavcAdaptiveQuantization] -> Encoding)
-> ToJSON XavcAdaptiveQuantization
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [XavcAdaptiveQuantization] -> Encoding
$ctoEncodingList :: [XavcAdaptiveQuantization] -> Encoding
toJSONList :: [XavcAdaptiveQuantization] -> Value
$ctoJSONList :: [XavcAdaptiveQuantization] -> Value
toEncoding :: XavcAdaptiveQuantization -> Encoding
$ctoEncoding :: XavcAdaptiveQuantization -> Encoding
toJSON :: XavcAdaptiveQuantization -> Value
$ctoJSON :: XavcAdaptiveQuantization -> Value
Core.ToJSON,
      ToJSONKeyFunction [XavcAdaptiveQuantization]
ToJSONKeyFunction XavcAdaptiveQuantization
ToJSONKeyFunction XavcAdaptiveQuantization
-> ToJSONKeyFunction [XavcAdaptiveQuantization]
-> ToJSONKey XavcAdaptiveQuantization
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [XavcAdaptiveQuantization]
$ctoJSONKeyList :: ToJSONKeyFunction [XavcAdaptiveQuantization]
toJSONKey :: ToJSONKeyFunction XavcAdaptiveQuantization
$ctoJSONKey :: ToJSONKeyFunction XavcAdaptiveQuantization
Core.ToJSONKey,
      [Node] -> Either String XavcAdaptiveQuantization
([Node] -> Either String XavcAdaptiveQuantization)
-> FromXML XavcAdaptiveQuantization
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String XavcAdaptiveQuantization
$cparseXML :: [Node] -> Either String XavcAdaptiveQuantization
Core.FromXML,
      XavcAdaptiveQuantization -> XML
(XavcAdaptiveQuantization -> XML) -> ToXML XavcAdaptiveQuantization
forall a. (a -> XML) -> ToXML a
toXML :: XavcAdaptiveQuantization -> XML
$ctoXML :: XavcAdaptiveQuantization -> XML
Core.ToXML
    )

pattern XavcAdaptiveQuantization_AUTO :: XavcAdaptiveQuantization
pattern $bXavcAdaptiveQuantization_AUTO :: XavcAdaptiveQuantization
$mXavcAdaptiveQuantization_AUTO :: forall r.
XavcAdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
XavcAdaptiveQuantization_AUTO = XavcAdaptiveQuantization' "AUTO"

pattern XavcAdaptiveQuantization_HIGH :: XavcAdaptiveQuantization
pattern $bXavcAdaptiveQuantization_HIGH :: XavcAdaptiveQuantization
$mXavcAdaptiveQuantization_HIGH :: forall r.
XavcAdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
XavcAdaptiveQuantization_HIGH = XavcAdaptiveQuantization' "HIGH"

pattern XavcAdaptiveQuantization_HIGHER :: XavcAdaptiveQuantization
pattern $bXavcAdaptiveQuantization_HIGHER :: XavcAdaptiveQuantization
$mXavcAdaptiveQuantization_HIGHER :: forall r.
XavcAdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
XavcAdaptiveQuantization_HIGHER = XavcAdaptiveQuantization' "HIGHER"

pattern XavcAdaptiveQuantization_LOW :: XavcAdaptiveQuantization
pattern $bXavcAdaptiveQuantization_LOW :: XavcAdaptiveQuantization
$mXavcAdaptiveQuantization_LOW :: forall r.
XavcAdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
XavcAdaptiveQuantization_LOW = XavcAdaptiveQuantization' "LOW"

pattern XavcAdaptiveQuantization_MAX :: XavcAdaptiveQuantization
pattern $bXavcAdaptiveQuantization_MAX :: XavcAdaptiveQuantization
$mXavcAdaptiveQuantization_MAX :: forall r.
XavcAdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
XavcAdaptiveQuantization_MAX = XavcAdaptiveQuantization' "MAX"

pattern XavcAdaptiveQuantization_MEDIUM :: XavcAdaptiveQuantization
pattern $bXavcAdaptiveQuantization_MEDIUM :: XavcAdaptiveQuantization
$mXavcAdaptiveQuantization_MEDIUM :: forall r.
XavcAdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
XavcAdaptiveQuantization_MEDIUM = XavcAdaptiveQuantization' "MEDIUM"

pattern XavcAdaptiveQuantization_OFF :: XavcAdaptiveQuantization
pattern $bXavcAdaptiveQuantization_OFF :: XavcAdaptiveQuantization
$mXavcAdaptiveQuantization_OFF :: forall r.
XavcAdaptiveQuantization -> (Void# -> r) -> (Void# -> r) -> r
XavcAdaptiveQuantization_OFF = XavcAdaptiveQuantization' "OFF"

{-# COMPLETE
  XavcAdaptiveQuantization_AUTO,
  XavcAdaptiveQuantization_HIGH,
  XavcAdaptiveQuantization_HIGHER,
  XavcAdaptiveQuantization_LOW,
  XavcAdaptiveQuantization_MAX,
  XavcAdaptiveQuantization_MEDIUM,
  XavcAdaptiveQuantization_OFF,
  XavcAdaptiveQuantization'
  #-}