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

pattern Vc3Telecine_HARD :: Vc3Telecine
pattern $bVc3Telecine_HARD :: Vc3Telecine
$mVc3Telecine_HARD :: forall r. Vc3Telecine -> (Void# -> r) -> (Void# -> r) -> r
Vc3Telecine_HARD = Vc3Telecine' "HARD"

pattern Vc3Telecine_NONE :: Vc3Telecine
pattern $bVc3Telecine_NONE :: Vc3Telecine
$mVc3Telecine_NONE :: forall r. Vc3Telecine -> (Void# -> r) -> (Void# -> r) -> r
Vc3Telecine_NONE = Vc3Telecine' "NONE"

{-# COMPLETE
  Vc3Telecine_HARD,
  Vc3Telecine_NONE,
  Vc3Telecine'
  #-}