{-# 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.InputDeblockFilter
-- 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.InputDeblockFilter
  ( InputDeblockFilter
      ( ..,
        InputDeblockFilter_DISABLED,
        InputDeblockFilter_ENABLED
      ),
  )
where

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

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

pattern InputDeblockFilter_DISABLED :: InputDeblockFilter
pattern $bInputDeblockFilter_DISABLED :: InputDeblockFilter
$mInputDeblockFilter_DISABLED :: forall r. InputDeblockFilter -> (Void# -> r) -> (Void# -> r) -> r
InputDeblockFilter_DISABLED = InputDeblockFilter' "DISABLED"

pattern InputDeblockFilter_ENABLED :: InputDeblockFilter
pattern $bInputDeblockFilter_ENABLED :: InputDeblockFilter
$mInputDeblockFilter_ENABLED :: forall r. InputDeblockFilter -> (Void# -> r) -> (Void# -> r) -> r
InputDeblockFilter_ENABLED = InputDeblockFilter' "ENABLED"

{-# COMPLETE
  InputDeblockFilter_DISABLED,
  InputDeblockFilter_ENABLED,
  InputDeblockFilter'
  #-}