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

pattern H265ScanTypeConversionMode_INTERLACED :: H265ScanTypeConversionMode
pattern $bH265ScanTypeConversionMode_INTERLACED :: H265ScanTypeConversionMode
$mH265ScanTypeConversionMode_INTERLACED :: forall r.
H265ScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
H265ScanTypeConversionMode_INTERLACED = H265ScanTypeConversionMode' "INTERLACED"

pattern H265ScanTypeConversionMode_INTERLACED_OPTIMIZE :: H265ScanTypeConversionMode
pattern $bH265ScanTypeConversionMode_INTERLACED_OPTIMIZE :: H265ScanTypeConversionMode
$mH265ScanTypeConversionMode_INTERLACED_OPTIMIZE :: forall r.
H265ScanTypeConversionMode -> (Void# -> r) -> (Void# -> r) -> r
H265ScanTypeConversionMode_INTERLACED_OPTIMIZE = H265ScanTypeConversionMode' "INTERLACED_OPTIMIZE"

{-# COMPLETE
  H265ScanTypeConversionMode_INTERLACED,
  H265ScanTypeConversionMode_INTERLACED_OPTIMIZE,
  H265ScanTypeConversionMode'
  #-}