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

pattern Vp9QualityTuningLevel_MULTI_PASS :: Vp9QualityTuningLevel
pattern $bVp9QualityTuningLevel_MULTI_PASS :: Vp9QualityTuningLevel
$mVp9QualityTuningLevel_MULTI_PASS :: forall r.
Vp9QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
Vp9QualityTuningLevel_MULTI_PASS = Vp9QualityTuningLevel' "MULTI_PASS"

pattern Vp9QualityTuningLevel_MULTI_PASS_HQ :: Vp9QualityTuningLevel
pattern $bVp9QualityTuningLevel_MULTI_PASS_HQ :: Vp9QualityTuningLevel
$mVp9QualityTuningLevel_MULTI_PASS_HQ :: forall r.
Vp9QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
Vp9QualityTuningLevel_MULTI_PASS_HQ = Vp9QualityTuningLevel' "MULTI_PASS_HQ"

{-# COMPLETE
  Vp9QualityTuningLevel_MULTI_PASS,
  Vp9QualityTuningLevel_MULTI_PASS_HQ,
  Vp9QualityTuningLevel'
  #-}