{-# 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.H264QualityTuningLevel
-- 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.H264QualityTuningLevel
  ( H264QualityTuningLevel
      ( ..,
        H264QualityTuningLevel_MULTI_PASS_HQ,
        H264QualityTuningLevel_SINGLE_PASS,
        H264QualityTuningLevel_SINGLE_PASS_HQ
      ),
  )
where

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

-- | Optional. Use Quality tuning level (qualityTuningLevel) to choose how
-- you want to trade off encoding speed for output video quality. The
-- default behavior is faster, lower quality, single-pass encoding.
newtype H264QualityTuningLevel = H264QualityTuningLevel'
  { H264QualityTuningLevel -> Text
fromH264QualityTuningLevel ::
      Core.Text
  }
  deriving stock
    ( Int -> H264QualityTuningLevel -> ShowS
[H264QualityTuningLevel] -> ShowS
H264QualityTuningLevel -> String
(Int -> H264QualityTuningLevel -> ShowS)
-> (H264QualityTuningLevel -> String)
-> ([H264QualityTuningLevel] -> ShowS)
-> Show H264QualityTuningLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H264QualityTuningLevel] -> ShowS
$cshowList :: [H264QualityTuningLevel] -> ShowS
show :: H264QualityTuningLevel -> String
$cshow :: H264QualityTuningLevel -> String
showsPrec :: Int -> H264QualityTuningLevel -> ShowS
$cshowsPrec :: Int -> H264QualityTuningLevel -> ShowS
Prelude.Show,
      ReadPrec [H264QualityTuningLevel]
ReadPrec H264QualityTuningLevel
Int -> ReadS H264QualityTuningLevel
ReadS [H264QualityTuningLevel]
(Int -> ReadS H264QualityTuningLevel)
-> ReadS [H264QualityTuningLevel]
-> ReadPrec H264QualityTuningLevel
-> ReadPrec [H264QualityTuningLevel]
-> Read H264QualityTuningLevel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H264QualityTuningLevel]
$creadListPrec :: ReadPrec [H264QualityTuningLevel]
readPrec :: ReadPrec H264QualityTuningLevel
$creadPrec :: ReadPrec H264QualityTuningLevel
readList :: ReadS [H264QualityTuningLevel]
$creadList :: ReadS [H264QualityTuningLevel]
readsPrec :: Int -> ReadS H264QualityTuningLevel
$creadsPrec :: Int -> ReadS H264QualityTuningLevel
Prelude.Read,
      H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
(H264QualityTuningLevel -> H264QualityTuningLevel -> Bool)
-> (H264QualityTuningLevel -> H264QualityTuningLevel -> Bool)
-> Eq H264QualityTuningLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
$c/= :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
== :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
$c== :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
Prelude.Eq,
      Eq H264QualityTuningLevel
Eq H264QualityTuningLevel
-> (H264QualityTuningLevel -> H264QualityTuningLevel -> Ordering)
-> (H264QualityTuningLevel -> H264QualityTuningLevel -> Bool)
-> (H264QualityTuningLevel -> H264QualityTuningLevel -> Bool)
-> (H264QualityTuningLevel -> H264QualityTuningLevel -> Bool)
-> (H264QualityTuningLevel -> H264QualityTuningLevel -> Bool)
-> (H264QualityTuningLevel
    -> H264QualityTuningLevel -> H264QualityTuningLevel)
-> (H264QualityTuningLevel
    -> H264QualityTuningLevel -> H264QualityTuningLevel)
-> Ord H264QualityTuningLevel
H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
H264QualityTuningLevel -> H264QualityTuningLevel -> Ordering
H264QualityTuningLevel
-> H264QualityTuningLevel -> H264QualityTuningLevel
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 :: H264QualityTuningLevel
-> H264QualityTuningLevel -> H264QualityTuningLevel
$cmin :: H264QualityTuningLevel
-> H264QualityTuningLevel -> H264QualityTuningLevel
max :: H264QualityTuningLevel
-> H264QualityTuningLevel -> H264QualityTuningLevel
$cmax :: H264QualityTuningLevel
-> H264QualityTuningLevel -> H264QualityTuningLevel
>= :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
$c>= :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
> :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
$c> :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
<= :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
$c<= :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
< :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
$c< :: H264QualityTuningLevel -> H264QualityTuningLevel -> Bool
compare :: H264QualityTuningLevel -> H264QualityTuningLevel -> Ordering
$ccompare :: H264QualityTuningLevel -> H264QualityTuningLevel -> Ordering
$cp1Ord :: Eq H264QualityTuningLevel
Prelude.Ord,
      (forall x. H264QualityTuningLevel -> Rep H264QualityTuningLevel x)
-> (forall x.
    Rep H264QualityTuningLevel x -> H264QualityTuningLevel)
-> Generic H264QualityTuningLevel
forall x. Rep H264QualityTuningLevel x -> H264QualityTuningLevel
forall x. H264QualityTuningLevel -> Rep H264QualityTuningLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H264QualityTuningLevel x -> H264QualityTuningLevel
$cfrom :: forall x. H264QualityTuningLevel -> Rep H264QualityTuningLevel x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H264QualityTuningLevel -> Int
H264QualityTuningLevel -> Int
(Int -> H264QualityTuningLevel -> Int)
-> (H264QualityTuningLevel -> Int)
-> Hashable H264QualityTuningLevel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H264QualityTuningLevel -> Int
$chash :: H264QualityTuningLevel -> Int
hashWithSalt :: Int -> H264QualityTuningLevel -> Int
$chashWithSalt :: Int -> H264QualityTuningLevel -> Int
Prelude.Hashable,
      H264QualityTuningLevel -> ()
(H264QualityTuningLevel -> ()) -> NFData H264QualityTuningLevel
forall a. (a -> ()) -> NFData a
rnf :: H264QualityTuningLevel -> ()
$crnf :: H264QualityTuningLevel -> ()
Prelude.NFData,
      Text -> Either String H264QualityTuningLevel
(Text -> Either String H264QualityTuningLevel)
-> FromText H264QualityTuningLevel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264QualityTuningLevel
$cfromText :: Text -> Either String H264QualityTuningLevel
Core.FromText,
      H264QualityTuningLevel -> Text
(H264QualityTuningLevel -> Text) -> ToText H264QualityTuningLevel
forall a. (a -> Text) -> ToText a
toText :: H264QualityTuningLevel -> Text
$ctoText :: H264QualityTuningLevel -> Text
Core.ToText,
      H264QualityTuningLevel -> ByteString
(H264QualityTuningLevel -> ByteString)
-> ToByteString H264QualityTuningLevel
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264QualityTuningLevel -> ByteString
$ctoBS :: H264QualityTuningLevel -> ByteString
Core.ToByteString,
      H264QualityTuningLevel -> ByteStringBuilder
(H264QualityTuningLevel -> ByteStringBuilder)
-> ToLog H264QualityTuningLevel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264QualityTuningLevel -> ByteStringBuilder
$cbuild :: H264QualityTuningLevel -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H264QualityTuningLevel -> [Header]
(HeaderName -> H264QualityTuningLevel -> [Header])
-> ToHeader H264QualityTuningLevel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264QualityTuningLevel -> [Header]
$ctoHeader :: HeaderName -> H264QualityTuningLevel -> [Header]
Core.ToHeader,
      H264QualityTuningLevel -> QueryString
(H264QualityTuningLevel -> QueryString)
-> ToQuery H264QualityTuningLevel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264QualityTuningLevel -> QueryString
$ctoQuery :: H264QualityTuningLevel -> QueryString
Core.ToQuery,
      Value -> Parser [H264QualityTuningLevel]
Value -> Parser H264QualityTuningLevel
(Value -> Parser H264QualityTuningLevel)
-> (Value -> Parser [H264QualityTuningLevel])
-> FromJSON H264QualityTuningLevel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H264QualityTuningLevel]
$cparseJSONList :: Value -> Parser [H264QualityTuningLevel]
parseJSON :: Value -> Parser H264QualityTuningLevel
$cparseJSON :: Value -> Parser H264QualityTuningLevel
Core.FromJSON,
      FromJSONKeyFunction [H264QualityTuningLevel]
FromJSONKeyFunction H264QualityTuningLevel
FromJSONKeyFunction H264QualityTuningLevel
-> FromJSONKeyFunction [H264QualityTuningLevel]
-> FromJSONKey H264QualityTuningLevel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264QualityTuningLevel]
$cfromJSONKeyList :: FromJSONKeyFunction [H264QualityTuningLevel]
fromJSONKey :: FromJSONKeyFunction H264QualityTuningLevel
$cfromJSONKey :: FromJSONKeyFunction H264QualityTuningLevel
Core.FromJSONKey,
      [H264QualityTuningLevel] -> Encoding
[H264QualityTuningLevel] -> Value
H264QualityTuningLevel -> Encoding
H264QualityTuningLevel -> Value
(H264QualityTuningLevel -> Value)
-> (H264QualityTuningLevel -> Encoding)
-> ([H264QualityTuningLevel] -> Value)
-> ([H264QualityTuningLevel] -> Encoding)
-> ToJSON H264QualityTuningLevel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H264QualityTuningLevel] -> Encoding
$ctoEncodingList :: [H264QualityTuningLevel] -> Encoding
toJSONList :: [H264QualityTuningLevel] -> Value
$ctoJSONList :: [H264QualityTuningLevel] -> Value
toEncoding :: H264QualityTuningLevel -> Encoding
$ctoEncoding :: H264QualityTuningLevel -> Encoding
toJSON :: H264QualityTuningLevel -> Value
$ctoJSON :: H264QualityTuningLevel -> Value
Core.ToJSON,
      ToJSONKeyFunction [H264QualityTuningLevel]
ToJSONKeyFunction H264QualityTuningLevel
ToJSONKeyFunction H264QualityTuningLevel
-> ToJSONKeyFunction [H264QualityTuningLevel]
-> ToJSONKey H264QualityTuningLevel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264QualityTuningLevel]
$ctoJSONKeyList :: ToJSONKeyFunction [H264QualityTuningLevel]
toJSONKey :: ToJSONKeyFunction H264QualityTuningLevel
$ctoJSONKey :: ToJSONKeyFunction H264QualityTuningLevel
Core.ToJSONKey,
      [Node] -> Either String H264QualityTuningLevel
([Node] -> Either String H264QualityTuningLevel)
-> FromXML H264QualityTuningLevel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264QualityTuningLevel
$cparseXML :: [Node] -> Either String H264QualityTuningLevel
Core.FromXML,
      H264QualityTuningLevel -> XML
(H264QualityTuningLevel -> XML) -> ToXML H264QualityTuningLevel
forall a. (a -> XML) -> ToXML a
toXML :: H264QualityTuningLevel -> XML
$ctoXML :: H264QualityTuningLevel -> XML
Core.ToXML
    )

pattern H264QualityTuningLevel_MULTI_PASS_HQ :: H264QualityTuningLevel
pattern $bH264QualityTuningLevel_MULTI_PASS_HQ :: H264QualityTuningLevel
$mH264QualityTuningLevel_MULTI_PASS_HQ :: forall r.
H264QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
H264QualityTuningLevel_MULTI_PASS_HQ = H264QualityTuningLevel' "MULTI_PASS_HQ"

pattern H264QualityTuningLevel_SINGLE_PASS :: H264QualityTuningLevel
pattern $bH264QualityTuningLevel_SINGLE_PASS :: H264QualityTuningLevel
$mH264QualityTuningLevel_SINGLE_PASS :: forall r.
H264QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
H264QualityTuningLevel_SINGLE_PASS = H264QualityTuningLevel' "SINGLE_PASS"

pattern H264QualityTuningLevel_SINGLE_PASS_HQ :: H264QualityTuningLevel
pattern $bH264QualityTuningLevel_SINGLE_PASS_HQ :: H264QualityTuningLevel
$mH264QualityTuningLevel_SINGLE_PASS_HQ :: forall r.
H264QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
H264QualityTuningLevel_SINGLE_PASS_HQ = H264QualityTuningLevel' "SINGLE_PASS_HQ"

{-# COMPLETE
  H264QualityTuningLevel_MULTI_PASS_HQ,
  H264QualityTuningLevel_SINGLE_PASS,
  H264QualityTuningLevel_SINGLE_PASS_HQ,
  H264QualityTuningLevel'
  #-}