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

pattern H265InterlaceMode_BOTTOM_FIELD :: H265InterlaceMode
pattern $bH265InterlaceMode_BOTTOM_FIELD :: H265InterlaceMode
$mH265InterlaceMode_BOTTOM_FIELD :: forall r. H265InterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
H265InterlaceMode_BOTTOM_FIELD = H265InterlaceMode' "BOTTOM_FIELD"

pattern H265InterlaceMode_FOLLOW_BOTTOM_FIELD :: H265InterlaceMode
pattern $bH265InterlaceMode_FOLLOW_BOTTOM_FIELD :: H265InterlaceMode
$mH265InterlaceMode_FOLLOW_BOTTOM_FIELD :: forall r. H265InterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
H265InterlaceMode_FOLLOW_BOTTOM_FIELD = H265InterlaceMode' "FOLLOW_BOTTOM_FIELD"

pattern H265InterlaceMode_FOLLOW_TOP_FIELD :: H265InterlaceMode
pattern $bH265InterlaceMode_FOLLOW_TOP_FIELD :: H265InterlaceMode
$mH265InterlaceMode_FOLLOW_TOP_FIELD :: forall r. H265InterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
H265InterlaceMode_FOLLOW_TOP_FIELD = H265InterlaceMode' "FOLLOW_TOP_FIELD"

pattern H265InterlaceMode_PROGRESSIVE :: H265InterlaceMode
pattern $bH265InterlaceMode_PROGRESSIVE :: H265InterlaceMode
$mH265InterlaceMode_PROGRESSIVE :: forall r. H265InterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
H265InterlaceMode_PROGRESSIVE = H265InterlaceMode' "PROGRESSIVE"

pattern H265InterlaceMode_TOP_FIELD :: H265InterlaceMode
pattern $bH265InterlaceMode_TOP_FIELD :: H265InterlaceMode
$mH265InterlaceMode_TOP_FIELD :: forall r. H265InterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
H265InterlaceMode_TOP_FIELD = H265InterlaceMode' "TOP_FIELD"

{-# COMPLETE
  H265InterlaceMode_BOTTOM_FIELD,
  H265InterlaceMode_FOLLOW_BOTTOM_FIELD,
  H265InterlaceMode_FOLLOW_TOP_FIELD,
  H265InterlaceMode_PROGRESSIVE,
  H265InterlaceMode_TOP_FIELD,
  H265InterlaceMode'
  #-}