{-# 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.DeinterlacerControl
-- 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.DeinterlacerControl
  ( DeinterlacerControl
      ( ..,
        DeinterlacerControl_FORCE_ALL_FRAMES,
        DeinterlacerControl_NORMAL
      ),
  )
where

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

-- | - When set to NORMAL (default), the deinterlacer does not convert frames
-- that are tagged in metadata as progressive. It will only convert those
-- that are tagged as some other type. - When set to FORCE_ALL_FRAMES, the
-- deinterlacer converts every frame to progressive - even those that are
-- already tagged as progressive. Turn Force mode on only if there is a
-- good chance that the metadata has tagged frames as progressive when they
-- are not progressive. Do not turn on otherwise; processing frames that
-- are already progressive into progressive will probably result in lower
-- quality video.
newtype DeinterlacerControl = DeinterlacerControl'
  { DeinterlacerControl -> Text
fromDeinterlacerControl ::
      Data.Text
  }
  deriving stock
    ( Int -> DeinterlacerControl -> ShowS
[DeinterlacerControl] -> ShowS
DeinterlacerControl -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeinterlacerControl] -> ShowS
$cshowList :: [DeinterlacerControl] -> ShowS
show :: DeinterlacerControl -> String
$cshow :: DeinterlacerControl -> String
showsPrec :: Int -> DeinterlacerControl -> ShowS
$cshowsPrec :: Int -> DeinterlacerControl -> ShowS
Prelude.Show,
      ReadPrec [DeinterlacerControl]
ReadPrec DeinterlacerControl
Int -> ReadS DeinterlacerControl
ReadS [DeinterlacerControl]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeinterlacerControl]
$creadListPrec :: ReadPrec [DeinterlacerControl]
readPrec :: ReadPrec DeinterlacerControl
$creadPrec :: ReadPrec DeinterlacerControl
readList :: ReadS [DeinterlacerControl]
$creadList :: ReadS [DeinterlacerControl]
readsPrec :: Int -> ReadS DeinterlacerControl
$creadsPrec :: Int -> ReadS DeinterlacerControl
Prelude.Read,
      DeinterlacerControl -> DeinterlacerControl -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeinterlacerControl -> DeinterlacerControl -> Bool
$c/= :: DeinterlacerControl -> DeinterlacerControl -> Bool
== :: DeinterlacerControl -> DeinterlacerControl -> Bool
$c== :: DeinterlacerControl -> DeinterlacerControl -> Bool
Prelude.Eq,
      Eq DeinterlacerControl
DeinterlacerControl -> DeinterlacerControl -> Bool
DeinterlacerControl -> DeinterlacerControl -> Ordering
DeinterlacerControl -> DeinterlacerControl -> DeinterlacerControl
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 :: DeinterlacerControl -> DeinterlacerControl -> DeinterlacerControl
$cmin :: DeinterlacerControl -> DeinterlacerControl -> DeinterlacerControl
max :: DeinterlacerControl -> DeinterlacerControl -> DeinterlacerControl
$cmax :: DeinterlacerControl -> DeinterlacerControl -> DeinterlacerControl
>= :: DeinterlacerControl -> DeinterlacerControl -> Bool
$c>= :: DeinterlacerControl -> DeinterlacerControl -> Bool
> :: DeinterlacerControl -> DeinterlacerControl -> Bool
$c> :: DeinterlacerControl -> DeinterlacerControl -> Bool
<= :: DeinterlacerControl -> DeinterlacerControl -> Bool
$c<= :: DeinterlacerControl -> DeinterlacerControl -> Bool
< :: DeinterlacerControl -> DeinterlacerControl -> Bool
$c< :: DeinterlacerControl -> DeinterlacerControl -> Bool
compare :: DeinterlacerControl -> DeinterlacerControl -> Ordering
$ccompare :: DeinterlacerControl -> DeinterlacerControl -> Ordering
Prelude.Ord,
      forall x. Rep DeinterlacerControl x -> DeinterlacerControl
forall x. DeinterlacerControl -> Rep DeinterlacerControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeinterlacerControl x -> DeinterlacerControl
$cfrom :: forall x. DeinterlacerControl -> Rep DeinterlacerControl x
Prelude.Generic
    )
  deriving newtype
    ( Eq DeinterlacerControl
Int -> DeinterlacerControl -> Int
DeinterlacerControl -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DeinterlacerControl -> Int
$chash :: DeinterlacerControl -> Int
hashWithSalt :: Int -> DeinterlacerControl -> Int
$chashWithSalt :: Int -> DeinterlacerControl -> Int
Prelude.Hashable,
      DeinterlacerControl -> ()
forall a. (a -> ()) -> NFData a
rnf :: DeinterlacerControl -> ()
$crnf :: DeinterlacerControl -> ()
Prelude.NFData,
      Text -> Either String DeinterlacerControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeinterlacerControl
$cfromText :: Text -> Either String DeinterlacerControl
Data.FromText,
      DeinterlacerControl -> Text
forall a. (a -> Text) -> ToText a
toText :: DeinterlacerControl -> Text
$ctoText :: DeinterlacerControl -> Text
Data.ToText,
      DeinterlacerControl -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeinterlacerControl -> ByteString
$ctoBS :: DeinterlacerControl -> ByteString
Data.ToByteString,
      DeinterlacerControl -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeinterlacerControl -> ByteStringBuilder
$cbuild :: DeinterlacerControl -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DeinterlacerControl -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeinterlacerControl -> [Header]
$ctoHeader :: HeaderName -> DeinterlacerControl -> [Header]
Data.ToHeader,
      DeinterlacerControl -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeinterlacerControl -> QueryString
$ctoQuery :: DeinterlacerControl -> QueryString
Data.ToQuery,
      Value -> Parser [DeinterlacerControl]
Value -> Parser DeinterlacerControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DeinterlacerControl]
$cparseJSONList :: Value -> Parser [DeinterlacerControl]
parseJSON :: Value -> Parser DeinterlacerControl
$cparseJSON :: Value -> Parser DeinterlacerControl
Data.FromJSON,
      FromJSONKeyFunction [DeinterlacerControl]
FromJSONKeyFunction DeinterlacerControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeinterlacerControl]
$cfromJSONKeyList :: FromJSONKeyFunction [DeinterlacerControl]
fromJSONKey :: FromJSONKeyFunction DeinterlacerControl
$cfromJSONKey :: FromJSONKeyFunction DeinterlacerControl
Data.FromJSONKey,
      [DeinterlacerControl] -> Encoding
[DeinterlacerControl] -> Value
DeinterlacerControl -> Encoding
DeinterlacerControl -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DeinterlacerControl] -> Encoding
$ctoEncodingList :: [DeinterlacerControl] -> Encoding
toJSONList :: [DeinterlacerControl] -> Value
$ctoJSONList :: [DeinterlacerControl] -> Value
toEncoding :: DeinterlacerControl -> Encoding
$ctoEncoding :: DeinterlacerControl -> Encoding
toJSON :: DeinterlacerControl -> Value
$ctoJSON :: DeinterlacerControl -> Value
Data.ToJSON,
      ToJSONKeyFunction [DeinterlacerControl]
ToJSONKeyFunction DeinterlacerControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeinterlacerControl]
$ctoJSONKeyList :: ToJSONKeyFunction [DeinterlacerControl]
toJSONKey :: ToJSONKeyFunction DeinterlacerControl
$ctoJSONKey :: ToJSONKeyFunction DeinterlacerControl
Data.ToJSONKey,
      [Node] -> Either String DeinterlacerControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeinterlacerControl
$cparseXML :: [Node] -> Either String DeinterlacerControl
Data.FromXML,
      DeinterlacerControl -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DeinterlacerControl -> XML
$ctoXML :: DeinterlacerControl -> XML
Data.ToXML
    )

pattern DeinterlacerControl_FORCE_ALL_FRAMES :: DeinterlacerControl
pattern $bDeinterlacerControl_FORCE_ALL_FRAMES :: DeinterlacerControl
$mDeinterlacerControl_FORCE_ALL_FRAMES :: forall {r}.
DeinterlacerControl -> ((# #) -> r) -> ((# #) -> r) -> r
DeinterlacerControl_FORCE_ALL_FRAMES = DeinterlacerControl' "FORCE_ALL_FRAMES"

pattern DeinterlacerControl_NORMAL :: DeinterlacerControl
pattern $bDeinterlacerControl_NORMAL :: DeinterlacerControl
$mDeinterlacerControl_NORMAL :: forall {r}.
DeinterlacerControl -> ((# #) -> r) -> ((# #) -> r) -> r
DeinterlacerControl_NORMAL = DeinterlacerControl' "NORMAL"

{-# COMPLETE
  DeinterlacerControl_FORCE_ALL_FRAMES,
  DeinterlacerControl_NORMAL,
  DeinterlacerControl'
  #-}