{-# 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.Mpeg2Telecine
-- 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.Mpeg2Telecine
  ( Mpeg2Telecine
      ( ..,
        Mpeg2Telecine_HARD,
        Mpeg2Telecine_NONE,
        Mpeg2Telecine_SOFT
      ),
  )
where

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

-- | When you do frame rate conversion from 23.976 frames per second (fps) to
-- 29.97 fps, and your output scan type is interlaced, you can optionally
-- enable hard or soft telecine to create a smoother picture. Hard telecine
-- (HARD) produces a 29.97i output. Soft telecine (SOFT) produces an output
-- with a 23.976 output that signals to the video player device to do the
-- conversion during play back. When you keep the default value, None
-- (NONE), MediaConvert does a standard frame rate conversion to 29.97
-- without doing anything with the field polarity to create a smoother
-- picture.
newtype Mpeg2Telecine = Mpeg2Telecine'
  { Mpeg2Telecine -> Text
fromMpeg2Telecine ::
      Core.Text
  }
  deriving stock
    ( Int -> Mpeg2Telecine -> ShowS
[Mpeg2Telecine] -> ShowS
Mpeg2Telecine -> String
(Int -> Mpeg2Telecine -> ShowS)
-> (Mpeg2Telecine -> String)
-> ([Mpeg2Telecine] -> ShowS)
-> Show Mpeg2Telecine
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Mpeg2Telecine] -> ShowS
$cshowList :: [Mpeg2Telecine] -> ShowS
show :: Mpeg2Telecine -> String
$cshow :: Mpeg2Telecine -> String
showsPrec :: Int -> Mpeg2Telecine -> ShowS
$cshowsPrec :: Int -> Mpeg2Telecine -> ShowS
Prelude.Show,
      ReadPrec [Mpeg2Telecine]
ReadPrec Mpeg2Telecine
Int -> ReadS Mpeg2Telecine
ReadS [Mpeg2Telecine]
(Int -> ReadS Mpeg2Telecine)
-> ReadS [Mpeg2Telecine]
-> ReadPrec Mpeg2Telecine
-> ReadPrec [Mpeg2Telecine]
-> Read Mpeg2Telecine
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Mpeg2Telecine]
$creadListPrec :: ReadPrec [Mpeg2Telecine]
readPrec :: ReadPrec Mpeg2Telecine
$creadPrec :: ReadPrec Mpeg2Telecine
readList :: ReadS [Mpeg2Telecine]
$creadList :: ReadS [Mpeg2Telecine]
readsPrec :: Int -> ReadS Mpeg2Telecine
$creadsPrec :: Int -> ReadS Mpeg2Telecine
Prelude.Read,
      Mpeg2Telecine -> Mpeg2Telecine -> Bool
(Mpeg2Telecine -> Mpeg2Telecine -> Bool)
-> (Mpeg2Telecine -> Mpeg2Telecine -> Bool) -> Eq Mpeg2Telecine
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
$c/= :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
== :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
$c== :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
Prelude.Eq,
      Eq Mpeg2Telecine
Eq Mpeg2Telecine
-> (Mpeg2Telecine -> Mpeg2Telecine -> Ordering)
-> (Mpeg2Telecine -> Mpeg2Telecine -> Bool)
-> (Mpeg2Telecine -> Mpeg2Telecine -> Bool)
-> (Mpeg2Telecine -> Mpeg2Telecine -> Bool)
-> (Mpeg2Telecine -> Mpeg2Telecine -> Bool)
-> (Mpeg2Telecine -> Mpeg2Telecine -> Mpeg2Telecine)
-> (Mpeg2Telecine -> Mpeg2Telecine -> Mpeg2Telecine)
-> Ord Mpeg2Telecine
Mpeg2Telecine -> Mpeg2Telecine -> Bool
Mpeg2Telecine -> Mpeg2Telecine -> Ordering
Mpeg2Telecine -> Mpeg2Telecine -> Mpeg2Telecine
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 :: Mpeg2Telecine -> Mpeg2Telecine -> Mpeg2Telecine
$cmin :: Mpeg2Telecine -> Mpeg2Telecine -> Mpeg2Telecine
max :: Mpeg2Telecine -> Mpeg2Telecine -> Mpeg2Telecine
$cmax :: Mpeg2Telecine -> Mpeg2Telecine -> Mpeg2Telecine
>= :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
$c>= :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
> :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
$c> :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
<= :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
$c<= :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
< :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
$c< :: Mpeg2Telecine -> Mpeg2Telecine -> Bool
compare :: Mpeg2Telecine -> Mpeg2Telecine -> Ordering
$ccompare :: Mpeg2Telecine -> Mpeg2Telecine -> Ordering
$cp1Ord :: Eq Mpeg2Telecine
Prelude.Ord,
      (forall x. Mpeg2Telecine -> Rep Mpeg2Telecine x)
-> (forall x. Rep Mpeg2Telecine x -> Mpeg2Telecine)
-> Generic Mpeg2Telecine
forall x. Rep Mpeg2Telecine x -> Mpeg2Telecine
forall x. Mpeg2Telecine -> Rep Mpeg2Telecine x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Mpeg2Telecine x -> Mpeg2Telecine
$cfrom :: forall x. Mpeg2Telecine -> Rep Mpeg2Telecine x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Mpeg2Telecine -> Int
Mpeg2Telecine -> Int
(Int -> Mpeg2Telecine -> Int)
-> (Mpeg2Telecine -> Int) -> Hashable Mpeg2Telecine
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Mpeg2Telecine -> Int
$chash :: Mpeg2Telecine -> Int
hashWithSalt :: Int -> Mpeg2Telecine -> Int
$chashWithSalt :: Int -> Mpeg2Telecine -> Int
Prelude.Hashable,
      Mpeg2Telecine -> ()
(Mpeg2Telecine -> ()) -> NFData Mpeg2Telecine
forall a. (a -> ()) -> NFData a
rnf :: Mpeg2Telecine -> ()
$crnf :: Mpeg2Telecine -> ()
Prelude.NFData,
      Text -> Either String Mpeg2Telecine
(Text -> Either String Mpeg2Telecine) -> FromText Mpeg2Telecine
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mpeg2Telecine
$cfromText :: Text -> Either String Mpeg2Telecine
Core.FromText,
      Mpeg2Telecine -> Text
(Mpeg2Telecine -> Text) -> ToText Mpeg2Telecine
forall a. (a -> Text) -> ToText a
toText :: Mpeg2Telecine -> Text
$ctoText :: Mpeg2Telecine -> Text
Core.ToText,
      Mpeg2Telecine -> ByteString
(Mpeg2Telecine -> ByteString) -> ToByteString Mpeg2Telecine
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mpeg2Telecine -> ByteString
$ctoBS :: Mpeg2Telecine -> ByteString
Core.ToByteString,
      Mpeg2Telecine -> ByteStringBuilder
(Mpeg2Telecine -> ByteStringBuilder) -> ToLog Mpeg2Telecine
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mpeg2Telecine -> ByteStringBuilder
$cbuild :: Mpeg2Telecine -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Mpeg2Telecine -> [Header]
(HeaderName -> Mpeg2Telecine -> [Header]) -> ToHeader Mpeg2Telecine
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mpeg2Telecine -> [Header]
$ctoHeader :: HeaderName -> Mpeg2Telecine -> [Header]
Core.ToHeader,
      Mpeg2Telecine -> QueryString
(Mpeg2Telecine -> QueryString) -> ToQuery Mpeg2Telecine
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mpeg2Telecine -> QueryString
$ctoQuery :: Mpeg2Telecine -> QueryString
Core.ToQuery,
      Value -> Parser [Mpeg2Telecine]
Value -> Parser Mpeg2Telecine
(Value -> Parser Mpeg2Telecine)
-> (Value -> Parser [Mpeg2Telecine]) -> FromJSON Mpeg2Telecine
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Mpeg2Telecine]
$cparseJSONList :: Value -> Parser [Mpeg2Telecine]
parseJSON :: Value -> Parser Mpeg2Telecine
$cparseJSON :: Value -> Parser Mpeg2Telecine
Core.FromJSON,
      FromJSONKeyFunction [Mpeg2Telecine]
FromJSONKeyFunction Mpeg2Telecine
FromJSONKeyFunction Mpeg2Telecine
-> FromJSONKeyFunction [Mpeg2Telecine] -> FromJSONKey Mpeg2Telecine
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mpeg2Telecine]
$cfromJSONKeyList :: FromJSONKeyFunction [Mpeg2Telecine]
fromJSONKey :: FromJSONKeyFunction Mpeg2Telecine
$cfromJSONKey :: FromJSONKeyFunction Mpeg2Telecine
Core.FromJSONKey,
      [Mpeg2Telecine] -> Encoding
[Mpeg2Telecine] -> Value
Mpeg2Telecine -> Encoding
Mpeg2Telecine -> Value
(Mpeg2Telecine -> Value)
-> (Mpeg2Telecine -> Encoding)
-> ([Mpeg2Telecine] -> Value)
-> ([Mpeg2Telecine] -> Encoding)
-> ToJSON Mpeg2Telecine
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Mpeg2Telecine] -> Encoding
$ctoEncodingList :: [Mpeg2Telecine] -> Encoding
toJSONList :: [Mpeg2Telecine] -> Value
$ctoJSONList :: [Mpeg2Telecine] -> Value
toEncoding :: Mpeg2Telecine -> Encoding
$ctoEncoding :: Mpeg2Telecine -> Encoding
toJSON :: Mpeg2Telecine -> Value
$ctoJSON :: Mpeg2Telecine -> Value
Core.ToJSON,
      ToJSONKeyFunction [Mpeg2Telecine]
ToJSONKeyFunction Mpeg2Telecine
ToJSONKeyFunction Mpeg2Telecine
-> ToJSONKeyFunction [Mpeg2Telecine] -> ToJSONKey Mpeg2Telecine
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mpeg2Telecine]
$ctoJSONKeyList :: ToJSONKeyFunction [Mpeg2Telecine]
toJSONKey :: ToJSONKeyFunction Mpeg2Telecine
$ctoJSONKey :: ToJSONKeyFunction Mpeg2Telecine
Core.ToJSONKey,
      [Node] -> Either String Mpeg2Telecine
([Node] -> Either String Mpeg2Telecine) -> FromXML Mpeg2Telecine
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mpeg2Telecine
$cparseXML :: [Node] -> Either String Mpeg2Telecine
Core.FromXML,
      Mpeg2Telecine -> XML
(Mpeg2Telecine -> XML) -> ToXML Mpeg2Telecine
forall a. (a -> XML) -> ToXML a
toXML :: Mpeg2Telecine -> XML
$ctoXML :: Mpeg2Telecine -> XML
Core.ToXML
    )

pattern Mpeg2Telecine_HARD :: Mpeg2Telecine
pattern $bMpeg2Telecine_HARD :: Mpeg2Telecine
$mMpeg2Telecine_HARD :: forall r. Mpeg2Telecine -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2Telecine_HARD = Mpeg2Telecine' "HARD"

pattern Mpeg2Telecine_NONE :: Mpeg2Telecine
pattern $bMpeg2Telecine_NONE :: Mpeg2Telecine
$mMpeg2Telecine_NONE :: forall r. Mpeg2Telecine -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2Telecine_NONE = Mpeg2Telecine' "NONE"

pattern Mpeg2Telecine_SOFT :: Mpeg2Telecine
pattern $bMpeg2Telecine_SOFT :: Mpeg2Telecine
$mMpeg2Telecine_SOFT :: forall r. Mpeg2Telecine -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2Telecine_SOFT = Mpeg2Telecine' "SOFT"

{-# COMPLETE
  Mpeg2Telecine_HARD,
  Mpeg2Telecine_NONE,
  Mpeg2Telecine_SOFT,
  Mpeg2Telecine'
  #-}