{-# 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.Vc3Class
-- 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.Vc3Class
  ( Vc3Class
      ( ..,
        Vc3Class_CLASS_145_8BIT,
        Vc3Class_CLASS_220_10BIT,
        Vc3Class_CLASS_220_8BIT
      ),
  )
where

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

-- | Specify the VC3 class to choose the quality characteristics for this
-- output. VC3 class, together with the settings Framerate
-- (framerateNumerator and framerateDenominator) and Resolution (height and
-- width), determine your output bitrate. For example, say that your video
-- resolution is 1920x1080 and your framerate is 29.97. Then Class 145
-- (CLASS_145) gives you an output with a bitrate of approximately 145 Mbps
-- and Class 220 (CLASS_220) gives you and output with a bitrate of
-- approximately 220 Mbps. VC3 class also specifies the color bit depth of
-- your output.
newtype Vc3Class = Vc3Class'
  { Vc3Class -> Text
fromVc3Class ::
      Core.Text
  }
  deriving stock
    ( Int -> Vc3Class -> ShowS
[Vc3Class] -> ShowS
Vc3Class -> String
(Int -> Vc3Class -> ShowS)
-> (Vc3Class -> String) -> ([Vc3Class] -> ShowS) -> Show Vc3Class
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Vc3Class] -> ShowS
$cshowList :: [Vc3Class] -> ShowS
show :: Vc3Class -> String
$cshow :: Vc3Class -> String
showsPrec :: Int -> Vc3Class -> ShowS
$cshowsPrec :: Int -> Vc3Class -> ShowS
Prelude.Show,
      ReadPrec [Vc3Class]
ReadPrec Vc3Class
Int -> ReadS Vc3Class
ReadS [Vc3Class]
(Int -> ReadS Vc3Class)
-> ReadS [Vc3Class]
-> ReadPrec Vc3Class
-> ReadPrec [Vc3Class]
-> Read Vc3Class
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Vc3Class]
$creadListPrec :: ReadPrec [Vc3Class]
readPrec :: ReadPrec Vc3Class
$creadPrec :: ReadPrec Vc3Class
readList :: ReadS [Vc3Class]
$creadList :: ReadS [Vc3Class]
readsPrec :: Int -> ReadS Vc3Class
$creadsPrec :: Int -> ReadS Vc3Class
Prelude.Read,
      Vc3Class -> Vc3Class -> Bool
(Vc3Class -> Vc3Class -> Bool)
-> (Vc3Class -> Vc3Class -> Bool) -> Eq Vc3Class
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Vc3Class -> Vc3Class -> Bool
$c/= :: Vc3Class -> Vc3Class -> Bool
== :: Vc3Class -> Vc3Class -> Bool
$c== :: Vc3Class -> Vc3Class -> Bool
Prelude.Eq,
      Eq Vc3Class
Eq Vc3Class
-> (Vc3Class -> Vc3Class -> Ordering)
-> (Vc3Class -> Vc3Class -> Bool)
-> (Vc3Class -> Vc3Class -> Bool)
-> (Vc3Class -> Vc3Class -> Bool)
-> (Vc3Class -> Vc3Class -> Bool)
-> (Vc3Class -> Vc3Class -> Vc3Class)
-> (Vc3Class -> Vc3Class -> Vc3Class)
-> Ord Vc3Class
Vc3Class -> Vc3Class -> Bool
Vc3Class -> Vc3Class -> Ordering
Vc3Class -> Vc3Class -> Vc3Class
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 :: Vc3Class -> Vc3Class -> Vc3Class
$cmin :: Vc3Class -> Vc3Class -> Vc3Class
max :: Vc3Class -> Vc3Class -> Vc3Class
$cmax :: Vc3Class -> Vc3Class -> Vc3Class
>= :: Vc3Class -> Vc3Class -> Bool
$c>= :: Vc3Class -> Vc3Class -> Bool
> :: Vc3Class -> Vc3Class -> Bool
$c> :: Vc3Class -> Vc3Class -> Bool
<= :: Vc3Class -> Vc3Class -> Bool
$c<= :: Vc3Class -> Vc3Class -> Bool
< :: Vc3Class -> Vc3Class -> Bool
$c< :: Vc3Class -> Vc3Class -> Bool
compare :: Vc3Class -> Vc3Class -> Ordering
$ccompare :: Vc3Class -> Vc3Class -> Ordering
$cp1Ord :: Eq Vc3Class
Prelude.Ord,
      (forall x. Vc3Class -> Rep Vc3Class x)
-> (forall x. Rep Vc3Class x -> Vc3Class) -> Generic Vc3Class
forall x. Rep Vc3Class x -> Vc3Class
forall x. Vc3Class -> Rep Vc3Class x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Vc3Class x -> Vc3Class
$cfrom :: forall x. Vc3Class -> Rep Vc3Class x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Vc3Class -> Int
Vc3Class -> Int
(Int -> Vc3Class -> Int) -> (Vc3Class -> Int) -> Hashable Vc3Class
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Vc3Class -> Int
$chash :: Vc3Class -> Int
hashWithSalt :: Int -> Vc3Class -> Int
$chashWithSalt :: Int -> Vc3Class -> Int
Prelude.Hashable,
      Vc3Class -> ()
(Vc3Class -> ()) -> NFData Vc3Class
forall a. (a -> ()) -> NFData a
rnf :: Vc3Class -> ()
$crnf :: Vc3Class -> ()
Prelude.NFData,
      Text -> Either String Vc3Class
(Text -> Either String Vc3Class) -> FromText Vc3Class
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Vc3Class
$cfromText :: Text -> Either String Vc3Class
Core.FromText,
      Vc3Class -> Text
(Vc3Class -> Text) -> ToText Vc3Class
forall a. (a -> Text) -> ToText a
toText :: Vc3Class -> Text
$ctoText :: Vc3Class -> Text
Core.ToText,
      Vc3Class -> ByteString
(Vc3Class -> ByteString) -> ToByteString Vc3Class
forall a. (a -> ByteString) -> ToByteString a
toBS :: Vc3Class -> ByteString
$ctoBS :: Vc3Class -> ByteString
Core.ToByteString,
      Vc3Class -> ByteStringBuilder
(Vc3Class -> ByteStringBuilder) -> ToLog Vc3Class
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Vc3Class -> ByteStringBuilder
$cbuild :: Vc3Class -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Vc3Class -> [Header]
(HeaderName -> Vc3Class -> [Header]) -> ToHeader Vc3Class
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Vc3Class -> [Header]
$ctoHeader :: HeaderName -> Vc3Class -> [Header]
Core.ToHeader,
      Vc3Class -> QueryString
(Vc3Class -> QueryString) -> ToQuery Vc3Class
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Vc3Class -> QueryString
$ctoQuery :: Vc3Class -> QueryString
Core.ToQuery,
      Value -> Parser [Vc3Class]
Value -> Parser Vc3Class
(Value -> Parser Vc3Class)
-> (Value -> Parser [Vc3Class]) -> FromJSON Vc3Class
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Vc3Class]
$cparseJSONList :: Value -> Parser [Vc3Class]
parseJSON :: Value -> Parser Vc3Class
$cparseJSON :: Value -> Parser Vc3Class
Core.FromJSON,
      FromJSONKeyFunction [Vc3Class]
FromJSONKeyFunction Vc3Class
FromJSONKeyFunction Vc3Class
-> FromJSONKeyFunction [Vc3Class] -> FromJSONKey Vc3Class
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Vc3Class]
$cfromJSONKeyList :: FromJSONKeyFunction [Vc3Class]
fromJSONKey :: FromJSONKeyFunction Vc3Class
$cfromJSONKey :: FromJSONKeyFunction Vc3Class
Core.FromJSONKey,
      [Vc3Class] -> Encoding
[Vc3Class] -> Value
Vc3Class -> Encoding
Vc3Class -> Value
(Vc3Class -> Value)
-> (Vc3Class -> Encoding)
-> ([Vc3Class] -> Value)
-> ([Vc3Class] -> Encoding)
-> ToJSON Vc3Class
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Vc3Class] -> Encoding
$ctoEncodingList :: [Vc3Class] -> Encoding
toJSONList :: [Vc3Class] -> Value
$ctoJSONList :: [Vc3Class] -> Value
toEncoding :: Vc3Class -> Encoding
$ctoEncoding :: Vc3Class -> Encoding
toJSON :: Vc3Class -> Value
$ctoJSON :: Vc3Class -> Value
Core.ToJSON,
      ToJSONKeyFunction [Vc3Class]
ToJSONKeyFunction Vc3Class
ToJSONKeyFunction Vc3Class
-> ToJSONKeyFunction [Vc3Class] -> ToJSONKey Vc3Class
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Vc3Class]
$ctoJSONKeyList :: ToJSONKeyFunction [Vc3Class]
toJSONKey :: ToJSONKeyFunction Vc3Class
$ctoJSONKey :: ToJSONKeyFunction Vc3Class
Core.ToJSONKey,
      [Node] -> Either String Vc3Class
([Node] -> Either String Vc3Class) -> FromXML Vc3Class
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Vc3Class
$cparseXML :: [Node] -> Either String Vc3Class
Core.FromXML,
      Vc3Class -> XML
(Vc3Class -> XML) -> ToXML Vc3Class
forall a. (a -> XML) -> ToXML a
toXML :: Vc3Class -> XML
$ctoXML :: Vc3Class -> XML
Core.ToXML
    )

pattern Vc3Class_CLASS_145_8BIT :: Vc3Class
pattern $bVc3Class_CLASS_145_8BIT :: Vc3Class
$mVc3Class_CLASS_145_8BIT :: forall r. Vc3Class -> (Void# -> r) -> (Void# -> r) -> r
Vc3Class_CLASS_145_8BIT = Vc3Class' "CLASS_145_8BIT"

pattern Vc3Class_CLASS_220_10BIT :: Vc3Class
pattern $bVc3Class_CLASS_220_10BIT :: Vc3Class
$mVc3Class_CLASS_220_10BIT :: forall r. Vc3Class -> (Void# -> r) -> (Void# -> r) -> r
Vc3Class_CLASS_220_10BIT = Vc3Class' "CLASS_220_10BIT"

pattern Vc3Class_CLASS_220_8BIT :: Vc3Class
pattern $bVc3Class_CLASS_220_8BIT :: Vc3Class
$mVc3Class_CLASS_220_8BIT :: forall r. Vc3Class -> (Void# -> r) -> (Void# -> r) -> r
Vc3Class_CLASS_220_8BIT = Vc3Class' "CLASS_220_8BIT"

{-# COMPLETE
  Vc3Class_CLASS_145_8BIT,
  Vc3Class_CLASS_220_10BIT,
  Vc3Class_CLASS_220_8BIT,
  Vc3Class'
  #-}