{-# 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.ProresInterlaceMode
-- 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.ProresInterlaceMode
  ( ProresInterlaceMode
      ( ..,
        ProresInterlaceMode_BOTTOM_FIELD,
        ProresInterlaceMode_FOLLOW_BOTTOM_FIELD,
        ProresInterlaceMode_FOLLOW_TOP_FIELD,
        ProresInterlaceMode_PROGRESSIVE,
        ProresInterlaceMode_TOP_FIELD
      ),
  )
where

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

-- | Choose the scan line type for the output. Keep the default value,
-- Progressive (PROGRESSIVE) to create a progressive output, regardless of
-- the scan type of your input. Use Top field first (TOP_FIELD) or Bottom
-- field first (BOTTOM_FIELD) to create an output that\'s interlaced with
-- the same field polarity throughout. Use Follow, default top
-- (FOLLOW_TOP_FIELD) or Follow, default bottom (FOLLOW_BOTTOM_FIELD) to
-- produce outputs with the same field polarity as the source. For jobs
-- that have multiple inputs, the output field polarity might change over
-- the course of the output. Follow behavior depends on the input scan
-- type. If the source is interlaced, the output will be interlaced with
-- the same polarity as the source. If the source is progressive, the
-- output will be interlaced with top field bottom field first, depending
-- on which of the Follow options you choose.
newtype ProresInterlaceMode = ProresInterlaceMode'
  { ProresInterlaceMode -> Text
fromProresInterlaceMode ::
      Core.Text
  }
  deriving stock
    ( Int -> ProresInterlaceMode -> ShowS
[ProresInterlaceMode] -> ShowS
ProresInterlaceMode -> String
(Int -> ProresInterlaceMode -> ShowS)
-> (ProresInterlaceMode -> String)
-> ([ProresInterlaceMode] -> ShowS)
-> Show ProresInterlaceMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProresInterlaceMode] -> ShowS
$cshowList :: [ProresInterlaceMode] -> ShowS
show :: ProresInterlaceMode -> String
$cshow :: ProresInterlaceMode -> String
showsPrec :: Int -> ProresInterlaceMode -> ShowS
$cshowsPrec :: Int -> ProresInterlaceMode -> ShowS
Prelude.Show,
      ReadPrec [ProresInterlaceMode]
ReadPrec ProresInterlaceMode
Int -> ReadS ProresInterlaceMode
ReadS [ProresInterlaceMode]
(Int -> ReadS ProresInterlaceMode)
-> ReadS [ProresInterlaceMode]
-> ReadPrec ProresInterlaceMode
-> ReadPrec [ProresInterlaceMode]
-> Read ProresInterlaceMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProresInterlaceMode]
$creadListPrec :: ReadPrec [ProresInterlaceMode]
readPrec :: ReadPrec ProresInterlaceMode
$creadPrec :: ReadPrec ProresInterlaceMode
readList :: ReadS [ProresInterlaceMode]
$creadList :: ReadS [ProresInterlaceMode]
readsPrec :: Int -> ReadS ProresInterlaceMode
$creadsPrec :: Int -> ReadS ProresInterlaceMode
Prelude.Read,
      ProresInterlaceMode -> ProresInterlaceMode -> Bool
(ProresInterlaceMode -> ProresInterlaceMode -> Bool)
-> (ProresInterlaceMode -> ProresInterlaceMode -> Bool)
-> Eq ProresInterlaceMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
$c/= :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
== :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
$c== :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
Prelude.Eq,
      Eq ProresInterlaceMode
Eq ProresInterlaceMode
-> (ProresInterlaceMode -> ProresInterlaceMode -> Ordering)
-> (ProresInterlaceMode -> ProresInterlaceMode -> Bool)
-> (ProresInterlaceMode -> ProresInterlaceMode -> Bool)
-> (ProresInterlaceMode -> ProresInterlaceMode -> Bool)
-> (ProresInterlaceMode -> ProresInterlaceMode -> Bool)
-> (ProresInterlaceMode
    -> ProresInterlaceMode -> ProresInterlaceMode)
-> (ProresInterlaceMode
    -> ProresInterlaceMode -> ProresInterlaceMode)
-> Ord ProresInterlaceMode
ProresInterlaceMode -> ProresInterlaceMode -> Bool
ProresInterlaceMode -> ProresInterlaceMode -> Ordering
ProresInterlaceMode -> ProresInterlaceMode -> ProresInterlaceMode
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 :: ProresInterlaceMode -> ProresInterlaceMode -> ProresInterlaceMode
$cmin :: ProresInterlaceMode -> ProresInterlaceMode -> ProresInterlaceMode
max :: ProresInterlaceMode -> ProresInterlaceMode -> ProresInterlaceMode
$cmax :: ProresInterlaceMode -> ProresInterlaceMode -> ProresInterlaceMode
>= :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
$c>= :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
> :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
$c> :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
<= :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
$c<= :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
< :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
$c< :: ProresInterlaceMode -> ProresInterlaceMode -> Bool
compare :: ProresInterlaceMode -> ProresInterlaceMode -> Ordering
$ccompare :: ProresInterlaceMode -> ProresInterlaceMode -> Ordering
$cp1Ord :: Eq ProresInterlaceMode
Prelude.Ord,
      (forall x. ProresInterlaceMode -> Rep ProresInterlaceMode x)
-> (forall x. Rep ProresInterlaceMode x -> ProresInterlaceMode)
-> Generic ProresInterlaceMode
forall x. Rep ProresInterlaceMode x -> ProresInterlaceMode
forall x. ProresInterlaceMode -> Rep ProresInterlaceMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProresInterlaceMode x -> ProresInterlaceMode
$cfrom :: forall x. ProresInterlaceMode -> Rep ProresInterlaceMode x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ProresInterlaceMode -> Int
ProresInterlaceMode -> Int
(Int -> ProresInterlaceMode -> Int)
-> (ProresInterlaceMode -> Int) -> Hashable ProresInterlaceMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ProresInterlaceMode -> Int
$chash :: ProresInterlaceMode -> Int
hashWithSalt :: Int -> ProresInterlaceMode -> Int
$chashWithSalt :: Int -> ProresInterlaceMode -> Int
Prelude.Hashable,
      ProresInterlaceMode -> ()
(ProresInterlaceMode -> ()) -> NFData ProresInterlaceMode
forall a. (a -> ()) -> NFData a
rnf :: ProresInterlaceMode -> ()
$crnf :: ProresInterlaceMode -> ()
Prelude.NFData,
      Text -> Either String ProresInterlaceMode
(Text -> Either String ProresInterlaceMode)
-> FromText ProresInterlaceMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ProresInterlaceMode
$cfromText :: Text -> Either String ProresInterlaceMode
Core.FromText,
      ProresInterlaceMode -> Text
(ProresInterlaceMode -> Text) -> ToText ProresInterlaceMode
forall a. (a -> Text) -> ToText a
toText :: ProresInterlaceMode -> Text
$ctoText :: ProresInterlaceMode -> Text
Core.ToText,
      ProresInterlaceMode -> ByteString
(ProresInterlaceMode -> ByteString)
-> ToByteString ProresInterlaceMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ProresInterlaceMode -> ByteString
$ctoBS :: ProresInterlaceMode -> ByteString
Core.ToByteString,
      ProresInterlaceMode -> ByteStringBuilder
(ProresInterlaceMode -> ByteStringBuilder)
-> ToLog ProresInterlaceMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ProresInterlaceMode -> ByteStringBuilder
$cbuild :: ProresInterlaceMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ProresInterlaceMode -> [Header]
(HeaderName -> ProresInterlaceMode -> [Header])
-> ToHeader ProresInterlaceMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ProresInterlaceMode -> [Header]
$ctoHeader :: HeaderName -> ProresInterlaceMode -> [Header]
Core.ToHeader,
      ProresInterlaceMode -> QueryString
(ProresInterlaceMode -> QueryString) -> ToQuery ProresInterlaceMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ProresInterlaceMode -> QueryString
$ctoQuery :: ProresInterlaceMode -> QueryString
Core.ToQuery,
      Value -> Parser [ProresInterlaceMode]
Value -> Parser ProresInterlaceMode
(Value -> Parser ProresInterlaceMode)
-> (Value -> Parser [ProresInterlaceMode])
-> FromJSON ProresInterlaceMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ProresInterlaceMode]
$cparseJSONList :: Value -> Parser [ProresInterlaceMode]
parseJSON :: Value -> Parser ProresInterlaceMode
$cparseJSON :: Value -> Parser ProresInterlaceMode
Core.FromJSON,
      FromJSONKeyFunction [ProresInterlaceMode]
FromJSONKeyFunction ProresInterlaceMode
FromJSONKeyFunction ProresInterlaceMode
-> FromJSONKeyFunction [ProresInterlaceMode]
-> FromJSONKey ProresInterlaceMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ProresInterlaceMode]
$cfromJSONKeyList :: FromJSONKeyFunction [ProresInterlaceMode]
fromJSONKey :: FromJSONKeyFunction ProresInterlaceMode
$cfromJSONKey :: FromJSONKeyFunction ProresInterlaceMode
Core.FromJSONKey,
      [ProresInterlaceMode] -> Encoding
[ProresInterlaceMode] -> Value
ProresInterlaceMode -> Encoding
ProresInterlaceMode -> Value
(ProresInterlaceMode -> Value)
-> (ProresInterlaceMode -> Encoding)
-> ([ProresInterlaceMode] -> Value)
-> ([ProresInterlaceMode] -> Encoding)
-> ToJSON ProresInterlaceMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ProresInterlaceMode] -> Encoding
$ctoEncodingList :: [ProresInterlaceMode] -> Encoding
toJSONList :: [ProresInterlaceMode] -> Value
$ctoJSONList :: [ProresInterlaceMode] -> Value
toEncoding :: ProresInterlaceMode -> Encoding
$ctoEncoding :: ProresInterlaceMode -> Encoding
toJSON :: ProresInterlaceMode -> Value
$ctoJSON :: ProresInterlaceMode -> Value
Core.ToJSON,
      ToJSONKeyFunction [ProresInterlaceMode]
ToJSONKeyFunction ProresInterlaceMode
ToJSONKeyFunction ProresInterlaceMode
-> ToJSONKeyFunction [ProresInterlaceMode]
-> ToJSONKey ProresInterlaceMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ProresInterlaceMode]
$ctoJSONKeyList :: ToJSONKeyFunction [ProresInterlaceMode]
toJSONKey :: ToJSONKeyFunction ProresInterlaceMode
$ctoJSONKey :: ToJSONKeyFunction ProresInterlaceMode
Core.ToJSONKey,
      [Node] -> Either String ProresInterlaceMode
([Node] -> Either String ProresInterlaceMode)
-> FromXML ProresInterlaceMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ProresInterlaceMode
$cparseXML :: [Node] -> Either String ProresInterlaceMode
Core.FromXML,
      ProresInterlaceMode -> XML
(ProresInterlaceMode -> XML) -> ToXML ProresInterlaceMode
forall a. (a -> XML) -> ToXML a
toXML :: ProresInterlaceMode -> XML
$ctoXML :: ProresInterlaceMode -> XML
Core.ToXML
    )

pattern ProresInterlaceMode_BOTTOM_FIELD :: ProresInterlaceMode
pattern $bProresInterlaceMode_BOTTOM_FIELD :: ProresInterlaceMode
$mProresInterlaceMode_BOTTOM_FIELD :: forall r. ProresInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
ProresInterlaceMode_BOTTOM_FIELD = ProresInterlaceMode' "BOTTOM_FIELD"

pattern ProresInterlaceMode_FOLLOW_BOTTOM_FIELD :: ProresInterlaceMode
pattern $bProresInterlaceMode_FOLLOW_BOTTOM_FIELD :: ProresInterlaceMode
$mProresInterlaceMode_FOLLOW_BOTTOM_FIELD :: forall r. ProresInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
ProresInterlaceMode_FOLLOW_BOTTOM_FIELD = ProresInterlaceMode' "FOLLOW_BOTTOM_FIELD"

pattern ProresInterlaceMode_FOLLOW_TOP_FIELD :: ProresInterlaceMode
pattern $bProresInterlaceMode_FOLLOW_TOP_FIELD :: ProresInterlaceMode
$mProresInterlaceMode_FOLLOW_TOP_FIELD :: forall r. ProresInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
ProresInterlaceMode_FOLLOW_TOP_FIELD = ProresInterlaceMode' "FOLLOW_TOP_FIELD"

pattern ProresInterlaceMode_PROGRESSIVE :: ProresInterlaceMode
pattern $bProresInterlaceMode_PROGRESSIVE :: ProresInterlaceMode
$mProresInterlaceMode_PROGRESSIVE :: forall r. ProresInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
ProresInterlaceMode_PROGRESSIVE = ProresInterlaceMode' "PROGRESSIVE"

pattern ProresInterlaceMode_TOP_FIELD :: ProresInterlaceMode
pattern $bProresInterlaceMode_TOP_FIELD :: ProresInterlaceMode
$mProresInterlaceMode_TOP_FIELD :: forall r. ProresInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
ProresInterlaceMode_TOP_FIELD = ProresInterlaceMode' "TOP_FIELD"

{-# COMPLETE
  ProresInterlaceMode_BOTTOM_FIELD,
  ProresInterlaceMode_FOLLOW_BOTTOM_FIELD,
  ProresInterlaceMode_FOLLOW_TOP_FIELD,
  ProresInterlaceMode_PROGRESSIVE,
  ProresInterlaceMode_TOP_FIELD,
  ProresInterlaceMode'
  #-}