packages feed

amazonka-mediaconvert-2.0: gen/Amazonka/MediaConvert/Types/XavcInterlaceMode.hs

{-# 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.XavcInterlaceMode
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.XavcInterlaceMode
  ( XavcInterlaceMode
      ( ..,
        XavcInterlaceMode_BOTTOM_FIELD,
        XavcInterlaceMode_FOLLOW_BOTTOM_FIELD,
        XavcInterlaceMode_FOLLOW_TOP_FIELD,
        XavcInterlaceMode_PROGRESSIVE,
        XavcInterlaceMode_TOP_FIELD
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
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 XavcInterlaceMode = XavcInterlaceMode'
  { fromXavcInterlaceMode ::
      Data.Text
  }
  deriving stock
    ( Prelude.Show,
      Prelude.Read,
      Prelude.Eq,
      Prelude.Ord,
      Prelude.Generic
    )
  deriving newtype
    ( Prelude.Hashable,
      Prelude.NFData,
      Data.FromText,
      Data.ToText,
      Data.ToByteString,
      Data.ToLog,
      Data.ToHeader,
      Data.ToQuery,
      Data.FromJSON,
      Data.FromJSONKey,
      Data.ToJSON,
      Data.ToJSONKey,
      Data.FromXML,
      Data.ToXML
    )

pattern XavcInterlaceMode_BOTTOM_FIELD :: XavcInterlaceMode
pattern XavcInterlaceMode_BOTTOM_FIELD = XavcInterlaceMode' "BOTTOM_FIELD"

pattern XavcInterlaceMode_FOLLOW_BOTTOM_FIELD :: XavcInterlaceMode
pattern XavcInterlaceMode_FOLLOW_BOTTOM_FIELD = XavcInterlaceMode' "FOLLOW_BOTTOM_FIELD"

pattern XavcInterlaceMode_FOLLOW_TOP_FIELD :: XavcInterlaceMode
pattern XavcInterlaceMode_FOLLOW_TOP_FIELD = XavcInterlaceMode' "FOLLOW_TOP_FIELD"

pattern XavcInterlaceMode_PROGRESSIVE :: XavcInterlaceMode
pattern XavcInterlaceMode_PROGRESSIVE = XavcInterlaceMode' "PROGRESSIVE"

pattern XavcInterlaceMode_TOP_FIELD :: XavcInterlaceMode
pattern XavcInterlaceMode_TOP_FIELD = XavcInterlaceMode' "TOP_FIELD"

{-# COMPLETE
  XavcInterlaceMode_BOTTOM_FIELD,
  XavcInterlaceMode_FOLLOW_BOTTOM_FIELD,
  XavcInterlaceMode_FOLLOW_TOP_FIELD,
  XavcInterlaceMode_PROGRESSIVE,
  XavcInterlaceMode_TOP_FIELD,
  XavcInterlaceMode'
  #-}