{-# 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.H265FlickerAdaptiveQuantization
-- 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.H265FlickerAdaptiveQuantization
  ( H265FlickerAdaptiveQuantization
      ( ..,
        H265FlickerAdaptiveQuantization_DISABLED,
        H265FlickerAdaptiveQuantization_ENABLED
      ),
  )
where

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

-- | Enable this setting to have the encoder reduce I-frame pop. I-frame pop
-- appears as a visual flicker that can arise when the encoder saves bits
-- by copying some macroblocks many times from frame to frame, and then
-- refreshes them at the I-frame. When you enable this setting, the encoder
-- updates these macroblocks slightly more often to smooth out the flicker.
-- This setting is disabled by default. Related setting: In addition to
-- enabling this setting, you must also set adaptiveQuantization to a value
-- other than Off (OFF).
newtype H265FlickerAdaptiveQuantization = H265FlickerAdaptiveQuantization'
  { H265FlickerAdaptiveQuantization -> Text
fromH265FlickerAdaptiveQuantization ::
      Core.Text
  }
  deriving stock
    ( Int -> H265FlickerAdaptiveQuantization -> ShowS
[H265FlickerAdaptiveQuantization] -> ShowS
H265FlickerAdaptiveQuantization -> String
(Int -> H265FlickerAdaptiveQuantization -> ShowS)
-> (H265FlickerAdaptiveQuantization -> String)
-> ([H265FlickerAdaptiveQuantization] -> ShowS)
-> Show H265FlickerAdaptiveQuantization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H265FlickerAdaptiveQuantization] -> ShowS
$cshowList :: [H265FlickerAdaptiveQuantization] -> ShowS
show :: H265FlickerAdaptiveQuantization -> String
$cshow :: H265FlickerAdaptiveQuantization -> String
showsPrec :: Int -> H265FlickerAdaptiveQuantization -> ShowS
$cshowsPrec :: Int -> H265FlickerAdaptiveQuantization -> ShowS
Prelude.Show,
      ReadPrec [H265FlickerAdaptiveQuantization]
ReadPrec H265FlickerAdaptiveQuantization
Int -> ReadS H265FlickerAdaptiveQuantization
ReadS [H265FlickerAdaptiveQuantization]
(Int -> ReadS H265FlickerAdaptiveQuantization)
-> ReadS [H265FlickerAdaptiveQuantization]
-> ReadPrec H265FlickerAdaptiveQuantization
-> ReadPrec [H265FlickerAdaptiveQuantization]
-> Read H265FlickerAdaptiveQuantization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H265FlickerAdaptiveQuantization]
$creadListPrec :: ReadPrec [H265FlickerAdaptiveQuantization]
readPrec :: ReadPrec H265FlickerAdaptiveQuantization
$creadPrec :: ReadPrec H265FlickerAdaptiveQuantization
readList :: ReadS [H265FlickerAdaptiveQuantization]
$creadList :: ReadS [H265FlickerAdaptiveQuantization]
readsPrec :: Int -> ReadS H265FlickerAdaptiveQuantization
$creadsPrec :: Int -> ReadS H265FlickerAdaptiveQuantization
Prelude.Read,
      H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
(H265FlickerAdaptiveQuantization
 -> H265FlickerAdaptiveQuantization -> Bool)
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization -> Bool)
-> Eq H265FlickerAdaptiveQuantization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
$c/= :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
== :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
$c== :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
Prelude.Eq,
      Eq H265FlickerAdaptiveQuantization
Eq H265FlickerAdaptiveQuantization
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization -> Ordering)
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization -> Bool)
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization -> Bool)
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization -> Bool)
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization -> Bool)
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization)
-> (H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization
    -> H265FlickerAdaptiveQuantization)
-> Ord H265FlickerAdaptiveQuantization
H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Ordering
H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
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 :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
$cmin :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
max :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
$cmax :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization
>= :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
$c>= :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
> :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
$c> :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
<= :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
$c<= :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
< :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
$c< :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Bool
compare :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Ordering
$ccompare :: H265FlickerAdaptiveQuantization
-> H265FlickerAdaptiveQuantization -> Ordering
$cp1Ord :: Eq H265FlickerAdaptiveQuantization
Prelude.Ord,
      (forall x.
 H265FlickerAdaptiveQuantization
 -> Rep H265FlickerAdaptiveQuantization x)
-> (forall x.
    Rep H265FlickerAdaptiveQuantization x
    -> H265FlickerAdaptiveQuantization)
-> Generic H265FlickerAdaptiveQuantization
forall x.
Rep H265FlickerAdaptiveQuantization x
-> H265FlickerAdaptiveQuantization
forall x.
H265FlickerAdaptiveQuantization
-> Rep H265FlickerAdaptiveQuantization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep H265FlickerAdaptiveQuantization x
-> H265FlickerAdaptiveQuantization
$cfrom :: forall x.
H265FlickerAdaptiveQuantization
-> Rep H265FlickerAdaptiveQuantization x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H265FlickerAdaptiveQuantization -> Int
H265FlickerAdaptiveQuantization -> Int
(Int -> H265FlickerAdaptiveQuantization -> Int)
-> (H265FlickerAdaptiveQuantization -> Int)
-> Hashable H265FlickerAdaptiveQuantization
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H265FlickerAdaptiveQuantization -> Int
$chash :: H265FlickerAdaptiveQuantization -> Int
hashWithSalt :: Int -> H265FlickerAdaptiveQuantization -> Int
$chashWithSalt :: Int -> H265FlickerAdaptiveQuantization -> Int
Prelude.Hashable,
      H265FlickerAdaptiveQuantization -> ()
(H265FlickerAdaptiveQuantization -> ())
-> NFData H265FlickerAdaptiveQuantization
forall a. (a -> ()) -> NFData a
rnf :: H265FlickerAdaptiveQuantization -> ()
$crnf :: H265FlickerAdaptiveQuantization -> ()
Prelude.NFData,
      Text -> Either String H265FlickerAdaptiveQuantization
(Text -> Either String H265FlickerAdaptiveQuantization)
-> FromText H265FlickerAdaptiveQuantization
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H265FlickerAdaptiveQuantization
$cfromText :: Text -> Either String H265FlickerAdaptiveQuantization
Core.FromText,
      H265FlickerAdaptiveQuantization -> Text
(H265FlickerAdaptiveQuantization -> Text)
-> ToText H265FlickerAdaptiveQuantization
forall a. (a -> Text) -> ToText a
toText :: H265FlickerAdaptiveQuantization -> Text
$ctoText :: H265FlickerAdaptiveQuantization -> Text
Core.ToText,
      H265FlickerAdaptiveQuantization -> ByteString
(H265FlickerAdaptiveQuantization -> ByteString)
-> ToByteString H265FlickerAdaptiveQuantization
forall a. (a -> ByteString) -> ToByteString a
toBS :: H265FlickerAdaptiveQuantization -> ByteString
$ctoBS :: H265FlickerAdaptiveQuantization -> ByteString
Core.ToByteString,
      H265FlickerAdaptiveQuantization -> ByteStringBuilder
(H265FlickerAdaptiveQuantization -> ByteStringBuilder)
-> ToLog H265FlickerAdaptiveQuantization
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H265FlickerAdaptiveQuantization -> ByteStringBuilder
$cbuild :: H265FlickerAdaptiveQuantization -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H265FlickerAdaptiveQuantization -> [Header]
(HeaderName -> H265FlickerAdaptiveQuantization -> [Header])
-> ToHeader H265FlickerAdaptiveQuantization
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H265FlickerAdaptiveQuantization -> [Header]
$ctoHeader :: HeaderName -> H265FlickerAdaptiveQuantization -> [Header]
Core.ToHeader,
      H265FlickerAdaptiveQuantization -> QueryString
(H265FlickerAdaptiveQuantization -> QueryString)
-> ToQuery H265FlickerAdaptiveQuantization
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H265FlickerAdaptiveQuantization -> QueryString
$ctoQuery :: H265FlickerAdaptiveQuantization -> QueryString
Core.ToQuery,
      Value -> Parser [H265FlickerAdaptiveQuantization]
Value -> Parser H265FlickerAdaptiveQuantization
(Value -> Parser H265FlickerAdaptiveQuantization)
-> (Value -> Parser [H265FlickerAdaptiveQuantization])
-> FromJSON H265FlickerAdaptiveQuantization
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H265FlickerAdaptiveQuantization]
$cparseJSONList :: Value -> Parser [H265FlickerAdaptiveQuantization]
parseJSON :: Value -> Parser H265FlickerAdaptiveQuantization
$cparseJSON :: Value -> Parser H265FlickerAdaptiveQuantization
Core.FromJSON,
      FromJSONKeyFunction [H265FlickerAdaptiveQuantization]
FromJSONKeyFunction H265FlickerAdaptiveQuantization
FromJSONKeyFunction H265FlickerAdaptiveQuantization
-> FromJSONKeyFunction [H265FlickerAdaptiveQuantization]
-> FromJSONKey H265FlickerAdaptiveQuantization
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H265FlickerAdaptiveQuantization]
$cfromJSONKeyList :: FromJSONKeyFunction [H265FlickerAdaptiveQuantization]
fromJSONKey :: FromJSONKeyFunction H265FlickerAdaptiveQuantization
$cfromJSONKey :: FromJSONKeyFunction H265FlickerAdaptiveQuantization
Core.FromJSONKey,
      [H265FlickerAdaptiveQuantization] -> Encoding
[H265FlickerAdaptiveQuantization] -> Value
H265FlickerAdaptiveQuantization -> Encoding
H265FlickerAdaptiveQuantization -> Value
(H265FlickerAdaptiveQuantization -> Value)
-> (H265FlickerAdaptiveQuantization -> Encoding)
-> ([H265FlickerAdaptiveQuantization] -> Value)
-> ([H265FlickerAdaptiveQuantization] -> Encoding)
-> ToJSON H265FlickerAdaptiveQuantization
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H265FlickerAdaptiveQuantization] -> Encoding
$ctoEncodingList :: [H265FlickerAdaptiveQuantization] -> Encoding
toJSONList :: [H265FlickerAdaptiveQuantization] -> Value
$ctoJSONList :: [H265FlickerAdaptiveQuantization] -> Value
toEncoding :: H265FlickerAdaptiveQuantization -> Encoding
$ctoEncoding :: H265FlickerAdaptiveQuantization -> Encoding
toJSON :: H265FlickerAdaptiveQuantization -> Value
$ctoJSON :: H265FlickerAdaptiveQuantization -> Value
Core.ToJSON,
      ToJSONKeyFunction [H265FlickerAdaptiveQuantization]
ToJSONKeyFunction H265FlickerAdaptiveQuantization
ToJSONKeyFunction H265FlickerAdaptiveQuantization
-> ToJSONKeyFunction [H265FlickerAdaptiveQuantization]
-> ToJSONKey H265FlickerAdaptiveQuantization
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H265FlickerAdaptiveQuantization]
$ctoJSONKeyList :: ToJSONKeyFunction [H265FlickerAdaptiveQuantization]
toJSONKey :: ToJSONKeyFunction H265FlickerAdaptiveQuantization
$ctoJSONKey :: ToJSONKeyFunction H265FlickerAdaptiveQuantization
Core.ToJSONKey,
      [Node] -> Either String H265FlickerAdaptiveQuantization
([Node] -> Either String H265FlickerAdaptiveQuantization)
-> FromXML H265FlickerAdaptiveQuantization
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H265FlickerAdaptiveQuantization
$cparseXML :: [Node] -> Either String H265FlickerAdaptiveQuantization
Core.FromXML,
      H265FlickerAdaptiveQuantization -> XML
(H265FlickerAdaptiveQuantization -> XML)
-> ToXML H265FlickerAdaptiveQuantization
forall a. (a -> XML) -> ToXML a
toXML :: H265FlickerAdaptiveQuantization -> XML
$ctoXML :: H265FlickerAdaptiveQuantization -> XML
Core.ToXML
    )

pattern H265FlickerAdaptiveQuantization_DISABLED :: H265FlickerAdaptiveQuantization
pattern $bH265FlickerAdaptiveQuantization_DISABLED :: H265FlickerAdaptiveQuantization
$mH265FlickerAdaptiveQuantization_DISABLED :: forall r.
H265FlickerAdaptiveQuantization
-> (Void# -> r) -> (Void# -> r) -> r
H265FlickerAdaptiveQuantization_DISABLED = H265FlickerAdaptiveQuantization' "DISABLED"

pattern H265FlickerAdaptiveQuantization_ENABLED :: H265FlickerAdaptiveQuantization
pattern $bH265FlickerAdaptiveQuantization_ENABLED :: H265FlickerAdaptiveQuantization
$mH265FlickerAdaptiveQuantization_ENABLED :: forall r.
H265FlickerAdaptiveQuantization
-> (Void# -> r) -> (Void# -> r) -> r
H265FlickerAdaptiveQuantization_ENABLED = H265FlickerAdaptiveQuantization' "ENABLED"

{-# COMPLETE
  H265FlickerAdaptiveQuantization_DISABLED,
  H265FlickerAdaptiveQuantization_ENABLED,
  H265FlickerAdaptiveQuantization'
  #-}