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

pattern AvcIntraTelecine_HARD :: AvcIntraTelecine
pattern $bAvcIntraTelecine_HARD :: AvcIntraTelecine
$mAvcIntraTelecine_HARD :: forall r. AvcIntraTelecine -> (Void# -> r) -> (Void# -> r) -> r
AvcIntraTelecine_HARD = AvcIntraTelecine' "HARD"

pattern AvcIntraTelecine_NONE :: AvcIntraTelecine
pattern $bAvcIntraTelecine_NONE :: AvcIntraTelecine
$mAvcIntraTelecine_NONE :: forall r. AvcIntraTelecine -> (Void# -> r) -> (Void# -> r) -> r
AvcIntraTelecine_NONE = AvcIntraTelecine' "NONE"

{-# COMPLETE
  AvcIntraTelecine_HARD,
  AvcIntraTelecine_NONE,
  AvcIntraTelecine'
  #-}