{-# 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.MediaLive.Types.H264EntropyEncoding
-- 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.MediaLive.Types.H264EntropyEncoding
  ( H264EntropyEncoding
      ( ..,
        H264EntropyEncoding_CABAC,
        H264EntropyEncoding_CAVLC
      ),
  )
where

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

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

pattern H264EntropyEncoding_CABAC :: H264EntropyEncoding
pattern $bH264EntropyEncoding_CABAC :: H264EntropyEncoding
$mH264EntropyEncoding_CABAC :: forall {r}.
H264EntropyEncoding -> ((# #) -> r) -> ((# #) -> r) -> r
H264EntropyEncoding_CABAC = H264EntropyEncoding' "CABAC"

pattern H264EntropyEncoding_CAVLC :: H264EntropyEncoding
pattern $bH264EntropyEncoding_CAVLC :: H264EntropyEncoding
$mH264EntropyEncoding_CAVLC :: forall {r}.
H264EntropyEncoding -> ((# #) -> r) -> ((# #) -> r) -> r
H264EntropyEncoding_CAVLC = H264EntropyEncoding' "CAVLC"

{-# COMPLETE
  H264EntropyEncoding_CABAC,
  H264EntropyEncoding_CAVLC,
  H264EntropyEncoding'
  #-}