{-# 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-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.AvcIntraFramerateControl
  ( AvcIntraFramerateControl
      ( ..,
        AvcIntraFramerateControl_INITIALIZE_FROM_SOURCE,
        AvcIntraFramerateControl_SPECIFIED
      ),
  )
where

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> AvcIntraFramerateControl -> ShowS
[AvcIntraFramerateControl] -> ShowS
AvcIntraFramerateControl -> String
(Int -> AvcIntraFramerateControl -> ShowS)
-> (AvcIntraFramerateControl -> String)
-> ([AvcIntraFramerateControl] -> ShowS)
-> Show AvcIntraFramerateControl
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]
(Int -> ReadS AvcIntraFramerateControl)
-> ReadS [AvcIntraFramerateControl]
-> ReadPrec AvcIntraFramerateControl
-> ReadPrec [AvcIntraFramerateControl]
-> Read 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
(AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool)
-> (AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool)
-> Eq AvcIntraFramerateControl
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
Eq AvcIntraFramerateControl
-> (AvcIntraFramerateControl
    -> AvcIntraFramerateControl -> Ordering)
-> (AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool)
-> (AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool)
-> (AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool)
-> (AvcIntraFramerateControl -> AvcIntraFramerateControl -> Bool)
-> (AvcIntraFramerateControl
    -> AvcIntraFramerateControl -> AvcIntraFramerateControl)
-> (AvcIntraFramerateControl
    -> AvcIntraFramerateControl -> AvcIntraFramerateControl)
-> Ord 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
$cp1Ord :: Eq AvcIntraFramerateControl
Prelude.Ord,
      (forall x.
 AvcIntraFramerateControl -> Rep AvcIntraFramerateControl x)
-> (forall x.
    Rep AvcIntraFramerateControl x -> AvcIntraFramerateControl)
-> Generic AvcIntraFramerateControl
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
    ( Int -> AvcIntraFramerateControl -> Int
AvcIntraFramerateControl -> Int
(Int -> AvcIntraFramerateControl -> Int)
-> (AvcIntraFramerateControl -> Int)
-> Hashable AvcIntraFramerateControl
forall 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 -> ()
(AvcIntraFramerateControl -> ()) -> NFData AvcIntraFramerateControl
forall a. (a -> ()) -> NFData a
rnf :: AvcIntraFramerateControl -> ()
$crnf :: AvcIntraFramerateControl -> ()
Prelude.NFData,
      Text -> Either String AvcIntraFramerateControl
(Text -> Either String AvcIntraFramerateControl)
-> FromText AvcIntraFramerateControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AvcIntraFramerateControl
$cfromText :: Text -> Either String AvcIntraFramerateControl
Core.FromText,
      AvcIntraFramerateControl -> Text
(AvcIntraFramerateControl -> Text)
-> ToText AvcIntraFramerateControl
forall a. (a -> Text) -> ToText a
toText :: AvcIntraFramerateControl -> Text
$ctoText :: AvcIntraFramerateControl -> Text
Core.ToText,
      AvcIntraFramerateControl -> ByteString
(AvcIntraFramerateControl -> ByteString)
-> ToByteString AvcIntraFramerateControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: AvcIntraFramerateControl -> ByteString
$ctoBS :: AvcIntraFramerateControl -> ByteString
Core.ToByteString,
      AvcIntraFramerateControl -> ByteStringBuilder
(AvcIntraFramerateControl -> ByteStringBuilder)
-> ToLog AvcIntraFramerateControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AvcIntraFramerateControl -> ByteStringBuilder
$cbuild :: AvcIntraFramerateControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AvcIntraFramerateControl -> [Header]
(HeaderName -> AvcIntraFramerateControl -> [Header])
-> ToHeader AvcIntraFramerateControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AvcIntraFramerateControl -> [Header]
$ctoHeader :: HeaderName -> AvcIntraFramerateControl -> [Header]
Core.ToHeader,
      AvcIntraFramerateControl -> QueryString
(AvcIntraFramerateControl -> QueryString)
-> ToQuery AvcIntraFramerateControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AvcIntraFramerateControl -> QueryString
$ctoQuery :: AvcIntraFramerateControl -> QueryString
Core.ToQuery,
      Value -> Parser [AvcIntraFramerateControl]
Value -> Parser AvcIntraFramerateControl
(Value -> Parser AvcIntraFramerateControl)
-> (Value -> Parser [AvcIntraFramerateControl])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [AvcIntraFramerateControl]
FromJSONKeyFunction AvcIntraFramerateControl
FromJSONKeyFunction AvcIntraFramerateControl
-> FromJSONKeyFunction [AvcIntraFramerateControl]
-> FromJSONKey AvcIntraFramerateControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AvcIntraFramerateControl]
$cfromJSONKeyList :: FromJSONKeyFunction [AvcIntraFramerateControl]
fromJSONKey :: FromJSONKeyFunction AvcIntraFramerateControl
$cfromJSONKey :: FromJSONKeyFunction AvcIntraFramerateControl
Core.FromJSONKey,
      [AvcIntraFramerateControl] -> Encoding
[AvcIntraFramerateControl] -> Value
AvcIntraFramerateControl -> Encoding
AvcIntraFramerateControl -> Value
(AvcIntraFramerateControl -> Value)
-> (AvcIntraFramerateControl -> Encoding)
-> ([AvcIntraFramerateControl] -> Value)
-> ([AvcIntraFramerateControl] -> Encoding)
-> ToJSON AvcIntraFramerateControl
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
Core.ToJSON,
      ToJSONKeyFunction [AvcIntraFramerateControl]
ToJSONKeyFunction AvcIntraFramerateControl
ToJSONKeyFunction AvcIntraFramerateControl
-> ToJSONKeyFunction [AvcIntraFramerateControl]
-> ToJSONKey AvcIntraFramerateControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AvcIntraFramerateControl]
$ctoJSONKeyList :: ToJSONKeyFunction [AvcIntraFramerateControl]
toJSONKey :: ToJSONKeyFunction AvcIntraFramerateControl
$ctoJSONKey :: ToJSONKeyFunction AvcIntraFramerateControl
Core.ToJSONKey,
      [Node] -> Either String AvcIntraFramerateControl
([Node] -> Either String AvcIntraFramerateControl)
-> FromXML AvcIntraFramerateControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AvcIntraFramerateControl
$cparseXML :: [Node] -> Either String AvcIntraFramerateControl
Core.FromXML,
      AvcIntraFramerateControl -> XML
(AvcIntraFramerateControl -> XML) -> ToXML AvcIntraFramerateControl
forall a. (a -> XML) -> ToXML a
toXML :: AvcIntraFramerateControl -> XML
$ctoXML :: AvcIntraFramerateControl -> XML
Core.ToXML
    )

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

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

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