{-# 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.H265TemporalAdaptiveQuantization
-- 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.H265TemporalAdaptiveQuantization
  ( H265TemporalAdaptiveQuantization
      ( ..,
        H265TemporalAdaptiveQuantization_DISABLED,
        H265TemporalAdaptiveQuantization_ENABLED
      ),
  )
where

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

-- | Keep the default value, Enabled (ENABLED), to adjust quantization within
-- each frame based on temporal variation of content complexity. When you
-- enable this feature, the encoder uses fewer bits on areas of the frame
-- that aren\'t moving and uses more bits on complex objects with sharp
-- edges that move a lot. For example, this feature improves the
-- readability of text tickers on newscasts and scoreboards on sports
-- matches. Enabling this feature will almost always improve your video
-- quality. Note, though, that this feature doesn\'t take into account
-- where the viewer\'s attention is likely to be. If viewers are likely to
-- be focusing their attention on a part of the screen that doesn\'t have
-- moving objects with sharp edges, such as sports athletes\' faces, you
-- might choose to disable this feature. Related setting: When you enable
-- temporal quantization, adjust the strength of the filter with the
-- setting Adaptive quantization (adaptiveQuantization).
newtype H265TemporalAdaptiveQuantization = H265TemporalAdaptiveQuantization'
  { H265TemporalAdaptiveQuantization -> Text
fromH265TemporalAdaptiveQuantization ::
      Core.Text
  }
  deriving stock
    ( Int -> H265TemporalAdaptiveQuantization -> ShowS
[H265TemporalAdaptiveQuantization] -> ShowS
H265TemporalAdaptiveQuantization -> String
(Int -> H265TemporalAdaptiveQuantization -> ShowS)
-> (H265TemporalAdaptiveQuantization -> String)
-> ([H265TemporalAdaptiveQuantization] -> ShowS)
-> Show H265TemporalAdaptiveQuantization
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H265TemporalAdaptiveQuantization] -> ShowS
$cshowList :: [H265TemporalAdaptiveQuantization] -> ShowS
show :: H265TemporalAdaptiveQuantization -> String
$cshow :: H265TemporalAdaptiveQuantization -> String
showsPrec :: Int -> H265TemporalAdaptiveQuantization -> ShowS
$cshowsPrec :: Int -> H265TemporalAdaptiveQuantization -> ShowS
Prelude.Show,
      ReadPrec [H265TemporalAdaptiveQuantization]
ReadPrec H265TemporalAdaptiveQuantization
Int -> ReadS H265TemporalAdaptiveQuantization
ReadS [H265TemporalAdaptiveQuantization]
(Int -> ReadS H265TemporalAdaptiveQuantization)
-> ReadS [H265TemporalAdaptiveQuantization]
-> ReadPrec H265TemporalAdaptiveQuantization
-> ReadPrec [H265TemporalAdaptiveQuantization]
-> Read H265TemporalAdaptiveQuantization
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H265TemporalAdaptiveQuantization]
$creadListPrec :: ReadPrec [H265TemporalAdaptiveQuantization]
readPrec :: ReadPrec H265TemporalAdaptiveQuantization
$creadPrec :: ReadPrec H265TemporalAdaptiveQuantization
readList :: ReadS [H265TemporalAdaptiveQuantization]
$creadList :: ReadS [H265TemporalAdaptiveQuantization]
readsPrec :: Int -> ReadS H265TemporalAdaptiveQuantization
$creadsPrec :: Int -> ReadS H265TemporalAdaptiveQuantization
Prelude.Read,
      H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
(H265TemporalAdaptiveQuantization
 -> H265TemporalAdaptiveQuantization -> Bool)
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization -> Bool)
-> Eq H265TemporalAdaptiveQuantization
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
$c/= :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
== :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
$c== :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
Prelude.Eq,
      Eq H265TemporalAdaptiveQuantization
Eq H265TemporalAdaptiveQuantization
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization -> Ordering)
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization -> Bool)
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization -> Bool)
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization -> Bool)
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization -> Bool)
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization)
-> (H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization
    -> H265TemporalAdaptiveQuantization)
-> Ord H265TemporalAdaptiveQuantization
H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Ordering
H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
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 :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
$cmin :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
max :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
$cmax :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization
>= :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
$c>= :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
> :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
$c> :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
<= :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
$c<= :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
< :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
$c< :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Bool
compare :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Ordering
$ccompare :: H265TemporalAdaptiveQuantization
-> H265TemporalAdaptiveQuantization -> Ordering
$cp1Ord :: Eq H265TemporalAdaptiveQuantization
Prelude.Ord,
      (forall x.
 H265TemporalAdaptiveQuantization
 -> Rep H265TemporalAdaptiveQuantization x)
-> (forall x.
    Rep H265TemporalAdaptiveQuantization x
    -> H265TemporalAdaptiveQuantization)
-> Generic H265TemporalAdaptiveQuantization
forall x.
Rep H265TemporalAdaptiveQuantization x
-> H265TemporalAdaptiveQuantization
forall x.
H265TemporalAdaptiveQuantization
-> Rep H265TemporalAdaptiveQuantization x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep H265TemporalAdaptiveQuantization x
-> H265TemporalAdaptiveQuantization
$cfrom :: forall x.
H265TemporalAdaptiveQuantization
-> Rep H265TemporalAdaptiveQuantization x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H265TemporalAdaptiveQuantization -> Int
H265TemporalAdaptiveQuantization -> Int
(Int -> H265TemporalAdaptiveQuantization -> Int)
-> (H265TemporalAdaptiveQuantization -> Int)
-> Hashable H265TemporalAdaptiveQuantization
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H265TemporalAdaptiveQuantization -> Int
$chash :: H265TemporalAdaptiveQuantization -> Int
hashWithSalt :: Int -> H265TemporalAdaptiveQuantization -> Int
$chashWithSalt :: Int -> H265TemporalAdaptiveQuantization -> Int
Prelude.Hashable,
      H265TemporalAdaptiveQuantization -> ()
(H265TemporalAdaptiveQuantization -> ())
-> NFData H265TemporalAdaptiveQuantization
forall a. (a -> ()) -> NFData a
rnf :: H265TemporalAdaptiveQuantization -> ()
$crnf :: H265TemporalAdaptiveQuantization -> ()
Prelude.NFData,
      Text -> Either String H265TemporalAdaptiveQuantization
(Text -> Either String H265TemporalAdaptiveQuantization)
-> FromText H265TemporalAdaptiveQuantization
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H265TemporalAdaptiveQuantization
$cfromText :: Text -> Either String H265TemporalAdaptiveQuantization
Core.FromText,
      H265TemporalAdaptiveQuantization -> Text
(H265TemporalAdaptiveQuantization -> Text)
-> ToText H265TemporalAdaptiveQuantization
forall a. (a -> Text) -> ToText a
toText :: H265TemporalAdaptiveQuantization -> Text
$ctoText :: H265TemporalAdaptiveQuantization -> Text
Core.ToText,
      H265TemporalAdaptiveQuantization -> ByteString
(H265TemporalAdaptiveQuantization -> ByteString)
-> ToByteString H265TemporalAdaptiveQuantization
forall a. (a -> ByteString) -> ToByteString a
toBS :: H265TemporalAdaptiveQuantization -> ByteString
$ctoBS :: H265TemporalAdaptiveQuantization -> ByteString
Core.ToByteString,
      H265TemporalAdaptiveQuantization -> ByteStringBuilder
(H265TemporalAdaptiveQuantization -> ByteStringBuilder)
-> ToLog H265TemporalAdaptiveQuantization
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H265TemporalAdaptiveQuantization -> ByteStringBuilder
$cbuild :: H265TemporalAdaptiveQuantization -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H265TemporalAdaptiveQuantization -> [Header]
(HeaderName -> H265TemporalAdaptiveQuantization -> [Header])
-> ToHeader H265TemporalAdaptiveQuantization
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H265TemporalAdaptiveQuantization -> [Header]
$ctoHeader :: HeaderName -> H265TemporalAdaptiveQuantization -> [Header]
Core.ToHeader,
      H265TemporalAdaptiveQuantization -> QueryString
(H265TemporalAdaptiveQuantization -> QueryString)
-> ToQuery H265TemporalAdaptiveQuantization
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H265TemporalAdaptiveQuantization -> QueryString
$ctoQuery :: H265TemporalAdaptiveQuantization -> QueryString
Core.ToQuery,
      Value -> Parser [H265TemporalAdaptiveQuantization]
Value -> Parser H265TemporalAdaptiveQuantization
(Value -> Parser H265TemporalAdaptiveQuantization)
-> (Value -> Parser [H265TemporalAdaptiveQuantization])
-> FromJSON H265TemporalAdaptiveQuantization
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H265TemporalAdaptiveQuantization]
$cparseJSONList :: Value -> Parser [H265TemporalAdaptiveQuantization]
parseJSON :: Value -> Parser H265TemporalAdaptiveQuantization
$cparseJSON :: Value -> Parser H265TemporalAdaptiveQuantization
Core.FromJSON,
      FromJSONKeyFunction [H265TemporalAdaptiveQuantization]
FromJSONKeyFunction H265TemporalAdaptiveQuantization
FromJSONKeyFunction H265TemporalAdaptiveQuantization
-> FromJSONKeyFunction [H265TemporalAdaptiveQuantization]
-> FromJSONKey H265TemporalAdaptiveQuantization
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H265TemporalAdaptiveQuantization]
$cfromJSONKeyList :: FromJSONKeyFunction [H265TemporalAdaptiveQuantization]
fromJSONKey :: FromJSONKeyFunction H265TemporalAdaptiveQuantization
$cfromJSONKey :: FromJSONKeyFunction H265TemporalAdaptiveQuantization
Core.FromJSONKey,
      [H265TemporalAdaptiveQuantization] -> Encoding
[H265TemporalAdaptiveQuantization] -> Value
H265TemporalAdaptiveQuantization -> Encoding
H265TemporalAdaptiveQuantization -> Value
(H265TemporalAdaptiveQuantization -> Value)
-> (H265TemporalAdaptiveQuantization -> Encoding)
-> ([H265TemporalAdaptiveQuantization] -> Value)
-> ([H265TemporalAdaptiveQuantization] -> Encoding)
-> ToJSON H265TemporalAdaptiveQuantization
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H265TemporalAdaptiveQuantization] -> Encoding
$ctoEncodingList :: [H265TemporalAdaptiveQuantization] -> Encoding
toJSONList :: [H265TemporalAdaptiveQuantization] -> Value
$ctoJSONList :: [H265TemporalAdaptiveQuantization] -> Value
toEncoding :: H265TemporalAdaptiveQuantization -> Encoding
$ctoEncoding :: H265TemporalAdaptiveQuantization -> Encoding
toJSON :: H265TemporalAdaptiveQuantization -> Value
$ctoJSON :: H265TemporalAdaptiveQuantization -> Value
Core.ToJSON,
      ToJSONKeyFunction [H265TemporalAdaptiveQuantization]
ToJSONKeyFunction H265TemporalAdaptiveQuantization
ToJSONKeyFunction H265TemporalAdaptiveQuantization
-> ToJSONKeyFunction [H265TemporalAdaptiveQuantization]
-> ToJSONKey H265TemporalAdaptiveQuantization
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H265TemporalAdaptiveQuantization]
$ctoJSONKeyList :: ToJSONKeyFunction [H265TemporalAdaptiveQuantization]
toJSONKey :: ToJSONKeyFunction H265TemporalAdaptiveQuantization
$ctoJSONKey :: ToJSONKeyFunction H265TemporalAdaptiveQuantization
Core.ToJSONKey,
      [Node] -> Either String H265TemporalAdaptiveQuantization
([Node] -> Either String H265TemporalAdaptiveQuantization)
-> FromXML H265TemporalAdaptiveQuantization
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H265TemporalAdaptiveQuantization
$cparseXML :: [Node] -> Either String H265TemporalAdaptiveQuantization
Core.FromXML,
      H265TemporalAdaptiveQuantization -> XML
(H265TemporalAdaptiveQuantization -> XML)
-> ToXML H265TemporalAdaptiveQuantization
forall a. (a -> XML) -> ToXML a
toXML :: H265TemporalAdaptiveQuantization -> XML
$ctoXML :: H265TemporalAdaptiveQuantization -> XML
Core.ToXML
    )

pattern H265TemporalAdaptiveQuantization_DISABLED :: H265TemporalAdaptiveQuantization
pattern $bH265TemporalAdaptiveQuantization_DISABLED :: H265TemporalAdaptiveQuantization
$mH265TemporalAdaptiveQuantization_DISABLED :: forall r.
H265TemporalAdaptiveQuantization
-> (Void# -> r) -> (Void# -> r) -> r
H265TemporalAdaptiveQuantization_DISABLED = H265TemporalAdaptiveQuantization' "DISABLED"

pattern H265TemporalAdaptiveQuantization_ENABLED :: H265TemporalAdaptiveQuantization
pattern $bH265TemporalAdaptiveQuantization_ENABLED :: H265TemporalAdaptiveQuantization
$mH265TemporalAdaptiveQuantization_ENABLED :: forall r.
H265TemporalAdaptiveQuantization
-> (Void# -> r) -> (Void# -> r) -> r
H265TemporalAdaptiveQuantization_ENABLED = H265TemporalAdaptiveQuantization' "ENABLED"

{-# COMPLETE
  H265TemporalAdaptiveQuantization_DISABLED,
  H265TemporalAdaptiveQuantization_ENABLED,
  H265TemporalAdaptiveQuantization'
  #-}