{-# 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.Av1AdaptiveQuantization
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.Av1AdaptiveQuantization
  ( Av1AdaptiveQuantization
      ( ..,
        Av1AdaptiveQuantization_HIGH,
        Av1AdaptiveQuantization_HIGHER,
        Av1AdaptiveQuantization_LOW,
        Av1AdaptiveQuantization_MAX,
        Av1AdaptiveQuantization_MEDIUM,
        Av1AdaptiveQuantization_OFF
      ),
  )
where

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

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

pattern Av1AdaptiveQuantization_HIGH :: Av1AdaptiveQuantization
pattern $bAv1AdaptiveQuantization_HIGH :: Av1AdaptiveQuantization
$mAv1AdaptiveQuantization_HIGH :: forall {r}.
Av1AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Av1AdaptiveQuantization_HIGH = Av1AdaptiveQuantization' "HIGH"

pattern Av1AdaptiveQuantization_HIGHER :: Av1AdaptiveQuantization
pattern $bAv1AdaptiveQuantization_HIGHER :: Av1AdaptiveQuantization
$mAv1AdaptiveQuantization_HIGHER :: forall {r}.
Av1AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Av1AdaptiveQuantization_HIGHER = Av1AdaptiveQuantization' "HIGHER"

pattern Av1AdaptiveQuantization_LOW :: Av1AdaptiveQuantization
pattern $bAv1AdaptiveQuantization_LOW :: Av1AdaptiveQuantization
$mAv1AdaptiveQuantization_LOW :: forall {r}.
Av1AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Av1AdaptiveQuantization_LOW = Av1AdaptiveQuantization' "LOW"

pattern Av1AdaptiveQuantization_MAX :: Av1AdaptiveQuantization
pattern $bAv1AdaptiveQuantization_MAX :: Av1AdaptiveQuantization
$mAv1AdaptiveQuantization_MAX :: forall {r}.
Av1AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Av1AdaptiveQuantization_MAX = Av1AdaptiveQuantization' "MAX"

pattern Av1AdaptiveQuantization_MEDIUM :: Av1AdaptiveQuantization
pattern $bAv1AdaptiveQuantization_MEDIUM :: Av1AdaptiveQuantization
$mAv1AdaptiveQuantization_MEDIUM :: forall {r}.
Av1AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Av1AdaptiveQuantization_MEDIUM = Av1AdaptiveQuantization' "MEDIUM"

pattern Av1AdaptiveQuantization_OFF :: Av1AdaptiveQuantization
pattern $bAv1AdaptiveQuantization_OFF :: Av1AdaptiveQuantization
$mAv1AdaptiveQuantization_OFF :: forall {r}.
Av1AdaptiveQuantization -> ((# #) -> r) -> ((# #) -> r) -> r
Av1AdaptiveQuantization_OFF = Av1AdaptiveQuantization' "OFF"

{-# COMPLETE
  Av1AdaptiveQuantization_HIGH,
  Av1AdaptiveQuantization_HIGHER,
  Av1AdaptiveQuantization_LOW,
  Av1AdaptiveQuantization_MAX,
  Av1AdaptiveQuantization_MEDIUM,
  Av1AdaptiveQuantization_OFF,
  Av1AdaptiveQuantization'
  #-}