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

pattern Vp8QualityTuningLevel_MULTI_PASS :: Vp8QualityTuningLevel
pattern $bVp8QualityTuningLevel_MULTI_PASS :: Vp8QualityTuningLevel
$mVp8QualityTuningLevel_MULTI_PASS :: forall r.
Vp8QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
Vp8QualityTuningLevel_MULTI_PASS = Vp8QualityTuningLevel' "MULTI_PASS"

pattern Vp8QualityTuningLevel_MULTI_PASS_HQ :: Vp8QualityTuningLevel
pattern $bVp8QualityTuningLevel_MULTI_PASS_HQ :: Vp8QualityTuningLevel
$mVp8QualityTuningLevel_MULTI_PASS_HQ :: forall r.
Vp8QualityTuningLevel -> (Void# -> r) -> (Void# -> r) -> r
Vp8QualityTuningLevel_MULTI_PASS_HQ = Vp8QualityTuningLevel' "MULTI_PASS_HQ"

{-# COMPLETE
  Vp8QualityTuningLevel_MULTI_PASS,
  Vp8QualityTuningLevel_MULTI_PASS_HQ,
  Vp8QualityTuningLevel'
  #-}