{-# 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.Mpeg2ScanTypeConversionMode
-- 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.Mpeg2ScanTypeConversionMode
  ( Mpeg2ScanTypeConversionMode
      ( ..,
        Mpeg2ScanTypeConversionMode_INTERLACED,
        Mpeg2ScanTypeConversionMode_INTERLACED_OPTIMIZE
      ),
  )
where

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

-- | Use this setting for interlaced outputs, when your output frame rate is
-- half of your input frame rate. In this situation, choose Optimized
-- interlacing (INTERLACED_OPTIMIZE) to create a better quality interlaced
-- output. In this case, each progressive frame from the input corresponds
-- to an interlaced field in the output. Keep the default value, Basic
-- interlacing (INTERLACED), for all other output frame rates. With basic
-- interlacing, MediaConvert performs any frame rate conversion first and
-- then interlaces the frames. When you choose Optimized interlacing and
-- you set your output frame rate to a value that isn\'t suitable for
-- optimized interlacing, MediaConvert automatically falls back to basic
-- interlacing. Required settings: To use optimized interlacing, you must
-- set Telecine (telecine) to None (NONE) or Soft (SOFT). You can\'t use
-- optimized interlacing for hard telecine outputs. You must also set
-- Interlace mode (interlaceMode) to a value other than Progressive
-- (PROGRESSIVE).
newtype Mpeg2ScanTypeConversionMode = Mpeg2ScanTypeConversionMode'
  { Mpeg2ScanTypeConversionMode -> Text
fromMpeg2ScanTypeConversionMode ::
      Core.Text
  }
  deriving stock
    ( Int -> Mpeg2ScanTypeConversionMode -> ShowS
[Mpeg2ScanTypeConversionMode] -> ShowS
Mpeg2ScanTypeConversionMode -> String
(Int -> Mpeg2ScanTypeConversionMode -> ShowS)
-> (Mpeg2ScanTypeConversionMode -> String)
-> ([Mpeg2ScanTypeConversionMode] -> ShowS)
-> Show Mpeg2ScanTypeConversionMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Mpeg2ScanTypeConversionMode] -> ShowS
$cshowList :: [Mpeg2ScanTypeConversionMode] -> ShowS
show :: Mpeg2ScanTypeConversionMode -> String
$cshow :: Mpeg2ScanTypeConversionMode -> String
showsPrec :: Int -> Mpeg2ScanTypeConversionMode -> ShowS
$cshowsPrec :: Int -> Mpeg2ScanTypeConversionMode -> ShowS
Prelude.Show,
      ReadPrec [Mpeg2ScanTypeConversionMode]
ReadPrec Mpeg2ScanTypeConversionMode
Int -> ReadS Mpeg2ScanTypeConversionMode
ReadS [Mpeg2ScanTypeConversionMode]
(Int -> ReadS Mpeg2ScanTypeConversionMode)
-> ReadS [Mpeg2ScanTypeConversionMode]
-> ReadPrec Mpeg2ScanTypeConversionMode
-> ReadPrec [Mpeg2ScanTypeConversionMode]
-> Read Mpeg2ScanTypeConversionMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Mpeg2ScanTypeConversionMode]
$creadListPrec :: ReadPrec [Mpeg2ScanTypeConversionMode]
readPrec :: ReadPrec Mpeg2ScanTypeConversionMode
$creadPrec :: ReadPrec Mpeg2ScanTypeConversionMode
readList :: ReadS [Mpeg2ScanTypeConversionMode]
$creadList :: ReadS [Mpeg2ScanTypeConversionMode]
readsPrec :: Int -> ReadS Mpeg2ScanTypeConversionMode
$creadsPrec :: Int -> ReadS Mpeg2ScanTypeConversionMode
Prelude.Read,
      Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
(Mpeg2ScanTypeConversionMode
 -> Mpeg2ScanTypeConversionMode -> Bool)
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Bool)
-> Eq Mpeg2ScanTypeConversionMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
$c/= :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
== :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
$c== :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
Prelude.Eq,
      Eq Mpeg2ScanTypeConversionMode
Eq Mpeg2ScanTypeConversionMode
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Ordering)
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Bool)
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Bool)
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Bool)
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Bool)
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode)
-> (Mpeg2ScanTypeConversionMode
    -> Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode)
-> Ord Mpeg2ScanTypeConversionMode
Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Ordering
Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode
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 :: Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode
$cmin :: Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode
max :: Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode
$cmax :: Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode
>= :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
$c>= :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
> :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
$c> :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
<= :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
$c<= :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
< :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
$c< :: Mpeg2ScanTypeConversionMode -> Mpeg2ScanTypeConversionMode -> Bool
compare :: Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Ordering
$ccompare :: Mpeg2ScanTypeConversionMode
-> Mpeg2ScanTypeConversionMode -> Ordering
$cp1Ord :: Eq Mpeg2ScanTypeConversionMode
Prelude.Ord,
      (forall x.
 Mpeg2ScanTypeConversionMode -> Rep Mpeg2ScanTypeConversionMode x)
-> (forall x.
    Rep Mpeg2ScanTypeConversionMode x -> Mpeg2ScanTypeConversionMode)
-> Generic Mpeg2ScanTypeConversionMode
forall x.
Rep Mpeg2ScanTypeConversionMode x -> Mpeg2ScanTypeConversionMode
forall x.
Mpeg2ScanTypeConversionMode -> Rep Mpeg2ScanTypeConversionMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep Mpeg2ScanTypeConversionMode x -> Mpeg2ScanTypeConversionMode
$cfrom :: forall x.
Mpeg2ScanTypeConversionMode -> Rep Mpeg2ScanTypeConversionMode x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Mpeg2ScanTypeConversionMode -> Int
Mpeg2ScanTypeConversionMode -> Int
(Int -> Mpeg2ScanTypeConversionMode -> Int)
-> (Mpeg2ScanTypeConversionMode -> Int)
-> Hashable Mpeg2ScanTypeConversionMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Mpeg2ScanTypeConversionMode -> Int
$chash :: Mpeg2ScanTypeConversionMode -> Int
hashWithSalt :: Int -> Mpeg2ScanTypeConversionMode -> Int
$chashWithSalt :: Int -> Mpeg2ScanTypeConversionMode -> Int
Prelude.Hashable,
      Mpeg2ScanTypeConversionMode -> ()
(Mpeg2ScanTypeConversionMode -> ())
-> NFData Mpeg2ScanTypeConversionMode
forall a. (a -> ()) -> NFData a
rnf :: Mpeg2ScanTypeConversionMode -> ()
$crnf :: Mpeg2ScanTypeConversionMode -> ()
Prelude.NFData,
      Text -> Either String Mpeg2ScanTypeConversionMode
(Text -> Either String Mpeg2ScanTypeConversionMode)
-> FromText Mpeg2ScanTypeConversionMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Mpeg2ScanTypeConversionMode
$cfromText :: Text -> Either String Mpeg2ScanTypeConversionMode
Core.FromText,
      Mpeg2ScanTypeConversionMode -> Text
(Mpeg2ScanTypeConversionMode -> Text)
-> ToText Mpeg2ScanTypeConversionMode
forall a. (a -> Text) -> ToText a
toText :: Mpeg2ScanTypeConversionMode -> Text
$ctoText :: Mpeg2ScanTypeConversionMode -> Text
Core.ToText,
      Mpeg2ScanTypeConversionMode -> ByteString
(Mpeg2ScanTypeConversionMode -> ByteString)
-> ToByteString Mpeg2ScanTypeConversionMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: Mpeg2ScanTypeConversionMode -> ByteString
$ctoBS :: Mpeg2ScanTypeConversionMode -> ByteString
Core.ToByteString,
      Mpeg2ScanTypeConversionMode -> ByteStringBuilder
(Mpeg2ScanTypeConversionMode -> ByteStringBuilder)
-> ToLog Mpeg2ScanTypeConversionMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Mpeg2ScanTypeConversionMode -> ByteStringBuilder
$cbuild :: Mpeg2ScanTypeConversionMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Mpeg2ScanTypeConversionMode -> [Header]
(HeaderName -> Mpeg2ScanTypeConversionMode -> [Header])
-> ToHeader Mpeg2ScanTypeConversionMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Mpeg2ScanTypeConversionMode -> [Header]
$ctoHeader :: HeaderName -> Mpeg2ScanTypeConversionMode -> [Header]
Core.ToHeader,
      Mpeg2ScanTypeConversionMode -> QueryString
(Mpeg2ScanTypeConversionMode -> QueryString)
-> ToQuery Mpeg2ScanTypeConversionMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Mpeg2ScanTypeConversionMode -> QueryString
$ctoQuery :: Mpeg2ScanTypeConversionMode -> QueryString
Core.ToQuery,
      Value -> Parser [Mpeg2ScanTypeConversionMode]
Value -> Parser Mpeg2ScanTypeConversionMode
(Value -> Parser Mpeg2ScanTypeConversionMode)
-> (Value -> Parser [Mpeg2ScanTypeConversionMode])
-> FromJSON Mpeg2ScanTypeConversionMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Mpeg2ScanTypeConversionMode]
$cparseJSONList :: Value -> Parser [Mpeg2ScanTypeConversionMode]
parseJSON :: Value -> Parser Mpeg2ScanTypeConversionMode
$cparseJSON :: Value -> Parser Mpeg2ScanTypeConversionMode
Core.FromJSON,
      FromJSONKeyFunction [Mpeg2ScanTypeConversionMode]
FromJSONKeyFunction Mpeg2ScanTypeConversionMode
FromJSONKeyFunction Mpeg2ScanTypeConversionMode
-> FromJSONKeyFunction [Mpeg2ScanTypeConversionMode]
-> FromJSONKey Mpeg2ScanTypeConversionMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Mpeg2ScanTypeConversionMode]
$cfromJSONKeyList :: FromJSONKeyFunction [Mpeg2ScanTypeConversionMode]
fromJSONKey :: FromJSONKeyFunction Mpeg2ScanTypeConversionMode
$cfromJSONKey :: FromJSONKeyFunction Mpeg2ScanTypeConversionMode
Core.FromJSONKey,
      [Mpeg2ScanTypeConversionMode] -> Encoding
[Mpeg2ScanTypeConversionMode] -> Value
Mpeg2ScanTypeConversionMode -> Encoding
Mpeg2ScanTypeConversionMode -> Value
(Mpeg2ScanTypeConversionMode -> Value)
-> (Mpeg2ScanTypeConversionMode -> Encoding)
-> ([Mpeg2ScanTypeConversionMode] -> Value)
-> ([Mpeg2ScanTypeConversionMode] -> Encoding)
-> ToJSON Mpeg2ScanTypeConversionMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Mpeg2ScanTypeConversionMode] -> Encoding
$ctoEncodingList :: [Mpeg2ScanTypeConversionMode] -> Encoding
toJSONList :: [Mpeg2ScanTypeConversionMode] -> Value
$ctoJSONList :: [Mpeg2ScanTypeConversionMode] -> Value
toEncoding :: Mpeg2ScanTypeConversionMode -> Encoding
$ctoEncoding :: Mpeg2ScanTypeConversionMode -> Encoding
toJSON :: Mpeg2ScanTypeConversionMode -> Value
$ctoJSON :: Mpeg2ScanTypeConversionMode -> Value
Core.ToJSON,
      ToJSONKeyFunction [Mpeg2ScanTypeConversionMode]
ToJSONKeyFunction Mpeg2ScanTypeConversionMode
ToJSONKeyFunction Mpeg2ScanTypeConversionMode
-> ToJSONKeyFunction [Mpeg2ScanTypeConversionMode]
-> ToJSONKey Mpeg2ScanTypeConversionMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Mpeg2ScanTypeConversionMode]
$ctoJSONKeyList :: ToJSONKeyFunction [Mpeg2ScanTypeConversionMode]
toJSONKey :: ToJSONKeyFunction Mpeg2ScanTypeConversionMode
$ctoJSONKey :: ToJSONKeyFunction Mpeg2ScanTypeConversionMode
Core.ToJSONKey,
      [Node] -> Either String Mpeg2ScanTypeConversionMode
([Node] -> Either String Mpeg2ScanTypeConversionMode)
-> FromXML Mpeg2ScanTypeConversionMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Mpeg2ScanTypeConversionMode
$cparseXML :: [Node] -> Either String Mpeg2ScanTypeConversionMode
Core.FromXML,
      Mpeg2ScanTypeConversionMode -> XML
(Mpeg2ScanTypeConversionMode -> XML)
-> ToXML Mpeg2ScanTypeConversionMode
forall a. (a -> XML) -> ToXML a
toXML :: Mpeg2ScanTypeConversionMode -> XML
$ctoXML :: Mpeg2ScanTypeConversionMode -> XML
Core.ToXML
    )

pattern Mpeg2ScanTypeConversionMode_INTERLACED :: Mpeg2ScanTypeConversionMode
pattern $bMpeg2ScanTypeConversionMode_INTERLACED :: Mpeg2ScanTypeConversionMode
$mMpeg2ScanTypeConversionMode_INTERLACED :: forall r.
Mpeg2ScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2ScanTypeConversionMode_INTERLACED = Mpeg2ScanTypeConversionMode' "INTERLACED"

pattern Mpeg2ScanTypeConversionMode_INTERLACED_OPTIMIZE :: Mpeg2ScanTypeConversionMode
pattern $bMpeg2ScanTypeConversionMode_INTERLACED_OPTIMIZE :: Mpeg2ScanTypeConversionMode
$mMpeg2ScanTypeConversionMode_INTERLACED_OPTIMIZE :: forall r.
Mpeg2ScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2ScanTypeConversionMode_INTERLACED_OPTIMIZE = Mpeg2ScanTypeConversionMode' "INTERLACED_OPTIMIZE"

{-# COMPLETE
  Mpeg2ScanTypeConversionMode_INTERLACED,
  Mpeg2ScanTypeConversionMode_INTERLACED_OPTIMIZE,
  Mpeg2ScanTypeConversionMode'
  #-}