{-# 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.PadVideo
-- 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.PadVideo
  ( PadVideo
      ( ..,
        PadVideo_BLACK,
        PadVideo_DISABLED
      ),
  )
where

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

-- | Use this setting if your input has video and audio durations that don\'t
-- align, and your output or player has strict alignment requirements.
-- Examples: Input audio track has a delayed start. Input video track ends
-- before audio ends. When you set Pad video (padVideo) to Black (BLACK),
-- MediaConvert generates black video frames so that output video and audio
-- durations match. Black video frames are added at the beginning or end,
-- depending on your input. To keep the default behavior and not generate
-- black video, set Pad video to Disabled (DISABLED) or leave blank.
newtype PadVideo = PadVideo'
  { PadVideo -> Text
fromPadVideo ::
      Data.Text
  }
  deriving stock
    ( Int -> PadVideo -> ShowS
[PadVideo] -> ShowS
PadVideo -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PadVideo] -> ShowS
$cshowList :: [PadVideo] -> ShowS
show :: PadVideo -> String
$cshow :: PadVideo -> String
showsPrec :: Int -> PadVideo -> ShowS
$cshowsPrec :: Int -> PadVideo -> ShowS
Prelude.Show,
      ReadPrec [PadVideo]
ReadPrec PadVideo
Int -> ReadS PadVideo
ReadS [PadVideo]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PadVideo]
$creadListPrec :: ReadPrec [PadVideo]
readPrec :: ReadPrec PadVideo
$creadPrec :: ReadPrec PadVideo
readList :: ReadS [PadVideo]
$creadList :: ReadS [PadVideo]
readsPrec :: Int -> ReadS PadVideo
$creadsPrec :: Int -> ReadS PadVideo
Prelude.Read,
      PadVideo -> PadVideo -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PadVideo -> PadVideo -> Bool
$c/= :: PadVideo -> PadVideo -> Bool
== :: PadVideo -> PadVideo -> Bool
$c== :: PadVideo -> PadVideo -> Bool
Prelude.Eq,
      Eq PadVideo
PadVideo -> PadVideo -> Bool
PadVideo -> PadVideo -> Ordering
PadVideo -> PadVideo -> PadVideo
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 :: PadVideo -> PadVideo -> PadVideo
$cmin :: PadVideo -> PadVideo -> PadVideo
max :: PadVideo -> PadVideo -> PadVideo
$cmax :: PadVideo -> PadVideo -> PadVideo
>= :: PadVideo -> PadVideo -> Bool
$c>= :: PadVideo -> PadVideo -> Bool
> :: PadVideo -> PadVideo -> Bool
$c> :: PadVideo -> PadVideo -> Bool
<= :: PadVideo -> PadVideo -> Bool
$c<= :: PadVideo -> PadVideo -> Bool
< :: PadVideo -> PadVideo -> Bool
$c< :: PadVideo -> PadVideo -> Bool
compare :: PadVideo -> PadVideo -> Ordering
$ccompare :: PadVideo -> PadVideo -> Ordering
Prelude.Ord,
      forall x. Rep PadVideo x -> PadVideo
forall x. PadVideo -> Rep PadVideo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PadVideo x -> PadVideo
$cfrom :: forall x. PadVideo -> Rep PadVideo x
Prelude.Generic
    )
  deriving newtype
    ( Eq PadVideo
Int -> PadVideo -> Int
PadVideo -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PadVideo -> Int
$chash :: PadVideo -> Int
hashWithSalt :: Int -> PadVideo -> Int
$chashWithSalt :: Int -> PadVideo -> Int
Prelude.Hashable,
      PadVideo -> ()
forall a. (a -> ()) -> NFData a
rnf :: PadVideo -> ()
$crnf :: PadVideo -> ()
Prelude.NFData,
      Text -> Either String PadVideo
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PadVideo
$cfromText :: Text -> Either String PadVideo
Data.FromText,
      PadVideo -> Text
forall a. (a -> Text) -> ToText a
toText :: PadVideo -> Text
$ctoText :: PadVideo -> Text
Data.ToText,
      PadVideo -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PadVideo -> ByteString
$ctoBS :: PadVideo -> ByteString
Data.ToByteString,
      PadVideo -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PadVideo -> ByteStringBuilder
$cbuild :: PadVideo -> ByteStringBuilder
Data.ToLog,
      HeaderName -> PadVideo -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PadVideo -> [Header]
$ctoHeader :: HeaderName -> PadVideo -> [Header]
Data.ToHeader,
      PadVideo -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PadVideo -> QueryString
$ctoQuery :: PadVideo -> QueryString
Data.ToQuery,
      Value -> Parser [PadVideo]
Value -> Parser PadVideo
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PadVideo]
$cparseJSONList :: Value -> Parser [PadVideo]
parseJSON :: Value -> Parser PadVideo
$cparseJSON :: Value -> Parser PadVideo
Data.FromJSON,
      FromJSONKeyFunction [PadVideo]
FromJSONKeyFunction PadVideo
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PadVideo]
$cfromJSONKeyList :: FromJSONKeyFunction [PadVideo]
fromJSONKey :: FromJSONKeyFunction PadVideo
$cfromJSONKey :: FromJSONKeyFunction PadVideo
Data.FromJSONKey,
      [PadVideo] -> Encoding
[PadVideo] -> Value
PadVideo -> Encoding
PadVideo -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PadVideo] -> Encoding
$ctoEncodingList :: [PadVideo] -> Encoding
toJSONList :: [PadVideo] -> Value
$ctoJSONList :: [PadVideo] -> Value
toEncoding :: PadVideo -> Encoding
$ctoEncoding :: PadVideo -> Encoding
toJSON :: PadVideo -> Value
$ctoJSON :: PadVideo -> Value
Data.ToJSON,
      ToJSONKeyFunction [PadVideo]
ToJSONKeyFunction PadVideo
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PadVideo]
$ctoJSONKeyList :: ToJSONKeyFunction [PadVideo]
toJSONKey :: ToJSONKeyFunction PadVideo
$ctoJSONKey :: ToJSONKeyFunction PadVideo
Data.ToJSONKey,
      [Node] -> Either String PadVideo
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PadVideo
$cparseXML :: [Node] -> Either String PadVideo
Data.FromXML,
      PadVideo -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PadVideo -> XML
$ctoXML :: PadVideo -> XML
Data.ToXML
    )

pattern PadVideo_BLACK :: PadVideo
pattern $bPadVideo_BLACK :: PadVideo
$mPadVideo_BLACK :: forall {r}. PadVideo -> ((# #) -> r) -> ((# #) -> r) -> r
PadVideo_BLACK = PadVideo' "BLACK"

pattern PadVideo_DISABLED :: PadVideo
pattern $bPadVideo_DISABLED :: PadVideo
$mPadVideo_DISABLED :: forall {r}. PadVideo -> ((# #) -> r) -> ((# #) -> r) -> r
PadVideo_DISABLED = PadVideo' "DISABLED"

{-# COMPLETE
  PadVideo_BLACK,
  PadVideo_DISABLED,
  PadVideo'
  #-}