{-# 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.H264Syntax
-- 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.H264Syntax
  ( H264Syntax
      ( ..,
        H264Syntax_DEFAULT,
        H264Syntax_RP2027
      ),
  )
where

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

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

pattern H264Syntax_DEFAULT :: H264Syntax
pattern $bH264Syntax_DEFAULT :: H264Syntax
$mH264Syntax_DEFAULT :: forall r. H264Syntax -> (Void# -> r) -> (Void# -> r) -> r
H264Syntax_DEFAULT = H264Syntax' "DEFAULT"

pattern H264Syntax_RP2027 :: H264Syntax
pattern $bH264Syntax_RP2027 :: H264Syntax
$mH264Syntax_RP2027 :: forall r. H264Syntax -> (Void# -> r) -> (Void# -> r) -> r
H264Syntax_RP2027 = H264Syntax' "RP2027"

{-# COMPLETE
  H264Syntax_DEFAULT,
  H264Syntax_RP2027,
  H264Syntax'
  #-}