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

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

-- | In the current MediaConvert implementation, the Dolby Vision profile is
-- always 5 (PROFILE_5). Therefore, all of your inputs must contain Dolby
-- Vision frame interleaved data.
newtype DolbyVisionProfile = DolbyVisionProfile'
  { DolbyVisionProfile -> Text
fromDolbyVisionProfile ::
      Core.Text
  }
  deriving stock
    ( Int -> DolbyVisionProfile -> ShowS
[DolbyVisionProfile] -> ShowS
DolbyVisionProfile -> String
(Int -> DolbyVisionProfile -> ShowS)
-> (DolbyVisionProfile -> String)
-> ([DolbyVisionProfile] -> ShowS)
-> Show DolbyVisionProfile
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]
(Int -> ReadS DolbyVisionProfile)
-> ReadS [DolbyVisionProfile]
-> ReadPrec DolbyVisionProfile
-> ReadPrec [DolbyVisionProfile]
-> Read 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
(DolbyVisionProfile -> DolbyVisionProfile -> Bool)
-> (DolbyVisionProfile -> DolbyVisionProfile -> Bool)
-> Eq DolbyVisionProfile
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
Eq DolbyVisionProfile
-> (DolbyVisionProfile -> DolbyVisionProfile -> Ordering)
-> (DolbyVisionProfile -> DolbyVisionProfile -> Bool)
-> (DolbyVisionProfile -> DolbyVisionProfile -> Bool)
-> (DolbyVisionProfile -> DolbyVisionProfile -> Bool)
-> (DolbyVisionProfile -> DolbyVisionProfile -> Bool)
-> (DolbyVisionProfile -> DolbyVisionProfile -> DolbyVisionProfile)
-> (DolbyVisionProfile -> DolbyVisionProfile -> DolbyVisionProfile)
-> Ord 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
$cp1Ord :: Eq DolbyVisionProfile
Prelude.Ord,
      (forall x. DolbyVisionProfile -> Rep DolbyVisionProfile x)
-> (forall x. Rep DolbyVisionProfile x -> DolbyVisionProfile)
-> Generic DolbyVisionProfile
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
    ( Int -> DolbyVisionProfile -> Int
DolbyVisionProfile -> Int
(Int -> DolbyVisionProfile -> Int)
-> (DolbyVisionProfile -> Int) -> Hashable DolbyVisionProfile
forall 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 -> ()
(DolbyVisionProfile -> ()) -> NFData DolbyVisionProfile
forall a. (a -> ()) -> NFData a
rnf :: DolbyVisionProfile -> ()
$crnf :: DolbyVisionProfile -> ()
Prelude.NFData,
      Text -> Either String DolbyVisionProfile
(Text -> Either String DolbyVisionProfile)
-> FromText DolbyVisionProfile
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DolbyVisionProfile
$cfromText :: Text -> Either String DolbyVisionProfile
Core.FromText,
      DolbyVisionProfile -> Text
(DolbyVisionProfile -> Text) -> ToText DolbyVisionProfile
forall a. (a -> Text) -> ToText a
toText :: DolbyVisionProfile -> Text
$ctoText :: DolbyVisionProfile -> Text
Core.ToText,
      DolbyVisionProfile -> ByteString
(DolbyVisionProfile -> ByteString)
-> ToByteString DolbyVisionProfile
forall a. (a -> ByteString) -> ToByteString a
toBS :: DolbyVisionProfile -> ByteString
$ctoBS :: DolbyVisionProfile -> ByteString
Core.ToByteString,
      DolbyVisionProfile -> ByteStringBuilder
(DolbyVisionProfile -> ByteStringBuilder)
-> ToLog DolbyVisionProfile
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DolbyVisionProfile -> ByteStringBuilder
$cbuild :: DolbyVisionProfile -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DolbyVisionProfile -> [Header]
(HeaderName -> DolbyVisionProfile -> [Header])
-> ToHeader DolbyVisionProfile
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DolbyVisionProfile -> [Header]
$ctoHeader :: HeaderName -> DolbyVisionProfile -> [Header]
Core.ToHeader,
      DolbyVisionProfile -> QueryString
(DolbyVisionProfile -> QueryString) -> ToQuery DolbyVisionProfile
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DolbyVisionProfile -> QueryString
$ctoQuery :: DolbyVisionProfile -> QueryString
Core.ToQuery,
      Value -> Parser [DolbyVisionProfile]
Value -> Parser DolbyVisionProfile
(Value -> Parser DolbyVisionProfile)
-> (Value -> Parser [DolbyVisionProfile])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DolbyVisionProfile]
FromJSONKeyFunction DolbyVisionProfile
FromJSONKeyFunction DolbyVisionProfile
-> FromJSONKeyFunction [DolbyVisionProfile]
-> FromJSONKey DolbyVisionProfile
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DolbyVisionProfile]
$cfromJSONKeyList :: FromJSONKeyFunction [DolbyVisionProfile]
fromJSONKey :: FromJSONKeyFunction DolbyVisionProfile
$cfromJSONKey :: FromJSONKeyFunction DolbyVisionProfile
Core.FromJSONKey,
      [DolbyVisionProfile] -> Encoding
[DolbyVisionProfile] -> Value
DolbyVisionProfile -> Encoding
DolbyVisionProfile -> Value
(DolbyVisionProfile -> Value)
-> (DolbyVisionProfile -> Encoding)
-> ([DolbyVisionProfile] -> Value)
-> ([DolbyVisionProfile] -> Encoding)
-> ToJSON DolbyVisionProfile
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
Core.ToJSON,
      ToJSONKeyFunction [DolbyVisionProfile]
ToJSONKeyFunction DolbyVisionProfile
ToJSONKeyFunction DolbyVisionProfile
-> ToJSONKeyFunction [DolbyVisionProfile]
-> ToJSONKey DolbyVisionProfile
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DolbyVisionProfile]
$ctoJSONKeyList :: ToJSONKeyFunction [DolbyVisionProfile]
toJSONKey :: ToJSONKeyFunction DolbyVisionProfile
$ctoJSONKey :: ToJSONKeyFunction DolbyVisionProfile
Core.ToJSONKey,
      [Node] -> Either String DolbyVisionProfile
([Node] -> Either String DolbyVisionProfile)
-> FromXML DolbyVisionProfile
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DolbyVisionProfile
$cparseXML :: [Node] -> Either String DolbyVisionProfile
Core.FromXML,
      DolbyVisionProfile -> XML
(DolbyVisionProfile -> XML) -> ToXML DolbyVisionProfile
forall a. (a -> XML) -> ToXML a
toXML :: DolbyVisionProfile -> XML
$ctoXML :: DolbyVisionProfile -> XML
Core.ToXML
    )

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

{-# COMPLETE
  DolbyVisionProfile_PROFILE_5,
  DolbyVisionProfile'
  #-}