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

pattern H264Telecine_HARD :: H264Telecine
pattern $bH264Telecine_HARD :: H264Telecine
$mH264Telecine_HARD :: forall r. H264Telecine -> (Void# -> r) -> (Void# -> r) -> r
H264Telecine_HARD = H264Telecine' "HARD"

pattern H264Telecine_NONE :: H264Telecine
pattern $bH264Telecine_NONE :: H264Telecine
$mH264Telecine_NONE :: forall r. H264Telecine -> (Void# -> r) -> (Void# -> r) -> r
H264Telecine_NONE = H264Telecine' "NONE"

pattern H264Telecine_SOFT :: H264Telecine
pattern $bH264Telecine_SOFT :: H264Telecine
$mH264Telecine_SOFT :: forall r. H264Telecine -> (Void# -> r) -> (Void# -> r) -> r
H264Telecine_SOFT = H264Telecine' "SOFT"

{-# COMPLETE
  H264Telecine_HARD,
  H264Telecine_NONE,
  H264Telecine_SOFT,
  H264Telecine'
  #-}