{-# 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.H265SceneChangeDetect
-- 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.H265SceneChangeDetect
  ( H265SceneChangeDetect
      ( ..,
        H265SceneChangeDetect_DISABLED,
        H265SceneChangeDetect_ENABLED,
        H265SceneChangeDetect_TRANSITION_DETECTION
      ),
  )
where

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

-- | Enable this setting to insert I-frames at scene changes that the service
-- automatically detects. This improves video quality and is enabled by
-- default. If this output uses QVBR, choose Transition detection
-- (TRANSITION_DETECTION) for further video quality improvement. For more
-- information about QVBR, see
-- https:\/\/docs.aws.amazon.com\/console\/mediaconvert\/cbr-vbr-qvbr.
newtype H265SceneChangeDetect = H265SceneChangeDetect'
  { H265SceneChangeDetect -> Text
fromH265SceneChangeDetect ::
      Core.Text
  }
  deriving stock
    ( Int -> H265SceneChangeDetect -> ShowS
[H265SceneChangeDetect] -> ShowS
H265SceneChangeDetect -> String
(Int -> H265SceneChangeDetect -> ShowS)
-> (H265SceneChangeDetect -> String)
-> ([H265SceneChangeDetect] -> ShowS)
-> Show H265SceneChangeDetect
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H265SceneChangeDetect] -> ShowS
$cshowList :: [H265SceneChangeDetect] -> ShowS
show :: H265SceneChangeDetect -> String
$cshow :: H265SceneChangeDetect -> String
showsPrec :: Int -> H265SceneChangeDetect -> ShowS
$cshowsPrec :: Int -> H265SceneChangeDetect -> ShowS
Prelude.Show,
      ReadPrec [H265SceneChangeDetect]
ReadPrec H265SceneChangeDetect
Int -> ReadS H265SceneChangeDetect
ReadS [H265SceneChangeDetect]
(Int -> ReadS H265SceneChangeDetect)
-> ReadS [H265SceneChangeDetect]
-> ReadPrec H265SceneChangeDetect
-> ReadPrec [H265SceneChangeDetect]
-> Read H265SceneChangeDetect
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H265SceneChangeDetect]
$creadListPrec :: ReadPrec [H265SceneChangeDetect]
readPrec :: ReadPrec H265SceneChangeDetect
$creadPrec :: ReadPrec H265SceneChangeDetect
readList :: ReadS [H265SceneChangeDetect]
$creadList :: ReadS [H265SceneChangeDetect]
readsPrec :: Int -> ReadS H265SceneChangeDetect
$creadsPrec :: Int -> ReadS H265SceneChangeDetect
Prelude.Read,
      H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
(H265SceneChangeDetect -> H265SceneChangeDetect -> Bool)
-> (H265SceneChangeDetect -> H265SceneChangeDetect -> Bool)
-> Eq H265SceneChangeDetect
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
$c/= :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
== :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
$c== :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
Prelude.Eq,
      Eq H265SceneChangeDetect
Eq H265SceneChangeDetect
-> (H265SceneChangeDetect -> H265SceneChangeDetect -> Ordering)
-> (H265SceneChangeDetect -> H265SceneChangeDetect -> Bool)
-> (H265SceneChangeDetect -> H265SceneChangeDetect -> Bool)
-> (H265SceneChangeDetect -> H265SceneChangeDetect -> Bool)
-> (H265SceneChangeDetect -> H265SceneChangeDetect -> Bool)
-> (H265SceneChangeDetect
    -> H265SceneChangeDetect -> H265SceneChangeDetect)
-> (H265SceneChangeDetect
    -> H265SceneChangeDetect -> H265SceneChangeDetect)
-> Ord H265SceneChangeDetect
H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
H265SceneChangeDetect -> H265SceneChangeDetect -> Ordering
H265SceneChangeDetect
-> H265SceneChangeDetect -> H265SceneChangeDetect
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 :: H265SceneChangeDetect
-> H265SceneChangeDetect -> H265SceneChangeDetect
$cmin :: H265SceneChangeDetect
-> H265SceneChangeDetect -> H265SceneChangeDetect
max :: H265SceneChangeDetect
-> H265SceneChangeDetect -> H265SceneChangeDetect
$cmax :: H265SceneChangeDetect
-> H265SceneChangeDetect -> H265SceneChangeDetect
>= :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
$c>= :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
> :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
$c> :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
<= :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
$c<= :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
< :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
$c< :: H265SceneChangeDetect -> H265SceneChangeDetect -> Bool
compare :: H265SceneChangeDetect -> H265SceneChangeDetect -> Ordering
$ccompare :: H265SceneChangeDetect -> H265SceneChangeDetect -> Ordering
$cp1Ord :: Eq H265SceneChangeDetect
Prelude.Ord,
      (forall x. H265SceneChangeDetect -> Rep H265SceneChangeDetect x)
-> (forall x. Rep H265SceneChangeDetect x -> H265SceneChangeDetect)
-> Generic H265SceneChangeDetect
forall x. Rep H265SceneChangeDetect x -> H265SceneChangeDetect
forall x. H265SceneChangeDetect -> Rep H265SceneChangeDetect x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H265SceneChangeDetect x -> H265SceneChangeDetect
$cfrom :: forall x. H265SceneChangeDetect -> Rep H265SceneChangeDetect x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H265SceneChangeDetect -> Int
H265SceneChangeDetect -> Int
(Int -> H265SceneChangeDetect -> Int)
-> (H265SceneChangeDetect -> Int) -> Hashable H265SceneChangeDetect
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H265SceneChangeDetect -> Int
$chash :: H265SceneChangeDetect -> Int
hashWithSalt :: Int -> H265SceneChangeDetect -> Int
$chashWithSalt :: Int -> H265SceneChangeDetect -> Int
Prelude.Hashable,
      H265SceneChangeDetect -> ()
(H265SceneChangeDetect -> ()) -> NFData H265SceneChangeDetect
forall a. (a -> ()) -> NFData a
rnf :: H265SceneChangeDetect -> ()
$crnf :: H265SceneChangeDetect -> ()
Prelude.NFData,
      Text -> Either String H265SceneChangeDetect
(Text -> Either String H265SceneChangeDetect)
-> FromText H265SceneChangeDetect
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H265SceneChangeDetect
$cfromText :: Text -> Either String H265SceneChangeDetect
Core.FromText,
      H265SceneChangeDetect -> Text
(H265SceneChangeDetect -> Text) -> ToText H265SceneChangeDetect
forall a. (a -> Text) -> ToText a
toText :: H265SceneChangeDetect -> Text
$ctoText :: H265SceneChangeDetect -> Text
Core.ToText,
      H265SceneChangeDetect -> ByteString
(H265SceneChangeDetect -> ByteString)
-> ToByteString H265SceneChangeDetect
forall a. (a -> ByteString) -> ToByteString a
toBS :: H265SceneChangeDetect -> ByteString
$ctoBS :: H265SceneChangeDetect -> ByteString
Core.ToByteString,
      H265SceneChangeDetect -> ByteStringBuilder
(H265SceneChangeDetect -> ByteStringBuilder)
-> ToLog H265SceneChangeDetect
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H265SceneChangeDetect -> ByteStringBuilder
$cbuild :: H265SceneChangeDetect -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H265SceneChangeDetect -> [Header]
(HeaderName -> H265SceneChangeDetect -> [Header])
-> ToHeader H265SceneChangeDetect
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H265SceneChangeDetect -> [Header]
$ctoHeader :: HeaderName -> H265SceneChangeDetect -> [Header]
Core.ToHeader,
      H265SceneChangeDetect -> QueryString
(H265SceneChangeDetect -> QueryString)
-> ToQuery H265SceneChangeDetect
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H265SceneChangeDetect -> QueryString
$ctoQuery :: H265SceneChangeDetect -> QueryString
Core.ToQuery,
      Value -> Parser [H265SceneChangeDetect]
Value -> Parser H265SceneChangeDetect
(Value -> Parser H265SceneChangeDetect)
-> (Value -> Parser [H265SceneChangeDetect])
-> FromJSON H265SceneChangeDetect
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H265SceneChangeDetect]
$cparseJSONList :: Value -> Parser [H265SceneChangeDetect]
parseJSON :: Value -> Parser H265SceneChangeDetect
$cparseJSON :: Value -> Parser H265SceneChangeDetect
Core.FromJSON,
      FromJSONKeyFunction [H265SceneChangeDetect]
FromJSONKeyFunction H265SceneChangeDetect
FromJSONKeyFunction H265SceneChangeDetect
-> FromJSONKeyFunction [H265SceneChangeDetect]
-> FromJSONKey H265SceneChangeDetect
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H265SceneChangeDetect]
$cfromJSONKeyList :: FromJSONKeyFunction [H265SceneChangeDetect]
fromJSONKey :: FromJSONKeyFunction H265SceneChangeDetect
$cfromJSONKey :: FromJSONKeyFunction H265SceneChangeDetect
Core.FromJSONKey,
      [H265SceneChangeDetect] -> Encoding
[H265SceneChangeDetect] -> Value
H265SceneChangeDetect -> Encoding
H265SceneChangeDetect -> Value
(H265SceneChangeDetect -> Value)
-> (H265SceneChangeDetect -> Encoding)
-> ([H265SceneChangeDetect] -> Value)
-> ([H265SceneChangeDetect] -> Encoding)
-> ToJSON H265SceneChangeDetect
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H265SceneChangeDetect] -> Encoding
$ctoEncodingList :: [H265SceneChangeDetect] -> Encoding
toJSONList :: [H265SceneChangeDetect] -> Value
$ctoJSONList :: [H265SceneChangeDetect] -> Value
toEncoding :: H265SceneChangeDetect -> Encoding
$ctoEncoding :: H265SceneChangeDetect -> Encoding
toJSON :: H265SceneChangeDetect -> Value
$ctoJSON :: H265SceneChangeDetect -> Value
Core.ToJSON,
      ToJSONKeyFunction [H265SceneChangeDetect]
ToJSONKeyFunction H265SceneChangeDetect
ToJSONKeyFunction H265SceneChangeDetect
-> ToJSONKeyFunction [H265SceneChangeDetect]
-> ToJSONKey H265SceneChangeDetect
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H265SceneChangeDetect]
$ctoJSONKeyList :: ToJSONKeyFunction [H265SceneChangeDetect]
toJSONKey :: ToJSONKeyFunction H265SceneChangeDetect
$ctoJSONKey :: ToJSONKeyFunction H265SceneChangeDetect
Core.ToJSONKey,
      [Node] -> Either String H265SceneChangeDetect
([Node] -> Either String H265SceneChangeDetect)
-> FromXML H265SceneChangeDetect
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H265SceneChangeDetect
$cparseXML :: [Node] -> Either String H265SceneChangeDetect
Core.FromXML,
      H265SceneChangeDetect -> XML
(H265SceneChangeDetect -> XML) -> ToXML H265SceneChangeDetect
forall a. (a -> XML) -> ToXML a
toXML :: H265SceneChangeDetect -> XML
$ctoXML :: H265SceneChangeDetect -> XML
Core.ToXML
    )

pattern H265SceneChangeDetect_DISABLED :: H265SceneChangeDetect
pattern $bH265SceneChangeDetect_DISABLED :: H265SceneChangeDetect
$mH265SceneChangeDetect_DISABLED :: forall r.
H265SceneChangeDetect -> (Void# -> r) -> (Void# -> r) -> r
H265SceneChangeDetect_DISABLED = H265SceneChangeDetect' "DISABLED"

pattern H265SceneChangeDetect_ENABLED :: H265SceneChangeDetect
pattern $bH265SceneChangeDetect_ENABLED :: H265SceneChangeDetect
$mH265SceneChangeDetect_ENABLED :: forall r.
H265SceneChangeDetect -> (Void# -> r) -> (Void# -> r) -> r
H265SceneChangeDetect_ENABLED = H265SceneChangeDetect' "ENABLED"

pattern H265SceneChangeDetect_TRANSITION_DETECTION :: H265SceneChangeDetect
pattern $bH265SceneChangeDetect_TRANSITION_DETECTION :: H265SceneChangeDetect
$mH265SceneChangeDetect_TRANSITION_DETECTION :: forall r.
H265SceneChangeDetect -> (Void# -> r) -> (Void# -> r) -> r
H265SceneChangeDetect_TRANSITION_DETECTION = H265SceneChangeDetect' "TRANSITION_DETECTION"

{-# COMPLETE
  H265SceneChangeDetect_DISABLED,
  H265SceneChangeDetect_ENABLED,
  H265SceneChangeDetect_TRANSITION_DETECTION,
  H265SceneChangeDetect'
  #-}