{-# 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.H265AlternateTransferFunctionSei
-- 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.H265AlternateTransferFunctionSei
  ( H265AlternateTransferFunctionSei
      ( ..,
        H265AlternateTransferFunctionSei_DISABLED,
        H265AlternateTransferFunctionSei_ENABLED
      ),
  )
where

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

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

pattern H265AlternateTransferFunctionSei_DISABLED :: H265AlternateTransferFunctionSei
pattern $bH265AlternateTransferFunctionSei_DISABLED :: H265AlternateTransferFunctionSei
$mH265AlternateTransferFunctionSei_DISABLED :: forall r.
H265AlternateTransferFunctionSei
-> (Void# -> r) -> (Void# -> r) -> r
H265AlternateTransferFunctionSei_DISABLED = H265AlternateTransferFunctionSei' "DISABLED"

pattern H265AlternateTransferFunctionSei_ENABLED :: H265AlternateTransferFunctionSei
pattern $bH265AlternateTransferFunctionSei_ENABLED :: H265AlternateTransferFunctionSei
$mH265AlternateTransferFunctionSei_ENABLED :: forall r.
H265AlternateTransferFunctionSei
-> (Void# -> r) -> (Void# -> r) -> r
H265AlternateTransferFunctionSei_ENABLED = H265AlternateTransferFunctionSei' "ENABLED"

{-# COMPLETE
  H265AlternateTransferFunctionSei_DISABLED,
  H265AlternateTransferFunctionSei_ENABLED,
  H265AlternateTransferFunctionSei'
  #-}