{-# 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.AvcIntraFramerateControl
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.AvcIntraFramerateControl
  ( AvcIntraFramerateControl
      ( ..,
        AvcIntraFramerateControl_INITIALIZE_FROM_SOURCE,
        AvcIntraFramerateControl_SPECIFIED
      ),
  )
where

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

-- | If you are using the console, use the Framerate setting to specify the
-- frame rate for this output. If you want to keep the same frame rate as
-- the input video, choose Follow source. If you want to do frame rate
-- conversion, choose a frame rate from the dropdown list or choose Custom.
-- The framerates shown in the dropdown list are decimal approximations of
-- fractions. If you choose Custom, specify your frame rate as a fraction.
-- If you are creating your transcoding job specification as a JSON file
-- without the console, use FramerateControl to specify which value the
-- service uses for the frame rate for this output. Choose
-- INITIALIZE_FROM_SOURCE if you want the service to use the frame rate
-- from the input. Choose SPECIFIED if you want the service to use the
-- frame rate you specify in the settings FramerateNumerator and
-- FramerateDenominator.
newtype AvcIntraFramerateControl = AvcIntraFramerateControl'
  { AvcIntraFramerateControl -> Text
fromAvcIntraFramerateControl ::
      Data.Text
  }
  deriving stock
    ( Int -> AvcIntraFramerateControl -> ShowS
[AvcIntraFramerateControl] -> ShowS
AvcIntraFramerateControl -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AvcIntraFramerateControl] -> ShowS
$cshowList :: [AvcIntraFramerateControl] -> ShowS
show :: AvcIntraFramerateControl -> String
$cshow :: AvcIntraFramerateControl -> String
showsPrec :: Int -> AvcIntraFramerateControl -> ShowS
$cshowsPrec :: Int -> AvcIntraFramerateControl -> ShowS
Prelude.Show,
      ReadPrec [AvcIntraFramerateControl]
ReadPrec AvcIntraFramerateControl
Int -> ReadS AvcIntraFramerateControl
ReadS [AvcIntraFramerateControl]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AvcIntraFramerateControl]
$creadListPrec :: ReadPrec [AvcIntraFramerateControl]
readPrec :: ReadPrec AvcIntraFramerateControl
$creadPrec :: ReadPrec AvcIntraFramerateControl
readList :: ReadS [AvcIntraFramerateControl]
$creadList :: ReadS [AvcIntraFramerateControl]
readsPrec :: Int -> ReadS AvcIntraFramerateControl
$creadsPrec :: Int -> ReadS AvcIntraFramerateControl
Prelude.Read,
      AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
$c/= :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
== :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
$c== :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
Prelude.Eq,
      Eq AvcIntraFramerateControl
AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
AvcIntraFramerateControl -> AvcIntraFramerateControl -> Ordering
AvcIntraFramerateControl
-> AvcIntraFramerateControl -> AvcIntraFramerateControl
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 :: AvcIntraFramerateControl
-> AvcIntraFramerateControl -> AvcIntraFramerateControl
$cmin :: AvcIntraFramerateControl
-> AvcIntraFramerateControl -> AvcIntraFramerateControl
max :: AvcIntraFramerateControl
-> AvcIntraFramerateControl -> AvcIntraFramerateControl
$cmax :: AvcIntraFramerateControl
-> AvcIntraFramerateControl -> AvcIntraFramerateControl
>= :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
$c>= :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
> :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
$c> :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
<= :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
$c<= :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
< :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
$c< :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool
compare :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Ordering
$ccompare :: AvcIntraFramerateControl -> AvcIntraFramerateControl -> Ordering
Prelude.Ord,
      forall x.
Rep AvcIntraFramerateControl x -> AvcIntraFramerateControl
forall x.
AvcIntraFramerateControl -> Rep AvcIntraFramerateControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AvcIntraFramerateControl x -> AvcIntraFramerateControl
$cfrom :: forall x.
AvcIntraFramerateControl -> Rep AvcIntraFramerateControl x
Prelude.Generic
    )
  deriving newtype
    ( Eq AvcIntraFramerateControl
Int -> AvcIntraFramerateControl -> Int
AvcIntraFramerateControl -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AvcIntraFramerateControl -> Int
$chash :: AvcIntraFramerateControl -> Int
hashWithSalt :: Int -> AvcIntraFramerateControl -> Int
$chashWithSalt :: Int -> AvcIntraFramerateControl -> Int
Prelude.Hashable,
      AvcIntraFramerateControl -> ()
forall a. (a -> ()) -> NFData a
rnf :: AvcIntraFramerateControl -> ()
$crnf :: AvcIntraFramerateControl -> ()
Prelude.NFData,
      Text -> Either String AvcIntraFramerateControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AvcIntraFramerateControl
$cfromText :: Text -> Either String AvcIntraFramerateControl
Data.FromText,
      AvcIntraFramerateControl -> Text
forall a. (a -> Text) -> ToText a
toText :: AvcIntraFramerateControl -> Text
$ctoText :: AvcIntraFramerateControl -> Text
Data.ToText,
      AvcIntraFramerateControl -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AvcIntraFramerateControl -> ByteString
$ctoBS :: AvcIntraFramerateControl -> ByteString
Data.ToByteString,
      AvcIntraFramerateControl -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AvcIntraFramerateControl -> ByteStringBuilder
$cbuild :: AvcIntraFramerateControl -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AvcIntraFramerateControl -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AvcIntraFramerateControl -> [Header]
$ctoHeader :: HeaderName -> AvcIntraFramerateControl -> [Header]
Data.ToHeader,
      AvcIntraFramerateControl -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AvcIntraFramerateControl -> QueryString
$ctoQuery :: AvcIntraFramerateControl -> QueryString
Data.ToQuery,
      Value -> Parser [AvcIntraFramerateControl]
Value -> Parser AvcIntraFramerateControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AvcIntraFramerateControl]
$cparseJSONList :: Value -> Parser [AvcIntraFramerateControl]
parseJSON :: Value -> Parser AvcIntraFramerateControl
$cparseJSON :: Value -> Parser AvcIntraFramerateControl
Data.FromJSON,
      FromJSONKeyFunction [AvcIntraFramerateControl]
FromJSONKeyFunction AvcIntraFramerateControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AvcIntraFramerateControl]
$cfromJSONKeyList :: FromJSONKeyFunction [AvcIntraFramerateControl]
fromJSONKey :: FromJSONKeyFunction AvcIntraFramerateControl
$cfromJSONKey :: FromJSONKeyFunction AvcIntraFramerateControl
Data.FromJSONKey,
      [AvcIntraFramerateControl] -> Encoding
[AvcIntraFramerateControl] -> Value
AvcIntraFramerateControl -> Encoding
AvcIntraFramerateControl -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AvcIntraFramerateControl] -> Encoding
$ctoEncodingList :: [AvcIntraFramerateControl] -> Encoding
toJSONList :: [AvcIntraFramerateControl] -> Value
$ctoJSONList :: [AvcIntraFramerateControl] -> Value
toEncoding :: AvcIntraFramerateControl -> Encoding
$ctoEncoding :: AvcIntraFramerateControl -> Encoding
toJSON :: AvcIntraFramerateControl -> Value
$ctoJSON :: AvcIntraFramerateControl -> Value
Data.ToJSON,
      ToJSONKeyFunction [AvcIntraFramerateControl]
ToJSONKeyFunction AvcIntraFramerateControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AvcIntraFramerateControl]
$ctoJSONKeyList :: ToJSONKeyFunction [AvcIntraFramerateControl]
toJSONKey :: ToJSONKeyFunction AvcIntraFramerateControl
$ctoJSONKey :: ToJSONKeyFunction AvcIntraFramerateControl
Data.ToJSONKey,
      [Node] -> Either String AvcIntraFramerateControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AvcIntraFramerateControl
$cparseXML :: [Node] -> Either String AvcIntraFramerateControl
Data.FromXML,
      AvcIntraFramerateControl -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AvcIntraFramerateControl -> XML
$ctoXML :: AvcIntraFramerateControl -> XML
Data.ToXML
    )

pattern AvcIntraFramerateControl_INITIALIZE_FROM_SOURCE :: AvcIntraFramerateControl
pattern $bAvcIntraFramerateControl_INITIALIZE_FROM_SOURCE :: AvcIntraFramerateControl
$mAvcIntraFramerateControl_INITIALIZE_FROM_SOURCE :: forall {r}.
AvcIntraFramerateControl -> ((# #) -> r) -> ((# #) -> r) -> r
AvcIntraFramerateControl_INITIALIZE_FROM_SOURCE = AvcIntraFramerateControl' "INITIALIZE_FROM_SOURCE"

pattern AvcIntraFramerateControl_SPECIFIED :: AvcIntraFramerateControl
pattern $bAvcIntraFramerateControl_SPECIFIED :: AvcIntraFramerateControl
$mAvcIntraFramerateControl_SPECIFIED :: forall {r}.
AvcIntraFramerateControl -> ((# #) -> r) -> ((# #) -> r) -> r
AvcIntraFramerateControl_SPECIFIED = AvcIntraFramerateControl' "SPECIFIED"

{-# COMPLETE
  AvcIntraFramerateControl_INITIALIZE_FROM_SOURCE,
  AvcIntraFramerateControl_SPECIFIED,
  AvcIntraFramerateControl'
  #-}