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

pattern Xavc4kProfileQualityTuningLevel_MULTI_PASS_HQ :: Xavc4kProfileQualityTuningLevel
pattern $bXavc4kProfileQualityTuningLevel_MULTI_PASS_HQ :: Xavc4kProfileQualityTuningLevel
$mXavc4kProfileQualityTuningLevel_MULTI_PASS_HQ :: forall r.
Xavc4kProfileQualityTuningLevel
-> (Void# -> r) -> (Void# -> r) -> r
Xavc4kProfileQualityTuningLevel_MULTI_PASS_HQ = Xavc4kProfileQualityTuningLevel' "MULTI_PASS_HQ"

pattern Xavc4kProfileQualityTuningLevel_SINGLE_PASS :: Xavc4kProfileQualityTuningLevel
pattern $bXavc4kProfileQualityTuningLevel_SINGLE_PASS :: Xavc4kProfileQualityTuningLevel
$mXavc4kProfileQualityTuningLevel_SINGLE_PASS :: forall r.
Xavc4kProfileQualityTuningLevel
-> (Void# -> r) -> (Void# -> r) -> r
Xavc4kProfileQualityTuningLevel_SINGLE_PASS = Xavc4kProfileQualityTuningLevel' "SINGLE_PASS"

pattern Xavc4kProfileQualityTuningLevel_SINGLE_PASS_HQ :: Xavc4kProfileQualityTuningLevel
pattern $bXavc4kProfileQualityTuningLevel_SINGLE_PASS_HQ :: Xavc4kProfileQualityTuningLevel
$mXavc4kProfileQualityTuningLevel_SINGLE_PASS_HQ :: forall r.
Xavc4kProfileQualityTuningLevel
-> (Void# -> r) -> (Void# -> r) -> r
Xavc4kProfileQualityTuningLevel_SINGLE_PASS_HQ = Xavc4kProfileQualityTuningLevel' "SINGLE_PASS_HQ"

{-# COMPLETE
  Xavc4kProfileQualityTuningLevel_MULTI_PASS_HQ,
  Xavc4kProfileQualityTuningLevel_SINGLE_PASS,
  Xavc4kProfileQualityTuningLevel_SINGLE_PASS_HQ,
  Xavc4kProfileQualityTuningLevel'
  #-}