{-# 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.DeinterlacerMode
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.DeinterlacerMode
  ( DeinterlacerMode
      ( ..,
        DeinterlacerMode_ADAPTIVE,
        DeinterlacerMode_DEINTERLACE,
        DeinterlacerMode_INVERSE_TELECINE
      ),
  )
where

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

-- | Use Deinterlacer (DeinterlaceMode) to choose how the service will do
-- deinterlacing. Default is Deinterlace. - Deinterlace converts interlaced
-- to progressive. - Inverse telecine converts Hard Telecine 29.97i to
-- progressive 23.976p. - Adaptive auto-detects and converts to
-- progressive.
newtype DeinterlacerMode = DeinterlacerMode'
  { DeinterlacerMode -> Text
fromDeinterlacerMode ::
      Data.Text
  }
  deriving stock
    ( Int -> DeinterlacerMode -> ShowS
[DeinterlacerMode] -> ShowS
DeinterlacerMode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeinterlacerMode] -> ShowS
$cshowList :: [DeinterlacerMode] -> ShowS
show :: DeinterlacerMode -> String
$cshow :: DeinterlacerMode -> String
showsPrec :: Int -> DeinterlacerMode -> ShowS
$cshowsPrec :: Int -> DeinterlacerMode -> ShowS
Prelude.Show,
      ReadPrec [DeinterlacerMode]
ReadPrec DeinterlacerMode
Int -> ReadS DeinterlacerMode
ReadS [DeinterlacerMode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeinterlacerMode]
$creadListPrec :: ReadPrec [DeinterlacerMode]
readPrec :: ReadPrec DeinterlacerMode
$creadPrec :: ReadPrec DeinterlacerMode
readList :: ReadS [DeinterlacerMode]
$creadList :: ReadS [DeinterlacerMode]
readsPrec :: Int -> ReadS DeinterlacerMode
$creadsPrec :: Int -> ReadS DeinterlacerMode
Prelude.Read,
      DeinterlacerMode -> DeinterlacerMode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeinterlacerMode -> DeinterlacerMode -> Bool
$c/= :: DeinterlacerMode -> DeinterlacerMode -> Bool
== :: DeinterlacerMode -> DeinterlacerMode -> Bool
$c== :: DeinterlacerMode -> DeinterlacerMode -> Bool
Prelude.Eq,
      Eq DeinterlacerMode
DeinterlacerMode -> DeinterlacerMode -> Bool
DeinterlacerMode -> DeinterlacerMode -> Ordering
DeinterlacerMode -> DeinterlacerMode -> DeinterlacerMode
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 :: DeinterlacerMode -> DeinterlacerMode -> DeinterlacerMode
$cmin :: DeinterlacerMode -> DeinterlacerMode -> DeinterlacerMode
max :: DeinterlacerMode -> DeinterlacerMode -> DeinterlacerMode
$cmax :: DeinterlacerMode -> DeinterlacerMode -> DeinterlacerMode
>= :: DeinterlacerMode -> DeinterlacerMode -> Bool
$c>= :: DeinterlacerMode -> DeinterlacerMode -> Bool
> :: DeinterlacerMode -> DeinterlacerMode -> Bool
$c> :: DeinterlacerMode -> DeinterlacerMode -> Bool
<= :: DeinterlacerMode -> DeinterlacerMode -> Bool
$c<= :: DeinterlacerMode -> DeinterlacerMode -> Bool
< :: DeinterlacerMode -> DeinterlacerMode -> Bool
$c< :: DeinterlacerMode -> DeinterlacerMode -> Bool
compare :: DeinterlacerMode -> DeinterlacerMode -> Ordering
$ccompare :: DeinterlacerMode -> DeinterlacerMode -> Ordering
Prelude.Ord,
      forall x. Rep DeinterlacerMode x -> DeinterlacerMode
forall x. DeinterlacerMode -> Rep DeinterlacerMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeinterlacerMode x -> DeinterlacerMode
$cfrom :: forall x. DeinterlacerMode -> Rep DeinterlacerMode x
Prelude.Generic
    )
  deriving newtype
    ( Eq DeinterlacerMode
Int -> DeinterlacerMode -> Int
DeinterlacerMode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DeinterlacerMode -> Int
$chash :: DeinterlacerMode -> Int
hashWithSalt :: Int -> DeinterlacerMode -> Int
$chashWithSalt :: Int -> DeinterlacerMode -> Int
Prelude.Hashable,
      DeinterlacerMode -> ()
forall a. (a -> ()) -> NFData a
rnf :: DeinterlacerMode -> ()
$crnf :: DeinterlacerMode -> ()
Prelude.NFData,
      Text -> Either String DeinterlacerMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeinterlacerMode
$cfromText :: Text -> Either String DeinterlacerMode
Data.FromText,
      DeinterlacerMode -> Text
forall a. (a -> Text) -> ToText a
toText :: DeinterlacerMode -> Text
$ctoText :: DeinterlacerMode -> Text
Data.ToText,
      DeinterlacerMode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeinterlacerMode -> ByteString
$ctoBS :: DeinterlacerMode -> ByteString
Data.ToByteString,
      DeinterlacerMode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeinterlacerMode -> ByteStringBuilder
$cbuild :: DeinterlacerMode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DeinterlacerMode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeinterlacerMode -> [Header]
$ctoHeader :: HeaderName -> DeinterlacerMode -> [Header]
Data.ToHeader,
      DeinterlacerMode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeinterlacerMode -> QueryString
$ctoQuery :: DeinterlacerMode -> QueryString
Data.ToQuery,
      Value -> Parser [DeinterlacerMode]
Value -> Parser DeinterlacerMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DeinterlacerMode]
$cparseJSONList :: Value -> Parser [DeinterlacerMode]
parseJSON :: Value -> Parser DeinterlacerMode
$cparseJSON :: Value -> Parser DeinterlacerMode
Data.FromJSON,
      FromJSONKeyFunction [DeinterlacerMode]
FromJSONKeyFunction DeinterlacerMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeinterlacerMode]
$cfromJSONKeyList :: FromJSONKeyFunction [DeinterlacerMode]
fromJSONKey :: FromJSONKeyFunction DeinterlacerMode
$cfromJSONKey :: FromJSONKeyFunction DeinterlacerMode
Data.FromJSONKey,
      [DeinterlacerMode] -> Encoding
[DeinterlacerMode] -> Value
DeinterlacerMode -> Encoding
DeinterlacerMode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DeinterlacerMode] -> Encoding
$ctoEncodingList :: [DeinterlacerMode] -> Encoding
toJSONList :: [DeinterlacerMode] -> Value
$ctoJSONList :: [DeinterlacerMode] -> Value
toEncoding :: DeinterlacerMode -> Encoding
$ctoEncoding :: DeinterlacerMode -> Encoding
toJSON :: DeinterlacerMode -> Value
$ctoJSON :: DeinterlacerMode -> Value
Data.ToJSON,
      ToJSONKeyFunction [DeinterlacerMode]
ToJSONKeyFunction DeinterlacerMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeinterlacerMode]
$ctoJSONKeyList :: ToJSONKeyFunction [DeinterlacerMode]
toJSONKey :: ToJSONKeyFunction DeinterlacerMode
$ctoJSONKey :: ToJSONKeyFunction DeinterlacerMode
Data.ToJSONKey,
      [Node] -> Either String DeinterlacerMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeinterlacerMode
$cparseXML :: [Node] -> Either String DeinterlacerMode
Data.FromXML,
      DeinterlacerMode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DeinterlacerMode -> XML
$ctoXML :: DeinterlacerMode -> XML
Data.ToXML
    )

pattern DeinterlacerMode_ADAPTIVE :: DeinterlacerMode
pattern $bDeinterlacerMode_ADAPTIVE :: DeinterlacerMode
$mDeinterlacerMode_ADAPTIVE :: forall {r}. DeinterlacerMode -> ((# #) -> r) -> ((# #) -> r) -> r
DeinterlacerMode_ADAPTIVE = DeinterlacerMode' "ADAPTIVE"

pattern DeinterlacerMode_DEINTERLACE :: DeinterlacerMode
pattern $bDeinterlacerMode_DEINTERLACE :: DeinterlacerMode
$mDeinterlacerMode_DEINTERLACE :: forall {r}. DeinterlacerMode -> ((# #) -> r) -> ((# #) -> r) -> r
DeinterlacerMode_DEINTERLACE = DeinterlacerMode' "DEINTERLACE"

pattern DeinterlacerMode_INVERSE_TELECINE :: DeinterlacerMode
pattern $bDeinterlacerMode_INVERSE_TELECINE :: DeinterlacerMode
$mDeinterlacerMode_INVERSE_TELECINE :: forall {r}. DeinterlacerMode -> ((# #) -> r) -> ((# #) -> r) -> r
DeinterlacerMode_INVERSE_TELECINE = DeinterlacerMode' "INVERSE_TELECINE"

{-# COMPLETE
  DeinterlacerMode_ADAPTIVE,
  DeinterlacerMode_DEINTERLACE,
  DeinterlacerMode_INVERSE_TELECINE,
  DeinterlacerMode'
  #-}