{-# 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.DeinterlaceAlgorithm
-- 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.DeinterlaceAlgorithm
  ( DeinterlaceAlgorithm
      ( ..,
        DeinterlaceAlgorithm_BLEND,
        DeinterlaceAlgorithm_BLEND_TICKER,
        DeinterlaceAlgorithm_INTERPOLATE,
        DeinterlaceAlgorithm_INTERPOLATE_TICKER
      ),
  )
where

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

-- | Only applies when you set Deinterlacer (DeinterlaceMode) to Deinterlace
-- (DEINTERLACE) or Adaptive (ADAPTIVE). Motion adaptive interpolate
-- (INTERPOLATE) produces sharper pictures, while blend (BLEND) produces
-- smoother motion. Use (INTERPOLATE_TICKER) OR (BLEND_TICKER) if your
-- source file includes a ticker, such as a scrolling headline at the
-- bottom of the frame.
newtype DeinterlaceAlgorithm = DeinterlaceAlgorithm'
  { DeinterlaceAlgorithm -> Text
fromDeinterlaceAlgorithm ::
      Core.Text
  }
  deriving stock
    ( Int -> DeinterlaceAlgorithm -> ShowS
[DeinterlaceAlgorithm] -> ShowS
DeinterlaceAlgorithm -> String
(Int -> DeinterlaceAlgorithm -> ShowS)
-> (DeinterlaceAlgorithm -> String)
-> ([DeinterlaceAlgorithm] -> ShowS)
-> Show DeinterlaceAlgorithm
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeinterlaceAlgorithm] -> ShowS
$cshowList :: [DeinterlaceAlgorithm] -> ShowS
show :: DeinterlaceAlgorithm -> String
$cshow :: DeinterlaceAlgorithm -> String
showsPrec :: Int -> DeinterlaceAlgorithm -> ShowS
$cshowsPrec :: Int -> DeinterlaceAlgorithm -> ShowS
Prelude.Show,
      ReadPrec [DeinterlaceAlgorithm]
ReadPrec DeinterlaceAlgorithm
Int -> ReadS DeinterlaceAlgorithm
ReadS [DeinterlaceAlgorithm]
(Int -> ReadS DeinterlaceAlgorithm)
-> ReadS [DeinterlaceAlgorithm]
-> ReadPrec DeinterlaceAlgorithm
-> ReadPrec [DeinterlaceAlgorithm]
-> Read DeinterlaceAlgorithm
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeinterlaceAlgorithm]
$creadListPrec :: ReadPrec [DeinterlaceAlgorithm]
readPrec :: ReadPrec DeinterlaceAlgorithm
$creadPrec :: ReadPrec DeinterlaceAlgorithm
readList :: ReadS [DeinterlaceAlgorithm]
$creadList :: ReadS [DeinterlaceAlgorithm]
readsPrec :: Int -> ReadS DeinterlaceAlgorithm
$creadsPrec :: Int -> ReadS DeinterlaceAlgorithm
Prelude.Read,
      DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
(DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool)
-> (DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool)
-> Eq DeinterlaceAlgorithm
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
$c/= :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
== :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
$c== :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
Prelude.Eq,
      Eq DeinterlaceAlgorithm
Eq DeinterlaceAlgorithm
-> (DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Ordering)
-> (DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool)
-> (DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool)
-> (DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool)
-> (DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool)
-> (DeinterlaceAlgorithm
    -> DeinterlaceAlgorithm -> DeinterlaceAlgorithm)
-> (DeinterlaceAlgorithm
    -> DeinterlaceAlgorithm -> DeinterlaceAlgorithm)
-> Ord DeinterlaceAlgorithm
DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Ordering
DeinterlaceAlgorithm
-> DeinterlaceAlgorithm -> DeinterlaceAlgorithm
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 :: DeinterlaceAlgorithm
-> DeinterlaceAlgorithm -> DeinterlaceAlgorithm
$cmin :: DeinterlaceAlgorithm
-> DeinterlaceAlgorithm -> DeinterlaceAlgorithm
max :: DeinterlaceAlgorithm
-> DeinterlaceAlgorithm -> DeinterlaceAlgorithm
$cmax :: DeinterlaceAlgorithm
-> DeinterlaceAlgorithm -> DeinterlaceAlgorithm
>= :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
$c>= :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
> :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
$c> :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
<= :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
$c<= :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
< :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
$c< :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Bool
compare :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Ordering
$ccompare :: DeinterlaceAlgorithm -> DeinterlaceAlgorithm -> Ordering
$cp1Ord :: Eq DeinterlaceAlgorithm
Prelude.Ord,
      (forall x. DeinterlaceAlgorithm -> Rep DeinterlaceAlgorithm x)
-> (forall x. Rep DeinterlaceAlgorithm x -> DeinterlaceAlgorithm)
-> Generic DeinterlaceAlgorithm
forall x. Rep DeinterlaceAlgorithm x -> DeinterlaceAlgorithm
forall x. DeinterlaceAlgorithm -> Rep DeinterlaceAlgorithm x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeinterlaceAlgorithm x -> DeinterlaceAlgorithm
$cfrom :: forall x. DeinterlaceAlgorithm -> Rep DeinterlaceAlgorithm x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DeinterlaceAlgorithm -> Int
DeinterlaceAlgorithm -> Int
(Int -> DeinterlaceAlgorithm -> Int)
-> (DeinterlaceAlgorithm -> Int) -> Hashable DeinterlaceAlgorithm
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DeinterlaceAlgorithm -> Int
$chash :: DeinterlaceAlgorithm -> Int
hashWithSalt :: Int -> DeinterlaceAlgorithm -> Int
$chashWithSalt :: Int -> DeinterlaceAlgorithm -> Int
Prelude.Hashable,
      DeinterlaceAlgorithm -> ()
(DeinterlaceAlgorithm -> ()) -> NFData DeinterlaceAlgorithm
forall a. (a -> ()) -> NFData a
rnf :: DeinterlaceAlgorithm -> ()
$crnf :: DeinterlaceAlgorithm -> ()
Prelude.NFData,
      Text -> Either String DeinterlaceAlgorithm
(Text -> Either String DeinterlaceAlgorithm)
-> FromText DeinterlaceAlgorithm
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeinterlaceAlgorithm
$cfromText :: Text -> Either String DeinterlaceAlgorithm
Core.FromText,
      DeinterlaceAlgorithm -> Text
(DeinterlaceAlgorithm -> Text) -> ToText DeinterlaceAlgorithm
forall a. (a -> Text) -> ToText a
toText :: DeinterlaceAlgorithm -> Text
$ctoText :: DeinterlaceAlgorithm -> Text
Core.ToText,
      DeinterlaceAlgorithm -> ByteString
(DeinterlaceAlgorithm -> ByteString)
-> ToByteString DeinterlaceAlgorithm
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeinterlaceAlgorithm -> ByteString
$ctoBS :: DeinterlaceAlgorithm -> ByteString
Core.ToByteString,
      DeinterlaceAlgorithm -> ByteStringBuilder
(DeinterlaceAlgorithm -> ByteStringBuilder)
-> ToLog DeinterlaceAlgorithm
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeinterlaceAlgorithm -> ByteStringBuilder
$cbuild :: DeinterlaceAlgorithm -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DeinterlaceAlgorithm -> [Header]
(HeaderName -> DeinterlaceAlgorithm -> [Header])
-> ToHeader DeinterlaceAlgorithm
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeinterlaceAlgorithm -> [Header]
$ctoHeader :: HeaderName -> DeinterlaceAlgorithm -> [Header]
Core.ToHeader,
      DeinterlaceAlgorithm -> QueryString
(DeinterlaceAlgorithm -> QueryString)
-> ToQuery DeinterlaceAlgorithm
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeinterlaceAlgorithm -> QueryString
$ctoQuery :: DeinterlaceAlgorithm -> QueryString
Core.ToQuery,
      Value -> Parser [DeinterlaceAlgorithm]
Value -> Parser DeinterlaceAlgorithm
(Value -> Parser DeinterlaceAlgorithm)
-> (Value -> Parser [DeinterlaceAlgorithm])
-> FromJSON DeinterlaceAlgorithm
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DeinterlaceAlgorithm]
$cparseJSONList :: Value -> Parser [DeinterlaceAlgorithm]
parseJSON :: Value -> Parser DeinterlaceAlgorithm
$cparseJSON :: Value -> Parser DeinterlaceAlgorithm
Core.FromJSON,
      FromJSONKeyFunction [DeinterlaceAlgorithm]
FromJSONKeyFunction DeinterlaceAlgorithm
FromJSONKeyFunction DeinterlaceAlgorithm
-> FromJSONKeyFunction [DeinterlaceAlgorithm]
-> FromJSONKey DeinterlaceAlgorithm
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeinterlaceAlgorithm]
$cfromJSONKeyList :: FromJSONKeyFunction [DeinterlaceAlgorithm]
fromJSONKey :: FromJSONKeyFunction DeinterlaceAlgorithm
$cfromJSONKey :: FromJSONKeyFunction DeinterlaceAlgorithm
Core.FromJSONKey,
      [DeinterlaceAlgorithm] -> Encoding
[DeinterlaceAlgorithm] -> Value
DeinterlaceAlgorithm -> Encoding
DeinterlaceAlgorithm -> Value
(DeinterlaceAlgorithm -> Value)
-> (DeinterlaceAlgorithm -> Encoding)
-> ([DeinterlaceAlgorithm] -> Value)
-> ([DeinterlaceAlgorithm] -> Encoding)
-> ToJSON DeinterlaceAlgorithm
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DeinterlaceAlgorithm] -> Encoding
$ctoEncodingList :: [DeinterlaceAlgorithm] -> Encoding
toJSONList :: [DeinterlaceAlgorithm] -> Value
$ctoJSONList :: [DeinterlaceAlgorithm] -> Value
toEncoding :: DeinterlaceAlgorithm -> Encoding
$ctoEncoding :: DeinterlaceAlgorithm -> Encoding
toJSON :: DeinterlaceAlgorithm -> Value
$ctoJSON :: DeinterlaceAlgorithm -> Value
Core.ToJSON,
      ToJSONKeyFunction [DeinterlaceAlgorithm]
ToJSONKeyFunction DeinterlaceAlgorithm
ToJSONKeyFunction DeinterlaceAlgorithm
-> ToJSONKeyFunction [DeinterlaceAlgorithm]
-> ToJSONKey DeinterlaceAlgorithm
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeinterlaceAlgorithm]
$ctoJSONKeyList :: ToJSONKeyFunction [DeinterlaceAlgorithm]
toJSONKey :: ToJSONKeyFunction DeinterlaceAlgorithm
$ctoJSONKey :: ToJSONKeyFunction DeinterlaceAlgorithm
Core.ToJSONKey,
      [Node] -> Either String DeinterlaceAlgorithm
([Node] -> Either String DeinterlaceAlgorithm)
-> FromXML DeinterlaceAlgorithm
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeinterlaceAlgorithm
$cparseXML :: [Node] -> Either String DeinterlaceAlgorithm
Core.FromXML,
      DeinterlaceAlgorithm -> XML
(DeinterlaceAlgorithm -> XML) -> ToXML DeinterlaceAlgorithm
forall a. (a -> XML) -> ToXML a
toXML :: DeinterlaceAlgorithm -> XML
$ctoXML :: DeinterlaceAlgorithm -> XML
Core.ToXML
    )

pattern DeinterlaceAlgorithm_BLEND :: DeinterlaceAlgorithm
pattern $bDeinterlaceAlgorithm_BLEND :: DeinterlaceAlgorithm
$mDeinterlaceAlgorithm_BLEND :: forall r. DeinterlaceAlgorithm -> (Void# -> r) -> (Void# -> r) -> r
DeinterlaceAlgorithm_BLEND = DeinterlaceAlgorithm' "BLEND"

pattern DeinterlaceAlgorithm_BLEND_TICKER :: DeinterlaceAlgorithm
pattern $bDeinterlaceAlgorithm_BLEND_TICKER :: DeinterlaceAlgorithm
$mDeinterlaceAlgorithm_BLEND_TICKER :: forall r. DeinterlaceAlgorithm -> (Void# -> r) -> (Void# -> r) -> r
DeinterlaceAlgorithm_BLEND_TICKER = DeinterlaceAlgorithm' "BLEND_TICKER"

pattern DeinterlaceAlgorithm_INTERPOLATE :: DeinterlaceAlgorithm
pattern $bDeinterlaceAlgorithm_INTERPOLATE :: DeinterlaceAlgorithm
$mDeinterlaceAlgorithm_INTERPOLATE :: forall r. DeinterlaceAlgorithm -> (Void# -> r) -> (Void# -> r) -> r
DeinterlaceAlgorithm_INTERPOLATE = DeinterlaceAlgorithm' "INTERPOLATE"

pattern DeinterlaceAlgorithm_INTERPOLATE_TICKER :: DeinterlaceAlgorithm
pattern $bDeinterlaceAlgorithm_INTERPOLATE_TICKER :: DeinterlaceAlgorithm
$mDeinterlaceAlgorithm_INTERPOLATE_TICKER :: forall r. DeinterlaceAlgorithm -> (Void# -> r) -> (Void# -> r) -> r
DeinterlaceAlgorithm_INTERPOLATE_TICKER = DeinterlaceAlgorithm' "INTERPOLATE_TICKER"

{-# COMPLETE
  DeinterlaceAlgorithm_BLEND,
  DeinterlaceAlgorithm_BLEND_TICKER,
  DeinterlaceAlgorithm_INTERPOLATE,
  DeinterlaceAlgorithm_INTERPOLATE_TICKER,
  DeinterlaceAlgorithm'
  #-}