{-# 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.DvbddsHandling
-- 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.DvbddsHandling
  ( DvbddsHandling
      ( ..,
        DvbddsHandling_NONE,
        DvbddsHandling_NO_DISPLAY_WINDOW,
        DvbddsHandling_SPECIFIED
      ),
  )
where

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

-- | Specify how MediaConvert handles the display definition segment (DDS).
-- Keep the default, None (NONE), to exclude the DDS from this set of
-- captions. Choose No display window (NO_DISPLAY_WINDOW) to have
-- MediaConvert include the DDS but not include display window data. In
-- this case, MediaConvert writes that information to the page composition
-- segment (PCS) instead. Choose Specify (SPECIFIED) to have MediaConvert
-- set up the display window based on the values that you specify in
-- related job settings. For video resolutions that are 576 pixels or
-- smaller in height, MediaConvert doesn\'t include the DDS, regardless of
-- the value you choose for DDS handling (ddsHandling). In this case, it
-- doesn\'t write the display window data to the PCS either. Related
-- settings: Use the settings DDS x-coordinate (ddsXCoordinate) and DDS
-- y-coordinate (ddsYCoordinate) to specify the offset between the top left
-- corner of the display window and the top left corner of the video frame.
-- All burn-in and DVB-Sub font settings must match.
newtype DvbddsHandling = DvbddsHandling'
  { DvbddsHandling -> Text
fromDvbddsHandling ::
      Core.Text
  }
  deriving stock
    ( Int -> DvbddsHandling -> ShowS
[DvbddsHandling] -> ShowS
DvbddsHandling -> String
(Int -> DvbddsHandling -> ShowS)
-> (DvbddsHandling -> String)
-> ([DvbddsHandling] -> ShowS)
-> Show DvbddsHandling
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DvbddsHandling] -> ShowS
$cshowList :: [DvbddsHandling] -> ShowS
show :: DvbddsHandling -> String
$cshow :: DvbddsHandling -> String
showsPrec :: Int -> DvbddsHandling -> ShowS
$cshowsPrec :: Int -> DvbddsHandling -> ShowS
Prelude.Show,
      ReadPrec [DvbddsHandling]
ReadPrec DvbddsHandling
Int -> ReadS DvbddsHandling
ReadS [DvbddsHandling]
(Int -> ReadS DvbddsHandling)
-> ReadS [DvbddsHandling]
-> ReadPrec DvbddsHandling
-> ReadPrec [DvbddsHandling]
-> Read DvbddsHandling
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DvbddsHandling]
$creadListPrec :: ReadPrec [DvbddsHandling]
readPrec :: ReadPrec DvbddsHandling
$creadPrec :: ReadPrec DvbddsHandling
readList :: ReadS [DvbddsHandling]
$creadList :: ReadS [DvbddsHandling]
readsPrec :: Int -> ReadS DvbddsHandling
$creadsPrec :: Int -> ReadS DvbddsHandling
Prelude.Read,
      DvbddsHandling -> DvbddsHandling -> Bool
(DvbddsHandling -> DvbddsHandling -> Bool)
-> (DvbddsHandling -> DvbddsHandling -> Bool) -> Eq DvbddsHandling
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DvbddsHandling -> DvbddsHandling -> Bool
$c/= :: DvbddsHandling -> DvbddsHandling -> Bool
== :: DvbddsHandling -> DvbddsHandling -> Bool
$c== :: DvbddsHandling -> DvbddsHandling -> Bool
Prelude.Eq,
      Eq DvbddsHandling
Eq DvbddsHandling
-> (DvbddsHandling -> DvbddsHandling -> Ordering)
-> (DvbddsHandling -> DvbddsHandling -> Bool)
-> (DvbddsHandling -> DvbddsHandling -> Bool)
-> (DvbddsHandling -> DvbddsHandling -> Bool)
-> (DvbddsHandling -> DvbddsHandling -> Bool)
-> (DvbddsHandling -> DvbddsHandling -> DvbddsHandling)
-> (DvbddsHandling -> DvbddsHandling -> DvbddsHandling)
-> Ord DvbddsHandling
DvbddsHandling -> DvbddsHandling -> Bool
DvbddsHandling -> DvbddsHandling -> Ordering
DvbddsHandling -> DvbddsHandling -> DvbddsHandling
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 :: DvbddsHandling -> DvbddsHandling -> DvbddsHandling
$cmin :: DvbddsHandling -> DvbddsHandling -> DvbddsHandling
max :: DvbddsHandling -> DvbddsHandling -> DvbddsHandling
$cmax :: DvbddsHandling -> DvbddsHandling -> DvbddsHandling
>= :: DvbddsHandling -> DvbddsHandling -> Bool
$c>= :: DvbddsHandling -> DvbddsHandling -> Bool
> :: DvbddsHandling -> DvbddsHandling -> Bool
$c> :: DvbddsHandling -> DvbddsHandling -> Bool
<= :: DvbddsHandling -> DvbddsHandling -> Bool
$c<= :: DvbddsHandling -> DvbddsHandling -> Bool
< :: DvbddsHandling -> DvbddsHandling -> Bool
$c< :: DvbddsHandling -> DvbddsHandling -> Bool
compare :: DvbddsHandling -> DvbddsHandling -> Ordering
$ccompare :: DvbddsHandling -> DvbddsHandling -> Ordering
$cp1Ord :: Eq DvbddsHandling
Prelude.Ord,
      (forall x. DvbddsHandling -> Rep DvbddsHandling x)
-> (forall x. Rep DvbddsHandling x -> DvbddsHandling)
-> Generic DvbddsHandling
forall x. Rep DvbddsHandling x -> DvbddsHandling
forall x. DvbddsHandling -> Rep DvbddsHandling x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DvbddsHandling x -> DvbddsHandling
$cfrom :: forall x. DvbddsHandling -> Rep DvbddsHandling x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DvbddsHandling -> Int
DvbddsHandling -> Int
(Int -> DvbddsHandling -> Int)
-> (DvbddsHandling -> Int) -> Hashable DvbddsHandling
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DvbddsHandling -> Int
$chash :: DvbddsHandling -> Int
hashWithSalt :: Int -> DvbddsHandling -> Int
$chashWithSalt :: Int -> DvbddsHandling -> Int
Prelude.Hashable,
      DvbddsHandling -> ()
(DvbddsHandling -> ()) -> NFData DvbddsHandling
forall a. (a -> ()) -> NFData a
rnf :: DvbddsHandling -> ()
$crnf :: DvbddsHandling -> ()
Prelude.NFData,
      Text -> Either String DvbddsHandling
(Text -> Either String DvbddsHandling) -> FromText DvbddsHandling
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DvbddsHandling
$cfromText :: Text -> Either String DvbddsHandling
Core.FromText,
      DvbddsHandling -> Text
(DvbddsHandling -> Text) -> ToText DvbddsHandling
forall a. (a -> Text) -> ToText a
toText :: DvbddsHandling -> Text
$ctoText :: DvbddsHandling -> Text
Core.ToText,
      DvbddsHandling -> ByteString
(DvbddsHandling -> ByteString) -> ToByteString DvbddsHandling
forall a. (a -> ByteString) -> ToByteString a
toBS :: DvbddsHandling -> ByteString
$ctoBS :: DvbddsHandling -> ByteString
Core.ToByteString,
      DvbddsHandling -> ByteStringBuilder
(DvbddsHandling -> ByteStringBuilder) -> ToLog DvbddsHandling
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DvbddsHandling -> ByteStringBuilder
$cbuild :: DvbddsHandling -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DvbddsHandling -> [Header]
(HeaderName -> DvbddsHandling -> [Header])
-> ToHeader DvbddsHandling
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DvbddsHandling -> [Header]
$ctoHeader :: HeaderName -> DvbddsHandling -> [Header]
Core.ToHeader,
      DvbddsHandling -> QueryString
(DvbddsHandling -> QueryString) -> ToQuery DvbddsHandling
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DvbddsHandling -> QueryString
$ctoQuery :: DvbddsHandling -> QueryString
Core.ToQuery,
      Value -> Parser [DvbddsHandling]
Value -> Parser DvbddsHandling
(Value -> Parser DvbddsHandling)
-> (Value -> Parser [DvbddsHandling]) -> FromJSON DvbddsHandling
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DvbddsHandling]
$cparseJSONList :: Value -> Parser [DvbddsHandling]
parseJSON :: Value -> Parser DvbddsHandling
$cparseJSON :: Value -> Parser DvbddsHandling
Core.FromJSON,
      FromJSONKeyFunction [DvbddsHandling]
FromJSONKeyFunction DvbddsHandling
FromJSONKeyFunction DvbddsHandling
-> FromJSONKeyFunction [DvbddsHandling]
-> FromJSONKey DvbddsHandling
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DvbddsHandling]
$cfromJSONKeyList :: FromJSONKeyFunction [DvbddsHandling]
fromJSONKey :: FromJSONKeyFunction DvbddsHandling
$cfromJSONKey :: FromJSONKeyFunction DvbddsHandling
Core.FromJSONKey,
      [DvbddsHandling] -> Encoding
[DvbddsHandling] -> Value
DvbddsHandling -> Encoding
DvbddsHandling -> Value
(DvbddsHandling -> Value)
-> (DvbddsHandling -> Encoding)
-> ([DvbddsHandling] -> Value)
-> ([DvbddsHandling] -> Encoding)
-> ToJSON DvbddsHandling
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DvbddsHandling] -> Encoding
$ctoEncodingList :: [DvbddsHandling] -> Encoding
toJSONList :: [DvbddsHandling] -> Value
$ctoJSONList :: [DvbddsHandling] -> Value
toEncoding :: DvbddsHandling -> Encoding
$ctoEncoding :: DvbddsHandling -> Encoding
toJSON :: DvbddsHandling -> Value
$ctoJSON :: DvbddsHandling -> Value
Core.ToJSON,
      ToJSONKeyFunction [DvbddsHandling]
ToJSONKeyFunction DvbddsHandling
ToJSONKeyFunction DvbddsHandling
-> ToJSONKeyFunction [DvbddsHandling] -> ToJSONKey DvbddsHandling
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DvbddsHandling]
$ctoJSONKeyList :: ToJSONKeyFunction [DvbddsHandling]
toJSONKey :: ToJSONKeyFunction DvbddsHandling
$ctoJSONKey :: ToJSONKeyFunction DvbddsHandling
Core.ToJSONKey,
      [Node] -> Either String DvbddsHandling
([Node] -> Either String DvbddsHandling) -> FromXML DvbddsHandling
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DvbddsHandling
$cparseXML :: [Node] -> Either String DvbddsHandling
Core.FromXML,
      DvbddsHandling -> XML
(DvbddsHandling -> XML) -> ToXML DvbddsHandling
forall a. (a -> XML) -> ToXML a
toXML :: DvbddsHandling -> XML
$ctoXML :: DvbddsHandling -> XML
Core.ToXML
    )

pattern DvbddsHandling_NONE :: DvbddsHandling
pattern $bDvbddsHandling_NONE :: DvbddsHandling
$mDvbddsHandling_NONE :: forall r. DvbddsHandling -> (Void# -> r) -> (Void# -> r) -> r
DvbddsHandling_NONE = DvbddsHandling' "NONE"

pattern DvbddsHandling_NO_DISPLAY_WINDOW :: DvbddsHandling
pattern $bDvbddsHandling_NO_DISPLAY_WINDOW :: DvbddsHandling
$mDvbddsHandling_NO_DISPLAY_WINDOW :: forall r. DvbddsHandling -> (Void# -> r) -> (Void# -> r) -> r
DvbddsHandling_NO_DISPLAY_WINDOW = DvbddsHandling' "NO_DISPLAY_WINDOW"

pattern DvbddsHandling_SPECIFIED :: DvbddsHandling
pattern $bDvbddsHandling_SPECIFIED :: DvbddsHandling
$mDvbddsHandling_SPECIFIED :: forall r. DvbddsHandling -> (Void# -> r) -> (Void# -> r) -> r
DvbddsHandling_SPECIFIED = DvbddsHandling' "SPECIFIED"

{-# COMPLETE
  DvbddsHandling_NONE,
  DvbddsHandling_NO_DISPLAY_WINDOW,
  DvbddsHandling_SPECIFIED,
  DvbddsHandling'
  #-}