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

pattern Mpeg2SlowPal_DISABLED :: Mpeg2SlowPal
pattern $bMpeg2SlowPal_DISABLED :: Mpeg2SlowPal
$mMpeg2SlowPal_DISABLED :: forall r. Mpeg2SlowPal -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2SlowPal_DISABLED = Mpeg2SlowPal' "DISABLED"

pattern Mpeg2SlowPal_ENABLED :: Mpeg2SlowPal
pattern $bMpeg2SlowPal_ENABLED :: Mpeg2SlowPal
$mMpeg2SlowPal_ENABLED :: forall r. Mpeg2SlowPal -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2SlowPal_ENABLED = Mpeg2SlowPal' "ENABLED"

{-# COMPLETE
  Mpeg2SlowPal_DISABLED,
  Mpeg2SlowPal_ENABLED,
  Mpeg2SlowPal'
  #-}