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

pattern Vc3ScanTypeConversionMode_INTERLACED :: Vc3ScanTypeConversionMode
pattern $bVc3ScanTypeConversionMode_INTERLACED :: Vc3ScanTypeConversionMode
$mVc3ScanTypeConversionMode_INTERLACED :: forall r.
Vc3ScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
Vc3ScanTypeConversionMode_INTERLACED = Vc3ScanTypeConversionMode' "INTERLACED"

pattern Vc3ScanTypeConversionMode_INTERLACED_OPTIMIZE :: Vc3ScanTypeConversionMode
pattern $bVc3ScanTypeConversionMode_INTERLACED_OPTIMIZE :: Vc3ScanTypeConversionMode
$mVc3ScanTypeConversionMode_INTERLACED_OPTIMIZE :: forall r.
Vc3ScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
Vc3ScanTypeConversionMode_INTERLACED_OPTIMIZE = Vc3ScanTypeConversionMode' "INTERLACED_OPTIMIZE"

{-# COMPLETE
  Vc3ScanTypeConversionMode_INTERLACED,
  Vc3ScanTypeConversionMode_INTERLACED_OPTIMIZE,
  Vc3ScanTypeConversionMode'
  #-}