{-# 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.DropFrameTimecode
-- 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.DropFrameTimecode
  ( DropFrameTimecode
      ( ..,
        DropFrameTimecode_DISABLED,
        DropFrameTimecode_ENABLED
      ),
  )
where

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

-- | Applies only to 29.97 fps outputs. When this feature is enabled, the
-- service will use drop-frame timecode on outputs. If it is not possible
-- to use drop-frame timecode, the system will fall back to non-drop-frame.
-- This setting is enabled by default when Timecode insertion
-- (TimecodeInsertion) is enabled.
newtype DropFrameTimecode = DropFrameTimecode'
  { DropFrameTimecode -> Text
fromDropFrameTimecode ::
      Data.Text
  }
  deriving stock
    ( Int -> DropFrameTimecode -> ShowS
[DropFrameTimecode] -> ShowS
DropFrameTimecode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DropFrameTimecode] -> ShowS
$cshowList :: [DropFrameTimecode] -> ShowS
show :: DropFrameTimecode -> String
$cshow :: DropFrameTimecode -> String
showsPrec :: Int -> DropFrameTimecode -> ShowS
$cshowsPrec :: Int -> DropFrameTimecode -> ShowS
Prelude.Show,
      ReadPrec [DropFrameTimecode]
ReadPrec DropFrameTimecode
Int -> ReadS DropFrameTimecode
ReadS [DropFrameTimecode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DropFrameTimecode]
$creadListPrec :: ReadPrec [DropFrameTimecode]
readPrec :: ReadPrec DropFrameTimecode
$creadPrec :: ReadPrec DropFrameTimecode
readList :: ReadS [DropFrameTimecode]
$creadList :: ReadS [DropFrameTimecode]
readsPrec :: Int -> ReadS DropFrameTimecode
$creadsPrec :: Int -> ReadS DropFrameTimecode
Prelude.Read,
      DropFrameTimecode -> DropFrameTimecode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c/= :: DropFrameTimecode -> DropFrameTimecode -> Bool
== :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c== :: DropFrameTimecode -> DropFrameTimecode -> Bool
Prelude.Eq,
      Eq DropFrameTimecode
DropFrameTimecode -> DropFrameTimecode -> Bool
DropFrameTimecode -> DropFrameTimecode -> Ordering
DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
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 :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
$cmin :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
max :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
$cmax :: DropFrameTimecode -> DropFrameTimecode -> DropFrameTimecode
>= :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c>= :: DropFrameTimecode -> DropFrameTimecode -> Bool
> :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c> :: DropFrameTimecode -> DropFrameTimecode -> Bool
<= :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c<= :: DropFrameTimecode -> DropFrameTimecode -> Bool
< :: DropFrameTimecode -> DropFrameTimecode -> Bool
$c< :: DropFrameTimecode -> DropFrameTimecode -> Bool
compare :: DropFrameTimecode -> DropFrameTimecode -> Ordering
$ccompare :: DropFrameTimecode -> DropFrameTimecode -> Ordering
Prelude.Ord,
      forall x. Rep DropFrameTimecode x -> DropFrameTimecode
forall x. DropFrameTimecode -> Rep DropFrameTimecode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DropFrameTimecode x -> DropFrameTimecode
$cfrom :: forall x. DropFrameTimecode -> Rep DropFrameTimecode x
Prelude.Generic
    )
  deriving newtype
    ( Eq DropFrameTimecode
Int -> DropFrameTimecode -> Int
DropFrameTimecode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DropFrameTimecode -> Int
$chash :: DropFrameTimecode -> Int
hashWithSalt :: Int -> DropFrameTimecode -> Int
$chashWithSalt :: Int -> DropFrameTimecode -> Int
Prelude.Hashable,
      DropFrameTimecode -> ()
forall a. (a -> ()) -> NFData a
rnf :: DropFrameTimecode -> ()
$crnf :: DropFrameTimecode -> ()
Prelude.NFData,
      Text -> Either String DropFrameTimecode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DropFrameTimecode
$cfromText :: Text -> Either String DropFrameTimecode
Data.FromText,
      DropFrameTimecode -> Text
forall a. (a -> Text) -> ToText a
toText :: DropFrameTimecode -> Text
$ctoText :: DropFrameTimecode -> Text
Data.ToText,
      DropFrameTimecode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DropFrameTimecode -> ByteString
$ctoBS :: DropFrameTimecode -> ByteString
Data.ToByteString,
      DropFrameTimecode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DropFrameTimecode -> ByteStringBuilder
$cbuild :: DropFrameTimecode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DropFrameTimecode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DropFrameTimecode -> [Header]
$ctoHeader :: HeaderName -> DropFrameTimecode -> [Header]
Data.ToHeader,
      DropFrameTimecode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DropFrameTimecode -> QueryString
$ctoQuery :: DropFrameTimecode -> QueryString
Data.ToQuery,
      Value -> Parser [DropFrameTimecode]
Value -> Parser DropFrameTimecode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DropFrameTimecode]
$cparseJSONList :: Value -> Parser [DropFrameTimecode]
parseJSON :: Value -> Parser DropFrameTimecode
$cparseJSON :: Value -> Parser DropFrameTimecode
Data.FromJSON,
      FromJSONKeyFunction [DropFrameTimecode]
FromJSONKeyFunction DropFrameTimecode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DropFrameTimecode]
$cfromJSONKeyList :: FromJSONKeyFunction [DropFrameTimecode]
fromJSONKey :: FromJSONKeyFunction DropFrameTimecode
$cfromJSONKey :: FromJSONKeyFunction DropFrameTimecode
Data.FromJSONKey,
      [DropFrameTimecode] -> Encoding
[DropFrameTimecode] -> Value
DropFrameTimecode -> Encoding
DropFrameTimecode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DropFrameTimecode] -> Encoding
$ctoEncodingList :: [DropFrameTimecode] -> Encoding
toJSONList :: [DropFrameTimecode] -> Value
$ctoJSONList :: [DropFrameTimecode] -> Value
toEncoding :: DropFrameTimecode -> Encoding
$ctoEncoding :: DropFrameTimecode -> Encoding
toJSON :: DropFrameTimecode -> Value
$ctoJSON :: DropFrameTimecode -> Value
Data.ToJSON,
      ToJSONKeyFunction [DropFrameTimecode]
ToJSONKeyFunction DropFrameTimecode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DropFrameTimecode]
$ctoJSONKeyList :: ToJSONKeyFunction [DropFrameTimecode]
toJSONKey :: ToJSONKeyFunction DropFrameTimecode
$ctoJSONKey :: ToJSONKeyFunction DropFrameTimecode
Data.ToJSONKey,
      [Node] -> Either String DropFrameTimecode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DropFrameTimecode
$cparseXML :: [Node] -> Either String DropFrameTimecode
Data.FromXML,
      DropFrameTimecode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DropFrameTimecode -> XML
$ctoXML :: DropFrameTimecode -> XML
Data.ToXML
    )

pattern DropFrameTimecode_DISABLED :: DropFrameTimecode
pattern $bDropFrameTimecode_DISABLED :: DropFrameTimecode
$mDropFrameTimecode_DISABLED :: forall {r}. DropFrameTimecode -> ((# #) -> r) -> ((# #) -> r) -> r
DropFrameTimecode_DISABLED = DropFrameTimecode' "DISABLED"

pattern DropFrameTimecode_ENABLED :: DropFrameTimecode
pattern $bDropFrameTimecode_ENABLED :: DropFrameTimecode
$mDropFrameTimecode_ENABLED :: forall {r}. DropFrameTimecode -> ((# #) -> r) -> ((# #) -> r) -> r
DropFrameTimecode_ENABLED = DropFrameTimecode' "ENABLED"

{-# COMPLETE
  DropFrameTimecode_DISABLED,
  DropFrameTimecode_ENABLED,
  DropFrameTimecode'
  #-}