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

pattern AvcIntraInterlaceMode_BOTTOM_FIELD :: AvcIntraInterlaceMode
pattern $bAvcIntraInterlaceMode_BOTTOM_FIELD :: AvcIntraInterlaceMode
$mAvcIntraInterlaceMode_BOTTOM_FIELD :: forall r.
AvcIntraInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
AvcIntraInterlaceMode_BOTTOM_FIELD = AvcIntraInterlaceMode' "BOTTOM_FIELD"

pattern AvcIntraInterlaceMode_FOLLOW_BOTTOM_FIELD :: AvcIntraInterlaceMode
pattern $bAvcIntraInterlaceMode_FOLLOW_BOTTOM_FIELD :: AvcIntraInterlaceMode
$mAvcIntraInterlaceMode_FOLLOW_BOTTOM_FIELD :: forall r.
AvcIntraInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
AvcIntraInterlaceMode_FOLLOW_BOTTOM_FIELD = AvcIntraInterlaceMode' "FOLLOW_BOTTOM_FIELD"

pattern AvcIntraInterlaceMode_FOLLOW_TOP_FIELD :: AvcIntraInterlaceMode
pattern $bAvcIntraInterlaceMode_FOLLOW_TOP_FIELD :: AvcIntraInterlaceMode
$mAvcIntraInterlaceMode_FOLLOW_TOP_FIELD :: forall r.
AvcIntraInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
AvcIntraInterlaceMode_FOLLOW_TOP_FIELD = AvcIntraInterlaceMode' "FOLLOW_TOP_FIELD"

pattern AvcIntraInterlaceMode_PROGRESSIVE :: AvcIntraInterlaceMode
pattern $bAvcIntraInterlaceMode_PROGRESSIVE :: AvcIntraInterlaceMode
$mAvcIntraInterlaceMode_PROGRESSIVE :: forall r.
AvcIntraInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
AvcIntraInterlaceMode_PROGRESSIVE = AvcIntraInterlaceMode' "PROGRESSIVE"

pattern AvcIntraInterlaceMode_TOP_FIELD :: AvcIntraInterlaceMode
pattern $bAvcIntraInterlaceMode_TOP_FIELD :: AvcIntraInterlaceMode
$mAvcIntraInterlaceMode_TOP_FIELD :: forall r.
AvcIntraInterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
AvcIntraInterlaceMode_TOP_FIELD = AvcIntraInterlaceMode' "TOP_FIELD"

{-# COMPLETE
  AvcIntraInterlaceMode_BOTTOM_FIELD,
  AvcIntraInterlaceMode_FOLLOW_BOTTOM_FIELD,
  AvcIntraInterlaceMode_FOLLOW_TOP_FIELD,
  AvcIntraInterlaceMode_PROGRESSIVE,
  AvcIntraInterlaceMode_TOP_FIELD,
  AvcIntraInterlaceMode'
  #-}