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

pattern H265SlowPal_DISABLED :: H265SlowPal
pattern $bH265SlowPal_DISABLED :: H265SlowPal
$mH265SlowPal_DISABLED :: forall r. H265SlowPal -> (Void# -> r) -> (Void# -> r) -> r
H265SlowPal_DISABLED = H265SlowPal' "DISABLED"

pattern H265SlowPal_ENABLED :: H265SlowPal
pattern $bH265SlowPal_ENABLED :: H265SlowPal
$mH265SlowPal_ENABLED :: forall r. H265SlowPal -> (Void# -> r) -> (Void# -> r) -> r
H265SlowPal_ENABLED = H265SlowPal' "ENABLED"

{-# COMPLETE
  H265SlowPal_DISABLED,
  H265SlowPal_ENABLED,
  H265SlowPal'
  #-}