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

pattern ProresTelecine_HARD :: ProresTelecine
pattern $bProresTelecine_HARD :: ProresTelecine
$mProresTelecine_HARD :: forall r. ProresTelecine -> (Void# -> r) -> (Void# -> r) -> r
ProresTelecine_HARD = ProresTelecine' "HARD"

pattern ProresTelecine_NONE :: ProresTelecine
pattern $bProresTelecine_NONE :: ProresTelecine
$mProresTelecine_NONE :: forall r. ProresTelecine -> (Void# -> r) -> (Void# -> r) -> r
ProresTelecine_NONE = ProresTelecine' "NONE"

{-# COMPLETE
  ProresTelecine_HARD,
  ProresTelecine_NONE,
  ProresTelecine'
  #-}