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

pattern H265FramerateControl_INITIALIZE_FROM_SOURCE :: H265FramerateControl
pattern $bH265FramerateControl_INITIALIZE_FROM_SOURCE :: H265FramerateControl
$mH265FramerateControl_INITIALIZE_FROM_SOURCE :: forall r. H265FramerateControl -> (Void# -> r) -> (Void# -> r) -> r
H265FramerateControl_INITIALIZE_FROM_SOURCE = H265FramerateControl' "INITIALIZE_FROM_SOURCE"

pattern H265FramerateControl_SPECIFIED :: H265FramerateControl
pattern $bH265FramerateControl_SPECIFIED :: H265FramerateControl
$mH265FramerateControl_SPECIFIED :: forall r. H265FramerateControl -> (Void# -> r) -> (Void# -> r) -> r
H265FramerateControl_SPECIFIED = H265FramerateControl' "SPECIFIED"

{-# COMPLETE
  H265FramerateControl_INITIALIZE_FROM_SOURCE,
  H265FramerateControl_SPECIFIED,
  H265FramerateControl'
  #-}