{-# 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.H265WriteMp4PackagingType
-- 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.H265WriteMp4PackagingType
  ( H265WriteMp4PackagingType
      ( ..,
        H265WriteMp4PackagingType_HEV1,
        H265WriteMp4PackagingType_HVC1
      ),
  )
where

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

-- | If the location of parameter set NAL units doesn\'t matter in your
-- workflow, ignore this setting. Use this setting only with CMAF or DASH
-- outputs, or with standalone file outputs in an MPEG-4 container (MP4
-- outputs). Choose HVC1 to mark your output as HVC1. This makes your
-- output compliant with the following specification: ISO IECJTC1 SC29
-- N13798 Text ISO\/IEC FDIS 14496-15 3rd Edition. For these outputs, the
-- service stores parameter set NAL units in the sample headers but not in
-- the samples directly. For MP4 outputs, when you choose HVC1, your output
-- video might not work properly with some downstream systems and video
-- players. The service defaults to marking your output as HEV1. For these
-- outputs, the service writes parameter set NAL units directly into the
-- samples.
newtype H265WriteMp4PackagingType = H265WriteMp4PackagingType'
  { H265WriteMp4PackagingType -> Text
fromH265WriteMp4PackagingType ::
      Data.Text
  }
  deriving stock
    ( Int -> H265WriteMp4PackagingType -> ShowS
[H265WriteMp4PackagingType] -> ShowS
H265WriteMp4PackagingType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H265WriteMp4PackagingType] -> ShowS
$cshowList :: [H265WriteMp4PackagingType] -> ShowS
show :: H265WriteMp4PackagingType -> String
$cshow :: H265WriteMp4PackagingType -> String
showsPrec :: Int -> H265WriteMp4PackagingType -> ShowS
$cshowsPrec :: Int -> H265WriteMp4PackagingType -> ShowS
Prelude.Show,
      ReadPrec [H265WriteMp4PackagingType]
ReadPrec H265WriteMp4PackagingType
Int -> ReadS H265WriteMp4PackagingType
ReadS [H265WriteMp4PackagingType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H265WriteMp4PackagingType]
$creadListPrec :: ReadPrec [H265WriteMp4PackagingType]
readPrec :: ReadPrec H265WriteMp4PackagingType
$creadPrec :: ReadPrec H265WriteMp4PackagingType
readList :: ReadS [H265WriteMp4PackagingType]
$creadList :: ReadS [H265WriteMp4PackagingType]
readsPrec :: Int -> ReadS H265WriteMp4PackagingType
$creadsPrec :: Int -> ReadS H265WriteMp4PackagingType
Prelude.Read,
      H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
$c/= :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
== :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
$c== :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
Prelude.Eq,
      Eq H265WriteMp4PackagingType
H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Ordering
H265WriteMp4PackagingType
-> H265WriteMp4PackagingType -> H265WriteMp4PackagingType
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 :: H265WriteMp4PackagingType
-> H265WriteMp4PackagingType -> H265WriteMp4PackagingType
$cmin :: H265WriteMp4PackagingType
-> H265WriteMp4PackagingType -> H265WriteMp4PackagingType
max :: H265WriteMp4PackagingType
-> H265WriteMp4PackagingType -> H265WriteMp4PackagingType
$cmax :: H265WriteMp4PackagingType
-> H265WriteMp4PackagingType -> H265WriteMp4PackagingType
>= :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
$c>= :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
> :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
$c> :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
<= :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
$c<= :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
< :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
$c< :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Bool
compare :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Ordering
$ccompare :: H265WriteMp4PackagingType -> H265WriteMp4PackagingType -> Ordering
Prelude.Ord,
      forall x.
Rep H265WriteMp4PackagingType x -> H265WriteMp4PackagingType
forall x.
H265WriteMp4PackagingType -> Rep H265WriteMp4PackagingType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep H265WriteMp4PackagingType x -> H265WriteMp4PackagingType
$cfrom :: forall x.
H265WriteMp4PackagingType -> Rep H265WriteMp4PackagingType x
Prelude.Generic
    )
  deriving newtype
    ( Eq H265WriteMp4PackagingType
Int -> H265WriteMp4PackagingType -> Int
H265WriteMp4PackagingType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H265WriteMp4PackagingType -> Int
$chash :: H265WriteMp4PackagingType -> Int
hashWithSalt :: Int -> H265WriteMp4PackagingType -> Int
$chashWithSalt :: Int -> H265WriteMp4PackagingType -> Int
Prelude.Hashable,
      H265WriteMp4PackagingType -> ()
forall a. (a -> ()) -> NFData a
rnf :: H265WriteMp4PackagingType -> ()
$crnf :: H265WriteMp4PackagingType -> ()
Prelude.NFData,
      Text -> Either String H265WriteMp4PackagingType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H265WriteMp4PackagingType
$cfromText :: Text -> Either String H265WriteMp4PackagingType
Data.FromText,
      H265WriteMp4PackagingType -> Text
forall a. (a -> Text) -> ToText a
toText :: H265WriteMp4PackagingType -> Text
$ctoText :: H265WriteMp4PackagingType -> Text
Data.ToText,
      H265WriteMp4PackagingType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: H265WriteMp4PackagingType -> ByteString
$ctoBS :: H265WriteMp4PackagingType -> ByteString
Data.ToByteString,
      H265WriteMp4PackagingType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H265WriteMp4PackagingType -> ByteStringBuilder
$cbuild :: H265WriteMp4PackagingType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> H265WriteMp4PackagingType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H265WriteMp4PackagingType -> [Header]
$ctoHeader :: HeaderName -> H265WriteMp4PackagingType -> [Header]
Data.ToHeader,
      H265WriteMp4PackagingType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H265WriteMp4PackagingType -> QueryString
$ctoQuery :: H265WriteMp4PackagingType -> QueryString
Data.ToQuery,
      Value -> Parser [H265WriteMp4PackagingType]
Value -> Parser H265WriteMp4PackagingType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H265WriteMp4PackagingType]
$cparseJSONList :: Value -> Parser [H265WriteMp4PackagingType]
parseJSON :: Value -> Parser H265WriteMp4PackagingType
$cparseJSON :: Value -> Parser H265WriteMp4PackagingType
Data.FromJSON,
      FromJSONKeyFunction [H265WriteMp4PackagingType]
FromJSONKeyFunction H265WriteMp4PackagingType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H265WriteMp4PackagingType]
$cfromJSONKeyList :: FromJSONKeyFunction [H265WriteMp4PackagingType]
fromJSONKey :: FromJSONKeyFunction H265WriteMp4PackagingType
$cfromJSONKey :: FromJSONKeyFunction H265WriteMp4PackagingType
Data.FromJSONKey,
      [H265WriteMp4PackagingType] -> Encoding
[H265WriteMp4PackagingType] -> Value
H265WriteMp4PackagingType -> Encoding
H265WriteMp4PackagingType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H265WriteMp4PackagingType] -> Encoding
$ctoEncodingList :: [H265WriteMp4PackagingType] -> Encoding
toJSONList :: [H265WriteMp4PackagingType] -> Value
$ctoJSONList :: [H265WriteMp4PackagingType] -> Value
toEncoding :: H265WriteMp4PackagingType -> Encoding
$ctoEncoding :: H265WriteMp4PackagingType -> Encoding
toJSON :: H265WriteMp4PackagingType -> Value
$ctoJSON :: H265WriteMp4PackagingType -> Value
Data.ToJSON,
      ToJSONKeyFunction [H265WriteMp4PackagingType]
ToJSONKeyFunction H265WriteMp4PackagingType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H265WriteMp4PackagingType]
$ctoJSONKeyList :: ToJSONKeyFunction [H265WriteMp4PackagingType]
toJSONKey :: ToJSONKeyFunction H265WriteMp4PackagingType
$ctoJSONKey :: ToJSONKeyFunction H265WriteMp4PackagingType
Data.ToJSONKey,
      [Node] -> Either String H265WriteMp4PackagingType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H265WriteMp4PackagingType
$cparseXML :: [Node] -> Either String H265WriteMp4PackagingType
Data.FromXML,
      H265WriteMp4PackagingType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: H265WriteMp4PackagingType -> XML
$ctoXML :: H265WriteMp4PackagingType -> XML
Data.ToXML
    )

pattern H265WriteMp4PackagingType_HEV1 :: H265WriteMp4PackagingType
pattern $bH265WriteMp4PackagingType_HEV1 :: H265WriteMp4PackagingType
$mH265WriteMp4PackagingType_HEV1 :: forall {r}.
H265WriteMp4PackagingType -> ((# #) -> r) -> ((# #) -> r) -> r
H265WriteMp4PackagingType_HEV1 = H265WriteMp4PackagingType' "HEV1"

pattern H265WriteMp4PackagingType_HVC1 :: H265WriteMp4PackagingType
pattern $bH265WriteMp4PackagingType_HVC1 :: H265WriteMp4PackagingType
$mH265WriteMp4PackagingType_HVC1 :: forall {r}.
H265WriteMp4PackagingType -> ((# #) -> r) -> ((# #) -> r) -> r
H265WriteMp4PackagingType_HVC1 = H265WriteMp4PackagingType' "HVC1"

{-# COMPLETE
  H265WriteMp4PackagingType_HEV1,
  H265WriteMp4PackagingType_HVC1,
  H265WriteMp4PackagingType'
  #-}