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

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> Xavc4kProfileCodecProfile -> ShowS
[Xavc4kProfileCodecProfile] -> ShowS
Xavc4kProfileCodecProfile -> String
(Int -> Xavc4kProfileCodecProfile -> ShowS)
-> (Xavc4kProfileCodecProfile -> String)
-> ([Xavc4kProfileCodecProfile] -> ShowS)
-> Show Xavc4kProfileCodecProfile
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]
(Int -> ReadS Xavc4kProfileCodecProfile)
-> ReadS [Xavc4kProfileCodecProfile]
-> ReadPrec Xavc4kProfileCodecProfile
-> ReadPrec [Xavc4kProfileCodecProfile]
-> Read 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
(Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool)
-> (Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool)
-> Eq Xavc4kProfileCodecProfile
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
Eq Xavc4kProfileCodecProfile
-> (Xavc4kProfileCodecProfile
    -> Xavc4kProfileCodecProfile -> Ordering)
-> (Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool)
-> (Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool)
-> (Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool)
-> (Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile -> Bool)
-> (Xavc4kProfileCodecProfile
    -> Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile)
-> (Xavc4kProfileCodecProfile
    -> Xavc4kProfileCodecProfile -> Xavc4kProfileCodecProfile)
-> Ord 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
$cp1Ord :: Eq Xavc4kProfileCodecProfile
Prelude.Ord,
      (forall x.
 Xavc4kProfileCodecProfile -> Rep Xavc4kProfileCodecProfile x)
-> (forall x.
    Rep Xavc4kProfileCodecProfile x -> Xavc4kProfileCodecProfile)
-> Generic Xavc4kProfileCodecProfile
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
    ( Int -> Xavc4kProfileCodecProfile -> Int
Xavc4kProfileCodecProfile -> Int
(Int -> Xavc4kProfileCodecProfile -> Int)
-> (Xavc4kProfileCodecProfile -> Int)
-> Hashable Xavc4kProfileCodecProfile
forall 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 -> ()
(Xavc4kProfileCodecProfile -> ())
-> NFData Xavc4kProfileCodecProfile
forall a. (a -> ()) -> NFData a
rnf :: Xavc4kProfileCodecProfile -> ()
$crnf :: Xavc4kProfileCodecProfile -> ()
Prelude.NFData,
      Text -> Either String Xavc4kProfileCodecProfile
(Text -> Either String Xavc4kProfileCodecProfile)
-> FromText Xavc4kProfileCodecProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Xavc4kProfileCodecProfile
$cfromText :: Text -> Either String Xavc4kProfileCodecProfile
Core.FromText,
      Xavc4kProfileCodecProfile -> Text
(Xavc4kProfileCodecProfile -> Text)
-> ToText Xavc4kProfileCodecProfile
forall a. (a -> Text) -> ToText a
toText :: Xavc4kProfileCodecProfile -> Text
$ctoText :: Xavc4kProfileCodecProfile -> Text
Core.ToText,
      Xavc4kProfileCodecProfile -> ByteString
(Xavc4kProfileCodecProfile -> ByteString)
-> ToByteString Xavc4kProfileCodecProfile
forall a. (a -> ByteString) -> ToByteString a
toBS :: Xavc4kProfileCodecProfile -> ByteString
$ctoBS :: Xavc4kProfileCodecProfile -> ByteString
Core.ToByteString,
      Xavc4kProfileCodecProfile -> ByteStringBuilder
(Xavc4kProfileCodecProfile -> ByteStringBuilder)
-> ToLog Xavc4kProfileCodecProfile
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Xavc4kProfileCodecProfile -> ByteStringBuilder
$cbuild :: Xavc4kProfileCodecProfile -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Xavc4kProfileCodecProfile -> [Header]
(HeaderName -> Xavc4kProfileCodecProfile -> [Header])
-> ToHeader Xavc4kProfileCodecProfile
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Xavc4kProfileCodecProfile -> [Header]
$ctoHeader :: HeaderName -> Xavc4kProfileCodecProfile -> [Header]
Core.ToHeader,
      Xavc4kProfileCodecProfile -> QueryString
(Xavc4kProfileCodecProfile -> QueryString)
-> ToQuery Xavc4kProfileCodecProfile
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Xavc4kProfileCodecProfile -> QueryString
$ctoQuery :: Xavc4kProfileCodecProfile -> QueryString
Core.ToQuery,
      Value -> Parser [Xavc4kProfileCodecProfile]
Value -> Parser Xavc4kProfileCodecProfile
(Value -> Parser Xavc4kProfileCodecProfile)
-> (Value -> Parser [Xavc4kProfileCodecProfile])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [Xavc4kProfileCodecProfile]
FromJSONKeyFunction Xavc4kProfileCodecProfile
FromJSONKeyFunction Xavc4kProfileCodecProfile
-> FromJSONKeyFunction [Xavc4kProfileCodecProfile]
-> FromJSONKey Xavc4kProfileCodecProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Xavc4kProfileCodecProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [Xavc4kProfileCodecProfile]
fromJSONKey :: FromJSONKeyFunction Xavc4kProfileCodecProfile
$cfromJSONKey :: FromJSONKeyFunction Xavc4kProfileCodecProfile
Core.FromJSONKey,
      [Xavc4kProfileCodecProfile] -> Encoding
[Xavc4kProfileCodecProfile] -> Value
Xavc4kProfileCodecProfile -> Encoding
Xavc4kProfileCodecProfile -> Value
(Xavc4kProfileCodecProfile -> Value)
-> (Xavc4kProfileCodecProfile -> Encoding)
-> ([Xavc4kProfileCodecProfile] -> Value)
-> ([Xavc4kProfileCodecProfile] -> Encoding)
-> ToJSON Xavc4kProfileCodecProfile
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
Core.ToJSON,
      ToJSONKeyFunction [Xavc4kProfileCodecProfile]
ToJSONKeyFunction Xavc4kProfileCodecProfile
ToJSONKeyFunction Xavc4kProfileCodecProfile
-> ToJSONKeyFunction [Xavc4kProfileCodecProfile]
-> ToJSONKey Xavc4kProfileCodecProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Xavc4kProfileCodecProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [Xavc4kProfileCodecProfile]
toJSONKey :: ToJSONKeyFunction Xavc4kProfileCodecProfile
$ctoJSONKey :: ToJSONKeyFunction Xavc4kProfileCodecProfile
Core.ToJSONKey,
      [Node] -> Either String Xavc4kProfileCodecProfile
([Node] -> Either String Xavc4kProfileCodecProfile)
-> FromXML Xavc4kProfileCodecProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Xavc4kProfileCodecProfile
$cparseXML :: [Node] -> Either String Xavc4kProfileCodecProfile
Core.FromXML,
      Xavc4kProfileCodecProfile -> XML
(Xavc4kProfileCodecProfile -> XML)
-> ToXML Xavc4kProfileCodecProfile
forall a. (a -> XML) -> ToXML a
toXML :: Xavc4kProfileCodecProfile -> XML
$ctoXML :: Xavc4kProfileCodecProfile -> XML
Core.ToXML
    )

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

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

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