{-# 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.H264CodecProfile
-- 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.H264CodecProfile
  ( H264CodecProfile
      ( ..,
        H264CodecProfile_BASELINE,
        H264CodecProfile_HIGH,
        H264CodecProfile_HIGH_10BIT,
        H264CodecProfile_HIGH_422,
        H264CodecProfile_HIGH_422_10BIT,
        H264CodecProfile_MAIN
      ),
  )
where

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

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

pattern H264CodecProfile_BASELINE :: H264CodecProfile
pattern $bH264CodecProfile_BASELINE :: H264CodecProfile
$mH264CodecProfile_BASELINE :: forall r. H264CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H264CodecProfile_BASELINE = H264CodecProfile' "BASELINE"

pattern H264CodecProfile_HIGH :: H264CodecProfile
pattern $bH264CodecProfile_HIGH :: H264CodecProfile
$mH264CodecProfile_HIGH :: forall r. H264CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H264CodecProfile_HIGH = H264CodecProfile' "HIGH"

pattern H264CodecProfile_HIGH_10BIT :: H264CodecProfile
pattern $bH264CodecProfile_HIGH_10BIT :: H264CodecProfile
$mH264CodecProfile_HIGH_10BIT :: forall r. H264CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H264CodecProfile_HIGH_10BIT = H264CodecProfile' "HIGH_10BIT"

pattern H264CodecProfile_HIGH_422 :: H264CodecProfile
pattern $bH264CodecProfile_HIGH_422 :: H264CodecProfile
$mH264CodecProfile_HIGH_422 :: forall r. H264CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H264CodecProfile_HIGH_422 = H264CodecProfile' "HIGH_422"

pattern H264CodecProfile_HIGH_422_10BIT :: H264CodecProfile
pattern $bH264CodecProfile_HIGH_422_10BIT :: H264CodecProfile
$mH264CodecProfile_HIGH_422_10BIT :: forall r. H264CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H264CodecProfile_HIGH_422_10BIT = H264CodecProfile' "HIGH_422_10BIT"

pattern H264CodecProfile_MAIN :: H264CodecProfile
pattern $bH264CodecProfile_MAIN :: H264CodecProfile
$mH264CodecProfile_MAIN :: forall r. H264CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H264CodecProfile_MAIN = H264CodecProfile' "MAIN"

{-# COMPLETE
  H264CodecProfile_BASELINE,
  H264CodecProfile_HIGH,
  H264CodecProfile_HIGH_10BIT,
  H264CodecProfile_HIGH_422,
  H264CodecProfile_HIGH_422_10BIT,
  H264CodecProfile_MAIN,
  H264CodecProfile'
  #-}