{-# 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.H265CodecProfile
-- 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.H265CodecProfile
  ( H265CodecProfile
      ( ..,
        H265CodecProfile_MAIN10_HIGH,
        H265CodecProfile_MAIN10_MAIN,
        H265CodecProfile_MAIN_422_10BIT_HIGH,
        H265CodecProfile_MAIN_422_10BIT_MAIN,
        H265CodecProfile_MAIN_422_8BIT_HIGH,
        H265CodecProfile_MAIN_422_8BIT_MAIN,
        H265CodecProfile_MAIN_HIGH,
        H265CodecProfile_MAIN_MAIN
      ),
  )
where

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

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

pattern H265CodecProfile_MAIN10_HIGH :: H265CodecProfile
pattern $bH265CodecProfile_MAIN10_HIGH :: H265CodecProfile
$mH265CodecProfile_MAIN10_HIGH :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN10_HIGH = H265CodecProfile' "MAIN10_HIGH"

pattern H265CodecProfile_MAIN10_MAIN :: H265CodecProfile
pattern $bH265CodecProfile_MAIN10_MAIN :: H265CodecProfile
$mH265CodecProfile_MAIN10_MAIN :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN10_MAIN = H265CodecProfile' "MAIN10_MAIN"

pattern H265CodecProfile_MAIN_422_10BIT_HIGH :: H265CodecProfile
pattern $bH265CodecProfile_MAIN_422_10BIT_HIGH :: H265CodecProfile
$mH265CodecProfile_MAIN_422_10BIT_HIGH :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN_422_10BIT_HIGH = H265CodecProfile' "MAIN_422_10BIT_HIGH"

pattern H265CodecProfile_MAIN_422_10BIT_MAIN :: H265CodecProfile
pattern $bH265CodecProfile_MAIN_422_10BIT_MAIN :: H265CodecProfile
$mH265CodecProfile_MAIN_422_10BIT_MAIN :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN_422_10BIT_MAIN = H265CodecProfile' "MAIN_422_10BIT_MAIN"

pattern H265CodecProfile_MAIN_422_8BIT_HIGH :: H265CodecProfile
pattern $bH265CodecProfile_MAIN_422_8BIT_HIGH :: H265CodecProfile
$mH265CodecProfile_MAIN_422_8BIT_HIGH :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN_422_8BIT_HIGH = H265CodecProfile' "MAIN_422_8BIT_HIGH"

pattern H265CodecProfile_MAIN_422_8BIT_MAIN :: H265CodecProfile
pattern $bH265CodecProfile_MAIN_422_8BIT_MAIN :: H265CodecProfile
$mH265CodecProfile_MAIN_422_8BIT_MAIN :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN_422_8BIT_MAIN = H265CodecProfile' "MAIN_422_8BIT_MAIN"

pattern H265CodecProfile_MAIN_HIGH :: H265CodecProfile
pattern $bH265CodecProfile_MAIN_HIGH :: H265CodecProfile
$mH265CodecProfile_MAIN_HIGH :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN_HIGH = H265CodecProfile' "MAIN_HIGH"

pattern H265CodecProfile_MAIN_MAIN :: H265CodecProfile
pattern $bH265CodecProfile_MAIN_MAIN :: H265CodecProfile
$mH265CodecProfile_MAIN_MAIN :: forall r. H265CodecProfile -> (Void# -> r) -> (Void# -> r) -> r
H265CodecProfile_MAIN_MAIN = H265CodecProfile' "MAIN_MAIN"

{-# COMPLETE
  H265CodecProfile_MAIN10_HIGH,
  H265CodecProfile_MAIN10_MAIN,
  H265CodecProfile_MAIN_422_10BIT_HIGH,
  H265CodecProfile_MAIN_422_10BIT_MAIN,
  H265CodecProfile_MAIN_422_8BIT_HIGH,
  H265CodecProfile_MAIN_422_8BIT_MAIN,
  H265CodecProfile_MAIN_HIGH,
  H265CodecProfile_MAIN_MAIN,
  H265CodecProfile'
  #-}