{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> H264SlowPal -> ShowS
[H264SlowPal] -> ShowS
H264SlowPal -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq H264SlowPal
Int -> H264SlowPal -> Int
H264SlowPal -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: H264SlowPal -> ()
$crnf :: H264SlowPal -> ()
Prelude.NFData,
      Text -> Either String H264SlowPal
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H264SlowPal
$cfromText :: Text -> Either String H264SlowPal
Data.FromText,
      H264SlowPal -> Text
forall a. (a -> Text) -> ToText a
toText :: H264SlowPal -> Text
$ctoText :: H264SlowPal -> Text
Data.ToText,
      H264SlowPal -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: H264SlowPal -> ByteString
$ctoBS :: H264SlowPal -> ByteString
Data.ToByteString,
      H264SlowPal -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H264SlowPal -> ByteStringBuilder
$cbuild :: H264SlowPal -> ByteStringBuilder
Data.ToLog,
      HeaderName -> H264SlowPal -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H264SlowPal -> [Header]
$ctoHeader :: HeaderName -> H264SlowPal -> [Header]
Data.ToHeader,
      H264SlowPal -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H264SlowPal -> QueryString
$ctoQuery :: H264SlowPal -> QueryString
Data.ToQuery,
      Value -> Parser [H264SlowPal]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [H264SlowPal]
FromJSONKeyFunction H264SlowPal
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H264SlowPal]
$cfromJSONKeyList :: FromJSONKeyFunction [H264SlowPal]
fromJSONKey :: FromJSONKeyFunction H264SlowPal
$cfromJSONKey :: FromJSONKeyFunction H264SlowPal
Data.FromJSONKey,
      [H264SlowPal] -> Encoding
[H264SlowPal] -> Value
H264SlowPal -> Encoding
H264SlowPal -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [H264SlowPal]
ToJSONKeyFunction H264SlowPal
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H264SlowPal]
$ctoJSONKeyList :: ToJSONKeyFunction [H264SlowPal]
toJSONKey :: ToJSONKeyFunction H264SlowPal
$ctoJSONKey :: ToJSONKeyFunction H264SlowPal
Data.ToJSONKey,
      [Node] -> Either String H264SlowPal
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H264SlowPal
$cparseXML :: [Node] -> Either String H264SlowPal
Data.FromXML,
      H264SlowPal -> XML
forall a. (a -> XML) -> ToXML a
toXML :: H264SlowPal -> XML
$ctoXML :: H264SlowPal -> XML
Data.ToXML
    )

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

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

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