{-# 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.InputSampleRange
-- 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.InputSampleRange
  ( InputSampleRange
      ( ..,
        InputSampleRange_FOLLOW,
        InputSampleRange_FULL_RANGE,
        InputSampleRange_LIMITED_RANGE
      ),
  )
where

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

-- | If the sample range metadata in your input video is accurate, or if you
-- don\'t know about sample range, keep the default value, Follow (FOLLOW),
-- for this setting. When you do, the service automatically detects your
-- input sample range. If your input video has metadata indicating the
-- wrong sample range, specify the accurate sample range here. When you do,
-- MediaConvert ignores any sample range information in the input metadata.
-- Regardless of whether MediaConvert uses the input sample range or the
-- sample range that you specify, MediaConvert uses the sample range for
-- transcoding and also writes it to the output metadata.
newtype InputSampleRange = InputSampleRange'
  { InputSampleRange -> Text
fromInputSampleRange ::
      Core.Text
  }
  deriving stock
    ( Int -> InputSampleRange -> ShowS
[InputSampleRange] -> ShowS
InputSampleRange -> String
(Int -> InputSampleRange -> ShowS)
-> (InputSampleRange -> String)
-> ([InputSampleRange] -> ShowS)
-> Show InputSampleRange
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputSampleRange] -> ShowS
$cshowList :: [InputSampleRange] -> ShowS
show :: InputSampleRange -> String
$cshow :: InputSampleRange -> String
showsPrec :: Int -> InputSampleRange -> ShowS
$cshowsPrec :: Int -> InputSampleRange -> ShowS
Prelude.Show,
      ReadPrec [InputSampleRange]
ReadPrec InputSampleRange
Int -> ReadS InputSampleRange
ReadS [InputSampleRange]
(Int -> ReadS InputSampleRange)
-> ReadS [InputSampleRange]
-> ReadPrec InputSampleRange
-> ReadPrec [InputSampleRange]
-> Read InputSampleRange
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputSampleRange]
$creadListPrec :: ReadPrec [InputSampleRange]
readPrec :: ReadPrec InputSampleRange
$creadPrec :: ReadPrec InputSampleRange
readList :: ReadS [InputSampleRange]
$creadList :: ReadS [InputSampleRange]
readsPrec :: Int -> ReadS InputSampleRange
$creadsPrec :: Int -> ReadS InputSampleRange
Prelude.Read,
      InputSampleRange -> InputSampleRange -> Bool
(InputSampleRange -> InputSampleRange -> Bool)
-> (InputSampleRange -> InputSampleRange -> Bool)
-> Eq InputSampleRange
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputSampleRange -> InputSampleRange -> Bool
$c/= :: InputSampleRange -> InputSampleRange -> Bool
== :: InputSampleRange -> InputSampleRange -> Bool
$c== :: InputSampleRange -> InputSampleRange -> Bool
Prelude.Eq,
      Eq InputSampleRange
Eq InputSampleRange
-> (InputSampleRange -> InputSampleRange -> Ordering)
-> (InputSampleRange -> InputSampleRange -> Bool)
-> (InputSampleRange -> InputSampleRange -> Bool)
-> (InputSampleRange -> InputSampleRange -> Bool)
-> (InputSampleRange -> InputSampleRange -> Bool)
-> (InputSampleRange -> InputSampleRange -> InputSampleRange)
-> (InputSampleRange -> InputSampleRange -> InputSampleRange)
-> Ord InputSampleRange
InputSampleRange -> InputSampleRange -> Bool
InputSampleRange -> InputSampleRange -> Ordering
InputSampleRange -> InputSampleRange -> InputSampleRange
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 :: InputSampleRange -> InputSampleRange -> InputSampleRange
$cmin :: InputSampleRange -> InputSampleRange -> InputSampleRange
max :: InputSampleRange -> InputSampleRange -> InputSampleRange
$cmax :: InputSampleRange -> InputSampleRange -> InputSampleRange
>= :: InputSampleRange -> InputSampleRange -> Bool
$c>= :: InputSampleRange -> InputSampleRange -> Bool
> :: InputSampleRange -> InputSampleRange -> Bool
$c> :: InputSampleRange -> InputSampleRange -> Bool
<= :: InputSampleRange -> InputSampleRange -> Bool
$c<= :: InputSampleRange -> InputSampleRange -> Bool
< :: InputSampleRange -> InputSampleRange -> Bool
$c< :: InputSampleRange -> InputSampleRange -> Bool
compare :: InputSampleRange -> InputSampleRange -> Ordering
$ccompare :: InputSampleRange -> InputSampleRange -> Ordering
$cp1Ord :: Eq InputSampleRange
Prelude.Ord,
      (forall x. InputSampleRange -> Rep InputSampleRange x)
-> (forall x. Rep InputSampleRange x -> InputSampleRange)
-> Generic InputSampleRange
forall x. Rep InputSampleRange x -> InputSampleRange
forall x. InputSampleRange -> Rep InputSampleRange x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputSampleRange x -> InputSampleRange
$cfrom :: forall x. InputSampleRange -> Rep InputSampleRange x
Prelude.Generic
    )
  deriving newtype
    ( Int -> InputSampleRange -> Int
InputSampleRange -> Int
(Int -> InputSampleRange -> Int)
-> (InputSampleRange -> Int) -> Hashable InputSampleRange
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InputSampleRange -> Int
$chash :: InputSampleRange -> Int
hashWithSalt :: Int -> InputSampleRange -> Int
$chashWithSalt :: Int -> InputSampleRange -> Int
Prelude.Hashable,
      InputSampleRange -> ()
(InputSampleRange -> ()) -> NFData InputSampleRange
forall a. (a -> ()) -> NFData a
rnf :: InputSampleRange -> ()
$crnf :: InputSampleRange -> ()
Prelude.NFData,
      Text -> Either String InputSampleRange
(Text -> Either String InputSampleRange)
-> FromText InputSampleRange
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputSampleRange
$cfromText :: Text -> Either String InputSampleRange
Core.FromText,
      InputSampleRange -> Text
(InputSampleRange -> Text) -> ToText InputSampleRange
forall a. (a -> Text) -> ToText a
toText :: InputSampleRange -> Text
$ctoText :: InputSampleRange -> Text
Core.ToText,
      InputSampleRange -> ByteString
(InputSampleRange -> ByteString) -> ToByteString InputSampleRange
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputSampleRange -> ByteString
$ctoBS :: InputSampleRange -> ByteString
Core.ToByteString,
      InputSampleRange -> ByteStringBuilder
(InputSampleRange -> ByteStringBuilder) -> ToLog InputSampleRange
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputSampleRange -> ByteStringBuilder
$cbuild :: InputSampleRange -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InputSampleRange -> [Header]
(HeaderName -> InputSampleRange -> [Header])
-> ToHeader InputSampleRange
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputSampleRange -> [Header]
$ctoHeader :: HeaderName -> InputSampleRange -> [Header]
Core.ToHeader,
      InputSampleRange -> QueryString
(InputSampleRange -> QueryString) -> ToQuery InputSampleRange
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputSampleRange -> QueryString
$ctoQuery :: InputSampleRange -> QueryString
Core.ToQuery,
      Value -> Parser [InputSampleRange]
Value -> Parser InputSampleRange
(Value -> Parser InputSampleRange)
-> (Value -> Parser [InputSampleRange])
-> FromJSON InputSampleRange
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InputSampleRange]
$cparseJSONList :: Value -> Parser [InputSampleRange]
parseJSON :: Value -> Parser InputSampleRange
$cparseJSON :: Value -> Parser InputSampleRange
Core.FromJSON,
      FromJSONKeyFunction [InputSampleRange]
FromJSONKeyFunction InputSampleRange
FromJSONKeyFunction InputSampleRange
-> FromJSONKeyFunction [InputSampleRange]
-> FromJSONKey InputSampleRange
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputSampleRange]
$cfromJSONKeyList :: FromJSONKeyFunction [InputSampleRange]
fromJSONKey :: FromJSONKeyFunction InputSampleRange
$cfromJSONKey :: FromJSONKeyFunction InputSampleRange
Core.FromJSONKey,
      [InputSampleRange] -> Encoding
[InputSampleRange] -> Value
InputSampleRange -> Encoding
InputSampleRange -> Value
(InputSampleRange -> Value)
-> (InputSampleRange -> Encoding)
-> ([InputSampleRange] -> Value)
-> ([InputSampleRange] -> Encoding)
-> ToJSON InputSampleRange
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InputSampleRange] -> Encoding
$ctoEncodingList :: [InputSampleRange] -> Encoding
toJSONList :: [InputSampleRange] -> Value
$ctoJSONList :: [InputSampleRange] -> Value
toEncoding :: InputSampleRange -> Encoding
$ctoEncoding :: InputSampleRange -> Encoding
toJSON :: InputSampleRange -> Value
$ctoJSON :: InputSampleRange -> Value
Core.ToJSON,
      ToJSONKeyFunction [InputSampleRange]
ToJSONKeyFunction InputSampleRange
ToJSONKeyFunction InputSampleRange
-> ToJSONKeyFunction [InputSampleRange]
-> ToJSONKey InputSampleRange
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputSampleRange]
$ctoJSONKeyList :: ToJSONKeyFunction [InputSampleRange]
toJSONKey :: ToJSONKeyFunction InputSampleRange
$ctoJSONKey :: ToJSONKeyFunction InputSampleRange
Core.ToJSONKey,
      [Node] -> Either String InputSampleRange
([Node] -> Either String InputSampleRange)
-> FromXML InputSampleRange
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputSampleRange
$cparseXML :: [Node] -> Either String InputSampleRange
Core.FromXML,
      InputSampleRange -> XML
(InputSampleRange -> XML) -> ToXML InputSampleRange
forall a. (a -> XML) -> ToXML a
toXML :: InputSampleRange -> XML
$ctoXML :: InputSampleRange -> XML
Core.ToXML
    )

pattern InputSampleRange_FOLLOW :: InputSampleRange
pattern $bInputSampleRange_FOLLOW :: InputSampleRange
$mInputSampleRange_FOLLOW :: forall r. InputSampleRange -> (Void# -> r) -> (Void# -> r) -> r
InputSampleRange_FOLLOW = InputSampleRange' "FOLLOW"

pattern InputSampleRange_FULL_RANGE :: InputSampleRange
pattern $bInputSampleRange_FULL_RANGE :: InputSampleRange
$mInputSampleRange_FULL_RANGE :: forall r. InputSampleRange -> (Void# -> r) -> (Void# -> r) -> r
InputSampleRange_FULL_RANGE = InputSampleRange' "FULL_RANGE"

pattern InputSampleRange_LIMITED_RANGE :: InputSampleRange
pattern $bInputSampleRange_LIMITED_RANGE :: InputSampleRange
$mInputSampleRange_LIMITED_RANGE :: forall r. InputSampleRange -> (Void# -> r) -> (Void# -> r) -> r
InputSampleRange_LIMITED_RANGE = InputSampleRange' "LIMITED_RANGE"

{-# COMPLETE
  InputSampleRange_FOLLOW,
  InputSampleRange_FULL_RANGE,
  InputSampleRange_LIMITED_RANGE,
  InputSampleRange'
  #-}