{-# 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.H264FieldEncoding
-- 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.H264FieldEncoding
  ( H264FieldEncoding
      ( ..,
        H264FieldEncoding_FORCE_FIELD,
        H264FieldEncoding_MBAFF,
        H264FieldEncoding_PAFF
      ),
  )
where

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

-- | The video encoding method for your MPEG-4 AVC output. Keep the default
-- value, PAFF, to have MediaConvert use PAFF encoding for interlaced
-- outputs. Choose Force field (FORCE_FIELD) to disable PAFF encoding and
-- create separate interlaced fields. Choose MBAFF to disable PAFF and have
-- MediaConvert use MBAFF encoding for interlaced outputs.
newtype H264FieldEncoding = H264FieldEncoding'
  { H264FieldEncoding -> Text
fromH264FieldEncoding ::
      Core.Text
  }
  deriving stock
    ( Int -> H264FieldEncoding -> ShowS
[H264FieldEncoding] -> ShowS
H264FieldEncoding -> String
(Int -> H264FieldEncoding -> ShowS)
-> (H264FieldEncoding -> String)
-> ([H264FieldEncoding] -> ShowS)
-> Show H264FieldEncoding
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H264FieldEncoding] -> ShowS
$cshowList :: [H264FieldEncoding] -> ShowS
show :: H264FieldEncoding -> String
$cshow :: H264FieldEncoding -> String
showsPrec :: Int -> H264FieldEncoding -> ShowS
$cshowsPrec :: Int -> H264FieldEncoding -> ShowS
Prelude.Show,
      ReadPrec [H264FieldEncoding]
ReadPrec H264FieldEncoding
Int -> ReadS H264FieldEncoding
ReadS [H264FieldEncoding]
(Int -> ReadS H264FieldEncoding)
-> ReadS [H264FieldEncoding]
-> ReadPrec H264FieldEncoding
-> ReadPrec [H264FieldEncoding]
-> Read H264FieldEncoding
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H264FieldEncoding]
$creadListPrec :: ReadPrec [H264FieldEncoding]
readPrec :: ReadPrec H264FieldEncoding
$creadPrec :: ReadPrec H264FieldEncoding
readList :: ReadS [H264FieldEncoding]
$creadList :: ReadS [H264FieldEncoding]
readsPrec :: Int -> ReadS H264FieldEncoding
$creadsPrec :: Int -> ReadS H264FieldEncoding
Prelude.Read,
      H264FieldEncoding -> H264FieldEncoding -> Bool
(H264FieldEncoding -> H264FieldEncoding -> Bool)
-> (H264FieldEncoding -> H264FieldEncoding -> Bool)
-> Eq H264FieldEncoding
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H264FieldEncoding -> H264FieldEncoding -> Bool
$c/= :: H264FieldEncoding -> H264FieldEncoding -> Bool
== :: H264FieldEncoding -> H264FieldEncoding -> Bool
$c== :: H264FieldEncoding -> H264FieldEncoding -> Bool
Prelude.Eq,
      Eq H264FieldEncoding
Eq H264FieldEncoding
-> (H264FieldEncoding -> H264FieldEncoding -> Ordering)
-> (H264FieldEncoding -> H264FieldEncoding -> Bool)
-> (H264FieldEncoding -> H264FieldEncoding -> Bool)
-> (H264FieldEncoding -> H264FieldEncoding -> Bool)
-> (H264FieldEncoding -> H264FieldEncoding -> Bool)
-> (H264FieldEncoding -> H264FieldEncoding -> H264FieldEncoding)
-> (H264FieldEncoding -> H264FieldEncoding -> H264FieldEncoding)
-> Ord H264FieldEncoding
H264FieldEncoding -> H264FieldEncoding -> Bool
H264FieldEncoding -> H264FieldEncoding -> Ordering
H264FieldEncoding -> H264FieldEncoding -> H264FieldEncoding
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 :: H264FieldEncoding -> H264FieldEncoding -> H264FieldEncoding
$cmin :: H264FieldEncoding -> H264FieldEncoding -> H264FieldEncoding
max :: H264FieldEncoding -> H264FieldEncoding -> H264FieldEncoding
$cmax :: H264FieldEncoding -> H264FieldEncoding -> H264FieldEncoding
>= :: H264FieldEncoding -> H264FieldEncoding -> Bool
$c>= :: H264FieldEncoding -> H264FieldEncoding -> Bool
> :: H264FieldEncoding -> H264FieldEncoding -> Bool
$c> :: H264FieldEncoding -> H264FieldEncoding -> Bool
<= :: H264FieldEncoding -> H264FieldEncoding -> Bool
$c<= :: H264FieldEncoding -> H264FieldEncoding -> Bool
< :: H264FieldEncoding -> H264FieldEncoding -> Bool
$c< :: H264FieldEncoding -> H264FieldEncoding -> Bool
compare :: H264FieldEncoding -> H264FieldEncoding -> Ordering
$ccompare :: H264FieldEncoding -> H264FieldEncoding -> Ordering
$cp1Ord :: Eq H264FieldEncoding
Prelude.Ord,
      (forall x. H264FieldEncoding -> Rep H264FieldEncoding x)
-> (forall x. Rep H264FieldEncoding x -> H264FieldEncoding)
-> Generic H264FieldEncoding
forall x. Rep H264FieldEncoding x -> H264FieldEncoding
forall x. H264FieldEncoding -> Rep H264FieldEncoding x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H264FieldEncoding x -> H264FieldEncoding
$cfrom :: forall x. H264FieldEncoding -> Rep H264FieldEncoding x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H264FieldEncoding -> Int
H264FieldEncoding -> Int
(Int -> H264FieldEncoding -> Int)
-> (H264FieldEncoding -> Int) -> Hashable H264FieldEncoding
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H264FieldEncoding -> Int
$chash :: H264FieldEncoding -> Int
hashWithSalt :: Int -> H264FieldEncoding -> Int
$chashWithSalt :: Int -> H264FieldEncoding -> Int
Prelude.Hashable,
      H264FieldEncoding -> ()
(H264FieldEncoding -> ()) -> NFData H264FieldEncoding
forall a. (a -> ()) -> NFData a
rnf :: H264FieldEncoding -> ()
$crnf :: H264FieldEncoding -> ()
Prelude.NFData,
      Text -> Either String H264FieldEncoding
(Text -> Either String H264FieldEncoding)
-> FromText H264FieldEncoding
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264FieldEncoding
$cfromText :: Text -> Either String H264FieldEncoding
Core.FromText,
      H264FieldEncoding -> Text
(H264FieldEncoding -> Text) -> ToText H264FieldEncoding
forall a. (a -> Text) -> ToText a
toText :: H264FieldEncoding -> Text
$ctoText :: H264FieldEncoding -> Text
Core.ToText,
      H264FieldEncoding -> ByteString
(H264FieldEncoding -> ByteString) -> ToByteString H264FieldEncoding
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264FieldEncoding -> ByteString
$ctoBS :: H264FieldEncoding -> ByteString
Core.ToByteString,
      H264FieldEncoding -> ByteStringBuilder
(H264FieldEncoding -> ByteStringBuilder) -> ToLog H264FieldEncoding
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264FieldEncoding -> ByteStringBuilder
$cbuild :: H264FieldEncoding -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H264FieldEncoding -> [Header]
(HeaderName -> H264FieldEncoding -> [Header])
-> ToHeader H264FieldEncoding
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264FieldEncoding -> [Header]
$ctoHeader :: HeaderName -> H264FieldEncoding -> [Header]
Core.ToHeader,
      H264FieldEncoding -> QueryString
(H264FieldEncoding -> QueryString) -> ToQuery H264FieldEncoding
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264FieldEncoding -> QueryString
$ctoQuery :: H264FieldEncoding -> QueryString
Core.ToQuery,
      Value -> Parser [H264FieldEncoding]
Value -> Parser H264FieldEncoding
(Value -> Parser H264FieldEncoding)
-> (Value -> Parser [H264FieldEncoding])
-> FromJSON H264FieldEncoding
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H264FieldEncoding]
$cparseJSONList :: Value -> Parser [H264FieldEncoding]
parseJSON :: Value -> Parser H264FieldEncoding
$cparseJSON :: Value -> Parser H264FieldEncoding
Core.FromJSON,
      FromJSONKeyFunction [H264FieldEncoding]
FromJSONKeyFunction H264FieldEncoding
FromJSONKeyFunction H264FieldEncoding
-> FromJSONKeyFunction [H264FieldEncoding]
-> FromJSONKey H264FieldEncoding
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264FieldEncoding]
$cfromJSONKeyList :: FromJSONKeyFunction [H264FieldEncoding]
fromJSONKey :: FromJSONKeyFunction H264FieldEncoding
$cfromJSONKey :: FromJSONKeyFunction H264FieldEncoding
Core.FromJSONKey,
      [H264FieldEncoding] -> Encoding
[H264FieldEncoding] -> Value
H264FieldEncoding -> Encoding
H264FieldEncoding -> Value
(H264FieldEncoding -> Value)
-> (H264FieldEncoding -> Encoding)
-> ([H264FieldEncoding] -> Value)
-> ([H264FieldEncoding] -> Encoding)
-> ToJSON H264FieldEncoding
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H264FieldEncoding] -> Encoding
$ctoEncodingList :: [H264FieldEncoding] -> Encoding
toJSONList :: [H264FieldEncoding] -> Value
$ctoJSONList :: [H264FieldEncoding] -> Value
toEncoding :: H264FieldEncoding -> Encoding
$ctoEncoding :: H264FieldEncoding -> Encoding
toJSON :: H264FieldEncoding -> Value
$ctoJSON :: H264FieldEncoding -> Value
Core.ToJSON,
      ToJSONKeyFunction [H264FieldEncoding]
ToJSONKeyFunction H264FieldEncoding
ToJSONKeyFunction H264FieldEncoding
-> ToJSONKeyFunction [H264FieldEncoding]
-> ToJSONKey H264FieldEncoding
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264FieldEncoding]
$ctoJSONKeyList :: ToJSONKeyFunction [H264FieldEncoding]
toJSONKey :: ToJSONKeyFunction H264FieldEncoding
$ctoJSONKey :: ToJSONKeyFunction H264FieldEncoding
Core.ToJSONKey,
      [Node] -> Either String H264FieldEncoding
([Node] -> Either String H264FieldEncoding)
-> FromXML H264FieldEncoding
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264FieldEncoding
$cparseXML :: [Node] -> Either String H264FieldEncoding
Core.FromXML,
      H264FieldEncoding -> XML
(H264FieldEncoding -> XML) -> ToXML H264FieldEncoding
forall a. (a -> XML) -> ToXML a
toXML :: H264FieldEncoding -> XML
$ctoXML :: H264FieldEncoding -> XML
Core.ToXML
    )

pattern H264FieldEncoding_FORCE_FIELD :: H264FieldEncoding
pattern $bH264FieldEncoding_FORCE_FIELD :: H264FieldEncoding
$mH264FieldEncoding_FORCE_FIELD :: forall r. H264FieldEncoding -> (Void# -> r) -> (Void# -> r) -> r
H264FieldEncoding_FORCE_FIELD = H264FieldEncoding' "FORCE_FIELD"

pattern H264FieldEncoding_MBAFF :: H264FieldEncoding
pattern $bH264FieldEncoding_MBAFF :: H264FieldEncoding
$mH264FieldEncoding_MBAFF :: forall r. H264FieldEncoding -> (Void# -> r) -> (Void# -> r) -> r
H264FieldEncoding_MBAFF = H264FieldEncoding' "MBAFF"

pattern H264FieldEncoding_PAFF :: H264FieldEncoding
pattern $bH264FieldEncoding_PAFF :: H264FieldEncoding
$mH264FieldEncoding_PAFF :: forall r. H264FieldEncoding -> (Void# -> r) -> (Void# -> r) -> r
H264FieldEncoding_PAFF = H264FieldEncoding' "PAFF"

{-# COMPLETE
  H264FieldEncoding_FORCE_FIELD,
  H264FieldEncoding_MBAFF,
  H264FieldEncoding_PAFF,
  H264FieldEncoding'
  #-}