{-# 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.Mp4CslgAtom
-- 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.Mp4CslgAtom
  ( Mp4CslgAtom
      ( ..,
        Mp4CslgAtom_EXCLUDE,
        Mp4CslgAtom_INCLUDE
      ),
  )
where

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

-- | When enabled, file composition times will start at zero, composition
-- times in the \'ctts\' (composition time to sample) box for B-frames will
-- be negative, and a \'cslg\' (composition shift least greatest) box will
-- be included per 14496-1 amendment 1. This improves compatibility with
-- Apple players and tools.
newtype Mp4CslgAtom = Mp4CslgAtom'
  { Mp4CslgAtom -> Text
fromMp4CslgAtom ::
      Core.Text
  }
  deriving stock
    ( Int -> Mp4CslgAtom -> ShowS
[Mp4CslgAtom] -> ShowS
Mp4CslgAtom -> String
(Int -> Mp4CslgAtom -> ShowS)
-> (Mp4CslgAtom -> String)
-> ([Mp4CslgAtom] -> ShowS)
-> Show Mp4CslgAtom
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Mp4CslgAtom] -> ShowS
$cshowList :: [Mp4CslgAtom] -> ShowS
show :: Mp4CslgAtom -> String
$cshow :: Mp4CslgAtom -> String
showsPrec :: Int -> Mp4CslgAtom -> ShowS
$cshowsPrec :: Int -> Mp4CslgAtom -> ShowS
Prelude.Show,
      ReadPrec [Mp4CslgAtom]
ReadPrec Mp4CslgAtom
Int -> ReadS Mp4CslgAtom
ReadS [Mp4CslgAtom]
(Int -> ReadS Mp4CslgAtom)
-> ReadS [Mp4CslgAtom]
-> ReadPrec Mp4CslgAtom
-> ReadPrec [Mp4CslgAtom]
-> Read Mp4CslgAtom
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Mp4CslgAtom]
$creadListPrec :: ReadPrec [Mp4CslgAtom]
readPrec :: ReadPrec Mp4CslgAtom
$creadPrec :: ReadPrec Mp4CslgAtom
readList :: ReadS [Mp4CslgAtom]
$creadList :: ReadS [Mp4CslgAtom]
readsPrec :: Int -> ReadS Mp4CslgAtom
$creadsPrec :: Int -> ReadS Mp4CslgAtom
Prelude.Read,
      Mp4CslgAtom -> Mp4CslgAtom -> Bool
(Mp4CslgAtom -> Mp4CslgAtom -> Bool)
-> (Mp4CslgAtom -> Mp4CslgAtom -> Bool) -> Eq Mp4CslgAtom
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
$c/= :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
== :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
$c== :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
Prelude.Eq,
      Eq Mp4CslgAtom
Eq Mp4CslgAtom
-> (Mp4CslgAtom -> Mp4CslgAtom -> Ordering)
-> (Mp4CslgAtom -> Mp4CslgAtom -> Bool)
-> (Mp4CslgAtom -> Mp4CslgAtom -> Bool)
-> (Mp4CslgAtom -> Mp4CslgAtom -> Bool)
-> (Mp4CslgAtom -> Mp4CslgAtom -> Bool)
-> (Mp4CslgAtom -> Mp4CslgAtom -> Mp4CslgAtom)
-> (Mp4CslgAtom -> Mp4CslgAtom -> Mp4CslgAtom)
-> Ord Mp4CslgAtom
Mp4CslgAtom -> Mp4CslgAtom -> Bool
Mp4CslgAtom -> Mp4CslgAtom -> Ordering
Mp4CslgAtom -> Mp4CslgAtom -> Mp4CslgAtom
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 :: Mp4CslgAtom -> Mp4CslgAtom -> Mp4CslgAtom
$cmin :: Mp4CslgAtom -> Mp4CslgAtom -> Mp4CslgAtom
max :: Mp4CslgAtom -> Mp4CslgAtom -> Mp4CslgAtom
$cmax :: Mp4CslgAtom -> Mp4CslgAtom -> Mp4CslgAtom
>= :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
$c>= :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
> :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
$c> :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
<= :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
$c<= :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
< :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
$c< :: Mp4CslgAtom -> Mp4CslgAtom -> Bool
compare :: Mp4CslgAtom -> Mp4CslgAtom -> Ordering
$ccompare :: Mp4CslgAtom -> Mp4CslgAtom -> Ordering
$cp1Ord :: Eq Mp4CslgAtom
Prelude.Ord,
      (forall x. Mp4CslgAtom -> Rep Mp4CslgAtom x)
-> (forall x. Rep Mp4CslgAtom x -> Mp4CslgAtom)
-> Generic Mp4CslgAtom
forall x. Rep Mp4CslgAtom x -> Mp4CslgAtom
forall x. Mp4CslgAtom -> Rep Mp4CslgAtom x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Mp4CslgAtom x -> Mp4CslgAtom
$cfrom :: forall x. Mp4CslgAtom -> Rep Mp4CslgAtom x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Mp4CslgAtom -> Int
Mp4CslgAtom -> Int
(Int -> Mp4CslgAtom -> Int)
-> (Mp4CslgAtom -> Int) -> Hashable Mp4CslgAtom
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Mp4CslgAtom -> Int
$chash :: Mp4CslgAtom -> Int
hashWithSalt :: Int -> Mp4CslgAtom -> Int
$chashWithSalt :: Int -> Mp4CslgAtom -> Int
Prelude.Hashable,
      Mp4CslgAtom -> ()
(Mp4CslgAtom -> ()) -> NFData Mp4CslgAtom
forall a. (a -> ()) -> NFData a
rnf :: Mp4CslgAtom -> ()
$crnf :: Mp4CslgAtom -> ()
Prelude.NFData,
      Text -> Either String Mp4CslgAtom
(Text -> Either String Mp4CslgAtom) -> FromText Mp4CslgAtom
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mp4CslgAtom
$cfromText :: Text -> Either String Mp4CslgAtom
Core.FromText,
      Mp4CslgAtom -> Text
(Mp4CslgAtom -> Text) -> ToText Mp4CslgAtom
forall a. (a -> Text) -> ToText a
toText :: Mp4CslgAtom -> Text
$ctoText :: Mp4CslgAtom -> Text
Core.ToText,
      Mp4CslgAtom -> ByteString
(Mp4CslgAtom -> ByteString) -> ToByteString Mp4CslgAtom
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mp4CslgAtom -> ByteString
$ctoBS :: Mp4CslgAtom -> ByteString
Core.ToByteString,
      Mp4CslgAtom -> ByteStringBuilder
(Mp4CslgAtom -> ByteStringBuilder) -> ToLog Mp4CslgAtom
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mp4CslgAtom -> ByteStringBuilder
$cbuild :: Mp4CslgAtom -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Mp4CslgAtom -> [Header]
(HeaderName -> Mp4CslgAtom -> [Header]) -> ToHeader Mp4CslgAtom
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mp4CslgAtom -> [Header]
$ctoHeader :: HeaderName -> Mp4CslgAtom -> [Header]
Core.ToHeader,
      Mp4CslgAtom -> QueryString
(Mp4CslgAtom -> QueryString) -> ToQuery Mp4CslgAtom
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mp4CslgAtom -> QueryString
$ctoQuery :: Mp4CslgAtom -> QueryString
Core.ToQuery,
      Value -> Parser [Mp4CslgAtom]
Value -> Parser Mp4CslgAtom
(Value -> Parser Mp4CslgAtom)
-> (Value -> Parser [Mp4CslgAtom]) -> FromJSON Mp4CslgAtom
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Mp4CslgAtom]
$cparseJSONList :: Value -> Parser [Mp4CslgAtom]
parseJSON :: Value -> Parser Mp4CslgAtom
$cparseJSON :: Value -> Parser Mp4CslgAtom
Core.FromJSON,
      FromJSONKeyFunction [Mp4CslgAtom]
FromJSONKeyFunction Mp4CslgAtom
FromJSONKeyFunction Mp4CslgAtom
-> FromJSONKeyFunction [Mp4CslgAtom] -> FromJSONKey Mp4CslgAtom
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mp4CslgAtom]
$cfromJSONKeyList :: FromJSONKeyFunction [Mp4CslgAtom]
fromJSONKey :: FromJSONKeyFunction Mp4CslgAtom
$cfromJSONKey :: FromJSONKeyFunction Mp4CslgAtom
Core.FromJSONKey,
      [Mp4CslgAtom] -> Encoding
[Mp4CslgAtom] -> Value
Mp4CslgAtom -> Encoding
Mp4CslgAtom -> Value
(Mp4CslgAtom -> Value)
-> (Mp4CslgAtom -> Encoding)
-> ([Mp4CslgAtom] -> Value)
-> ([Mp4CslgAtom] -> Encoding)
-> ToJSON Mp4CslgAtom
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Mp4CslgAtom] -> Encoding
$ctoEncodingList :: [Mp4CslgAtom] -> Encoding
toJSONList :: [Mp4CslgAtom] -> Value
$ctoJSONList :: [Mp4CslgAtom] -> Value
toEncoding :: Mp4CslgAtom -> Encoding
$ctoEncoding :: Mp4CslgAtom -> Encoding
toJSON :: Mp4CslgAtom -> Value
$ctoJSON :: Mp4CslgAtom -> Value
Core.ToJSON,
      ToJSONKeyFunction [Mp4CslgAtom]
ToJSONKeyFunction Mp4CslgAtom
ToJSONKeyFunction Mp4CslgAtom
-> ToJSONKeyFunction [Mp4CslgAtom] -> ToJSONKey Mp4CslgAtom
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mp4CslgAtom]
$ctoJSONKeyList :: ToJSONKeyFunction [Mp4CslgAtom]
toJSONKey :: ToJSONKeyFunction Mp4CslgAtom
$ctoJSONKey :: ToJSONKeyFunction Mp4CslgAtom
Core.ToJSONKey,
      [Node] -> Either String Mp4CslgAtom
([Node] -> Either String Mp4CslgAtom) -> FromXML Mp4CslgAtom
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mp4CslgAtom
$cparseXML :: [Node] -> Either String Mp4CslgAtom
Core.FromXML,
      Mp4CslgAtom -> XML
(Mp4CslgAtom -> XML) -> ToXML Mp4CslgAtom
forall a. (a -> XML) -> ToXML a
toXML :: Mp4CslgAtom -> XML
$ctoXML :: Mp4CslgAtom -> XML
Core.ToXML
    )

pattern Mp4CslgAtom_EXCLUDE :: Mp4CslgAtom
pattern $bMp4CslgAtom_EXCLUDE :: Mp4CslgAtom
$mMp4CslgAtom_EXCLUDE :: forall r. Mp4CslgAtom -> (Void# -> r) -> (Void# -> r) -> r
Mp4CslgAtom_EXCLUDE = Mp4CslgAtom' "EXCLUDE"

pattern Mp4CslgAtom_INCLUDE :: Mp4CslgAtom
pattern $bMp4CslgAtom_INCLUDE :: Mp4CslgAtom
$mMp4CslgAtom_INCLUDE :: forall r. Mp4CslgAtom -> (Void# -> r) -> (Void# -> r) -> r
Mp4CslgAtom_INCLUDE = Mp4CslgAtom' "INCLUDE"

{-# COMPLETE
  Mp4CslgAtom_EXCLUDE,
  Mp4CslgAtom_INCLUDE,
  Mp4CslgAtom'
  #-}