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

pattern ProresScanTypeConversionMode_INTERLACED :: ProresScanTypeConversionMode
pattern $bProresScanTypeConversionMode_INTERLACED :: ProresScanTypeConversionMode
$mProresScanTypeConversionMode_INTERLACED :: forall r.
ProresScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
ProresScanTypeConversionMode_INTERLACED = ProresScanTypeConversionMode' "INTERLACED"

pattern ProresScanTypeConversionMode_INTERLACED_OPTIMIZE :: ProresScanTypeConversionMode
pattern $bProresScanTypeConversionMode_INTERLACED_OPTIMIZE :: ProresScanTypeConversionMode
$mProresScanTypeConversionMode_INTERLACED_OPTIMIZE :: forall r.
ProresScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
ProresScanTypeConversionMode_INTERLACED_OPTIMIZE = ProresScanTypeConversionMode' "INTERLACED_OPTIMIZE"

{-# COMPLETE
  ProresScanTypeConversionMode_INTERLACED,
  ProresScanTypeConversionMode_INTERLACED_OPTIMIZE,
  ProresScanTypeConversionMode'
  #-}