{-# 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.Av1BitDepth
-- 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.Av1BitDepth
  ( Av1BitDepth
      ( ..,
        Av1BitDepth_BIT_10,
        Av1BitDepth_BIT_8
      ),
  )
where

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

-- | Specify the Bit depth (Av1BitDepth). You can choose 8-bit (BIT_8) or
-- 10-bit (BIT_10).
newtype Av1BitDepth = Av1BitDepth'
  { Av1BitDepth -> Text
fromAv1BitDepth ::
      Data.Text
  }
  deriving stock
    ( Int -> Av1BitDepth -> ShowS
[Av1BitDepth] -> ShowS
Av1BitDepth -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Av1BitDepth] -> ShowS
$cshowList :: [Av1BitDepth] -> ShowS
show :: Av1BitDepth -> String
$cshow :: Av1BitDepth -> String
showsPrec :: Int -> Av1BitDepth -> ShowS
$cshowsPrec :: Int -> Av1BitDepth -> ShowS
Prelude.Show,
      ReadPrec [Av1BitDepth]
ReadPrec Av1BitDepth
Int -> ReadS Av1BitDepth
ReadS [Av1BitDepth]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Av1BitDepth]
$creadListPrec :: ReadPrec [Av1BitDepth]
readPrec :: ReadPrec Av1BitDepth
$creadPrec :: ReadPrec Av1BitDepth
readList :: ReadS [Av1BitDepth]
$creadList :: ReadS [Av1BitDepth]
readsPrec :: Int -> ReadS Av1BitDepth
$creadsPrec :: Int -> ReadS Av1BitDepth
Prelude.Read,
      Av1BitDepth -> Av1BitDepth -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Av1BitDepth -> Av1BitDepth -> Bool
$c/= :: Av1BitDepth -> Av1BitDepth -> Bool
== :: Av1BitDepth -> Av1BitDepth -> Bool
$c== :: Av1BitDepth -> Av1BitDepth -> Bool
Prelude.Eq,
      Eq Av1BitDepth
Av1BitDepth -> Av1BitDepth -> Bool
Av1BitDepth -> Av1BitDepth -> Ordering
Av1BitDepth -> Av1BitDepth -> Av1BitDepth
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 :: Av1BitDepth -> Av1BitDepth -> Av1BitDepth
$cmin :: Av1BitDepth -> Av1BitDepth -> Av1BitDepth
max :: Av1BitDepth -> Av1BitDepth -> Av1BitDepth
$cmax :: Av1BitDepth -> Av1BitDepth -> Av1BitDepth
>= :: Av1BitDepth -> Av1BitDepth -> Bool
$c>= :: Av1BitDepth -> Av1BitDepth -> Bool
> :: Av1BitDepth -> Av1BitDepth -> Bool
$c> :: Av1BitDepth -> Av1BitDepth -> Bool
<= :: Av1BitDepth -> Av1BitDepth -> Bool
$c<= :: Av1BitDepth -> Av1BitDepth -> Bool
< :: Av1BitDepth -> Av1BitDepth -> Bool
$c< :: Av1BitDepth -> Av1BitDepth -> Bool
compare :: Av1BitDepth -> Av1BitDepth -> Ordering
$ccompare :: Av1BitDepth -> Av1BitDepth -> Ordering
Prelude.Ord,
      forall x. Rep Av1BitDepth x -> Av1BitDepth
forall x. Av1BitDepth -> Rep Av1BitDepth x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Av1BitDepth x -> Av1BitDepth
$cfrom :: forall x. Av1BitDepth -> Rep Av1BitDepth x
Prelude.Generic
    )
  deriving newtype
    ( Eq Av1BitDepth
Int -> Av1BitDepth -> Int
Av1BitDepth -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Av1BitDepth -> Int
$chash :: Av1BitDepth -> Int
hashWithSalt :: Int -> Av1BitDepth -> Int
$chashWithSalt :: Int -> Av1BitDepth -> Int
Prelude.Hashable,
      Av1BitDepth -> ()
forall a. (a -> ()) -> NFData a
rnf :: Av1BitDepth -> ()
$crnf :: Av1BitDepth -> ()
Prelude.NFData,
      Text -> Either String Av1BitDepth
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Av1BitDepth
$cfromText :: Text -> Either String Av1BitDepth
Data.FromText,
      Av1BitDepth -> Text
forall a. (a -> Text) -> ToText a
toText :: Av1BitDepth -> Text
$ctoText :: Av1BitDepth -> Text
Data.ToText,
      Av1BitDepth -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Av1BitDepth -> ByteString
$ctoBS :: Av1BitDepth -> ByteString
Data.ToByteString,
      Av1BitDepth -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Av1BitDepth -> ByteStringBuilder
$cbuild :: Av1BitDepth -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Av1BitDepth -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Av1BitDepth -> [Header]
$ctoHeader :: HeaderName -> Av1BitDepth -> [Header]
Data.ToHeader,
      Av1BitDepth -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Av1BitDepth -> QueryString
$ctoQuery :: Av1BitDepth -> QueryString
Data.ToQuery,
      Value -> Parser [Av1BitDepth]
Value -> Parser Av1BitDepth
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Av1BitDepth]
$cparseJSONList :: Value -> Parser [Av1BitDepth]
parseJSON :: Value -> Parser Av1BitDepth
$cparseJSON :: Value -> Parser Av1BitDepth
Data.FromJSON,
      FromJSONKeyFunction [Av1BitDepth]
FromJSONKeyFunction Av1BitDepth
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Av1BitDepth]
$cfromJSONKeyList :: FromJSONKeyFunction [Av1BitDepth]
fromJSONKey :: FromJSONKeyFunction Av1BitDepth
$cfromJSONKey :: FromJSONKeyFunction Av1BitDepth
Data.FromJSONKey,
      [Av1BitDepth] -> Encoding
[Av1BitDepth] -> Value
Av1BitDepth -> Encoding
Av1BitDepth -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Av1BitDepth] -> Encoding
$ctoEncodingList :: [Av1BitDepth] -> Encoding
toJSONList :: [Av1BitDepth] -> Value
$ctoJSONList :: [Av1BitDepth] -> Value
toEncoding :: Av1BitDepth -> Encoding
$ctoEncoding :: Av1BitDepth -> Encoding
toJSON :: Av1BitDepth -> Value
$ctoJSON :: Av1BitDepth -> Value
Data.ToJSON,
      ToJSONKeyFunction [Av1BitDepth]
ToJSONKeyFunction Av1BitDepth
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Av1BitDepth]
$ctoJSONKeyList :: ToJSONKeyFunction [Av1BitDepth]
toJSONKey :: ToJSONKeyFunction Av1BitDepth
$ctoJSONKey :: ToJSONKeyFunction Av1BitDepth
Data.ToJSONKey,
      [Node] -> Either String Av1BitDepth
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Av1BitDepth
$cparseXML :: [Node] -> Either String Av1BitDepth
Data.FromXML,
      Av1BitDepth -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Av1BitDepth -> XML
$ctoXML :: Av1BitDepth -> XML
Data.ToXML
    )

pattern Av1BitDepth_BIT_10 :: Av1BitDepth
pattern $bAv1BitDepth_BIT_10 :: Av1BitDepth
$mAv1BitDepth_BIT_10 :: forall {r}. Av1BitDepth -> ((# #) -> r) -> ((# #) -> r) -> r
Av1BitDepth_BIT_10 = Av1BitDepth' "BIT_10"

pattern Av1BitDepth_BIT_8 :: Av1BitDepth
pattern $bAv1BitDepth_BIT_8 :: Av1BitDepth
$mAv1BitDepth_BIT_8 :: forall {r}. Av1BitDepth -> ((# #) -> r) -> ((# #) -> r) -> r
Av1BitDepth_BIT_8 = Av1BitDepth' "BIT_8"

{-# COMPLETE
  Av1BitDepth_BIT_10,
  Av1BitDepth_BIT_8,
  Av1BitDepth'
  #-}