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

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

pattern DashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS :: DashIsoPtsOffsetHandlingForBFrames
pattern $bDashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS :: DashIsoPtsOffsetHandlingForBFrames
$mDashIsoPtsOffsetHandlingForBFrames_MATCH_INITIAL_PTS :: forall r.
DashIsoPtsOffsetHandlingForBFrames
-> (Void# -> r) -> (Void# -> 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
-> (Void# -> r) -> (Void# -> r) -> r
DashIsoPtsOffsetHandlingForBFrames_ZERO_BASED = DashIsoPtsOffsetHandlingForBFrames' "ZERO_BASED"

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