{-# 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.DolbyVisionProfile
-- 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.DolbyVisionProfile
  ( DolbyVisionProfile
      ( ..,
        DolbyVisionProfile_PROFILE_5,
        DolbyVisionProfile_PROFILE_8_1
      ),
  )
where

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

-- | Required when you enable Dolby Vision. Use Profile 5 to include
-- frame-interleaved Dolby Vision metadata in your output. Your input must
-- include Dolby Vision metadata or an HDR10 YUV color space. Use Profile
-- 8.1 to include frame-interleaved Dolby Vision metadata and HDR10
-- metadata in your output. Your input must include Dolby Vision metadata.
newtype DolbyVisionProfile = DolbyVisionProfile'
  { DolbyVisionProfile -> Text
fromDolbyVisionProfile ::
      Data.Text
  }
  deriving stock
    ( Int -> DolbyVisionProfile -> ShowS
[DolbyVisionProfile] -> ShowS
DolbyVisionProfile -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DolbyVisionProfile] -> ShowS
$cshowList :: [DolbyVisionProfile] -> ShowS
show :: DolbyVisionProfile -> String
$cshow :: DolbyVisionProfile -> String
showsPrec :: Int -> DolbyVisionProfile -> ShowS
$cshowsPrec :: Int -> DolbyVisionProfile -> ShowS
Prelude.Show,
      ReadPrec [DolbyVisionProfile]
ReadPrec DolbyVisionProfile
Int -> ReadS DolbyVisionProfile
ReadS [DolbyVisionProfile]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DolbyVisionProfile]
$creadListPrec :: ReadPrec [DolbyVisionProfile]
readPrec :: ReadPrec DolbyVisionProfile
$creadPrec :: ReadPrec DolbyVisionProfile
readList :: ReadS [DolbyVisionProfile]
$creadList :: ReadS [DolbyVisionProfile]
readsPrec :: Int -> ReadS DolbyVisionProfile
$creadsPrec :: Int -> ReadS DolbyVisionProfile
Prelude.Read,
      DolbyVisionProfile -> DolbyVisionProfile -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
$c/= :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
== :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
$c== :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
Prelude.Eq,
      Eq DolbyVisionProfile
DolbyVisionProfile -> DolbyVisionProfile -> Bool
DolbyVisionProfile -> DolbyVisionProfile -> Ordering
DolbyVisionProfile -> DolbyVisionProfile -> DolbyVisionProfile
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 :: DolbyVisionProfile -> DolbyVisionProfile -> DolbyVisionProfile
$cmin :: DolbyVisionProfile -> DolbyVisionProfile -> DolbyVisionProfile
max :: DolbyVisionProfile -> DolbyVisionProfile -> DolbyVisionProfile
$cmax :: DolbyVisionProfile -> DolbyVisionProfile -> DolbyVisionProfile
>= :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
$c>= :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
> :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
$c> :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
<= :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
$c<= :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
< :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
$c< :: DolbyVisionProfile -> DolbyVisionProfile -> Bool
compare :: DolbyVisionProfile -> DolbyVisionProfile -> Ordering
$ccompare :: DolbyVisionProfile -> DolbyVisionProfile -> Ordering
Prelude.Ord,
      forall x. Rep DolbyVisionProfile x -> DolbyVisionProfile
forall x. DolbyVisionProfile -> Rep DolbyVisionProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DolbyVisionProfile x -> DolbyVisionProfile
$cfrom :: forall x. DolbyVisionProfile -> Rep DolbyVisionProfile x
Prelude.Generic
    )
  deriving newtype
    ( Eq DolbyVisionProfile
Int -> DolbyVisionProfile -> Int
DolbyVisionProfile -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DolbyVisionProfile -> Int
$chash :: DolbyVisionProfile -> Int
hashWithSalt :: Int -> DolbyVisionProfile -> Int
$chashWithSalt :: Int -> DolbyVisionProfile -> Int
Prelude.Hashable,
      DolbyVisionProfile -> ()
forall a. (a -> ()) -> NFData a
rnf :: DolbyVisionProfile -> ()
$crnf :: DolbyVisionProfile -> ()
Prelude.NFData,
      Text -> Either String DolbyVisionProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DolbyVisionProfile
$cfromText :: Text -> Either String DolbyVisionProfile
Data.FromText,
      DolbyVisionProfile -> Text
forall a. (a -> Text) -> ToText a
toText :: DolbyVisionProfile -> Text
$ctoText :: DolbyVisionProfile -> Text
Data.ToText,
      DolbyVisionProfile -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DolbyVisionProfile -> ByteString
$ctoBS :: DolbyVisionProfile -> ByteString
Data.ToByteString,
      DolbyVisionProfile -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DolbyVisionProfile -> ByteStringBuilder
$cbuild :: DolbyVisionProfile -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DolbyVisionProfile -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DolbyVisionProfile -> [Header]
$ctoHeader :: HeaderName -> DolbyVisionProfile -> [Header]
Data.ToHeader,
      DolbyVisionProfile -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DolbyVisionProfile -> QueryString
$ctoQuery :: DolbyVisionProfile -> QueryString
Data.ToQuery,
      Value -> Parser [DolbyVisionProfile]
Value -> Parser DolbyVisionProfile
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DolbyVisionProfile]
$cparseJSONList :: Value -> Parser [DolbyVisionProfile]
parseJSON :: Value -> Parser DolbyVisionProfile
$cparseJSON :: Value -> Parser DolbyVisionProfile
Data.FromJSON,
      FromJSONKeyFunction [DolbyVisionProfile]
FromJSONKeyFunction DolbyVisionProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DolbyVisionProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [DolbyVisionProfile]
fromJSONKey :: FromJSONKeyFunction DolbyVisionProfile
$cfromJSONKey :: FromJSONKeyFunction DolbyVisionProfile
Data.FromJSONKey,
      [DolbyVisionProfile] -> Encoding
[DolbyVisionProfile] -> Value
DolbyVisionProfile -> Encoding
DolbyVisionProfile -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DolbyVisionProfile] -> Encoding
$ctoEncodingList :: [DolbyVisionProfile] -> Encoding
toJSONList :: [DolbyVisionProfile] -> Value
$ctoJSONList :: [DolbyVisionProfile] -> Value
toEncoding :: DolbyVisionProfile -> Encoding
$ctoEncoding :: DolbyVisionProfile -> Encoding
toJSON :: DolbyVisionProfile -> Value
$ctoJSON :: DolbyVisionProfile -> Value
Data.ToJSON,
      ToJSONKeyFunction [DolbyVisionProfile]
ToJSONKeyFunction DolbyVisionProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DolbyVisionProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [DolbyVisionProfile]
toJSONKey :: ToJSONKeyFunction DolbyVisionProfile
$ctoJSONKey :: ToJSONKeyFunction DolbyVisionProfile
Data.ToJSONKey,
      [Node] -> Either String DolbyVisionProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DolbyVisionProfile
$cparseXML :: [Node] -> Either String DolbyVisionProfile
Data.FromXML,
      DolbyVisionProfile -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DolbyVisionProfile -> XML
$ctoXML :: DolbyVisionProfile -> XML
Data.ToXML
    )

pattern DolbyVisionProfile_PROFILE_5 :: DolbyVisionProfile
pattern $bDolbyVisionProfile_PROFILE_5 :: DolbyVisionProfile
$mDolbyVisionProfile_PROFILE_5 :: forall {r}. DolbyVisionProfile -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyVisionProfile_PROFILE_5 = DolbyVisionProfile' "PROFILE_5"

pattern DolbyVisionProfile_PROFILE_8_1 :: DolbyVisionProfile
pattern $bDolbyVisionProfile_PROFILE_8_1 :: DolbyVisionProfile
$mDolbyVisionProfile_PROFILE_8_1 :: forall {r}. DolbyVisionProfile -> ((# #) -> r) -> ((# #) -> r) -> r
DolbyVisionProfile_PROFILE_8_1 = DolbyVisionProfile' "PROFILE_8_1"

{-# COMPLETE
  DolbyVisionProfile_PROFILE_5,
  DolbyVisionProfile_PROFILE_8_1,
  DolbyVisionProfile'
  #-}