{-# 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.MovMpeg2FourCCControl
-- 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.MovMpeg2FourCCControl
  ( MovMpeg2FourCCControl
      ( ..,
        MovMpeg2FourCCControl_MPEG,
        MovMpeg2FourCCControl_XDCAM
      ),
  )
where

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

-- | When set to XDCAM, writes MPEG2 video streams into the QuickTime file
-- using XDCAM fourcc codes. This increases compatibility with Apple
-- editors and players, but may decrease compatibility with other players.
-- Only applicable when the video codec is MPEG2.
newtype MovMpeg2FourCCControl = MovMpeg2FourCCControl'
  { MovMpeg2FourCCControl -> Text
fromMovMpeg2FourCCControl ::
      Data.Text
  }
  deriving stock
    ( Int -> MovMpeg2FourCCControl -> ShowS
[MovMpeg2FourCCControl] -> ShowS
MovMpeg2FourCCControl -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MovMpeg2FourCCControl] -> ShowS
$cshowList :: [MovMpeg2FourCCControl] -> ShowS
show :: MovMpeg2FourCCControl -> String
$cshow :: MovMpeg2FourCCControl -> String
showsPrec :: Int -> MovMpeg2FourCCControl -> ShowS
$cshowsPrec :: Int -> MovMpeg2FourCCControl -> ShowS
Prelude.Show,
      ReadPrec [MovMpeg2FourCCControl]
ReadPrec MovMpeg2FourCCControl
Int -> ReadS MovMpeg2FourCCControl
ReadS [MovMpeg2FourCCControl]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MovMpeg2FourCCControl]
$creadListPrec :: ReadPrec [MovMpeg2FourCCControl]
readPrec :: ReadPrec MovMpeg2FourCCControl
$creadPrec :: ReadPrec MovMpeg2FourCCControl
readList :: ReadS [MovMpeg2FourCCControl]
$creadList :: ReadS [MovMpeg2FourCCControl]
readsPrec :: Int -> ReadS MovMpeg2FourCCControl
$creadsPrec :: Int -> ReadS MovMpeg2FourCCControl
Prelude.Read,
      MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
$c/= :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
== :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
$c== :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
Prelude.Eq,
      Eq MovMpeg2FourCCControl
MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Ordering
MovMpeg2FourCCControl
-> MovMpeg2FourCCControl -> MovMpeg2FourCCControl
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 :: MovMpeg2FourCCControl
-> MovMpeg2FourCCControl -> MovMpeg2FourCCControl
$cmin :: MovMpeg2FourCCControl
-> MovMpeg2FourCCControl -> MovMpeg2FourCCControl
max :: MovMpeg2FourCCControl
-> MovMpeg2FourCCControl -> MovMpeg2FourCCControl
$cmax :: MovMpeg2FourCCControl
-> MovMpeg2FourCCControl -> MovMpeg2FourCCControl
>= :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
$c>= :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
> :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
$c> :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
<= :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
$c<= :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
< :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
$c< :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Bool
compare :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Ordering
$ccompare :: MovMpeg2FourCCControl -> MovMpeg2FourCCControl -> Ordering
Prelude.Ord,
      forall x. Rep MovMpeg2FourCCControl x -> MovMpeg2FourCCControl
forall x. MovMpeg2FourCCControl -> Rep MovMpeg2FourCCControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MovMpeg2FourCCControl x -> MovMpeg2FourCCControl
$cfrom :: forall x. MovMpeg2FourCCControl -> Rep MovMpeg2FourCCControl x
Prelude.Generic
    )
  deriving newtype
    ( Eq MovMpeg2FourCCControl
Int -> MovMpeg2FourCCControl -> Int
MovMpeg2FourCCControl -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MovMpeg2FourCCControl -> Int
$chash :: MovMpeg2FourCCControl -> Int
hashWithSalt :: Int -> MovMpeg2FourCCControl -> Int
$chashWithSalt :: Int -> MovMpeg2FourCCControl -> Int
Prelude.Hashable,
      MovMpeg2FourCCControl -> ()
forall a. (a -> ()) -> NFData a
rnf :: MovMpeg2FourCCControl -> ()
$crnf :: MovMpeg2FourCCControl -> ()
Prelude.NFData,
      Text -> Either String MovMpeg2FourCCControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MovMpeg2FourCCControl
$cfromText :: Text -> Either String MovMpeg2FourCCControl
Data.FromText,
      MovMpeg2FourCCControl -> Text
forall a. (a -> Text) -> ToText a
toText :: MovMpeg2FourCCControl -> Text
$ctoText :: MovMpeg2FourCCControl -> Text
Data.ToText,
      MovMpeg2FourCCControl -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MovMpeg2FourCCControl -> ByteString
$ctoBS :: MovMpeg2FourCCControl -> ByteString
Data.ToByteString,
      MovMpeg2FourCCControl -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MovMpeg2FourCCControl -> ByteStringBuilder
$cbuild :: MovMpeg2FourCCControl -> ByteStringBuilder
Data.ToLog,
      HeaderName -> MovMpeg2FourCCControl -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MovMpeg2FourCCControl -> [Header]
$ctoHeader :: HeaderName -> MovMpeg2FourCCControl -> [Header]
Data.ToHeader,
      MovMpeg2FourCCControl -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MovMpeg2FourCCControl -> QueryString
$ctoQuery :: MovMpeg2FourCCControl -> QueryString
Data.ToQuery,
      Value -> Parser [MovMpeg2FourCCControl]
Value -> Parser MovMpeg2FourCCControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MovMpeg2FourCCControl]
$cparseJSONList :: Value -> Parser [MovMpeg2FourCCControl]
parseJSON :: Value -> Parser MovMpeg2FourCCControl
$cparseJSON :: Value -> Parser MovMpeg2FourCCControl
Data.FromJSON,
      FromJSONKeyFunction [MovMpeg2FourCCControl]
FromJSONKeyFunction MovMpeg2FourCCControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MovMpeg2FourCCControl]
$cfromJSONKeyList :: FromJSONKeyFunction [MovMpeg2FourCCControl]
fromJSONKey :: FromJSONKeyFunction MovMpeg2FourCCControl
$cfromJSONKey :: FromJSONKeyFunction MovMpeg2FourCCControl
Data.FromJSONKey,
      [MovMpeg2FourCCControl] -> Encoding
[MovMpeg2FourCCControl] -> Value
MovMpeg2FourCCControl -> Encoding
MovMpeg2FourCCControl -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MovMpeg2FourCCControl] -> Encoding
$ctoEncodingList :: [MovMpeg2FourCCControl] -> Encoding
toJSONList :: [MovMpeg2FourCCControl] -> Value
$ctoJSONList :: [MovMpeg2FourCCControl] -> Value
toEncoding :: MovMpeg2FourCCControl -> Encoding
$ctoEncoding :: MovMpeg2FourCCControl -> Encoding
toJSON :: MovMpeg2FourCCControl -> Value
$ctoJSON :: MovMpeg2FourCCControl -> Value
Data.ToJSON,
      ToJSONKeyFunction [MovMpeg2FourCCControl]
ToJSONKeyFunction MovMpeg2FourCCControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MovMpeg2FourCCControl]
$ctoJSONKeyList :: ToJSONKeyFunction [MovMpeg2FourCCControl]
toJSONKey :: ToJSONKeyFunction MovMpeg2FourCCControl
$ctoJSONKey :: ToJSONKeyFunction MovMpeg2FourCCControl
Data.ToJSONKey,
      [Node] -> Either String MovMpeg2FourCCControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MovMpeg2FourCCControl
$cparseXML :: [Node] -> Either String MovMpeg2FourCCControl
Data.FromXML,
      MovMpeg2FourCCControl -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MovMpeg2FourCCControl -> XML
$ctoXML :: MovMpeg2FourCCControl -> XML
Data.ToXML
    )

pattern MovMpeg2FourCCControl_MPEG :: MovMpeg2FourCCControl
pattern $bMovMpeg2FourCCControl_MPEG :: MovMpeg2FourCCControl
$mMovMpeg2FourCCControl_MPEG :: forall {r}.
MovMpeg2FourCCControl -> ((# #) -> r) -> ((# #) -> r) -> r
MovMpeg2FourCCControl_MPEG = MovMpeg2FourCCControl' "MPEG"

pattern MovMpeg2FourCCControl_XDCAM :: MovMpeg2FourCCControl
pattern $bMovMpeg2FourCCControl_XDCAM :: MovMpeg2FourCCControl
$mMovMpeg2FourCCControl_XDCAM :: forall {r}.
MovMpeg2FourCCControl -> ((# #) -> r) -> ((# #) -> r) -> r
MovMpeg2FourCCControl_XDCAM = MovMpeg2FourCCControl' "XDCAM"

{-# COMPLETE
  MovMpeg2FourCCControl_MPEG,
  MovMpeg2FourCCControl_XDCAM,
  MovMpeg2FourCCControl'
  #-}