{-# 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.H264SlowPal
-- 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.H264SlowPal
  ( H264SlowPal
      ( ..,
        H264SlowPal_DISABLED,
        H264SlowPal_ENABLED
      ),
  )
where

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

-- | Ignore this setting unless your input frame rate is 23.976 or 24 frames
-- per second (fps). Enable slow PAL to create a 25 fps output. When you
-- enable slow PAL, MediaConvert relabels the video frames to 25 fps and
-- resamples your audio to keep it synchronized with the video. Note that
-- enabling this setting will slightly reduce the duration of your video.
-- Required settings: You must also set Framerate to 25. In your JSON job
-- specification, set (framerateControl) to (SPECIFIED),
-- (framerateNumerator) to 25 and (framerateDenominator) to 1.
newtype H264SlowPal = H264SlowPal'
  { H264SlowPal -> Text
fromH264SlowPal ::
      Core.Text
  }
  deriving stock
    ( Int -> H264SlowPal -> ShowS
[H264SlowPal] -> ShowS
H264SlowPal -> String
(Int -> H264SlowPal -> ShowS)
-> (H264SlowPal -> String)
-> ([H264SlowPal] -> ShowS)
-> Show H264SlowPal
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H264SlowPal] -> ShowS
$cshowList :: [H264SlowPal] -> ShowS
show :: H264SlowPal -> String
$cshow :: H264SlowPal -> String
showsPrec :: Int -> H264SlowPal -> ShowS
$cshowsPrec :: Int -> H264SlowPal -> ShowS
Prelude.Show,
      ReadPrec [H264SlowPal]
ReadPrec H264SlowPal
Int -> ReadS H264SlowPal
ReadS [H264SlowPal]
(Int -> ReadS H264SlowPal)
-> ReadS [H264SlowPal]
-> ReadPrec H264SlowPal
-> ReadPrec [H264SlowPal]
-> Read H264SlowPal
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H264SlowPal]
$creadListPrec :: ReadPrec [H264SlowPal]
readPrec :: ReadPrec H264SlowPal
$creadPrec :: ReadPrec H264SlowPal
readList :: ReadS [H264SlowPal]
$creadList :: ReadS [H264SlowPal]
readsPrec :: Int -> ReadS H264SlowPal
$creadsPrec :: Int -> ReadS H264SlowPal
Prelude.Read,
      H264SlowPal -> H264SlowPal -> Bool
(H264SlowPal -> H264SlowPal -> Bool)
-> (H264SlowPal -> H264SlowPal -> Bool) -> Eq H264SlowPal
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H264SlowPal -> H264SlowPal -> Bool
$c/= :: H264SlowPal -> H264SlowPal -> Bool
== :: H264SlowPal -> H264SlowPal -> Bool
$c== :: H264SlowPal -> H264SlowPal -> Bool
Prelude.Eq,
      Eq H264SlowPal
Eq H264SlowPal
-> (H264SlowPal -> H264SlowPal -> Ordering)
-> (H264SlowPal -> H264SlowPal -> Bool)
-> (H264SlowPal -> H264SlowPal -> Bool)
-> (H264SlowPal -> H264SlowPal -> Bool)
-> (H264SlowPal -> H264SlowPal -> Bool)
-> (H264SlowPal -> H264SlowPal -> H264SlowPal)
-> (H264SlowPal -> H264SlowPal -> H264SlowPal)
-> Ord H264SlowPal
H264SlowPal -> H264SlowPal -> Bool
H264SlowPal -> H264SlowPal -> Ordering
H264SlowPal -> H264SlowPal -> H264SlowPal
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 :: H264SlowPal -> H264SlowPal -> H264SlowPal
$cmin :: H264SlowPal -> H264SlowPal -> H264SlowPal
max :: H264SlowPal -> H264SlowPal -> H264SlowPal
$cmax :: H264SlowPal -> H264SlowPal -> H264SlowPal
>= :: H264SlowPal -> H264SlowPal -> Bool
$c>= :: H264SlowPal -> H264SlowPal -> Bool
> :: H264SlowPal -> H264SlowPal -> Bool
$c> :: H264SlowPal -> H264SlowPal -> Bool
<= :: H264SlowPal -> H264SlowPal -> Bool
$c<= :: H264SlowPal -> H264SlowPal -> Bool
< :: H264SlowPal -> H264SlowPal -> Bool
$c< :: H264SlowPal -> H264SlowPal -> Bool
compare :: H264SlowPal -> H264SlowPal -> Ordering
$ccompare :: H264SlowPal -> H264SlowPal -> Ordering
$cp1Ord :: Eq H264SlowPal
Prelude.Ord,
      (forall x. H264SlowPal -> Rep H264SlowPal x)
-> (forall x. Rep H264SlowPal x -> H264SlowPal)
-> Generic H264SlowPal
forall x. Rep H264SlowPal x -> H264SlowPal
forall x. H264SlowPal -> Rep H264SlowPal x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H264SlowPal x -> H264SlowPal
$cfrom :: forall x. H264SlowPal -> Rep H264SlowPal x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H264SlowPal -> Int
H264SlowPal -> Int
(Int -> H264SlowPal -> Int)
-> (H264SlowPal -> Int) -> Hashable H264SlowPal
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H264SlowPal -> Int
$chash :: H264SlowPal -> Int
hashWithSalt :: Int -> H264SlowPal -> Int
$chashWithSalt :: Int -> H264SlowPal -> Int
Prelude.Hashable,
      H264SlowPal -> ()
(H264SlowPal -> ()) -> NFData H264SlowPal
forall a. (a -> ()) -> NFData a
rnf :: H264SlowPal -> ()
$crnf :: H264SlowPal -> ()
Prelude.NFData,
      Text -> Either String H264SlowPal
(Text -> Either String H264SlowPal) -> FromText H264SlowPal
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264SlowPal
$cfromText :: Text -> Either String H264SlowPal
Core.FromText,
      H264SlowPal -> Text
(H264SlowPal -> Text) -> ToText H264SlowPal
forall a. (a -> Text) -> ToText a
toText :: H264SlowPal -> Text
$ctoText :: H264SlowPal -> Text
Core.ToText,
      H264SlowPal -> ByteString
(H264SlowPal -> ByteString) -> ToByteString H264SlowPal
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264SlowPal -> ByteString
$ctoBS :: H264SlowPal -> ByteString
Core.ToByteString,
      H264SlowPal -> ByteStringBuilder
(H264SlowPal -> ByteStringBuilder) -> ToLog H264SlowPal
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264SlowPal -> ByteStringBuilder
$cbuild :: H264SlowPal -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H264SlowPal -> [Header]
(HeaderName -> H264SlowPal -> [Header]) -> ToHeader H264SlowPal
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264SlowPal -> [Header]
$ctoHeader :: HeaderName -> H264SlowPal -> [Header]
Core.ToHeader,
      H264SlowPal -> QueryString
(H264SlowPal -> QueryString) -> ToQuery H264SlowPal
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264SlowPal -> QueryString
$ctoQuery :: H264SlowPal -> QueryString
Core.ToQuery,
      Value -> Parser [H264SlowPal]
Value -> Parser H264SlowPal
(Value -> Parser H264SlowPal)
-> (Value -> Parser [H264SlowPal]) -> FromJSON H264SlowPal
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H264SlowPal]
$cparseJSONList :: Value -> Parser [H264SlowPal]
parseJSON :: Value -> Parser H264SlowPal
$cparseJSON :: Value -> Parser H264SlowPal
Core.FromJSON,
      FromJSONKeyFunction [H264SlowPal]
FromJSONKeyFunction H264SlowPal
FromJSONKeyFunction H264SlowPal
-> FromJSONKeyFunction [H264SlowPal] -> FromJSONKey H264SlowPal
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264SlowPal]
$cfromJSONKeyList :: FromJSONKeyFunction [H264SlowPal]
fromJSONKey :: FromJSONKeyFunction H264SlowPal
$cfromJSONKey :: FromJSONKeyFunction H264SlowPal
Core.FromJSONKey,
      [H264SlowPal] -> Encoding
[H264SlowPal] -> Value
H264SlowPal -> Encoding
H264SlowPal -> Value
(H264SlowPal -> Value)
-> (H264SlowPal -> Encoding)
-> ([H264SlowPal] -> Value)
-> ([H264SlowPal] -> Encoding)
-> ToJSON H264SlowPal
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H264SlowPal] -> Encoding
$ctoEncodingList :: [H264SlowPal] -> Encoding
toJSONList :: [H264SlowPal] -> Value
$ctoJSONList :: [H264SlowPal] -> Value
toEncoding :: H264SlowPal -> Encoding
$ctoEncoding :: H264SlowPal -> Encoding
toJSON :: H264SlowPal -> Value
$ctoJSON :: H264SlowPal -> Value
Core.ToJSON,
      ToJSONKeyFunction [H264SlowPal]
ToJSONKeyFunction H264SlowPal
ToJSONKeyFunction H264SlowPal
-> ToJSONKeyFunction [H264SlowPal] -> ToJSONKey H264SlowPal
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264SlowPal]
$ctoJSONKeyList :: ToJSONKeyFunction [H264SlowPal]
toJSONKey :: ToJSONKeyFunction H264SlowPal
$ctoJSONKey :: ToJSONKeyFunction H264SlowPal
Core.ToJSONKey,
      [Node] -> Either String H264SlowPal
([Node] -> Either String H264SlowPal) -> FromXML H264SlowPal
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264SlowPal
$cparseXML :: [Node] -> Either String H264SlowPal
Core.FromXML,
      H264SlowPal -> XML
(H264SlowPal -> XML) -> ToXML H264SlowPal
forall a. (a -> XML) -> ToXML a
toXML :: H264SlowPal -> XML
$ctoXML :: H264SlowPal -> XML
Core.ToXML
    )

pattern H264SlowPal_DISABLED :: H264SlowPal
pattern $bH264SlowPal_DISABLED :: H264SlowPal
$mH264SlowPal_DISABLED :: forall r. H264SlowPal -> (Void# -> r) -> (Void# -> r) -> r
H264SlowPal_DISABLED = H264SlowPal' "DISABLED"

pattern H264SlowPal_ENABLED :: H264SlowPal
pattern $bH264SlowPal_ENABLED :: H264SlowPal
$mH264SlowPal_ENABLED :: forall r. H264SlowPal -> (Void# -> r) -> (Void# -> r) -> r
H264SlowPal_ENABLED = H264SlowPal' "ENABLED"

{-# COMPLETE
  H264SlowPal_DISABLED,
  H264SlowPal_ENABLED,
  H264SlowPal'
  #-}