{-# 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.Xavc4kProfileCodecProfile
-- 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.Xavc4kProfileCodecProfile
  ( Xavc4kProfileCodecProfile
      ( ..,
        Xavc4kProfileCodecProfile_HIGH,
        Xavc4kProfileCodecProfile_HIGH_422
      ),
  )
where

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

-- | Specify the codec profile for this output. Choose High, 8-bit, 4:2:0
-- (HIGH) or High, 10-bit, 4:2:2 (HIGH_422). These profiles are specified
-- in ITU-T H.264.
newtype Xavc4kProfileCodecProfile = Xavc4kProfileCodecProfile'
  { Xavc4kProfileCodecProfile -> Text
fromXavc4kProfileCodecProfile ::
      Data.Text
  }
  deriving stock
    ( Int -> Xavc4kProfileCodecProfile -> ShowS
[Xavc4kProfileCodecProfile] -> ShowS
Xavc4kProfileCodecProfile -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Xavc4kProfileCodecProfile] -> ShowS
$cshowList :: [Xavc4kProfileCodecProfile] -> ShowS
show :: Xavc4kProfileCodecProfile -> String
$cshow :: Xavc4kProfileCodecProfile -> String
showsPrec :: Int -> Xavc4kProfileCodecProfile -> ShowS
$cshowsPrec :: Int -> Xavc4kProfileCodecProfile -> ShowS
Prelude.Show,
      ReadPrec [Xavc4kProfileCodecProfile]
ReadPrec Xavc4kProfileCodecProfile
Int -> ReadS Xavc4kProfileCodecProfile
ReadS [Xavc4kProfileCodecProfile]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Xavc4kProfileCodecProfile]
$creadListPrec :: ReadPrec [Xavc4kProfileCodecProfile]
readPrec :: ReadPrec Xavc4kProfileCodecProfile
$creadPrec :: ReadPrec Xavc4kProfileCodecProfile
readList :: ReadS [Xavc4kProfileCodecProfile]
$creadList :: ReadS [Xavc4kProfileCodecProfile]
readsPrec :: Int -> ReadS Xavc4kProfileCodecProfile
$creadsPrec :: Int -> ReadS Xavc4kProfileCodecProfile
Prelude.Read,
      Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
$c/= :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
== :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
$c== :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
Prelude.Eq,
      Eq Xavc4kProfileCodecProfile
Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Ordering
Xavc4kProfileCodecProfile
-> Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile
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 :: Xavc4kProfileCodecProfile
-> Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile
$cmin :: Xavc4kProfileCodecProfile
-> Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile
max :: Xavc4kProfileCodecProfile
-> Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile
$cmax :: Xavc4kProfileCodecProfile
-> Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile
>= :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
$c>= :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
> :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
$c> :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
<= :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
$c<= :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
< :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
$c< :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool
compare :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Ordering
$ccompare :: Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Ordering
Prelude.Ord,
      forall x.
Rep Xavc4kProfileCodecProfile x -> Xavc4kProfileCodecProfile
forall x.
Xavc4kProfileCodecProfile -> Rep Xavc4kProfileCodecProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Xavc4kProfileCodecProfile x -> Xavc4kProfileCodecProfile
$cfrom :: forall x.
Xavc4kProfileCodecProfile -> Rep Xavc4kProfileCodecProfile x
Prelude.Generic
    )
  deriving newtype
    ( Eq Xavc4kProfileCodecProfile
Int -> Xavc4kProfileCodecProfile -> Int
Xavc4kProfileCodecProfile -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Xavc4kProfileCodecProfile -> Int
$chash :: Xavc4kProfileCodecProfile -> Int
hashWithSalt :: Int -> Xavc4kProfileCodecProfile -> Int
$chashWithSalt :: Int -> Xavc4kProfileCodecProfile -> Int
Prelude.Hashable,
      Xavc4kProfileCodecProfile -> ()
forall a. (a -> ()) -> NFData a
rnf :: Xavc4kProfileCodecProfile -> ()
$crnf :: Xavc4kProfileCodecProfile -> ()
Prelude.NFData,
      Text -> Either String Xavc4kProfileCodecProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Xavc4kProfileCodecProfile
$cfromText :: Text -> Either String Xavc4kProfileCodecProfile
Data.FromText,
      Xavc4kProfileCodecProfile -> Text
forall a. (a -> Text) -> ToText a
toText :: Xavc4kProfileCodecProfile -> Text
$ctoText :: Xavc4kProfileCodecProfile -> Text
Data.ToText,
      Xavc4kProfileCodecProfile -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Xavc4kProfileCodecProfile -> ByteString
$ctoBS :: Xavc4kProfileCodecProfile -> ByteString
Data.ToByteString,
      Xavc4kProfileCodecProfile -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Xavc4kProfileCodecProfile -> ByteStringBuilder
$cbuild :: Xavc4kProfileCodecProfile -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Xavc4kProfileCodecProfile -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Xavc4kProfileCodecProfile -> [Header]
$ctoHeader :: HeaderName -> Xavc4kProfileCodecProfile -> [Header]
Data.ToHeader,
      Xavc4kProfileCodecProfile -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Xavc4kProfileCodecProfile -> QueryString
$ctoQuery :: Xavc4kProfileCodecProfile -> QueryString
Data.ToQuery,
      Value -> Parser [Xavc4kProfileCodecProfile]
Value -> Parser Xavc4kProfileCodecProfile
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Xavc4kProfileCodecProfile]
$cparseJSONList :: Value -> Parser [Xavc4kProfileCodecProfile]
parseJSON :: Value -> Parser Xavc4kProfileCodecProfile
$cparseJSON :: Value -> Parser Xavc4kProfileCodecProfile
Data.FromJSON,
      FromJSONKeyFunction [Xavc4kProfileCodecProfile]
FromJSONKeyFunction Xavc4kProfileCodecProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Xavc4kProfileCodecProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [Xavc4kProfileCodecProfile]
fromJSONKey :: FromJSONKeyFunction Xavc4kProfileCodecProfile
$cfromJSONKey :: FromJSONKeyFunction Xavc4kProfileCodecProfile
Data.FromJSONKey,
      [Xavc4kProfileCodecProfile] -> Encoding
[Xavc4kProfileCodecProfile] -> Value
Xavc4kProfileCodecProfile -> Encoding
Xavc4kProfileCodecProfile -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Xavc4kProfileCodecProfile] -> Encoding
$ctoEncodingList :: [Xavc4kProfileCodecProfile] -> Encoding
toJSONList :: [Xavc4kProfileCodecProfile] -> Value
$ctoJSONList :: [Xavc4kProfileCodecProfile] -> Value
toEncoding :: Xavc4kProfileCodecProfile -> Encoding
$ctoEncoding :: Xavc4kProfileCodecProfile -> Encoding
toJSON :: Xavc4kProfileCodecProfile -> Value
$ctoJSON :: Xavc4kProfileCodecProfile -> Value
Data.ToJSON,
      ToJSONKeyFunction [Xavc4kProfileCodecProfile]
ToJSONKeyFunction Xavc4kProfileCodecProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Xavc4kProfileCodecProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [Xavc4kProfileCodecProfile]
toJSONKey :: ToJSONKeyFunction Xavc4kProfileCodecProfile
$ctoJSONKey :: ToJSONKeyFunction Xavc4kProfileCodecProfile
Data.ToJSONKey,
      [Node] -> Either String Xavc4kProfileCodecProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Xavc4kProfileCodecProfile
$cparseXML :: [Node] -> Either String Xavc4kProfileCodecProfile
Data.FromXML,
      Xavc4kProfileCodecProfile -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Xavc4kProfileCodecProfile -> XML
$ctoXML :: Xavc4kProfileCodecProfile -> XML
Data.ToXML
    )

pattern Xavc4kProfileCodecProfile_HIGH :: Xavc4kProfileCodecProfile
pattern $bXavc4kProfileCodecProfile_HIGH :: Xavc4kProfileCodecProfile
$mXavc4kProfileCodecProfile_HIGH :: forall {r}.
Xavc4kProfileCodecProfile -> ((# #) -> r) -> ((# #) -> r) -> r
Xavc4kProfileCodecProfile_HIGH = Xavc4kProfileCodecProfile' "HIGH"

pattern Xavc4kProfileCodecProfile_HIGH_422 :: Xavc4kProfileCodecProfile
pattern $bXavc4kProfileCodecProfile_HIGH_422 :: Xavc4kProfileCodecProfile
$mXavc4kProfileCodecProfile_HIGH_422 :: forall {r}.
Xavc4kProfileCodecProfile -> ((# #) -> r) -> ((# #) -> r) -> r
Xavc4kProfileCodecProfile_HIGH_422 = Xavc4kProfileCodecProfile' "HIGH_422"

{-# COMPLETE
  Xavc4kProfileCodecProfile_HIGH,
  Xavc4kProfileCodecProfile_HIGH_422,
  Xavc4kProfileCodecProfile'
  #-}