{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaConvert.Types.ColorSpace
( ColorSpace
( ..,
ColorSpace_FOLLOW,
ColorSpace_HDR10,
ColorSpace_HLG_2020,
ColorSpace_REC_601,
ColorSpace_REC_709
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ColorSpace = ColorSpace'
{ ColorSpace -> Text
fromColorSpace ::
Core.Text
}
deriving stock
( Int -> ColorSpace -> ShowS
[ColorSpace] -> ShowS
ColorSpace -> String
(Int -> ColorSpace -> ShowS)
-> (ColorSpace -> String)
-> ([ColorSpace] -> ShowS)
-> Show ColorSpace
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ColorSpace] -> ShowS
$cshowList :: [ColorSpace] -> ShowS
show :: ColorSpace -> String
$cshow :: ColorSpace -> String
showsPrec :: Int -> ColorSpace -> ShowS
$cshowsPrec :: Int -> ColorSpace -> ShowS
Prelude.Show,
ReadPrec [ColorSpace]
ReadPrec ColorSpace
Int -> ReadS ColorSpace
ReadS [ColorSpace]
(Int -> ReadS ColorSpace)
-> ReadS [ColorSpace]
-> ReadPrec ColorSpace
-> ReadPrec [ColorSpace]
-> Read ColorSpace
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ColorSpace]
$creadListPrec :: ReadPrec [ColorSpace]
readPrec :: ReadPrec ColorSpace
$creadPrec :: ReadPrec ColorSpace
readList :: ReadS [ColorSpace]
$creadList :: ReadS [ColorSpace]
readsPrec :: Int -> ReadS ColorSpace
$creadsPrec :: Int -> ReadS ColorSpace
Prelude.Read,
ColorSpace -> ColorSpace -> Bool
(ColorSpace -> ColorSpace -> Bool)
-> (ColorSpace -> ColorSpace -> Bool) -> Eq ColorSpace
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ColorSpace -> ColorSpace -> Bool
$c/= :: ColorSpace -> ColorSpace -> Bool
== :: ColorSpace -> ColorSpace -> Bool
$c== :: ColorSpace -> ColorSpace -> Bool
Prelude.Eq,
Eq ColorSpace
Eq ColorSpace
-> (ColorSpace -> ColorSpace -> Ordering)
-> (ColorSpace -> ColorSpace -> Bool)
-> (ColorSpace -> ColorSpace -> Bool)
-> (ColorSpace -> ColorSpace -> Bool)
-> (ColorSpace -> ColorSpace -> Bool)
-> (ColorSpace -> ColorSpace -> ColorSpace)
-> (ColorSpace -> ColorSpace -> ColorSpace)
-> Ord ColorSpace
ColorSpace -> ColorSpace -> Bool
ColorSpace -> ColorSpace -> Ordering
ColorSpace -> ColorSpace -> ColorSpace
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 :: ColorSpace -> ColorSpace -> ColorSpace
$cmin :: ColorSpace -> ColorSpace -> ColorSpace
max :: ColorSpace -> ColorSpace -> ColorSpace
$cmax :: ColorSpace -> ColorSpace -> ColorSpace
>= :: ColorSpace -> ColorSpace -> Bool
$c>= :: ColorSpace -> ColorSpace -> Bool
> :: ColorSpace -> ColorSpace -> Bool
$c> :: ColorSpace -> ColorSpace -> Bool
<= :: ColorSpace -> ColorSpace -> Bool
$c<= :: ColorSpace -> ColorSpace -> Bool
< :: ColorSpace -> ColorSpace -> Bool
$c< :: ColorSpace -> ColorSpace -> Bool
compare :: ColorSpace -> ColorSpace -> Ordering
$ccompare :: ColorSpace -> ColorSpace -> Ordering
$cp1Ord :: Eq ColorSpace
Prelude.Ord,
(forall x. ColorSpace -> Rep ColorSpace x)
-> (forall x. Rep ColorSpace x -> ColorSpace) -> Generic ColorSpace
forall x. Rep ColorSpace x -> ColorSpace
forall x. ColorSpace -> Rep ColorSpace x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ColorSpace x -> ColorSpace
$cfrom :: forall x. ColorSpace -> Rep ColorSpace x
Prelude.Generic
)
deriving newtype
( Int -> ColorSpace -> Int
ColorSpace -> Int
(Int -> ColorSpace -> Int)
-> (ColorSpace -> Int) -> Hashable ColorSpace
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ColorSpace -> Int
$chash :: ColorSpace -> Int
hashWithSalt :: Int -> ColorSpace -> Int
$chashWithSalt :: Int -> ColorSpace -> Int
Prelude.Hashable,
ColorSpace -> ()
(ColorSpace -> ()) -> NFData ColorSpace
forall a. (a -> ()) -> NFData a
rnf :: ColorSpace -> ()
$crnf :: ColorSpace -> ()
Prelude.NFData,
Text -> Either String ColorSpace
(Text -> Either String ColorSpace) -> FromText ColorSpace
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ColorSpace
$cfromText :: Text -> Either String ColorSpace
Core.FromText,
ColorSpace -> Text
(ColorSpace -> Text) -> ToText ColorSpace
forall a. (a -> Text) -> ToText a
toText :: ColorSpace -> Text
$ctoText :: ColorSpace -> Text
Core.ToText,
ColorSpace -> ByteString
(ColorSpace -> ByteString) -> ToByteString ColorSpace
forall a. (a -> ByteString) -> ToByteString a
toBS :: ColorSpace -> ByteString
$ctoBS :: ColorSpace -> ByteString
Core.ToByteString,
ColorSpace -> ByteStringBuilder
(ColorSpace -> ByteStringBuilder) -> ToLog ColorSpace
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ColorSpace -> ByteStringBuilder
$cbuild :: ColorSpace -> ByteStringBuilder
Core.ToLog,
HeaderName -> ColorSpace -> [Header]
(HeaderName -> ColorSpace -> [Header]) -> ToHeader ColorSpace
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ColorSpace -> [Header]
$ctoHeader :: HeaderName -> ColorSpace -> [Header]
Core.ToHeader,
ColorSpace -> QueryString
(ColorSpace -> QueryString) -> ToQuery ColorSpace
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ColorSpace -> QueryString
$ctoQuery :: ColorSpace -> QueryString
Core.ToQuery,
Value -> Parser [ColorSpace]
Value -> Parser ColorSpace
(Value -> Parser ColorSpace)
-> (Value -> Parser [ColorSpace]) -> FromJSON ColorSpace
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ColorSpace]
$cparseJSONList :: Value -> Parser [ColorSpace]
parseJSON :: Value -> Parser ColorSpace
$cparseJSON :: Value -> Parser ColorSpace
Core.FromJSON,
FromJSONKeyFunction [ColorSpace]
FromJSONKeyFunction ColorSpace
FromJSONKeyFunction ColorSpace
-> FromJSONKeyFunction [ColorSpace] -> FromJSONKey ColorSpace
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ColorSpace]
$cfromJSONKeyList :: FromJSONKeyFunction [ColorSpace]
fromJSONKey :: FromJSONKeyFunction ColorSpace
$cfromJSONKey :: FromJSONKeyFunction ColorSpace
Core.FromJSONKey,
[ColorSpace] -> Encoding
[ColorSpace] -> Value
ColorSpace -> Encoding
ColorSpace -> Value
(ColorSpace -> Value)
-> (ColorSpace -> Encoding)
-> ([ColorSpace] -> Value)
-> ([ColorSpace] -> Encoding)
-> ToJSON ColorSpace
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ColorSpace] -> Encoding
$ctoEncodingList :: [ColorSpace] -> Encoding
toJSONList :: [ColorSpace] -> Value
$ctoJSONList :: [ColorSpace] -> Value
toEncoding :: ColorSpace -> Encoding
$ctoEncoding :: ColorSpace -> Encoding
toJSON :: ColorSpace -> Value
$ctoJSON :: ColorSpace -> Value
Core.ToJSON,
ToJSONKeyFunction [ColorSpace]
ToJSONKeyFunction ColorSpace
ToJSONKeyFunction ColorSpace
-> ToJSONKeyFunction [ColorSpace] -> ToJSONKey ColorSpace
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ColorSpace]
$ctoJSONKeyList :: ToJSONKeyFunction [ColorSpace]
toJSONKey :: ToJSONKeyFunction ColorSpace
$ctoJSONKey :: ToJSONKeyFunction ColorSpace
Core.ToJSONKey,
[Node] -> Either String ColorSpace
([Node] -> Either String ColorSpace) -> FromXML ColorSpace
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ColorSpace
$cparseXML :: [Node] -> Either String ColorSpace
Core.FromXML,
ColorSpace -> XML
(ColorSpace -> XML) -> ToXML ColorSpace
forall a. (a -> XML) -> ToXML a
toXML :: ColorSpace -> XML
$ctoXML :: ColorSpace -> XML
Core.ToXML
)
pattern ColorSpace_FOLLOW :: ColorSpace
pattern $bColorSpace_FOLLOW :: ColorSpace
$mColorSpace_FOLLOW :: forall r. ColorSpace -> (Void# -> r) -> (Void# -> r) -> r
ColorSpace_FOLLOW = ColorSpace' "FOLLOW"
pattern ColorSpace_HDR10 :: ColorSpace
pattern $bColorSpace_HDR10 :: ColorSpace
$mColorSpace_HDR10 :: forall r. ColorSpace -> (Void# -> r) -> (Void# -> r) -> r
ColorSpace_HDR10 = ColorSpace' "HDR10"
pattern ColorSpace_HLG_2020 :: ColorSpace
pattern $bColorSpace_HLG_2020 :: ColorSpace
$mColorSpace_HLG_2020 :: forall r. ColorSpace -> (Void# -> r) -> (Void# -> r) -> r
ColorSpace_HLG_2020 = ColorSpace' "HLG_2020"
pattern ColorSpace_REC_601 :: ColorSpace
pattern $bColorSpace_REC_601 :: ColorSpace
$mColorSpace_REC_601 :: forall r. ColorSpace -> (Void# -> r) -> (Void# -> r) -> r
ColorSpace_REC_601 = ColorSpace' "REC_601"
pattern ColorSpace_REC_709 :: ColorSpace
pattern $bColorSpace_REC_709 :: ColorSpace
$mColorSpace_REC_709 :: forall r. ColorSpace -> (Void# -> r) -> (Void# -> r) -> r
ColorSpace_REC_709 = ColorSpace' "REC_709"
{-# COMPLETE
ColorSpace_FOLLOW,
ColorSpace_HDR10,
ColorSpace_HLG_2020,
ColorSpace_REC_601,
ColorSpace_REC_709,
ColorSpace'
#-}