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

pattern Mpeg2DynamicSubGop_ADAPTIVE :: Mpeg2DynamicSubGop
pattern $bMpeg2DynamicSubGop_ADAPTIVE :: Mpeg2DynamicSubGop
$mMpeg2DynamicSubGop_ADAPTIVE :: forall r. Mpeg2DynamicSubGop -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2DynamicSubGop_ADAPTIVE = Mpeg2DynamicSubGop' "ADAPTIVE"

pattern Mpeg2DynamicSubGop_STATIC :: Mpeg2DynamicSubGop
pattern $bMpeg2DynamicSubGop_STATIC :: Mpeg2DynamicSubGop
$mMpeg2DynamicSubGop_STATIC :: forall r. Mpeg2DynamicSubGop -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2DynamicSubGop_STATIC = Mpeg2DynamicSubGop' "STATIC"

{-# COMPLETE
  Mpeg2DynamicSubGop_ADAPTIVE,
  Mpeg2DynamicSubGop_STATIC,
  Mpeg2DynamicSubGop'
  #-}