{-# 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.DashIsoPtsOffsetHandlingForBFrames
-- 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.DashIsoPtsOffsetHandlingForBFrames
  ( DashIsoPtsOffsetHandlingForBFrames
      ( ..,
        DashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS,
        DashIsoPtsOffsetHandlingForBFrames_ZERO_BASED
      ),
  )
where

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

-- | Use this setting only when your output video stream has B-frames, which
-- causes the initial presentation time stamp (PTS) to be offset from the
-- initial decode time stamp (DTS). Specify how MediaConvert handles PTS
-- when writing time stamps in output DASH manifests. Choose Match initial
-- PTS (MATCH_INITIAL_PTS) when you want MediaConvert to use the initial
-- PTS as the first time stamp in the manifest. Choose Zero-based
-- (ZERO_BASED) to have MediaConvert ignore the initial PTS in the video
-- stream and instead write the initial time stamp as zero in the manifest.
-- For outputs that don\'t have B-frames, the time stamps in your DASH
-- manifests start at zero regardless of your choice here.
newtype DashIsoPtsOffsetHandlingForBFrames = DashIsoPtsOffsetHandlingForBFrames'
  { DashIsoPtsOffsetHandlingForBFrames -> Text
fromDashIsoPtsOffsetHandlingForBFrames ::
      Data.Text
  }
  deriving stock
    ( Int -> DashIsoPtsOffsetHandlingForBFrames -> ShowS
[DashIsoPtsOffsetHandlingForBFrames] -> ShowS
DashIsoPtsOffsetHandlingForBFrames -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DashIsoPtsOffsetHandlingForBFrames] -> ShowS
$cshowList :: [DashIsoPtsOffsetHandlingForBFrames] -> ShowS
show :: DashIsoPtsOffsetHandlingForBFrames -> String
$cshow :: DashIsoPtsOffsetHandlingForBFrames -> String
showsPrec :: Int -> DashIsoPtsOffsetHandlingForBFrames -> ShowS
$cshowsPrec :: Int -> DashIsoPtsOffsetHandlingForBFrames -> ShowS
Prelude.Show,
      ReadPrec [DashIsoPtsOffsetHandlingForBFrames]
ReadPrec DashIsoPtsOffsetHandlingForBFrames
Int -> ReadS DashIsoPtsOffsetHandlingForBFrames
ReadS [DashIsoPtsOffsetHandlingForBFrames]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DashIsoPtsOffsetHandlingForBFrames]
$creadListPrec :: ReadPrec [DashIsoPtsOffsetHandlingForBFrames]
readPrec :: ReadPrec DashIsoPtsOffsetHandlingForBFrames
$creadPrec :: ReadPrec DashIsoPtsOffsetHandlingForBFrames
readList :: ReadS [DashIsoPtsOffsetHandlingForBFrames]
$creadList :: ReadS [DashIsoPtsOffsetHandlingForBFrames]
readsPrec :: Int -> ReadS DashIsoPtsOffsetHandlingForBFrames
$creadsPrec :: Int -> ReadS DashIsoPtsOffsetHandlingForBFrames
Prelude.Read,
      DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
$c/= :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
== :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
$c== :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
Prelude.Eq,
      Eq DashIsoPtsOffsetHandlingForBFrames
DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Ordering
DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
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 :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
$cmin :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
max :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
$cmax :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames
>= :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
$c>= :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
> :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
$c> :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
<= :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
$c<= :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
< :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
$c< :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Bool
compare :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Ordering
$ccompare :: DashIsoPtsOffsetHandlingForBFrames
-> DashIsoPtsOffsetHandlingForBFrames -> Ordering
Prelude.Ord,
      forall x.
Rep DashIsoPtsOffsetHandlingForBFrames x
-> DashIsoPtsOffsetHandlingForBFrames
forall x.
DashIsoPtsOffsetHandlingForBFrames
-> Rep DashIsoPtsOffsetHandlingForBFrames x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DashIsoPtsOffsetHandlingForBFrames x
-> DashIsoPtsOffsetHandlingForBFrames
$cfrom :: forall x.
DashIsoPtsOffsetHandlingForBFrames
-> Rep DashIsoPtsOffsetHandlingForBFrames x
Prelude.Generic
    )
  deriving newtype
    ( Eq DashIsoPtsOffsetHandlingForBFrames
Int -> DashIsoPtsOffsetHandlingForBFrames -> Int
DashIsoPtsOffsetHandlingForBFrames -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DashIsoPtsOffsetHandlingForBFrames -> Int
$chash :: DashIsoPtsOffsetHandlingForBFrames -> Int
hashWithSalt :: Int -> DashIsoPtsOffsetHandlingForBFrames -> Int
$chashWithSalt :: Int -> DashIsoPtsOffsetHandlingForBFrames -> Int
Prelude.Hashable,
      DashIsoPtsOffsetHandlingForBFrames -> ()
forall a. (a -> ()) -> NFData a
rnf :: DashIsoPtsOffsetHandlingForBFrames -> ()
$crnf :: DashIsoPtsOffsetHandlingForBFrames -> ()
Prelude.NFData,
      Text -> Either String DashIsoPtsOffsetHandlingForBFrames
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DashIsoPtsOffsetHandlingForBFrames
$cfromText :: Text -> Either String DashIsoPtsOffsetHandlingForBFrames
Data.FromText,
      DashIsoPtsOffsetHandlingForBFrames -> Text
forall a. (a -> Text) -> ToText a
toText :: DashIsoPtsOffsetHandlingForBFrames -> Text
$ctoText :: DashIsoPtsOffsetHandlingForBFrames -> Text
Data.ToText,
      DashIsoPtsOffsetHandlingForBFrames -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DashIsoPtsOffsetHandlingForBFrames -> ByteString
$ctoBS :: DashIsoPtsOffsetHandlingForBFrames -> ByteString
Data.ToByteString,
      DashIsoPtsOffsetHandlingForBFrames -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DashIsoPtsOffsetHandlingForBFrames -> ByteStringBuilder
$cbuild :: DashIsoPtsOffsetHandlingForBFrames -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DashIsoPtsOffsetHandlingForBFrames -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DashIsoPtsOffsetHandlingForBFrames -> [Header]
$ctoHeader :: HeaderName -> DashIsoPtsOffsetHandlingForBFrames -> [Header]
Data.ToHeader,
      DashIsoPtsOffsetHandlingForBFrames -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DashIsoPtsOffsetHandlingForBFrames -> QueryString
$ctoQuery :: DashIsoPtsOffsetHandlingForBFrames -> QueryString
Data.ToQuery,
      Value -> Parser [DashIsoPtsOffsetHandlingForBFrames]
Value -> Parser DashIsoPtsOffsetHandlingForBFrames
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DashIsoPtsOffsetHandlingForBFrames]
$cparseJSONList :: Value -> Parser [DashIsoPtsOffsetHandlingForBFrames]
parseJSON :: Value -> Parser DashIsoPtsOffsetHandlingForBFrames
$cparseJSON :: Value -> Parser DashIsoPtsOffsetHandlingForBFrames
Data.FromJSON,
      FromJSONKeyFunction [DashIsoPtsOffsetHandlingForBFrames]
FromJSONKeyFunction DashIsoPtsOffsetHandlingForBFrames
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DashIsoPtsOffsetHandlingForBFrames]
$cfromJSONKeyList :: FromJSONKeyFunction [DashIsoPtsOffsetHandlingForBFrames]
fromJSONKey :: FromJSONKeyFunction DashIsoPtsOffsetHandlingForBFrames
$cfromJSONKey :: FromJSONKeyFunction DashIsoPtsOffsetHandlingForBFrames
Data.FromJSONKey,
      [DashIsoPtsOffsetHandlingForBFrames] -> Encoding
[DashIsoPtsOffsetHandlingForBFrames] -> Value
DashIsoPtsOffsetHandlingForBFrames -> Encoding
DashIsoPtsOffsetHandlingForBFrames -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DashIsoPtsOffsetHandlingForBFrames] -> Encoding
$ctoEncodingList :: [DashIsoPtsOffsetHandlingForBFrames] -> Encoding
toJSONList :: [DashIsoPtsOffsetHandlingForBFrames] -> Value
$ctoJSONList :: [DashIsoPtsOffsetHandlingForBFrames] -> Value
toEncoding :: DashIsoPtsOffsetHandlingForBFrames -> Encoding
$ctoEncoding :: DashIsoPtsOffsetHandlingForBFrames -> Encoding
toJSON :: DashIsoPtsOffsetHandlingForBFrames -> Value
$ctoJSON :: DashIsoPtsOffsetHandlingForBFrames -> Value
Data.ToJSON,
      ToJSONKeyFunction [DashIsoPtsOffsetHandlingForBFrames]
ToJSONKeyFunction DashIsoPtsOffsetHandlingForBFrames
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DashIsoPtsOffsetHandlingForBFrames]
$ctoJSONKeyList :: ToJSONKeyFunction [DashIsoPtsOffsetHandlingForBFrames]
toJSONKey :: ToJSONKeyFunction DashIsoPtsOffsetHandlingForBFrames
$ctoJSONKey :: ToJSONKeyFunction DashIsoPtsOffsetHandlingForBFrames
Data.ToJSONKey,
      [Node] -> Either String DashIsoPtsOffsetHandlingForBFrames
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DashIsoPtsOffsetHandlingForBFrames
$cparseXML :: [Node] -> Either String DashIsoPtsOffsetHandlingForBFrames
Data.FromXML,
      DashIsoPtsOffsetHandlingForBFrames -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DashIsoPtsOffsetHandlingForBFrames -> XML
$ctoXML :: DashIsoPtsOffsetHandlingForBFrames -> XML
Data.ToXML
    )

pattern DashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS :: DashIsoPtsOffsetHandlingForBFrames
pattern $bDashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS :: DashIsoPtsOffsetHandlingForBFrames
$mDashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS :: forall {r}.
DashIsoPtsOffsetHandlingForBFrames
-> ((# #) -> r) -> ((# #) -> r) -> r
DashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS = DashIsoPtsOffsetHandlingForBFrames' "MATCH_INITIAL_PTS"

pattern DashIsoPtsOffsetHandlingForBFrames_ZERO_BASED :: DashIsoPtsOffsetHandlingForBFrames
pattern $bDashIsoPtsOffsetHandlingForBFrames_ZERO_BASED :: DashIsoPtsOffsetHandlingForBFrames
$mDashIsoPtsOffsetHandlingForBFrames_ZERO_BASED :: forall {r}.
DashIsoPtsOffsetHandlingForBFrames
-> ((# #) -> r) -> ((# #) -> r) -> r
DashIsoPtsOffsetHandlingForBFrames_ZERO_BASED = DashIsoPtsOffsetHandlingForBFrames' "ZERO_BASED"

{-# COMPLETE
  DashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS,
  DashIsoPtsOffsetHandlingForBFrames_ZERO_BASED,
  DashIsoPtsOffsetHandlingForBFrames'
  #-}