{-# 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.H265DynamicSubGop
-- 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.H265DynamicSubGop
  ( H265DynamicSubGop
      ( ..,
        H265DynamicSubGop_ADAPTIVE,
        H265DynamicSubGop_STATIC
      ),
  )
where

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

-- | Choose Adaptive to improve subjective video quality for high-motion
-- content. This will cause the service to use fewer B-frames (which infer
-- information based on other frames) for high-motion portions of the video
-- and more B-frames for low-motion portions. The maximum number of
-- B-frames is limited by the value you provide for the setting B frames
-- between reference frames (numberBFramesBetweenReferenceFrames).
newtype H265DynamicSubGop = H265DynamicSubGop'
  { H265DynamicSubGop -> Text
fromH265DynamicSubGop ::
      Core.Text
  }
  deriving stock
    ( Int -> H265DynamicSubGop -> ShowS
[H265DynamicSubGop] -> ShowS
H265DynamicSubGop -> String
(Int -> H265DynamicSubGop -> ShowS)
-> (H265DynamicSubGop -> String)
-> ([H265DynamicSubGop] -> ShowS)
-> Show H265DynamicSubGop
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H265DynamicSubGop] -> ShowS
$cshowList :: [H265DynamicSubGop] -> ShowS
show :: H265DynamicSubGop -> String
$cshow :: H265DynamicSubGop -> String
showsPrec :: Int -> H265DynamicSubGop -> ShowS
$cshowsPrec :: Int -> H265DynamicSubGop -> ShowS
Prelude.Show,
      ReadPrec [H265DynamicSubGop]
ReadPrec H265DynamicSubGop
Int -> ReadS H265DynamicSubGop
ReadS [H265DynamicSubGop]
(Int -> ReadS H265DynamicSubGop)
-> ReadS [H265DynamicSubGop]
-> ReadPrec H265DynamicSubGop
-> ReadPrec [H265DynamicSubGop]
-> Read H265DynamicSubGop
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H265DynamicSubGop]
$creadListPrec :: ReadPrec [H265DynamicSubGop]
readPrec :: ReadPrec H265DynamicSubGop
$creadPrec :: ReadPrec H265DynamicSubGop
readList :: ReadS [H265DynamicSubGop]
$creadList :: ReadS [H265DynamicSubGop]
readsPrec :: Int -> ReadS H265DynamicSubGop
$creadsPrec :: Int -> ReadS H265DynamicSubGop
Prelude.Read,
      H265DynamicSubGop -> H265DynamicSubGop -> Bool
(H265DynamicSubGop -> H265DynamicSubGop -> Bool)
-> (H265DynamicSubGop -> H265DynamicSubGop -> Bool)
-> Eq H265DynamicSubGop
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
$c/= :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
== :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
$c== :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
Prelude.Eq,
      Eq H265DynamicSubGop
Eq H265DynamicSubGop
-> (H265DynamicSubGop -> H265DynamicSubGop -> Ordering)
-> (H265DynamicSubGop -> H265DynamicSubGop -> Bool)
-> (H265DynamicSubGop -> H265DynamicSubGop -> Bool)
-> (H265DynamicSubGop -> H265DynamicSubGop -> Bool)
-> (H265DynamicSubGop -> H265DynamicSubGop -> Bool)
-> (H265DynamicSubGop -> H265DynamicSubGop -> H265DynamicSubGop)
-> (H265DynamicSubGop -> H265DynamicSubGop -> H265DynamicSubGop)
-> Ord H265DynamicSubGop
H265DynamicSubGop -> H265DynamicSubGop -> Bool
H265DynamicSubGop -> H265DynamicSubGop -> Ordering
H265DynamicSubGop -> H265DynamicSubGop -> H265DynamicSubGop
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 :: H265DynamicSubGop -> H265DynamicSubGop -> H265DynamicSubGop
$cmin :: H265DynamicSubGop -> H265DynamicSubGop -> H265DynamicSubGop
max :: H265DynamicSubGop -> H265DynamicSubGop -> H265DynamicSubGop
$cmax :: H265DynamicSubGop -> H265DynamicSubGop -> H265DynamicSubGop
>= :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
$c>= :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
> :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
$c> :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
<= :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
$c<= :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
< :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
$c< :: H265DynamicSubGop -> H265DynamicSubGop -> Bool
compare :: H265DynamicSubGop -> H265DynamicSubGop -> Ordering
$ccompare :: H265DynamicSubGop -> H265DynamicSubGop -> Ordering
$cp1Ord :: Eq H265DynamicSubGop
Prelude.Ord,
      (forall x. H265DynamicSubGop -> Rep H265DynamicSubGop x)
-> (forall x. Rep H265DynamicSubGop x -> H265DynamicSubGop)
-> Generic H265DynamicSubGop
forall x. Rep H265DynamicSubGop x -> H265DynamicSubGop
forall x. H265DynamicSubGop -> Rep H265DynamicSubGop x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H265DynamicSubGop x -> H265DynamicSubGop
$cfrom :: forall x. H265DynamicSubGop -> Rep H265DynamicSubGop x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H265DynamicSubGop -> Int
H265DynamicSubGop -> Int
(Int -> H265DynamicSubGop -> Int)
-> (H265DynamicSubGop -> Int) -> Hashable H265DynamicSubGop
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H265DynamicSubGop -> Int
$chash :: H265DynamicSubGop -> Int
hashWithSalt :: Int -> H265DynamicSubGop -> Int
$chashWithSalt :: Int -> H265DynamicSubGop -> Int
Prelude.Hashable,
      H265DynamicSubGop -> ()
(H265DynamicSubGop -> ()) -> NFData H265DynamicSubGop
forall a. (a -> ()) -> NFData a
rnf :: H265DynamicSubGop -> ()
$crnf :: H265DynamicSubGop -> ()
Prelude.NFData,
      Text -> Either String H265DynamicSubGop
(Text -> Either String H265DynamicSubGop)
-> FromText H265DynamicSubGop
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H265DynamicSubGop
$cfromText :: Text -> Either String H265DynamicSubGop
Core.FromText,
      H265DynamicSubGop -> Text
(H265DynamicSubGop -> Text) -> ToText H265DynamicSubGop
forall a. (a -> Text) -> ToText a
toText :: H265DynamicSubGop -> Text
$ctoText :: H265DynamicSubGop -> Text
Core.ToText,
      H265DynamicSubGop -> ByteString
(H265DynamicSubGop -> ByteString) -> ToByteString H265DynamicSubGop
forall a. (a -> ByteString) -> ToByteString a
toBS :: H265DynamicSubGop -> ByteString
$ctoBS :: H265DynamicSubGop -> ByteString
Core.ToByteString,
      H265DynamicSubGop -> ByteStringBuilder
(H265DynamicSubGop -> ByteStringBuilder) -> ToLog H265DynamicSubGop
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H265DynamicSubGop -> ByteStringBuilder
$cbuild :: H265DynamicSubGop -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H265DynamicSubGop -> [Header]
(HeaderName -> H265DynamicSubGop -> [Header])
-> ToHeader H265DynamicSubGop
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H265DynamicSubGop -> [Header]
$ctoHeader :: HeaderName -> H265DynamicSubGop -> [Header]
Core.ToHeader,
      H265DynamicSubGop -> QueryString
(H265DynamicSubGop -> QueryString) -> ToQuery H265DynamicSubGop
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H265DynamicSubGop -> QueryString
$ctoQuery :: H265DynamicSubGop -> QueryString
Core.ToQuery,
      Value -> Parser [H265DynamicSubGop]
Value -> Parser H265DynamicSubGop
(Value -> Parser H265DynamicSubGop)
-> (Value -> Parser [H265DynamicSubGop])
-> FromJSON H265DynamicSubGop
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H265DynamicSubGop]
$cparseJSONList :: Value -> Parser [H265DynamicSubGop]
parseJSON :: Value -> Parser H265DynamicSubGop
$cparseJSON :: Value -> Parser H265DynamicSubGop
Core.FromJSON,
      FromJSONKeyFunction [H265DynamicSubGop]
FromJSONKeyFunction H265DynamicSubGop
FromJSONKeyFunction H265DynamicSubGop
-> FromJSONKeyFunction [H265DynamicSubGop]
-> FromJSONKey H265DynamicSubGop
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H265DynamicSubGop]
$cfromJSONKeyList :: FromJSONKeyFunction [H265DynamicSubGop]
fromJSONKey :: FromJSONKeyFunction H265DynamicSubGop
$cfromJSONKey :: FromJSONKeyFunction H265DynamicSubGop
Core.FromJSONKey,
      [H265DynamicSubGop] -> Encoding
[H265DynamicSubGop] -> Value
H265DynamicSubGop -> Encoding
H265DynamicSubGop -> Value
(H265DynamicSubGop -> Value)
-> (H265DynamicSubGop -> Encoding)
-> ([H265DynamicSubGop] -> Value)
-> ([H265DynamicSubGop] -> Encoding)
-> ToJSON H265DynamicSubGop
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H265DynamicSubGop] -> Encoding
$ctoEncodingList :: [H265DynamicSubGop] -> Encoding
toJSONList :: [H265DynamicSubGop] -> Value
$ctoJSONList :: [H265DynamicSubGop] -> Value
toEncoding :: H265DynamicSubGop -> Encoding
$ctoEncoding :: H265DynamicSubGop -> Encoding
toJSON :: H265DynamicSubGop -> Value
$ctoJSON :: H265DynamicSubGop -> Value
Core.ToJSON,
      ToJSONKeyFunction [H265DynamicSubGop]
ToJSONKeyFunction H265DynamicSubGop
ToJSONKeyFunction H265DynamicSubGop
-> ToJSONKeyFunction [H265DynamicSubGop]
-> ToJSONKey H265DynamicSubGop
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H265DynamicSubGop]
$ctoJSONKeyList :: ToJSONKeyFunction [H265DynamicSubGop]
toJSONKey :: ToJSONKeyFunction H265DynamicSubGop
$ctoJSONKey :: ToJSONKeyFunction H265DynamicSubGop
Core.ToJSONKey,
      [Node] -> Either String H265DynamicSubGop
([Node] -> Either String H265DynamicSubGop)
-> FromXML H265DynamicSubGop
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H265DynamicSubGop
$cparseXML :: [Node] -> Either String H265DynamicSubGop
Core.FromXML,
      H265DynamicSubGop -> XML
(H265DynamicSubGop -> XML) -> ToXML H265DynamicSubGop
forall a. (a -> XML) -> ToXML a
toXML :: H265DynamicSubGop -> XML
$ctoXML :: H265DynamicSubGop -> XML
Core.ToXML
    )

pattern H265DynamicSubGop_ADAPTIVE :: H265DynamicSubGop
pattern $bH265DynamicSubGop_ADAPTIVE :: H265DynamicSubGop
$mH265DynamicSubGop_ADAPTIVE :: forall r. H265DynamicSubGop -> (Void# -> r) -> (Void# -> r) -> r
H265DynamicSubGop_ADAPTIVE = H265DynamicSubGop' "ADAPTIVE"

pattern H265DynamicSubGop_STATIC :: H265DynamicSubGop
pattern $bH265DynamicSubGop_STATIC :: H265DynamicSubGop
$mH265DynamicSubGop_STATIC :: forall r. H265DynamicSubGop -> (Void# -> r) -> (Void# -> r) -> r
H265DynamicSubGop_STATIC = H265DynamicSubGop' "STATIC"

{-# COMPLETE
  H265DynamicSubGop_ADAPTIVE,
  H265DynamicSubGop_STATIC,
  H265DynamicSubGop'
  #-}