{-# 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.ColorSpace
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.ColorSpace
  ( ColorSpace
      ( ..,
        ColorSpace_FOLLOW,
        ColorSpace_HDR10,
        ColorSpace_HLG_2020,
        ColorSpace_P3D65_SDR,
        ColorSpace_P3DCI,
        ColorSpace_REC_601,
        ColorSpace_REC_709
      ),
  )
where

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

-- | If your input video has accurate color space metadata, or if you don\'t
-- know about color space, leave this set to the default value Follow. The
-- service will automatically detect your input color space. If your input
-- video has metadata indicating the wrong color space, specify the
-- accurate color space here. If your input video is HDR 10 and the SMPTE
-- ST 2086 Mastering Display Color Volume static metadata isn\'t present in
-- your video stream, or if that metadata is present but not accurate,
-- choose Force HDR 10 here and specify correct values in the input HDR 10
-- metadata settings. For more information about MediaConvert HDR jobs, see
-- https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/hdr. Select P3D65
-- (SDR) to set the input color space metadata to the following: * Color
-- primaries: Display P3 * Transfer characteristics: SMPTE 428M * Matrix
-- coefficients: BT.709
newtype ColorSpace = ColorSpace'
  { ColorSpace -> Text
fromColorSpace ::
      Data.Text
  }
  deriving stock
    ( Int -> ColorSpace -> ShowS
[ColorSpace] -> ShowS
ColorSpace -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ColorSpace
Int -> ColorSpace -> Int
ColorSpace -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ColorSpace -> ()
$crnf :: ColorSpace -> ()
Prelude.NFData,
      Text -> Either String ColorSpace
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ColorSpace
$cfromText :: Text -> Either String ColorSpace
Data.FromText,
      ColorSpace -> Text
forall a. (a -> Text) -> ToText a
toText :: ColorSpace -> Text
$ctoText :: ColorSpace -> Text
Data.ToText,
      ColorSpace -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ColorSpace -> ByteString
$ctoBS :: ColorSpace -> ByteString
Data.ToByteString,
      ColorSpace -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ColorSpace -> ByteStringBuilder
$cbuild :: ColorSpace -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ColorSpace -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ColorSpace -> [Header]
$ctoHeader :: HeaderName -> ColorSpace -> [Header]
Data.ToHeader,
      ColorSpace -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ColorSpace -> QueryString
$ctoQuery :: ColorSpace -> QueryString
Data.ToQuery,
      Value -> Parser [ColorSpace]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ColorSpace]
FromJSONKeyFunction ColorSpace
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ColorSpace]
$cfromJSONKeyList :: FromJSONKeyFunction [ColorSpace]
fromJSONKey :: FromJSONKeyFunction ColorSpace
$cfromJSONKey :: FromJSONKeyFunction ColorSpace
Data.FromJSONKey,
      [ColorSpace] -> Encoding
[ColorSpace] -> Value
ColorSpace -> Encoding
ColorSpace -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ColorSpace]
ToJSONKeyFunction ColorSpace
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ColorSpace]
$ctoJSONKeyList :: ToJSONKeyFunction [ColorSpace]
toJSONKey :: ToJSONKeyFunction ColorSpace
$ctoJSONKey :: ToJSONKeyFunction ColorSpace
Data.ToJSONKey,
      [Node] -> Either String ColorSpace
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ColorSpace
$cparseXML :: [Node] -> Either String ColorSpace
Data.FromXML,
      ColorSpace -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ColorSpace -> XML
$ctoXML :: ColorSpace -> XML
Data.ToXML
    )

pattern ColorSpace_FOLLOW :: ColorSpace
pattern $bColorSpace_FOLLOW :: ColorSpace
$mColorSpace_FOLLOW :: forall {r}. ColorSpace -> ((# #) -> r) -> ((# #) -> r) -> r
ColorSpace_FOLLOW = ColorSpace' "FOLLOW"

pattern ColorSpace_HDR10 :: ColorSpace
pattern $bColorSpace_HDR10 :: ColorSpace
$mColorSpace_HDR10 :: forall {r}. ColorSpace -> ((# #) -> r) -> ((# #) -> r) -> r
ColorSpace_HDR10 = ColorSpace' "HDR10"

pattern ColorSpace_HLG_2020 :: ColorSpace
pattern $bColorSpace_HLG_2020 :: ColorSpace
$mColorSpace_HLG_2020 :: forall {r}. ColorSpace -> ((# #) -> r) -> ((# #) -> r) -> r
ColorSpace_HLG_2020 = ColorSpace' "HLG_2020"

pattern ColorSpace_P3D65_SDR :: ColorSpace
pattern $bColorSpace_P3D65_SDR :: ColorSpace
$mColorSpace_P3D65_SDR :: forall {r}. ColorSpace -> ((# #) -> r) -> ((# #) -> r) -> r
ColorSpace_P3D65_SDR = ColorSpace' "P3D65_SDR"

pattern ColorSpace_P3DCI :: ColorSpace
pattern $bColorSpace_P3DCI :: ColorSpace
$mColorSpace_P3DCI :: forall {r}. ColorSpace -> ((# #) -> r) -> ((# #) -> r) -> r
ColorSpace_P3DCI = ColorSpace' "P3DCI"

pattern ColorSpace_REC_601 :: ColorSpace
pattern $bColorSpace_REC_601 :: ColorSpace
$mColorSpace_REC_601 :: forall {r}. ColorSpace -> ((# #) -> r) -> ((# #) -> r) -> r
ColorSpace_REC_601 = ColorSpace' "REC_601"

pattern ColorSpace_REC_709 :: ColorSpace
pattern $bColorSpace_REC_709 :: ColorSpace
$mColorSpace_REC_709 :: forall {r}. ColorSpace -> ((# #) -> r) -> ((# #) -> r) -> r
ColorSpace_REC_709 = ColorSpace' "REC_709"

{-# COMPLETE
  ColorSpace_FOLLOW,
  ColorSpace_HDR10,
  ColorSpace_HLG_2020,
  ColorSpace_P3D65_SDR,
  ColorSpace_P3DCI,
  ColorSpace_REC_601,
  ColorSpace_REC_709,
  ColorSpace'
  #-}