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

pattern XavcHdProfileQualityTuningLevel_MULTI_PASS_HQ :: XavcHdProfileQualityTuningLevel
pattern $bXavcHdProfileQualityTuningLevel_MULTI_PASS_HQ :: XavcHdProfileQualityTuningLevel
$mXavcHdProfileQualityTuningLevel_MULTI_PASS_HQ :: forall r.
XavcHdProfileQualityTuningLevel
-> (Void# -> r) -> (Void# -> r) -> r
XavcHdProfileQualityTuningLevel_MULTI_PASS_HQ = XavcHdProfileQualityTuningLevel' "MULTI_PASS_HQ"

pattern XavcHdProfileQualityTuningLevel_SINGLE_PASS :: XavcHdProfileQualityTuningLevel
pattern $bXavcHdProfileQualityTuningLevel_SINGLE_PASS :: XavcHdProfileQualityTuningLevel
$mXavcHdProfileQualityTuningLevel_SINGLE_PASS :: forall r.
XavcHdProfileQualityTuningLevel
-> (Void# -> r) -> (Void# -> r) -> r
XavcHdProfileQualityTuningLevel_SINGLE_PASS = XavcHdProfileQualityTuningLevel' "SINGLE_PASS"

pattern XavcHdProfileQualityTuningLevel_SINGLE_PASS_HQ :: XavcHdProfileQualityTuningLevel
pattern $bXavcHdProfileQualityTuningLevel_SINGLE_PASS_HQ :: XavcHdProfileQualityTuningLevel
$mXavcHdProfileQualityTuningLevel_SINGLE_PASS_HQ :: forall r.
XavcHdProfileQualityTuningLevel
-> (Void# -> r) -> (Void# -> r) -> r
XavcHdProfileQualityTuningLevel_SINGLE_PASS_HQ = XavcHdProfileQualityTuningLevel' "SINGLE_PASS_HQ"

{-# COMPLETE
  XavcHdProfileQualityTuningLevel_MULTI_PASS_HQ,
  XavcHdProfileQualityTuningLevel_SINGLE_PASS,
  XavcHdProfileQualityTuningLevel_SINGLE_PASS_HQ,
  XavcHdProfileQualityTuningLevel'
  #-}