#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gst.Enums
(
BufferingMode(..) ,
BusSyncReply(..) ,
CapsIntersectMode(..) ,
ClockEntryType(..) ,
ClockReturn(..) ,
ClockType(..) ,
CoreError(..) ,
catchCoreError ,
handleCoreError ,
DebugColorMode(..) ,
DebugLevel(..) ,
EventType(..) ,
FlowReturn(..) ,
Format(..) ,
IteratorItem(..) ,
IteratorResult(..) ,
LibraryError(..) ,
catchLibraryError ,
handleLibraryError ,
PadDirection(..) ,
PadLinkReturn(..) ,
PadMode(..) ,
PadPresence(..) ,
PadProbeReturn(..) ,
ParseError(..) ,
catchParseError ,
handleParseError ,
PluginError(..) ,
catchPluginError ,
handlePluginError ,
ProgressType(..) ,
PromiseResult(..) ,
QOSType(..) ,
QueryType(..) ,
Rank(..) ,
ResourceError(..) ,
catchResourceError ,
handleResourceError ,
SearchMode(..) ,
SeekType(..) ,
State(..) ,
StateChange(..) ,
StateChangeReturn(..) ,
StreamError(..) ,
catchStreamError ,
handleStreamError ,
StreamStatusType(..) ,
StructureChangeType(..) ,
TagFlag(..) ,
TagMergeMode(..) ,
TagScope(..) ,
TaskState(..) ,
TocEntryType(..) ,
TocLoopType(..) ,
TocScope(..) ,
TracerValueScope(..) ,
TypeFindProbability(..) ,
URIError(..) ,
catchURIError ,
handleURIError ,
URIType(..) ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
data URIType =
URITypeUnknown
| URITypeSink
| URITypeSrc
| AnotherURIType Int
deriving (Int -> URIType -> ShowS
[URIType] -> ShowS
URIType -> String
(Int -> URIType -> ShowS)
-> (URIType -> String) -> ([URIType] -> ShowS) -> Show URIType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [URIType] -> ShowS
$cshowList :: [URIType] -> ShowS
show :: URIType -> String
$cshow :: URIType -> String
showsPrec :: Int -> URIType -> ShowS
$cshowsPrec :: Int -> URIType -> ShowS
Show, URIType -> URIType -> Bool
(URIType -> URIType -> Bool)
-> (URIType -> URIType -> Bool) -> Eq URIType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: URIType -> URIType -> Bool
$c/= :: URIType -> URIType -> Bool
== :: URIType -> URIType -> Bool
$c== :: URIType -> URIType -> Bool
Eq)
instance P.Enum URIType where
fromEnum :: URIType -> Int
fromEnum URITypeUnknown = 0
fromEnum URITypeSink = 1
fromEnum URITypeSrc = 2
fromEnum (AnotherURIType k :: Int
k) = Int
k
toEnum :: Int -> URIType
toEnum 0 = URIType
URITypeUnknown
toEnum 1 = URIType
URITypeSink
toEnum 2 = URIType
URITypeSrc
toEnum k :: Int
k = Int -> URIType
AnotherURIType Int
k
instance P.Ord URIType where
compare :: URIType -> URIType -> Ordering
compare a :: URIType
a b :: URIType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (URIType -> Int
forall a. Enum a => a -> Int
P.fromEnum URIType
a) (URIType -> Int
forall a. Enum a => a -> Int
P.fromEnum URIType
b)
foreign import ccall "gst_uri_type_get_type" c_gst_uri_type_get_type ::
IO GType
instance BoxedEnum URIType where
boxedEnumType :: URIType -> IO GType
boxedEnumType _ = IO GType
c_gst_uri_type_get_type
data URIError =
URIErrorUnsupportedProtocol
| URIErrorBadUri
| URIErrorBadState
| URIErrorBadReference
| AnotherURIError Int
deriving (Int -> URIError -> ShowS
[URIError] -> ShowS
URIError -> String
(Int -> URIError -> ShowS)
-> (URIError -> String) -> ([URIError] -> ShowS) -> Show URIError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [URIError] -> ShowS
$cshowList :: [URIError] -> ShowS
show :: URIError -> String
$cshow :: URIError -> String
showsPrec :: Int -> URIError -> ShowS
$cshowsPrec :: Int -> URIError -> ShowS
Show, URIError -> URIError -> Bool
(URIError -> URIError -> Bool)
-> (URIError -> URIError -> Bool) -> Eq URIError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: URIError -> URIError -> Bool
$c/= :: URIError -> URIError -> Bool
== :: URIError -> URIError -> Bool
$c== :: URIError -> URIError -> Bool
Eq)
instance P.Enum URIError where
fromEnum :: URIError -> Int
fromEnum URIErrorUnsupportedProtocol = 0
fromEnum URIErrorBadUri = 1
fromEnum URIErrorBadState = 2
fromEnum URIErrorBadReference = 3
fromEnum (AnotherURIError k :: Int
k) = Int
k
toEnum :: Int -> URIError
toEnum 0 = URIError
URIErrorUnsupportedProtocol
toEnum 1 = URIError
URIErrorBadUri
toEnum 2 = URIError
URIErrorBadState
toEnum 3 = URIError
URIErrorBadReference
toEnum k :: Int
k = Int -> URIError
AnotherURIError Int
k
instance P.Ord URIError where
compare :: URIError -> URIError -> Ordering
compare a :: URIError
a b :: URIError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (URIError -> Int
forall a. Enum a => a -> Int
P.fromEnum URIError
a) (URIError -> Int
forall a. Enum a => a -> Int
P.fromEnum URIError
b)
instance GErrorClass URIError where
gerrorClassDomain :: URIError -> Text
gerrorClassDomain _ = "gst-uri-error-quark"
catchURIError ::
IO a ->
(URIError -> GErrorMessage -> IO a) ->
IO a
catchURIError :: IO a -> (URIError -> Text -> IO a) -> IO a
catchURIError = IO a -> (URIError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleURIError ::
(URIError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleURIError :: (URIError -> Text -> IO a) -> IO a -> IO a
handleURIError = (URIError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
foreign import ccall "gst_uri_error_get_type" c_gst_uri_error_get_type ::
IO GType
instance BoxedEnum URIError where
boxedEnumType :: URIError -> IO GType
boxedEnumType _ = IO GType
c_gst_uri_error_get_type
data TypeFindProbability =
TypeFindProbabilityNone
| TypeFindProbabilityMinimum
| TypeFindProbabilityPossible
| TypeFindProbabilityLikely
| TypeFindProbabilityNearlyCertain
| TypeFindProbabilityMaximum
| AnotherTypeFindProbability Int
deriving (Int -> TypeFindProbability -> ShowS
[TypeFindProbability] -> ShowS
TypeFindProbability -> String
(Int -> TypeFindProbability -> ShowS)
-> (TypeFindProbability -> String)
-> ([TypeFindProbability] -> ShowS)
-> Show TypeFindProbability
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TypeFindProbability] -> ShowS
$cshowList :: [TypeFindProbability] -> ShowS
show :: TypeFindProbability -> String
$cshow :: TypeFindProbability -> String
showsPrec :: Int -> TypeFindProbability -> ShowS
$cshowsPrec :: Int -> TypeFindProbability -> ShowS
Show, TypeFindProbability -> TypeFindProbability -> Bool
(TypeFindProbability -> TypeFindProbability -> Bool)
-> (TypeFindProbability -> TypeFindProbability -> Bool)
-> Eq TypeFindProbability
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TypeFindProbability -> TypeFindProbability -> Bool
$c/= :: TypeFindProbability -> TypeFindProbability -> Bool
== :: TypeFindProbability -> TypeFindProbability -> Bool
$c== :: TypeFindProbability -> TypeFindProbability -> Bool
Eq)
instance P.Enum TypeFindProbability where
fromEnum :: TypeFindProbability -> Int
fromEnum TypeFindProbabilityNone = 0
fromEnum TypeFindProbabilityMinimum = 1
fromEnum TypeFindProbabilityPossible = 50
fromEnum TypeFindProbabilityLikely = 80
fromEnum TypeFindProbabilityNearlyCertain = 99
fromEnum TypeFindProbabilityMaximum = 100
fromEnum (AnotherTypeFindProbability k :: Int
k) = Int
k
toEnum :: Int -> TypeFindProbability
toEnum 0 = TypeFindProbability
TypeFindProbabilityNone
toEnum 1 = TypeFindProbability
TypeFindProbabilityMinimum
toEnum 50 = TypeFindProbability
TypeFindProbabilityPossible
toEnum 80 = TypeFindProbability
TypeFindProbabilityLikely
toEnum 99 = TypeFindProbability
TypeFindProbabilityNearlyCertain
toEnum 100 = TypeFindProbability
TypeFindProbabilityMaximum
toEnum k :: Int
k = Int -> TypeFindProbability
AnotherTypeFindProbability Int
k
instance P.Ord TypeFindProbability where
compare :: TypeFindProbability -> TypeFindProbability -> Ordering
compare a :: TypeFindProbability
a b :: TypeFindProbability
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TypeFindProbability -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeFindProbability
a) (TypeFindProbability -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeFindProbability
b)
foreign import ccall "gst_type_find_probability_get_type" c_gst_type_find_probability_get_type ::
IO GType
instance BoxedEnum TypeFindProbability where
boxedEnumType :: TypeFindProbability -> IO GType
boxedEnumType _ = IO GType
c_gst_type_find_probability_get_type
data TracerValueScope =
TracerValueScopeProcess
| TracerValueScopeThread
| TracerValueScopeElement
| TracerValueScopePad
| AnotherTracerValueScope Int
deriving (Int -> TracerValueScope -> ShowS
[TracerValueScope] -> ShowS
TracerValueScope -> String
(Int -> TracerValueScope -> ShowS)
-> (TracerValueScope -> String)
-> ([TracerValueScope] -> ShowS)
-> Show TracerValueScope
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TracerValueScope] -> ShowS
$cshowList :: [TracerValueScope] -> ShowS
show :: TracerValueScope -> String
$cshow :: TracerValueScope -> String
showsPrec :: Int -> TracerValueScope -> ShowS
$cshowsPrec :: Int -> TracerValueScope -> ShowS
Show, TracerValueScope -> TracerValueScope -> Bool
(TracerValueScope -> TracerValueScope -> Bool)
-> (TracerValueScope -> TracerValueScope -> Bool)
-> Eq TracerValueScope
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TracerValueScope -> TracerValueScope -> Bool
$c/= :: TracerValueScope -> TracerValueScope -> Bool
== :: TracerValueScope -> TracerValueScope -> Bool
$c== :: TracerValueScope -> TracerValueScope -> Bool
Eq)
instance P.Enum TracerValueScope where
fromEnum :: TracerValueScope -> Int
fromEnum TracerValueScopeProcess = 0
fromEnum TracerValueScopeThread = 1
fromEnum TracerValueScopeElement = 2
fromEnum TracerValueScopePad = 3
fromEnum (AnotherTracerValueScope k :: Int
k) = Int
k
toEnum :: Int -> TracerValueScope
toEnum 0 = TracerValueScope
TracerValueScopeProcess
toEnum 1 = TracerValueScope
TracerValueScopeThread
toEnum 2 = TracerValueScope
TracerValueScopeElement
toEnum 3 = TracerValueScope
TracerValueScopePad
toEnum k :: Int
k = Int -> TracerValueScope
AnotherTracerValueScope Int
k
instance P.Ord TracerValueScope where
compare :: TracerValueScope -> TracerValueScope -> Ordering
compare a :: TracerValueScope
a b :: TracerValueScope
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TracerValueScope -> Int
forall a. Enum a => a -> Int
P.fromEnum TracerValueScope
a) (TracerValueScope -> Int
forall a. Enum a => a -> Int
P.fromEnum TracerValueScope
b)
foreign import ccall "gst_tracer_value_scope_get_type" c_gst_tracer_value_scope_get_type ::
IO GType
instance BoxedEnum TracerValueScope where
boxedEnumType :: TracerValueScope -> IO GType
boxedEnumType _ = IO GType
c_gst_tracer_value_scope_get_type
data TocScope =
TocScopeGlobal
| TocScopeCurrent
| AnotherTocScope Int
deriving (Int -> TocScope -> ShowS
[TocScope] -> ShowS
TocScope -> String
(Int -> TocScope -> ShowS)
-> (TocScope -> String) -> ([TocScope] -> ShowS) -> Show TocScope
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TocScope] -> ShowS
$cshowList :: [TocScope] -> ShowS
show :: TocScope -> String
$cshow :: TocScope -> String
showsPrec :: Int -> TocScope -> ShowS
$cshowsPrec :: Int -> TocScope -> ShowS
Show, TocScope -> TocScope -> Bool
(TocScope -> TocScope -> Bool)
-> (TocScope -> TocScope -> Bool) -> Eq TocScope
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TocScope -> TocScope -> Bool
$c/= :: TocScope -> TocScope -> Bool
== :: TocScope -> TocScope -> Bool
$c== :: TocScope -> TocScope -> Bool
Eq)
instance P.Enum TocScope where
fromEnum :: TocScope -> Int
fromEnum TocScopeGlobal = 1
fromEnum TocScopeCurrent = 2
fromEnum (AnotherTocScope k :: Int
k) = Int
k
toEnum :: Int -> TocScope
toEnum 1 = TocScope
TocScopeGlobal
toEnum 2 = TocScope
TocScopeCurrent
toEnum k :: Int
k = Int -> TocScope
AnotherTocScope Int
k
instance P.Ord TocScope where
compare :: TocScope -> TocScope -> Ordering
compare a :: TocScope
a b :: TocScope
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TocScope -> Int
forall a. Enum a => a -> Int
P.fromEnum TocScope
a) (TocScope -> Int
forall a. Enum a => a -> Int
P.fromEnum TocScope
b)
foreign import ccall "gst_toc_scope_get_type" c_gst_toc_scope_get_type ::
IO GType
instance BoxedEnum TocScope where
boxedEnumType :: TocScope -> IO GType
boxedEnumType _ = IO GType
c_gst_toc_scope_get_type
data TocLoopType =
TocLoopTypeNone
| TocLoopTypeForward
| TocLoopTypeReverse
| TocLoopTypePingPong
| AnotherTocLoopType Int
deriving (Int -> TocLoopType -> ShowS
[TocLoopType] -> ShowS
TocLoopType -> String
(Int -> TocLoopType -> ShowS)
-> (TocLoopType -> String)
-> ([TocLoopType] -> ShowS)
-> Show TocLoopType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TocLoopType] -> ShowS
$cshowList :: [TocLoopType] -> ShowS
show :: TocLoopType -> String
$cshow :: TocLoopType -> String
showsPrec :: Int -> TocLoopType -> ShowS
$cshowsPrec :: Int -> TocLoopType -> ShowS
Show, TocLoopType -> TocLoopType -> Bool
(TocLoopType -> TocLoopType -> Bool)
-> (TocLoopType -> TocLoopType -> Bool) -> Eq TocLoopType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TocLoopType -> TocLoopType -> Bool
$c/= :: TocLoopType -> TocLoopType -> Bool
== :: TocLoopType -> TocLoopType -> Bool
$c== :: TocLoopType -> TocLoopType -> Bool
Eq)
instance P.Enum TocLoopType where
fromEnum :: TocLoopType -> Int
fromEnum TocLoopTypeNone = 0
fromEnum TocLoopTypeForward = 1
fromEnum TocLoopTypeReverse = 2
fromEnum TocLoopTypePingPong = 3
fromEnum (AnotherTocLoopType k :: Int
k) = Int
k
toEnum :: Int -> TocLoopType
toEnum 0 = TocLoopType
TocLoopTypeNone
toEnum 1 = TocLoopType
TocLoopTypeForward
toEnum 2 = TocLoopType
TocLoopTypeReverse
toEnum 3 = TocLoopType
TocLoopTypePingPong
toEnum k :: Int
k = Int -> TocLoopType
AnotherTocLoopType Int
k
instance P.Ord TocLoopType where
compare :: TocLoopType -> TocLoopType -> Ordering
compare a :: TocLoopType
a b :: TocLoopType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TocLoopType -> Int
forall a. Enum a => a -> Int
P.fromEnum TocLoopType
a) (TocLoopType -> Int
forall a. Enum a => a -> Int
P.fromEnum TocLoopType
b)
foreign import ccall "gst_toc_loop_type_get_type" c_gst_toc_loop_type_get_type ::
IO GType
instance BoxedEnum TocLoopType where
boxedEnumType :: TocLoopType -> IO GType
boxedEnumType _ = IO GType
c_gst_toc_loop_type_get_type
data TocEntryType =
TocEntryTypeAngle
| TocEntryTypeVersion
| TocEntryTypeEdition
| TocEntryTypeInvalid
| TocEntryTypeTitle
| TocEntryTypeTrack
| TocEntryTypeChapter
| AnotherTocEntryType Int
deriving (Int -> TocEntryType -> ShowS
[TocEntryType] -> ShowS
TocEntryType -> String
(Int -> TocEntryType -> ShowS)
-> (TocEntryType -> String)
-> ([TocEntryType] -> ShowS)
-> Show TocEntryType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TocEntryType] -> ShowS
$cshowList :: [TocEntryType] -> ShowS
show :: TocEntryType -> String
$cshow :: TocEntryType -> String
showsPrec :: Int -> TocEntryType -> ShowS
$cshowsPrec :: Int -> TocEntryType -> ShowS
Show, TocEntryType -> TocEntryType -> Bool
(TocEntryType -> TocEntryType -> Bool)
-> (TocEntryType -> TocEntryType -> Bool) -> Eq TocEntryType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TocEntryType -> TocEntryType -> Bool
$c/= :: TocEntryType -> TocEntryType -> Bool
== :: TocEntryType -> TocEntryType -> Bool
$c== :: TocEntryType -> TocEntryType -> Bool
Eq)
instance P.Enum TocEntryType where
fromEnum :: TocEntryType -> Int
fromEnum TocEntryTypeAngle = -3
fromEnum TocEntryTypeVersion = -2
fromEnum TocEntryTypeEdition = -1
fromEnum TocEntryTypeInvalid = 0
fromEnum TocEntryTypeTitle = 1
fromEnum TocEntryTypeTrack = 2
fromEnum TocEntryTypeChapter = 3
fromEnum (AnotherTocEntryType k :: Int
k) = Int
k
toEnum :: Int -> TocEntryType
toEnum -3 = TocEntryType
TocEntryTypeAngle
toEnum -2 = TocEntryType
TocEntryTypeVersion
toEnum -1 = TocEntryType
TocEntryTypeEdition
toEnum 0 = TocEntryType
TocEntryTypeInvalid
toEnum 1 = TocEntryType
TocEntryTypeTitle
toEnum 2 = TocEntryType
TocEntryTypeTrack
toEnum 3 = TocEntryType
TocEntryTypeChapter
toEnum k :: Int
k = Int -> TocEntryType
AnotherTocEntryType Int
k
instance P.Ord TocEntryType where
compare :: TocEntryType -> TocEntryType -> Ordering
compare a :: TocEntryType
a b :: TocEntryType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TocEntryType -> Int
forall a. Enum a => a -> Int
P.fromEnum TocEntryType
a) (TocEntryType -> Int
forall a. Enum a => a -> Int
P.fromEnum TocEntryType
b)
foreign import ccall "gst_toc_entry_type_get_type" c_gst_toc_entry_type_get_type ::
IO GType
instance BoxedEnum TocEntryType where
boxedEnumType :: TocEntryType -> IO GType
boxedEnumType _ = IO GType
c_gst_toc_entry_type_get_type
data TaskState =
TaskStateStarted
| TaskStateStopped
| TaskStatePaused
| AnotherTaskState Int
deriving (Int -> TaskState -> ShowS
[TaskState] -> ShowS
TaskState -> String
(Int -> TaskState -> ShowS)
-> (TaskState -> String)
-> ([TaskState] -> ShowS)
-> Show TaskState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TaskState] -> ShowS
$cshowList :: [TaskState] -> ShowS
show :: TaskState -> String
$cshow :: TaskState -> String
showsPrec :: Int -> TaskState -> ShowS
$cshowsPrec :: Int -> TaskState -> ShowS
Show, TaskState -> TaskState -> Bool
(TaskState -> TaskState -> Bool)
-> (TaskState -> TaskState -> Bool) -> Eq TaskState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TaskState -> TaskState -> Bool
$c/= :: TaskState -> TaskState -> Bool
== :: TaskState -> TaskState -> Bool
$c== :: TaskState -> TaskState -> Bool
Eq)
instance P.Enum TaskState where
fromEnum :: TaskState -> Int
fromEnum TaskStateStarted = 0
fromEnum TaskStateStopped = 1
fromEnum TaskStatePaused = 2
fromEnum (AnotherTaskState k :: Int
k) = Int
k
toEnum :: Int -> TaskState
toEnum 0 = TaskState
TaskStateStarted
toEnum 1 = TaskState
TaskStateStopped
toEnum 2 = TaskState
TaskStatePaused
toEnum k :: Int
k = Int -> TaskState
AnotherTaskState Int
k
instance P.Ord TaskState where
compare :: TaskState -> TaskState -> Ordering
compare a :: TaskState
a b :: TaskState
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TaskState -> Int
forall a. Enum a => a -> Int
P.fromEnum TaskState
a) (TaskState -> Int
forall a. Enum a => a -> Int
P.fromEnum TaskState
b)
foreign import ccall "gst_task_state_get_type" c_gst_task_state_get_type ::
IO GType
instance BoxedEnum TaskState where
boxedEnumType :: TaskState -> IO GType
boxedEnumType _ = IO GType
c_gst_task_state_get_type
data TagScope =
TagScopeStream
| TagScopeGlobal
| AnotherTagScope Int
deriving (Int -> TagScope -> ShowS
[TagScope] -> ShowS
TagScope -> String
(Int -> TagScope -> ShowS)
-> (TagScope -> String) -> ([TagScope] -> ShowS) -> Show TagScope
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TagScope] -> ShowS
$cshowList :: [TagScope] -> ShowS
show :: TagScope -> String
$cshow :: TagScope -> String
showsPrec :: Int -> TagScope -> ShowS
$cshowsPrec :: Int -> TagScope -> ShowS
Show, TagScope -> TagScope -> Bool
(TagScope -> TagScope -> Bool)
-> (TagScope -> TagScope -> Bool) -> Eq TagScope
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TagScope -> TagScope -> Bool
$c/= :: TagScope -> TagScope -> Bool
== :: TagScope -> TagScope -> Bool
$c== :: TagScope -> TagScope -> Bool
Eq)
instance P.Enum TagScope where
fromEnum :: TagScope -> Int
fromEnum TagScopeStream = 0
fromEnum TagScopeGlobal = 1
fromEnum (AnotherTagScope k :: Int
k) = Int
k
toEnum :: Int -> TagScope
toEnum 0 = TagScope
TagScopeStream
toEnum 1 = TagScope
TagScopeGlobal
toEnum k :: Int
k = Int -> TagScope
AnotherTagScope Int
k
instance P.Ord TagScope where
compare :: TagScope -> TagScope -> Ordering
compare a :: TagScope
a b :: TagScope
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TagScope -> Int
forall a. Enum a => a -> Int
P.fromEnum TagScope
a) (TagScope -> Int
forall a. Enum a => a -> Int
P.fromEnum TagScope
b)
foreign import ccall "gst_tag_scope_get_type" c_gst_tag_scope_get_type ::
IO GType
instance BoxedEnum TagScope where
boxedEnumType :: TagScope -> IO GType
boxedEnumType _ = IO GType
c_gst_tag_scope_get_type
data TagMergeMode =
TagMergeModeUndefined
| TagMergeModeReplaceAll
| TagMergeModeReplace
| TagMergeModeAppend
| TagMergeModePrepend
| TagMergeModeKeep
| TagMergeModeKeepAll
| TagMergeModeCount
| AnotherTagMergeMode Int
deriving (Int -> TagMergeMode -> ShowS
[TagMergeMode] -> ShowS
TagMergeMode -> String
(Int -> TagMergeMode -> ShowS)
-> (TagMergeMode -> String)
-> ([TagMergeMode] -> ShowS)
-> Show TagMergeMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TagMergeMode] -> ShowS
$cshowList :: [TagMergeMode] -> ShowS
show :: TagMergeMode -> String
$cshow :: TagMergeMode -> String
showsPrec :: Int -> TagMergeMode -> ShowS
$cshowsPrec :: Int -> TagMergeMode -> ShowS
Show, TagMergeMode -> TagMergeMode -> Bool
(TagMergeMode -> TagMergeMode -> Bool)
-> (TagMergeMode -> TagMergeMode -> Bool) -> Eq TagMergeMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TagMergeMode -> TagMergeMode -> Bool
$c/= :: TagMergeMode -> TagMergeMode -> Bool
== :: TagMergeMode -> TagMergeMode -> Bool
$c== :: TagMergeMode -> TagMergeMode -> Bool
Eq)
instance P.Enum TagMergeMode where
fromEnum :: TagMergeMode -> Int
fromEnum TagMergeModeUndefined = 0
fromEnum TagMergeModeReplaceAll = 1
fromEnum TagMergeModeReplace = 2
fromEnum TagMergeModeAppend = 3
fromEnum TagMergeModePrepend = 4
fromEnum TagMergeModeKeep = 5
fromEnum TagMergeModeKeepAll = 6
fromEnum TagMergeModeCount = 7
fromEnum (AnotherTagMergeMode k :: Int
k) = Int
k
toEnum :: Int -> TagMergeMode
toEnum 0 = TagMergeMode
TagMergeModeUndefined
toEnum 1 = TagMergeMode
TagMergeModeReplaceAll
toEnum 2 = TagMergeMode
TagMergeModeReplace
toEnum 3 = TagMergeMode
TagMergeModeAppend
toEnum 4 = TagMergeMode
TagMergeModePrepend
toEnum 5 = TagMergeMode
TagMergeModeKeep
toEnum 6 = TagMergeMode
TagMergeModeKeepAll
toEnum 7 = TagMergeMode
TagMergeModeCount
toEnum k :: Int
k = Int -> TagMergeMode
AnotherTagMergeMode Int
k
instance P.Ord TagMergeMode where
compare :: TagMergeMode -> TagMergeMode -> Ordering
compare a :: TagMergeMode
a b :: TagMergeMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TagMergeMode -> Int
forall a. Enum a => a -> Int
P.fromEnum TagMergeMode
a) (TagMergeMode -> Int
forall a. Enum a => a -> Int
P.fromEnum TagMergeMode
b)
foreign import ccall "gst_tag_merge_mode_get_type" c_gst_tag_merge_mode_get_type ::
IO GType
instance BoxedEnum TagMergeMode where
boxedEnumType :: TagMergeMode -> IO GType
boxedEnumType _ = IO GType
c_gst_tag_merge_mode_get_type
data TagFlag =
TagFlagUndefined
| TagFlagMeta
| TagFlagEncoded
| TagFlagDecoded
| TagFlagCount
| AnotherTagFlag Int
deriving (Int -> TagFlag -> ShowS
[TagFlag] -> ShowS
TagFlag -> String
(Int -> TagFlag -> ShowS)
-> (TagFlag -> String) -> ([TagFlag] -> ShowS) -> Show TagFlag
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TagFlag] -> ShowS
$cshowList :: [TagFlag] -> ShowS
show :: TagFlag -> String
$cshow :: TagFlag -> String
showsPrec :: Int -> TagFlag -> ShowS
$cshowsPrec :: Int -> TagFlag -> ShowS
Show, TagFlag -> TagFlag -> Bool
(TagFlag -> TagFlag -> Bool)
-> (TagFlag -> TagFlag -> Bool) -> Eq TagFlag
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TagFlag -> TagFlag -> Bool
$c/= :: TagFlag -> TagFlag -> Bool
== :: TagFlag -> TagFlag -> Bool
$c== :: TagFlag -> TagFlag -> Bool
Eq)
instance P.Enum TagFlag where
fromEnum :: TagFlag -> Int
fromEnum TagFlagUndefined = 0
fromEnum TagFlagMeta = 1
fromEnum TagFlagEncoded = 2
fromEnum TagFlagDecoded = 3
fromEnum TagFlagCount = 4
fromEnum (AnotherTagFlag k :: Int
k) = Int
k
toEnum :: Int -> TagFlag
toEnum 0 = TagFlag
TagFlagUndefined
toEnum 1 = TagFlag
TagFlagMeta
toEnum 2 = TagFlag
TagFlagEncoded
toEnum 3 = TagFlag
TagFlagDecoded
toEnum 4 = TagFlag
TagFlagCount
toEnum k :: Int
k = Int -> TagFlag
AnotherTagFlag Int
k
instance P.Ord TagFlag where
compare :: TagFlag -> TagFlag -> Ordering
compare a :: TagFlag
a b :: TagFlag
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TagFlag -> Int
forall a. Enum a => a -> Int
P.fromEnum TagFlag
a) (TagFlag -> Int
forall a. Enum a => a -> Int
P.fromEnum TagFlag
b)
foreign import ccall "gst_tag_flag_get_type" c_gst_tag_flag_get_type ::
IO GType
instance BoxedEnum TagFlag where
boxedEnumType :: TagFlag -> IO GType
boxedEnumType _ = IO GType
c_gst_tag_flag_get_type
data StructureChangeType =
StructureChangeTypeLink
| StructureChangeTypeUnlink
| AnotherStructureChangeType Int
deriving (Int -> StructureChangeType -> ShowS
[StructureChangeType] -> ShowS
StructureChangeType -> String
(Int -> StructureChangeType -> ShowS)
-> (StructureChangeType -> String)
-> ([StructureChangeType] -> ShowS)
-> Show StructureChangeType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StructureChangeType] -> ShowS
$cshowList :: [StructureChangeType] -> ShowS
show :: StructureChangeType -> String
$cshow :: StructureChangeType -> String
showsPrec :: Int -> StructureChangeType -> ShowS
$cshowsPrec :: Int -> StructureChangeType -> ShowS
Show, StructureChangeType -> StructureChangeType -> Bool
(StructureChangeType -> StructureChangeType -> Bool)
-> (StructureChangeType -> StructureChangeType -> Bool)
-> Eq StructureChangeType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StructureChangeType -> StructureChangeType -> Bool
$c/= :: StructureChangeType -> StructureChangeType -> Bool
== :: StructureChangeType -> StructureChangeType -> Bool
$c== :: StructureChangeType -> StructureChangeType -> Bool
Eq)
instance P.Enum StructureChangeType where
fromEnum :: StructureChangeType -> Int
fromEnum StructureChangeTypeLink = 0
fromEnum StructureChangeTypeUnlink = 1
fromEnum (AnotherStructureChangeType k :: Int
k) = Int
k
toEnum :: Int -> StructureChangeType
toEnum 0 = StructureChangeType
StructureChangeTypeLink
toEnum 1 = StructureChangeType
StructureChangeTypeUnlink
toEnum k :: Int
k = Int -> StructureChangeType
AnotherStructureChangeType Int
k
instance P.Ord StructureChangeType where
compare :: StructureChangeType -> StructureChangeType -> Ordering
compare a :: StructureChangeType
a b :: StructureChangeType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (StructureChangeType -> Int
forall a. Enum a => a -> Int
P.fromEnum StructureChangeType
a) (StructureChangeType -> Int
forall a. Enum a => a -> Int
P.fromEnum StructureChangeType
b)
foreign import ccall "gst_structure_change_type_get_type" c_gst_structure_change_type_get_type ::
IO GType
instance BoxedEnum StructureChangeType where
boxedEnumType :: StructureChangeType -> IO GType
boxedEnumType _ = IO GType
c_gst_structure_change_type_get_type
data StreamStatusType =
StreamStatusTypeCreate
| StreamStatusTypeEnter
| StreamStatusTypeLeave
| StreamStatusTypeDestroy
| StreamStatusTypeStart
| StreamStatusTypePause
| StreamStatusTypeStop
| AnotherStreamStatusType Int
deriving (Int -> StreamStatusType -> ShowS
[StreamStatusType] -> ShowS
StreamStatusType -> String
(Int -> StreamStatusType -> ShowS)
-> (StreamStatusType -> String)
-> ([StreamStatusType] -> ShowS)
-> Show StreamStatusType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StreamStatusType] -> ShowS
$cshowList :: [StreamStatusType] -> ShowS
show :: StreamStatusType -> String
$cshow :: StreamStatusType -> String
showsPrec :: Int -> StreamStatusType -> ShowS
$cshowsPrec :: Int -> StreamStatusType -> ShowS
Show, StreamStatusType -> StreamStatusType -> Bool
(StreamStatusType -> StreamStatusType -> Bool)
-> (StreamStatusType -> StreamStatusType -> Bool)
-> Eq StreamStatusType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StreamStatusType -> StreamStatusType -> Bool
$c/= :: StreamStatusType -> StreamStatusType -> Bool
== :: StreamStatusType -> StreamStatusType -> Bool
$c== :: StreamStatusType -> StreamStatusType -> Bool
Eq)
instance P.Enum StreamStatusType where
fromEnum :: StreamStatusType -> Int
fromEnum StreamStatusTypeCreate = 0
fromEnum StreamStatusTypeEnter = 1
fromEnum StreamStatusTypeLeave = 2
fromEnum StreamStatusTypeDestroy = 3
fromEnum StreamStatusTypeStart = 8
fromEnum StreamStatusTypePause = 9
fromEnum StreamStatusTypeStop = 10
fromEnum (AnotherStreamStatusType k :: Int
k) = Int
k
toEnum :: Int -> StreamStatusType
toEnum 0 = StreamStatusType
StreamStatusTypeCreate
toEnum 1 = StreamStatusType
StreamStatusTypeEnter
toEnum 2 = StreamStatusType
StreamStatusTypeLeave
toEnum 3 = StreamStatusType
StreamStatusTypeDestroy
toEnum 8 = StreamStatusType
StreamStatusTypeStart
toEnum 9 = StreamStatusType
StreamStatusTypePause
toEnum 10 = StreamStatusType
StreamStatusTypeStop
toEnum k :: Int
k = Int -> StreamStatusType
AnotherStreamStatusType Int
k
instance P.Ord StreamStatusType where
compare :: StreamStatusType -> StreamStatusType -> Ordering
compare a :: StreamStatusType
a b :: StreamStatusType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (StreamStatusType -> Int
forall a. Enum a => a -> Int
P.fromEnum StreamStatusType
a) (StreamStatusType -> Int
forall a. Enum a => a -> Int
P.fromEnum StreamStatusType
b)
foreign import ccall "gst_stream_status_type_get_type" c_gst_stream_status_type_get_type ::
IO GType
instance BoxedEnum StreamStatusType where
boxedEnumType :: StreamStatusType -> IO GType
boxedEnumType _ = IO GType
c_gst_stream_status_type_get_type
data StreamError =
StreamErrorFailed
| StreamErrorTooLazy
| StreamErrorNotImplemented
| StreamErrorTypeNotFound
| StreamErrorWrongType
| StreamErrorCodecNotFound
| StreamErrorDecode
| StreamErrorEncode
| StreamErrorDemux
| StreamErrorMux
| StreamErrorFormat
| StreamErrorDecrypt
| StreamErrorDecryptNokey
| StreamErrorNumErrors
| AnotherStreamError Int
deriving (Int -> StreamError -> ShowS
[StreamError] -> ShowS
StreamError -> String
(Int -> StreamError -> ShowS)
-> (StreamError -> String)
-> ([StreamError] -> ShowS)
-> Show StreamError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StreamError] -> ShowS
$cshowList :: [StreamError] -> ShowS
show :: StreamError -> String
$cshow :: StreamError -> String
showsPrec :: Int -> StreamError -> ShowS
$cshowsPrec :: Int -> StreamError -> ShowS
Show, StreamError -> StreamError -> Bool
(StreamError -> StreamError -> Bool)
-> (StreamError -> StreamError -> Bool) -> Eq StreamError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StreamError -> StreamError -> Bool
$c/= :: StreamError -> StreamError -> Bool
== :: StreamError -> StreamError -> Bool
$c== :: StreamError -> StreamError -> Bool
Eq)
instance P.Enum StreamError where
fromEnum :: StreamError -> Int
fromEnum StreamErrorFailed = 1
fromEnum StreamErrorTooLazy = 2
fromEnum StreamErrorNotImplemented = 3
fromEnum StreamErrorTypeNotFound = 4
fromEnum StreamErrorWrongType = 5
fromEnum StreamErrorCodecNotFound = 6
fromEnum StreamErrorDecode = 7
fromEnum StreamErrorEncode = 8
fromEnum StreamErrorDemux = 9
fromEnum StreamErrorMux = 10
fromEnum StreamErrorFormat = 11
fromEnum StreamErrorDecrypt = 12
fromEnum StreamErrorDecryptNokey = 13
fromEnum StreamErrorNumErrors = 14
fromEnum (AnotherStreamError k :: Int
k) = Int
k
toEnum :: Int -> StreamError
toEnum 1 = StreamError
StreamErrorFailed
toEnum 2 = StreamError
StreamErrorTooLazy
toEnum 3 = StreamError
StreamErrorNotImplemented
toEnum 4 = StreamError
StreamErrorTypeNotFound
toEnum 5 = StreamError
StreamErrorWrongType
toEnum 6 = StreamError
StreamErrorCodecNotFound
toEnum 7 = StreamError
StreamErrorDecode
toEnum 8 = StreamError
StreamErrorEncode
toEnum 9 = StreamError
StreamErrorDemux
toEnum 10 = StreamError
StreamErrorMux
toEnum 11 = StreamError
StreamErrorFormat
toEnum 12 = StreamError
StreamErrorDecrypt
toEnum 13 = StreamError
StreamErrorDecryptNokey
toEnum 14 = StreamError
StreamErrorNumErrors
toEnum k :: Int
k = Int -> StreamError
AnotherStreamError Int
k
instance P.Ord StreamError where
compare :: StreamError -> StreamError -> Ordering
compare a :: StreamError
a b :: StreamError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (StreamError -> Int
forall a. Enum a => a -> Int
P.fromEnum StreamError
a) (StreamError -> Int
forall a. Enum a => a -> Int
P.fromEnum StreamError
b)
instance GErrorClass StreamError where
gerrorClassDomain :: StreamError -> Text
gerrorClassDomain _ = "gst-stream-error-quark"
catchStreamError ::
IO a ->
(StreamError -> GErrorMessage -> IO a) ->
IO a
catchStreamError :: IO a -> (StreamError -> Text -> IO a) -> IO a
catchStreamError = IO a -> (StreamError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleStreamError ::
(StreamError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleStreamError :: (StreamError -> Text -> IO a) -> IO a -> IO a
handleStreamError = (StreamError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
foreign import ccall "gst_stream_error_get_type" c_gst_stream_error_get_type ::
IO GType
instance BoxedEnum StreamError where
boxedEnumType :: StreamError -> IO GType
boxedEnumType _ = IO GType
c_gst_stream_error_get_type
data StateChangeReturn =
StateChangeReturnFailure
| StateChangeReturnSuccess
| StateChangeReturnAsync
| StateChangeReturnNoPreroll
| AnotherStateChangeReturn Int
deriving (Int -> StateChangeReturn -> ShowS
[StateChangeReturn] -> ShowS
StateChangeReturn -> String
(Int -> StateChangeReturn -> ShowS)
-> (StateChangeReturn -> String)
-> ([StateChangeReturn] -> ShowS)
-> Show StateChangeReturn
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StateChangeReturn] -> ShowS
$cshowList :: [StateChangeReturn] -> ShowS
show :: StateChangeReturn -> String
$cshow :: StateChangeReturn -> String
showsPrec :: Int -> StateChangeReturn -> ShowS
$cshowsPrec :: Int -> StateChangeReturn -> ShowS
Show, StateChangeReturn -> StateChangeReturn -> Bool
(StateChangeReturn -> StateChangeReturn -> Bool)
-> (StateChangeReturn -> StateChangeReturn -> Bool)
-> Eq StateChangeReturn
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StateChangeReturn -> StateChangeReturn -> Bool
$c/= :: StateChangeReturn -> StateChangeReturn -> Bool
== :: StateChangeReturn -> StateChangeReturn -> Bool
$c== :: StateChangeReturn -> StateChangeReturn -> Bool
Eq)
instance P.Enum StateChangeReturn where
fromEnum :: StateChangeReturn -> Int
fromEnum StateChangeReturnFailure = 0
fromEnum StateChangeReturnSuccess = 1
fromEnum StateChangeReturnAsync = 2
fromEnum StateChangeReturnNoPreroll = 3
fromEnum (AnotherStateChangeReturn k :: Int
k) = Int
k
toEnum :: Int -> StateChangeReturn
toEnum 0 = StateChangeReturn
StateChangeReturnFailure
toEnum 1 = StateChangeReturn
StateChangeReturnSuccess
toEnum 2 = StateChangeReturn
StateChangeReturnAsync
toEnum 3 = StateChangeReturn
StateChangeReturnNoPreroll
toEnum k :: Int
k = Int -> StateChangeReturn
AnotherStateChangeReturn Int
k
instance P.Ord StateChangeReturn where
compare :: StateChangeReturn -> StateChangeReturn -> Ordering
compare a :: StateChangeReturn
a b :: StateChangeReturn
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (StateChangeReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum StateChangeReturn
a) (StateChangeReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum StateChangeReturn
b)
foreign import ccall "gst_state_change_return_get_type" c_gst_state_change_return_get_type ::
IO GType
instance BoxedEnum StateChangeReturn where
boxedEnumType :: StateChangeReturn -> IO GType
boxedEnumType _ = IO GType
c_gst_state_change_return_get_type
data StateChange =
StateChangeNullToReady
| StateChangeReadyToPaused
| StateChangePausedToPlaying
| StateChangePlayingToPaused
| StateChangePausedToReady
| StateChangeReadyToNull
| StateChangeNullToNull
| StateChangeReadyToReady
| StateChangePausedToPaused
| StateChangePlayingToPlaying
| AnotherStateChange Int
deriving (Int -> StateChange -> ShowS
[StateChange] -> ShowS
StateChange -> String
(Int -> StateChange -> ShowS)
-> (StateChange -> String)
-> ([StateChange] -> ShowS)
-> Show StateChange
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StateChange] -> ShowS
$cshowList :: [StateChange] -> ShowS
show :: StateChange -> String
$cshow :: StateChange -> String
showsPrec :: Int -> StateChange -> ShowS
$cshowsPrec :: Int -> StateChange -> ShowS
Show, StateChange -> StateChange -> Bool
(StateChange -> StateChange -> Bool)
-> (StateChange -> StateChange -> Bool) -> Eq StateChange
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StateChange -> StateChange -> Bool
$c/= :: StateChange -> StateChange -> Bool
== :: StateChange -> StateChange -> Bool
$c== :: StateChange -> StateChange -> Bool
Eq)
instance P.Enum StateChange where
fromEnum :: StateChange -> Int
fromEnum StateChangeNullToReady = 10
fromEnum StateChangeReadyToPaused = 19
fromEnum StateChangePausedToPlaying = 28
fromEnum StateChangePlayingToPaused = 35
fromEnum StateChangePausedToReady = 26
fromEnum StateChangeReadyToNull = 17
fromEnum StateChangeNullToNull = 9
fromEnum StateChangeReadyToReady = 18
fromEnum StateChangePausedToPaused = 27
fromEnum StateChangePlayingToPlaying = 36
fromEnum (AnotherStateChange k :: Int
k) = Int
k
toEnum :: Int -> StateChange
toEnum 10 = StateChange
StateChangeNullToReady
toEnum 19 = StateChange
StateChangeReadyToPaused
toEnum 28 = StateChange
StateChangePausedToPlaying
toEnum 35 = StateChange
StateChangePlayingToPaused
toEnum 26 = StateChange
StateChangePausedToReady
toEnum 17 = StateChange
StateChangeReadyToNull
toEnum 9 = StateChange
StateChangeNullToNull
toEnum 18 = StateChange
StateChangeReadyToReady
toEnum 27 = StateChange
StateChangePausedToPaused
toEnum 36 = StateChange
StateChangePlayingToPlaying
toEnum k :: Int
k = Int -> StateChange
AnotherStateChange Int
k
instance P.Ord StateChange where
compare :: StateChange -> StateChange -> Ordering
compare a :: StateChange
a b :: StateChange
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (StateChange -> Int
forall a. Enum a => a -> Int
P.fromEnum StateChange
a) (StateChange -> Int
forall a. Enum a => a -> Int
P.fromEnum StateChange
b)
foreign import ccall "gst_state_change_get_type" c_gst_state_change_get_type ::
IO GType
instance BoxedEnum StateChange where
boxedEnumType :: StateChange -> IO GType
boxedEnumType _ = IO GType
c_gst_state_change_get_type
data State =
StateVoidPending
| StateNull
| StateReady
| StatePaused
| StatePlaying
| AnotherState Int
deriving (Int -> State -> ShowS
[State] -> ShowS
State -> String
(Int -> State -> ShowS)
-> (State -> String) -> ([State] -> ShowS) -> Show State
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [State] -> ShowS
$cshowList :: [State] -> ShowS
show :: State -> String
$cshow :: State -> String
showsPrec :: Int -> State -> ShowS
$cshowsPrec :: Int -> State -> ShowS
Show, State -> State -> Bool
(State -> State -> Bool) -> (State -> State -> Bool) -> Eq State
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: State -> State -> Bool
$c/= :: State -> State -> Bool
== :: State -> State -> Bool
$c== :: State -> State -> Bool
Eq)
instance P.Enum State where
fromEnum :: State -> Int
fromEnum StateVoidPending = 0
fromEnum StateNull = 1
fromEnum StateReady = 2
fromEnum StatePaused = 3
fromEnum StatePlaying = 4
fromEnum (AnotherState k :: Int
k) = Int
k
toEnum :: Int -> State
toEnum 0 = State
StateVoidPending
toEnum 1 = State
StateNull
toEnum 2 = State
StateReady
toEnum 3 = State
StatePaused
toEnum 4 = State
StatePlaying
toEnum k :: Int
k = Int -> State
AnotherState Int
k
instance P.Ord State where
compare :: State -> State -> Ordering
compare a :: State
a b :: State
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (State -> Int
forall a. Enum a => a -> Int
P.fromEnum State
a) (State -> Int
forall a. Enum a => a -> Int
P.fromEnum State
b)
foreign import ccall "gst_state_get_type" c_gst_state_get_type ::
IO GType
instance BoxedEnum State where
boxedEnumType :: State -> IO GType
boxedEnumType _ = IO GType
c_gst_state_get_type
data SeekType =
SeekTypeNone
| SeekTypeSet
| SeekTypeEnd
| AnotherSeekType Int
deriving (Int -> SeekType -> ShowS
[SeekType] -> ShowS
SeekType -> String
(Int -> SeekType -> ShowS)
-> (SeekType -> String) -> ([SeekType] -> ShowS) -> Show SeekType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SeekType] -> ShowS
$cshowList :: [SeekType] -> ShowS
show :: SeekType -> String
$cshow :: SeekType -> String
showsPrec :: Int -> SeekType -> ShowS
$cshowsPrec :: Int -> SeekType -> ShowS
Show, SeekType -> SeekType -> Bool
(SeekType -> SeekType -> Bool)
-> (SeekType -> SeekType -> Bool) -> Eq SeekType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SeekType -> SeekType -> Bool
$c/= :: SeekType -> SeekType -> Bool
== :: SeekType -> SeekType -> Bool
$c== :: SeekType -> SeekType -> Bool
Eq)
instance P.Enum SeekType where
fromEnum :: SeekType -> Int
fromEnum SeekTypeNone = 0
fromEnum SeekTypeSet = 1
fromEnum SeekTypeEnd = 2
fromEnum (AnotherSeekType k :: Int
k) = Int
k
toEnum :: Int -> SeekType
toEnum 0 = SeekType
SeekTypeNone
toEnum 1 = SeekType
SeekTypeSet
toEnum 2 = SeekType
SeekTypeEnd
toEnum k :: Int
k = Int -> SeekType
AnotherSeekType Int
k
instance P.Ord SeekType where
compare :: SeekType -> SeekType -> Ordering
compare a :: SeekType
a b :: SeekType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SeekType -> Int
forall a. Enum a => a -> Int
P.fromEnum SeekType
a) (SeekType -> Int
forall a. Enum a => a -> Int
P.fromEnum SeekType
b)
foreign import ccall "gst_seek_type_get_type" c_gst_seek_type_get_type ::
IO GType
instance BoxedEnum SeekType where
boxedEnumType :: SeekType -> IO GType
boxedEnumType _ = IO GType
c_gst_seek_type_get_type
data SearchMode =
SearchModeExact
| SearchModeBefore
| SearchModeAfter
| AnotherSearchMode Int
deriving (Int -> SearchMode -> ShowS
[SearchMode] -> ShowS
SearchMode -> String
(Int -> SearchMode -> ShowS)
-> (SearchMode -> String)
-> ([SearchMode] -> ShowS)
-> Show SearchMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SearchMode] -> ShowS
$cshowList :: [SearchMode] -> ShowS
show :: SearchMode -> String
$cshow :: SearchMode -> String
showsPrec :: Int -> SearchMode -> ShowS
$cshowsPrec :: Int -> SearchMode -> ShowS
Show, SearchMode -> SearchMode -> Bool
(SearchMode -> SearchMode -> Bool)
-> (SearchMode -> SearchMode -> Bool) -> Eq SearchMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SearchMode -> SearchMode -> Bool
$c/= :: SearchMode -> SearchMode -> Bool
== :: SearchMode -> SearchMode -> Bool
$c== :: SearchMode -> SearchMode -> Bool
Eq)
instance P.Enum SearchMode where
fromEnum :: SearchMode -> Int
fromEnum SearchModeExact = 0
fromEnum SearchModeBefore = 1
fromEnum SearchModeAfter = 2
fromEnum (AnotherSearchMode k :: Int
k) = Int
k
toEnum :: Int -> SearchMode
toEnum 0 = SearchMode
SearchModeExact
toEnum 1 = SearchMode
SearchModeBefore
toEnum 2 = SearchMode
SearchModeAfter
toEnum k :: Int
k = Int -> SearchMode
AnotherSearchMode Int
k
instance P.Ord SearchMode where
compare :: SearchMode -> SearchMode -> Ordering
compare a :: SearchMode
a b :: SearchMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SearchMode -> Int
forall a. Enum a => a -> Int
P.fromEnum SearchMode
a) (SearchMode -> Int
forall a. Enum a => a -> Int
P.fromEnum SearchMode
b)
foreign import ccall "gst_search_mode_get_type" c_gst_search_mode_get_type ::
IO GType
instance BoxedEnum SearchMode where
boxedEnumType :: SearchMode -> IO GType
boxedEnumType _ = IO GType
c_gst_search_mode_get_type
data ResourceError =
ResourceErrorFailed
| ResourceErrorTooLazy
| ResourceErrorNotFound
| ResourceErrorBusy
| ResourceErrorOpenRead
| ResourceErrorOpenWrite
| ResourceErrorOpenReadWrite
| ResourceErrorClose
| ResourceErrorRead
| ResourceErrorWrite
| ResourceErrorSeek
| ResourceErrorSync
| ResourceErrorSettings
| ResourceErrorNoSpaceLeft
| ResourceErrorNotAuthorized
| ResourceErrorNumErrors
| AnotherResourceError Int
deriving (Int -> ResourceError -> ShowS
[ResourceError] -> ShowS
ResourceError -> String
(Int -> ResourceError -> ShowS)
-> (ResourceError -> String)
-> ([ResourceError] -> ShowS)
-> Show ResourceError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceError] -> ShowS
$cshowList :: [ResourceError] -> ShowS
show :: ResourceError -> String
$cshow :: ResourceError -> String
showsPrec :: Int -> ResourceError -> ShowS
$cshowsPrec :: Int -> ResourceError -> ShowS
Show, ResourceError -> ResourceError -> Bool
(ResourceError -> ResourceError -> Bool)
-> (ResourceError -> ResourceError -> Bool) -> Eq ResourceError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceError -> ResourceError -> Bool
$c/= :: ResourceError -> ResourceError -> Bool
== :: ResourceError -> ResourceError -> Bool
$c== :: ResourceError -> ResourceError -> Bool
Eq)
instance P.Enum ResourceError where
fromEnum :: ResourceError -> Int
fromEnum ResourceErrorFailed = 1
fromEnum ResourceErrorTooLazy = 2
fromEnum ResourceErrorNotFound = 3
fromEnum ResourceErrorBusy = 4
fromEnum ResourceErrorOpenRead = 5
fromEnum ResourceErrorOpenWrite = 6
fromEnum ResourceErrorOpenReadWrite = 7
fromEnum ResourceErrorClose = 8
fromEnum ResourceErrorRead = 9
fromEnum ResourceErrorWrite = 10
fromEnum ResourceErrorSeek = 11
fromEnum ResourceErrorSync = 12
fromEnum ResourceErrorSettings = 13
fromEnum ResourceErrorNoSpaceLeft = 14
fromEnum ResourceErrorNotAuthorized = 15
fromEnum ResourceErrorNumErrors = 16
fromEnum (AnotherResourceError k :: Int
k) = Int
k
toEnum :: Int -> ResourceError
toEnum 1 = ResourceError
ResourceErrorFailed
toEnum 2 = ResourceError
ResourceErrorTooLazy
toEnum 3 = ResourceError
ResourceErrorNotFound
toEnum 4 = ResourceError
ResourceErrorBusy
toEnum 5 = ResourceError
ResourceErrorOpenRead
toEnum 6 = ResourceError
ResourceErrorOpenWrite
toEnum 7 = ResourceError
ResourceErrorOpenReadWrite
toEnum 8 = ResourceError
ResourceErrorClose
toEnum 9 = ResourceError
ResourceErrorRead
toEnum 10 = ResourceError
ResourceErrorWrite
toEnum 11 = ResourceError
ResourceErrorSeek
toEnum 12 = ResourceError
ResourceErrorSync
toEnum 13 = ResourceError
ResourceErrorSettings
toEnum 14 = ResourceError
ResourceErrorNoSpaceLeft
toEnum 15 = ResourceError
ResourceErrorNotAuthorized
toEnum 16 = ResourceError
ResourceErrorNumErrors
toEnum k :: Int
k = Int -> ResourceError
AnotherResourceError Int
k
instance P.Ord ResourceError where
compare :: ResourceError -> ResourceError -> Ordering
compare a :: ResourceError
a b :: ResourceError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ResourceError -> Int
forall a. Enum a => a -> Int
P.fromEnum ResourceError
a) (ResourceError -> Int
forall a. Enum a => a -> Int
P.fromEnum ResourceError
b)
instance GErrorClass ResourceError where
gerrorClassDomain :: ResourceError -> Text
gerrorClassDomain _ = "gst-resource-error-quark"
catchResourceError ::
IO a ->
(ResourceError -> GErrorMessage -> IO a) ->
IO a
catchResourceError :: IO a -> (ResourceError -> Text -> IO a) -> IO a
catchResourceError = IO a -> (ResourceError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleResourceError ::
(ResourceError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleResourceError :: (ResourceError -> Text -> IO a) -> IO a -> IO a
handleResourceError = (ResourceError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
foreign import ccall "gst_resource_error_get_type" c_gst_resource_error_get_type ::
IO GType
instance BoxedEnum ResourceError where
boxedEnumType :: ResourceError -> IO GType
boxedEnumType _ = IO GType
c_gst_resource_error_get_type
data Rank =
RankNone
| RankMarginal
| RankSecondary
| RankPrimary
| AnotherRank Int
deriving (Int -> Rank -> ShowS
[Rank] -> ShowS
Rank -> String
(Int -> Rank -> ShowS)
-> (Rank -> String) -> ([Rank] -> ShowS) -> Show Rank
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Rank] -> ShowS
$cshowList :: [Rank] -> ShowS
show :: Rank -> String
$cshow :: Rank -> String
showsPrec :: Int -> Rank -> ShowS
$cshowsPrec :: Int -> Rank -> ShowS
Show, Rank -> Rank -> Bool
(Rank -> Rank -> Bool) -> (Rank -> Rank -> Bool) -> Eq Rank
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Rank -> Rank -> Bool
$c/= :: Rank -> Rank -> Bool
== :: Rank -> Rank -> Bool
$c== :: Rank -> Rank -> Bool
Eq)
instance P.Enum Rank where
fromEnum :: Rank -> Int
fromEnum RankNone = 0
fromEnum RankMarginal = 64
fromEnum RankSecondary = 128
fromEnum RankPrimary = 256
fromEnum (AnotherRank k :: Int
k) = Int
k
toEnum :: Int -> Rank
toEnum 0 = Rank
RankNone
toEnum 64 = Rank
RankMarginal
toEnum 128 = Rank
RankSecondary
toEnum 256 = Rank
RankPrimary
toEnum k :: Int
k = Int -> Rank
AnotherRank Int
k
instance P.Ord Rank where
compare :: Rank -> Rank -> Ordering
compare a :: Rank
a b :: Rank
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (Rank -> Int
forall a. Enum a => a -> Int
P.fromEnum Rank
a) (Rank -> Int
forall a. Enum a => a -> Int
P.fromEnum Rank
b)
foreign import ccall "gst_rank_get_type" c_gst_rank_get_type ::
IO GType
instance BoxedEnum Rank where
boxedEnumType :: Rank -> IO GType
boxedEnumType _ = IO GType
c_gst_rank_get_type
data QueryType =
QueryTypeUnknown
| QueryTypePosition
| QueryTypeDuration
| QueryTypeLatency
| QueryTypeJitter
| QueryTypeRate
| QueryTypeSeeking
| QueryTypeSegment
| QueryTypeConvert
| QueryTypeFormats
| QueryTypeBuffering
| QueryTypeCustom
| QueryTypeUri
| QueryTypeAllocation
| QueryTypeScheduling
| QueryTypeAcceptCaps
| QueryTypeCaps
| QueryTypeDrain
| QueryTypeContext
| QueryTypeBitrate
| AnotherQueryType Int
deriving (Int -> QueryType -> ShowS
[QueryType] -> ShowS
QueryType -> String
(Int -> QueryType -> ShowS)
-> (QueryType -> String)
-> ([QueryType] -> ShowS)
-> Show QueryType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QueryType] -> ShowS
$cshowList :: [QueryType] -> ShowS
show :: QueryType -> String
$cshow :: QueryType -> String
showsPrec :: Int -> QueryType -> ShowS
$cshowsPrec :: Int -> QueryType -> ShowS
Show, QueryType -> QueryType -> Bool
(QueryType -> QueryType -> Bool)
-> (QueryType -> QueryType -> Bool) -> Eq QueryType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QueryType -> QueryType -> Bool
$c/= :: QueryType -> QueryType -> Bool
== :: QueryType -> QueryType -> Bool
$c== :: QueryType -> QueryType -> Bool
Eq)
instance P.Enum QueryType where
fromEnum :: QueryType -> Int
fromEnum QueryTypeUnknown = 0
fromEnum QueryTypePosition = 2563
fromEnum QueryTypeDuration = 5123
fromEnum QueryTypeLatency = 7683
fromEnum QueryTypeJitter = 10243
fromEnum QueryTypeRate = 12803
fromEnum QueryTypeSeeking = 15363
fromEnum QueryTypeSegment = 17923
fromEnum QueryTypeConvert = 20483
fromEnum QueryTypeFormats = 23043
fromEnum QueryTypeBuffering = 28163
fromEnum QueryTypeCustom = 30723
fromEnum QueryTypeUri = 33283
fromEnum QueryTypeAllocation = 35846
fromEnum QueryTypeScheduling = 38401
fromEnum QueryTypeAcceptCaps = 40963
fromEnum QueryTypeCaps = 43523
fromEnum QueryTypeDrain = 46086
fromEnum QueryTypeContext = 48643
fromEnum QueryTypeBitrate = 51202
fromEnum (AnotherQueryType k :: Int
k) = Int
k
toEnum :: Int -> QueryType
toEnum 0 = QueryType
QueryTypeUnknown
toEnum 2563 = QueryType
QueryTypePosition
toEnum 5123 = QueryType
QueryTypeDuration
toEnum 7683 = QueryType
QueryTypeLatency
toEnum 10243 = QueryType
QueryTypeJitter
toEnum 12803 = QueryType
QueryTypeRate
toEnum 15363 = QueryType
QueryTypeSeeking
toEnum 17923 = QueryType
QueryTypeSegment
toEnum 20483 = QueryType
QueryTypeConvert
toEnum 23043 = QueryType
QueryTypeFormats
toEnum 28163 = QueryType
QueryTypeBuffering
toEnum 30723 = QueryType
QueryTypeCustom
toEnum 33283 = QueryType
QueryTypeUri
toEnum 35846 = QueryType
QueryTypeAllocation
toEnum 38401 = QueryType
QueryTypeScheduling
toEnum 40963 = QueryType
QueryTypeAcceptCaps
toEnum 43523 = QueryType
QueryTypeCaps
toEnum 46086 = QueryType
QueryTypeDrain
toEnum 48643 = QueryType
QueryTypeContext
toEnum 51202 = QueryType
QueryTypeBitrate
toEnum k :: Int
k = Int -> QueryType
AnotherQueryType Int
k
instance P.Ord QueryType where
compare :: QueryType -> QueryType -> Ordering
compare a :: QueryType
a b :: QueryType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (QueryType -> Int
forall a. Enum a => a -> Int
P.fromEnum QueryType
a) (QueryType -> Int
forall a. Enum a => a -> Int
P.fromEnum QueryType
b)
foreign import ccall "gst_query_type_get_type" c_gst_query_type_get_type ::
IO GType
instance BoxedEnum QueryType where
boxedEnumType :: QueryType -> IO GType
boxedEnumType _ = IO GType
c_gst_query_type_get_type
data QOSType =
QOSTypeOverflow
| QOSTypeUnderflow
| QOSTypeThrottle
| AnotherQOSType Int
deriving (Int -> QOSType -> ShowS
[QOSType] -> ShowS
QOSType -> String
(Int -> QOSType -> ShowS)
-> (QOSType -> String) -> ([QOSType] -> ShowS) -> Show QOSType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QOSType] -> ShowS
$cshowList :: [QOSType] -> ShowS
show :: QOSType -> String
$cshow :: QOSType -> String
showsPrec :: Int -> QOSType -> ShowS
$cshowsPrec :: Int -> QOSType -> ShowS
Show, QOSType -> QOSType -> Bool
(QOSType -> QOSType -> Bool)
-> (QOSType -> QOSType -> Bool) -> Eq QOSType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QOSType -> QOSType -> Bool
$c/= :: QOSType -> QOSType -> Bool
== :: QOSType -> QOSType -> Bool
$c== :: QOSType -> QOSType -> Bool
Eq)
instance P.Enum QOSType where
fromEnum :: QOSType -> Int
fromEnum QOSTypeOverflow = 0
fromEnum QOSTypeUnderflow = 1
fromEnum QOSTypeThrottle = 2
fromEnum (AnotherQOSType k :: Int
k) = Int
k
toEnum :: Int -> QOSType
toEnum 0 = QOSType
QOSTypeOverflow
toEnum 1 = QOSType
QOSTypeUnderflow
toEnum 2 = QOSType
QOSTypeThrottle
toEnum k :: Int
k = Int -> QOSType
AnotherQOSType Int
k
instance P.Ord QOSType where
compare :: QOSType -> QOSType -> Ordering
compare a :: QOSType
a b :: QOSType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (QOSType -> Int
forall a. Enum a => a -> Int
P.fromEnum QOSType
a) (QOSType -> Int
forall a. Enum a => a -> Int
P.fromEnum QOSType
b)
foreign import ccall "gst_qos_type_get_type" c_gst_qos_type_get_type ::
IO GType
instance BoxedEnum QOSType where
boxedEnumType :: QOSType -> IO GType
boxedEnumType _ = IO GType
c_gst_qos_type_get_type
data PromiseResult =
PromiseResultPending
| PromiseResultInterrupted
| PromiseResultReplied
| PromiseResultExpired
| AnotherPromiseResult Int
deriving (Int -> PromiseResult -> ShowS
[PromiseResult] -> ShowS
PromiseResult -> String
(Int -> PromiseResult -> ShowS)
-> (PromiseResult -> String)
-> ([PromiseResult] -> ShowS)
-> Show PromiseResult
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PromiseResult] -> ShowS
$cshowList :: [PromiseResult] -> ShowS
show :: PromiseResult -> String
$cshow :: PromiseResult -> String
showsPrec :: Int -> PromiseResult -> ShowS
$cshowsPrec :: Int -> PromiseResult -> ShowS
Show, PromiseResult -> PromiseResult -> Bool
(PromiseResult -> PromiseResult -> Bool)
-> (PromiseResult -> PromiseResult -> Bool) -> Eq PromiseResult
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PromiseResult -> PromiseResult -> Bool
$c/= :: PromiseResult -> PromiseResult -> Bool
== :: PromiseResult -> PromiseResult -> Bool
$c== :: PromiseResult -> PromiseResult -> Bool
Eq)
instance P.Enum PromiseResult where
fromEnum :: PromiseResult -> Int
fromEnum PromiseResultPending = 0
fromEnum PromiseResultInterrupted = 1
fromEnum PromiseResultReplied = 2
fromEnum PromiseResultExpired = 3
fromEnum (AnotherPromiseResult k :: Int
k) = Int
k
toEnum :: Int -> PromiseResult
toEnum 0 = PromiseResult
PromiseResultPending
toEnum 1 = PromiseResult
PromiseResultInterrupted
toEnum 2 = PromiseResult
PromiseResultReplied
toEnum 3 = PromiseResult
PromiseResultExpired
toEnum k :: Int
k = Int -> PromiseResult
AnotherPromiseResult Int
k
instance P.Ord PromiseResult where
compare :: PromiseResult -> PromiseResult -> Ordering
compare a :: PromiseResult
a b :: PromiseResult
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PromiseResult -> Int
forall a. Enum a => a -> Int
P.fromEnum PromiseResult
a) (PromiseResult -> Int
forall a. Enum a => a -> Int
P.fromEnum PromiseResult
b)
foreign import ccall "gst_promise_result_get_type" c_gst_promise_result_get_type ::
IO GType
instance BoxedEnum PromiseResult where
boxedEnumType :: PromiseResult -> IO GType
boxedEnumType _ = IO GType
c_gst_promise_result_get_type
data ProgressType =
ProgressTypeStart
| ProgressTypeContinue
| ProgressTypeComplete
| ProgressTypeCanceled
| ProgressTypeError
| AnotherProgressType Int
deriving (Int -> ProgressType -> ShowS
[ProgressType] -> ShowS
ProgressType -> String
(Int -> ProgressType -> ShowS)
-> (ProgressType -> String)
-> ([ProgressType] -> ShowS)
-> Show ProgressType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProgressType] -> ShowS
$cshowList :: [ProgressType] -> ShowS
show :: ProgressType -> String
$cshow :: ProgressType -> String
showsPrec :: Int -> ProgressType -> ShowS
$cshowsPrec :: Int -> ProgressType -> ShowS
Show, ProgressType -> ProgressType -> Bool
(ProgressType -> ProgressType -> Bool)
-> (ProgressType -> ProgressType -> Bool) -> Eq ProgressType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProgressType -> ProgressType -> Bool
$c/= :: ProgressType -> ProgressType -> Bool
== :: ProgressType -> ProgressType -> Bool
$c== :: ProgressType -> ProgressType -> Bool
Eq)
instance P.Enum ProgressType where
fromEnum :: ProgressType -> Int
fromEnum ProgressTypeStart = 0
fromEnum ProgressTypeContinue = 1
fromEnum ProgressTypeComplete = 2
fromEnum ProgressTypeCanceled = 3
fromEnum ProgressTypeError = 4
fromEnum (AnotherProgressType k :: Int
k) = Int
k
toEnum :: Int -> ProgressType
toEnum 0 = ProgressType
ProgressTypeStart
toEnum 1 = ProgressType
ProgressTypeContinue
toEnum 2 = ProgressType
ProgressTypeComplete
toEnum 3 = ProgressType
ProgressTypeCanceled
toEnum 4 = ProgressType
ProgressTypeError
toEnum k :: Int
k = Int -> ProgressType
AnotherProgressType Int
k
instance P.Ord ProgressType where
compare :: ProgressType -> ProgressType -> Ordering
compare a :: ProgressType
a b :: ProgressType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ProgressType -> Int
forall a. Enum a => a -> Int
P.fromEnum ProgressType
a) (ProgressType -> Int
forall a. Enum a => a -> Int
P.fromEnum ProgressType
b)
foreign import ccall "gst_progress_type_get_type" c_gst_progress_type_get_type ::
IO GType
instance BoxedEnum ProgressType where
boxedEnumType :: ProgressType -> IO GType
boxedEnumType _ = IO GType
c_gst_progress_type_get_type
data PluginError =
PluginErrorModule
| PluginErrorDependencies
| PluginErrorNameMismatch
| AnotherPluginError Int
deriving (Int -> PluginError -> ShowS
[PluginError] -> ShowS
PluginError -> String
(Int -> PluginError -> ShowS)
-> (PluginError -> String)
-> ([PluginError] -> ShowS)
-> Show PluginError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PluginError] -> ShowS
$cshowList :: [PluginError] -> ShowS
show :: PluginError -> String
$cshow :: PluginError -> String
showsPrec :: Int -> PluginError -> ShowS
$cshowsPrec :: Int -> PluginError -> ShowS
Show, PluginError -> PluginError -> Bool
(PluginError -> PluginError -> Bool)
-> (PluginError -> PluginError -> Bool) -> Eq PluginError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PluginError -> PluginError -> Bool
$c/= :: PluginError -> PluginError -> Bool
== :: PluginError -> PluginError -> Bool
$c== :: PluginError -> PluginError -> Bool
Eq)
instance P.Enum PluginError where
fromEnum :: PluginError -> Int
fromEnum PluginErrorModule = 0
fromEnum PluginErrorDependencies = 1
fromEnum PluginErrorNameMismatch = 2
fromEnum (AnotherPluginError k :: Int
k) = Int
k
toEnum :: Int -> PluginError
toEnum 0 = PluginError
PluginErrorModule
toEnum 1 = PluginError
PluginErrorDependencies
toEnum 2 = PluginError
PluginErrorNameMismatch
toEnum k :: Int
k = Int -> PluginError
AnotherPluginError Int
k
instance P.Ord PluginError where
compare :: PluginError -> PluginError -> Ordering
compare a :: PluginError
a b :: PluginError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PluginError -> Int
forall a. Enum a => a -> Int
P.fromEnum PluginError
a) (PluginError -> Int
forall a. Enum a => a -> Int
P.fromEnum PluginError
b)
instance GErrorClass PluginError where
gerrorClassDomain :: PluginError -> Text
gerrorClassDomain _ = "gst_plugin_error"
catchPluginError ::
IO a ->
(PluginError -> GErrorMessage -> IO a) ->
IO a
catchPluginError :: IO a -> (PluginError -> Text -> IO a) -> IO a
catchPluginError = IO a -> (PluginError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handlePluginError ::
(PluginError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handlePluginError :: (PluginError -> Text -> IO a) -> IO a -> IO a
handlePluginError = (PluginError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
foreign import ccall "gst_plugin_error_get_type" c_gst_plugin_error_get_type ::
IO GType
instance BoxedEnum PluginError where
boxedEnumType :: PluginError -> IO GType
boxedEnumType _ = IO GType
c_gst_plugin_error_get_type
data ParseError =
ParseErrorSyntax
| ParseErrorNoSuchElement
| ParseErrorNoSuchProperty
| ParseErrorLink
| ParseErrorCouldNotSetProperty
| ParseErrorEmptyBin
| ParseErrorEmpty
| ParseErrorDelayedLink
| AnotherParseError Int
deriving (Int -> ParseError -> ShowS
[ParseError] -> ShowS
ParseError -> String
(Int -> ParseError -> ShowS)
-> (ParseError -> String)
-> ([ParseError] -> ShowS)
-> Show ParseError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ParseError] -> ShowS
$cshowList :: [ParseError] -> ShowS
show :: ParseError -> String
$cshow :: ParseError -> String
showsPrec :: Int -> ParseError -> ShowS
$cshowsPrec :: Int -> ParseError -> ShowS
Show, ParseError -> ParseError -> Bool
(ParseError -> ParseError -> Bool)
-> (ParseError -> ParseError -> Bool) -> Eq ParseError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ParseError -> ParseError -> Bool
$c/= :: ParseError -> ParseError -> Bool
== :: ParseError -> ParseError -> Bool
$c== :: ParseError -> ParseError -> Bool
Eq)
instance P.Enum ParseError where
fromEnum :: ParseError -> Int
fromEnum ParseErrorSyntax = 0
fromEnum ParseErrorNoSuchElement = 1
fromEnum ParseErrorNoSuchProperty = 2
fromEnum ParseErrorLink = 3
fromEnum ParseErrorCouldNotSetProperty = 4
fromEnum ParseErrorEmptyBin = 5
fromEnum ParseErrorEmpty = 6
fromEnum ParseErrorDelayedLink = 7
fromEnum (AnotherParseError k :: Int
k) = Int
k
toEnum :: Int -> ParseError
toEnum 0 = ParseError
ParseErrorSyntax
toEnum 1 = ParseError
ParseErrorNoSuchElement
toEnum 2 = ParseError
ParseErrorNoSuchProperty
toEnum 3 = ParseError
ParseErrorLink
toEnum 4 = ParseError
ParseErrorCouldNotSetProperty
toEnum 5 = ParseError
ParseErrorEmptyBin
toEnum 6 = ParseError
ParseErrorEmpty
toEnum 7 = ParseError
ParseErrorDelayedLink
toEnum k :: Int
k = Int -> ParseError
AnotherParseError Int
k
instance P.Ord ParseError where
compare :: ParseError -> ParseError -> Ordering
compare a :: ParseError
a b :: ParseError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ParseError -> Int
forall a. Enum a => a -> Int
P.fromEnum ParseError
a) (ParseError -> Int
forall a. Enum a => a -> Int
P.fromEnum ParseError
b)
instance GErrorClass ParseError where
gerrorClassDomain :: ParseError -> Text
gerrorClassDomain _ = "gst_parse_error"
catchParseError ::
IO a ->
(ParseError -> GErrorMessage -> IO a) ->
IO a
catchParseError :: IO a -> (ParseError -> Text -> IO a) -> IO a
catchParseError = IO a -> (ParseError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleParseError ::
(ParseError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleParseError :: (ParseError -> Text -> IO a) -> IO a -> IO a
handleParseError = (ParseError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
foreign import ccall "gst_parse_error_get_type" c_gst_parse_error_get_type ::
IO GType
instance BoxedEnum ParseError where
boxedEnumType :: ParseError -> IO GType
boxedEnumType _ = IO GType
c_gst_parse_error_get_type
data PadProbeReturn =
PadProbeReturnDrop
| PadProbeReturnOk
| PadProbeReturnRemove
| PadProbeReturnPass
| PadProbeReturnHandled
| AnotherPadProbeReturn Int
deriving (Int -> PadProbeReturn -> ShowS
[PadProbeReturn] -> ShowS
PadProbeReturn -> String
(Int -> PadProbeReturn -> ShowS)
-> (PadProbeReturn -> String)
-> ([PadProbeReturn] -> ShowS)
-> Show PadProbeReturn
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PadProbeReturn] -> ShowS
$cshowList :: [PadProbeReturn] -> ShowS
show :: PadProbeReturn -> String
$cshow :: PadProbeReturn -> String
showsPrec :: Int -> PadProbeReturn -> ShowS
$cshowsPrec :: Int -> PadProbeReturn -> ShowS
Show, PadProbeReturn -> PadProbeReturn -> Bool
(PadProbeReturn -> PadProbeReturn -> Bool)
-> (PadProbeReturn -> PadProbeReturn -> Bool) -> Eq PadProbeReturn
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PadProbeReturn -> PadProbeReturn -> Bool
$c/= :: PadProbeReturn -> PadProbeReturn -> Bool
== :: PadProbeReturn -> PadProbeReturn -> Bool
$c== :: PadProbeReturn -> PadProbeReturn -> Bool
Eq)
instance P.Enum PadProbeReturn where
fromEnum :: PadProbeReturn -> Int
fromEnum PadProbeReturnDrop = 0
fromEnum PadProbeReturnOk = 1
fromEnum PadProbeReturnRemove = 2
fromEnum PadProbeReturnPass = 3
fromEnum PadProbeReturnHandled = 4
fromEnum (AnotherPadProbeReturn k :: Int
k) = Int
k
toEnum :: Int -> PadProbeReturn
toEnum 0 = PadProbeReturn
PadProbeReturnDrop
toEnum 1 = PadProbeReturn
PadProbeReturnOk
toEnum 2 = PadProbeReturn
PadProbeReturnRemove
toEnum 3 = PadProbeReturn
PadProbeReturnPass
toEnum 4 = PadProbeReturn
PadProbeReturnHandled
toEnum k :: Int
k = Int -> PadProbeReturn
AnotherPadProbeReturn Int
k
instance P.Ord PadProbeReturn where
compare :: PadProbeReturn -> PadProbeReturn -> Ordering
compare a :: PadProbeReturn
a b :: PadProbeReturn
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PadProbeReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum PadProbeReturn
a) (PadProbeReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum PadProbeReturn
b)
foreign import ccall "gst_pad_probe_return_get_type" c_gst_pad_probe_return_get_type ::
IO GType
instance BoxedEnum PadProbeReturn where
boxedEnumType :: PadProbeReturn -> IO GType
boxedEnumType _ = IO GType
c_gst_pad_probe_return_get_type
data PadPresence =
PadPresenceAlways
| PadPresenceSometimes
| PadPresenceRequest
| AnotherPadPresence Int
deriving (Int -> PadPresence -> ShowS
[PadPresence] -> ShowS
PadPresence -> String
(Int -> PadPresence -> ShowS)
-> (PadPresence -> String)
-> ([PadPresence] -> ShowS)
-> Show PadPresence
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PadPresence] -> ShowS
$cshowList :: [PadPresence] -> ShowS
show :: PadPresence -> String
$cshow :: PadPresence -> String
showsPrec :: Int -> PadPresence -> ShowS
$cshowsPrec :: Int -> PadPresence -> ShowS
Show, PadPresence -> PadPresence -> Bool
(PadPresence -> PadPresence -> Bool)
-> (PadPresence -> PadPresence -> Bool) -> Eq PadPresence
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PadPresence -> PadPresence -> Bool
$c/= :: PadPresence -> PadPresence -> Bool
== :: PadPresence -> PadPresence -> Bool
$c== :: PadPresence -> PadPresence -> Bool
Eq)
instance P.Enum PadPresence where
fromEnum :: PadPresence -> Int
fromEnum PadPresenceAlways = 0
fromEnum PadPresenceSometimes = 1
fromEnum PadPresenceRequest = 2
fromEnum (AnotherPadPresence k :: Int
k) = Int
k
toEnum :: Int -> PadPresence
toEnum 0 = PadPresence
PadPresenceAlways
toEnum 1 = PadPresence
PadPresenceSometimes
toEnum 2 = PadPresence
PadPresenceRequest
toEnum k :: Int
k = Int -> PadPresence
AnotherPadPresence Int
k
instance P.Ord PadPresence where
compare :: PadPresence -> PadPresence -> Ordering
compare a :: PadPresence
a b :: PadPresence
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PadPresence -> Int
forall a. Enum a => a -> Int
P.fromEnum PadPresence
a) (PadPresence -> Int
forall a. Enum a => a -> Int
P.fromEnum PadPresence
b)
foreign import ccall "gst_pad_presence_get_type" c_gst_pad_presence_get_type ::
IO GType
instance BoxedEnum PadPresence where
boxedEnumType :: PadPresence -> IO GType
boxedEnumType _ = IO GType
c_gst_pad_presence_get_type
data PadMode =
PadModeNone
| PadModePush
| PadModePull
| AnotherPadMode Int
deriving (Int -> PadMode -> ShowS
[PadMode] -> ShowS
PadMode -> String
(Int -> PadMode -> ShowS)
-> (PadMode -> String) -> ([PadMode] -> ShowS) -> Show PadMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PadMode] -> ShowS
$cshowList :: [PadMode] -> ShowS
show :: PadMode -> String
$cshow :: PadMode -> String
showsPrec :: Int -> PadMode -> ShowS
$cshowsPrec :: Int -> PadMode -> ShowS
Show, PadMode -> PadMode -> Bool
(PadMode -> PadMode -> Bool)
-> (PadMode -> PadMode -> Bool) -> Eq PadMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PadMode -> PadMode -> Bool
$c/= :: PadMode -> PadMode -> Bool
== :: PadMode -> PadMode -> Bool
$c== :: PadMode -> PadMode -> Bool
Eq)
instance P.Enum PadMode where
fromEnum :: PadMode -> Int
fromEnum PadModeNone = 0
fromEnum PadModePush = 1
fromEnum PadModePull = 2
fromEnum (AnotherPadMode k :: Int
k) = Int
k
toEnum :: Int -> PadMode
toEnum 0 = PadMode
PadModeNone
toEnum 1 = PadMode
PadModePush
toEnum 2 = PadMode
PadModePull
toEnum k :: Int
k = Int -> PadMode
AnotherPadMode Int
k
instance P.Ord PadMode where
compare :: PadMode -> PadMode -> Ordering
compare a :: PadMode
a b :: PadMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PadMode -> Int
forall a. Enum a => a -> Int
P.fromEnum PadMode
a) (PadMode -> Int
forall a. Enum a => a -> Int
P.fromEnum PadMode
b)
foreign import ccall "gst_pad_mode_get_type" c_gst_pad_mode_get_type ::
IO GType
instance BoxedEnum PadMode where
boxedEnumType :: PadMode -> IO GType
boxedEnumType _ = IO GType
c_gst_pad_mode_get_type
data PadLinkReturn =
PadLinkReturnOk
| PadLinkReturnWrongHierarchy
| PadLinkReturnWasLinked
| PadLinkReturnWrongDirection
| PadLinkReturnNoformat
| PadLinkReturnNosched
| PadLinkReturnRefused
| AnotherPadLinkReturn Int
deriving (Int -> PadLinkReturn -> ShowS
[PadLinkReturn] -> ShowS
PadLinkReturn -> String
(Int -> PadLinkReturn -> ShowS)
-> (PadLinkReturn -> String)
-> ([PadLinkReturn] -> ShowS)
-> Show PadLinkReturn
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PadLinkReturn] -> ShowS
$cshowList :: [PadLinkReturn] -> ShowS
show :: PadLinkReturn -> String
$cshow :: PadLinkReturn -> String
showsPrec :: Int -> PadLinkReturn -> ShowS
$cshowsPrec :: Int -> PadLinkReturn -> ShowS
Show, PadLinkReturn -> PadLinkReturn -> Bool
(PadLinkReturn -> PadLinkReturn -> Bool)
-> (PadLinkReturn -> PadLinkReturn -> Bool) -> Eq PadLinkReturn
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PadLinkReturn -> PadLinkReturn -> Bool
$c/= :: PadLinkReturn -> PadLinkReturn -> Bool
== :: PadLinkReturn -> PadLinkReturn -> Bool
$c== :: PadLinkReturn -> PadLinkReturn -> Bool
Eq)
instance P.Enum PadLinkReturn where
fromEnum :: PadLinkReturn -> Int
fromEnum PadLinkReturnOk = 0
fromEnum PadLinkReturnWrongHierarchy = -1
fromEnum PadLinkReturnWasLinked = -2
fromEnum PadLinkReturnWrongDirection = -3
fromEnum PadLinkReturnNoformat = -4
fromEnum PadLinkReturnNosched = -5
fromEnum PadLinkReturnRefused = -6
fromEnum (AnotherPadLinkReturn k :: Int
k) = Int
k
toEnum :: Int -> PadLinkReturn
toEnum 0 = PadLinkReturn
PadLinkReturnOk
toEnum -1 = PadLinkReturn
PadLinkReturnWrongHierarchy
toEnum -2 = PadLinkReturn
PadLinkReturnWasLinked
toEnum -3 = PadLinkReturn
PadLinkReturnWrongDirection
toEnum -4 = PadLinkReturn
PadLinkReturnNoformat
toEnum -5 = PadLinkReturn
PadLinkReturnNosched
toEnum -6 = PadLinkReturn
PadLinkReturnRefused
toEnum k :: Int
k = Int -> PadLinkReturn
AnotherPadLinkReturn Int
k
instance P.Ord PadLinkReturn where
compare :: PadLinkReturn -> PadLinkReturn -> Ordering
compare a :: PadLinkReturn
a b :: PadLinkReturn
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PadLinkReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum PadLinkReturn
a) (PadLinkReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum PadLinkReturn
b)
foreign import ccall "gst_pad_link_return_get_type" c_gst_pad_link_return_get_type ::
IO GType
instance BoxedEnum PadLinkReturn where
boxedEnumType :: PadLinkReturn -> IO GType
boxedEnumType _ = IO GType
c_gst_pad_link_return_get_type
data PadDirection =
PadDirectionUnknown
| PadDirectionSrc
| PadDirectionSink
| AnotherPadDirection Int
deriving (Int -> PadDirection -> ShowS
[PadDirection] -> ShowS
PadDirection -> String
(Int -> PadDirection -> ShowS)
-> (PadDirection -> String)
-> ([PadDirection] -> ShowS)
-> Show PadDirection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PadDirection] -> ShowS
$cshowList :: [PadDirection] -> ShowS
show :: PadDirection -> String
$cshow :: PadDirection -> String
showsPrec :: Int -> PadDirection -> ShowS
$cshowsPrec :: Int -> PadDirection -> ShowS
Show, PadDirection -> PadDirection -> Bool
(PadDirection -> PadDirection -> Bool)
-> (PadDirection -> PadDirection -> Bool) -> Eq PadDirection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PadDirection -> PadDirection -> Bool
$c/= :: PadDirection -> PadDirection -> Bool
== :: PadDirection -> PadDirection -> Bool
$c== :: PadDirection -> PadDirection -> Bool
Eq)
instance P.Enum PadDirection where
fromEnum :: PadDirection -> Int
fromEnum PadDirectionUnknown = 0
fromEnum PadDirectionSrc = 1
fromEnum PadDirectionSink = 2
fromEnum (AnotherPadDirection k :: Int
k) = Int
k
toEnum :: Int -> PadDirection
toEnum 0 = PadDirection
PadDirectionUnknown
toEnum 1 = PadDirection
PadDirectionSrc
toEnum 2 = PadDirection
PadDirectionSink
toEnum k :: Int
k = Int -> PadDirection
AnotherPadDirection Int
k
instance P.Ord PadDirection where
compare :: PadDirection -> PadDirection -> Ordering
compare a :: PadDirection
a b :: PadDirection
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PadDirection -> Int
forall a. Enum a => a -> Int
P.fromEnum PadDirection
a) (PadDirection -> Int
forall a. Enum a => a -> Int
P.fromEnum PadDirection
b)
foreign import ccall "gst_pad_direction_get_type" c_gst_pad_direction_get_type ::
IO GType
instance BoxedEnum PadDirection where
boxedEnumType :: PadDirection -> IO GType
boxedEnumType _ = IO GType
c_gst_pad_direction_get_type
data LibraryError =
LibraryErrorFailed
| LibraryErrorTooLazy
| LibraryErrorInit
| LibraryErrorShutdown
| LibraryErrorSettings
| LibraryErrorEncode
| LibraryErrorNumErrors
| AnotherLibraryError Int
deriving (Int -> LibraryError -> ShowS
[LibraryError] -> ShowS
LibraryError -> String
(Int -> LibraryError -> ShowS)
-> (LibraryError -> String)
-> ([LibraryError] -> ShowS)
-> Show LibraryError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LibraryError] -> ShowS
$cshowList :: [LibraryError] -> ShowS
show :: LibraryError -> String
$cshow :: LibraryError -> String
showsPrec :: Int -> LibraryError -> ShowS
$cshowsPrec :: Int -> LibraryError -> ShowS
Show, LibraryError -> LibraryError -> Bool
(LibraryError -> LibraryError -> Bool)
-> (LibraryError -> LibraryError -> Bool) -> Eq LibraryError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LibraryError -> LibraryError -> Bool
$c/= :: LibraryError -> LibraryError -> Bool
== :: LibraryError -> LibraryError -> Bool
$c== :: LibraryError -> LibraryError -> Bool
Eq)
instance P.Enum LibraryError where
fromEnum :: LibraryError -> Int
fromEnum LibraryErrorFailed = 1
fromEnum LibraryErrorTooLazy = 2
fromEnum LibraryErrorInit = 3
fromEnum LibraryErrorShutdown = 4
fromEnum LibraryErrorSettings = 5
fromEnum LibraryErrorEncode = 6
fromEnum LibraryErrorNumErrors = 7
fromEnum (AnotherLibraryError k :: Int
k) = Int
k
toEnum :: Int -> LibraryError
toEnum 1 = LibraryError
LibraryErrorFailed
toEnum 2 = LibraryError
LibraryErrorTooLazy
toEnum 3 = LibraryError
LibraryErrorInit
toEnum 4 = LibraryError
LibraryErrorShutdown
toEnum 5 = LibraryError
LibraryErrorSettings
toEnum 6 = LibraryError
LibraryErrorEncode
toEnum 7 = LibraryError
LibraryErrorNumErrors
toEnum k :: Int
k = Int -> LibraryError
AnotherLibraryError Int
k
instance P.Ord LibraryError where
compare :: LibraryError -> LibraryError -> Ordering
compare a :: LibraryError
a b :: LibraryError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (LibraryError -> Int
forall a. Enum a => a -> Int
P.fromEnum LibraryError
a) (LibraryError -> Int
forall a. Enum a => a -> Int
P.fromEnum LibraryError
b)
instance GErrorClass LibraryError where
gerrorClassDomain :: LibraryError -> Text
gerrorClassDomain _ = "gst-library-error-quark"
catchLibraryError ::
IO a ->
(LibraryError -> GErrorMessage -> IO a) ->
IO a
catchLibraryError :: IO a -> (LibraryError -> Text -> IO a) -> IO a
catchLibraryError = IO a -> (LibraryError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleLibraryError ::
(LibraryError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleLibraryError :: (LibraryError -> Text -> IO a) -> IO a -> IO a
handleLibraryError = (LibraryError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
foreign import ccall "gst_library_error_get_type" c_gst_library_error_get_type ::
IO GType
instance BoxedEnum LibraryError where
boxedEnumType :: LibraryError -> IO GType
boxedEnumType _ = IO GType
c_gst_library_error_get_type
data IteratorResult =
IteratorResultDone
| IteratorResultOk
| IteratorResultResync
| IteratorResultError
| AnotherIteratorResult Int
deriving (Int -> IteratorResult -> ShowS
[IteratorResult] -> ShowS
IteratorResult -> String
(Int -> IteratorResult -> ShowS)
-> (IteratorResult -> String)
-> ([IteratorResult] -> ShowS)
-> Show IteratorResult
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IteratorResult] -> ShowS
$cshowList :: [IteratorResult] -> ShowS
show :: IteratorResult -> String
$cshow :: IteratorResult -> String
showsPrec :: Int -> IteratorResult -> ShowS
$cshowsPrec :: Int -> IteratorResult -> ShowS
Show, IteratorResult -> IteratorResult -> Bool
(IteratorResult -> IteratorResult -> Bool)
-> (IteratorResult -> IteratorResult -> Bool) -> Eq IteratorResult
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IteratorResult -> IteratorResult -> Bool
$c/= :: IteratorResult -> IteratorResult -> Bool
== :: IteratorResult -> IteratorResult -> Bool
$c== :: IteratorResult -> IteratorResult -> Bool
Eq)
instance P.Enum IteratorResult where
fromEnum :: IteratorResult -> Int
fromEnum IteratorResultDone = 0
fromEnum IteratorResultOk = 1
fromEnum IteratorResultResync = 2
fromEnum IteratorResultError = 3
fromEnum (AnotherIteratorResult k :: Int
k) = Int
k
toEnum :: Int -> IteratorResult
toEnum 0 = IteratorResult
IteratorResultDone
toEnum 1 = IteratorResult
IteratorResultOk
toEnum 2 = IteratorResult
IteratorResultResync
toEnum 3 = IteratorResult
IteratorResultError
toEnum k :: Int
k = Int -> IteratorResult
AnotherIteratorResult Int
k
instance P.Ord IteratorResult where
compare :: IteratorResult -> IteratorResult -> Ordering
compare a :: IteratorResult
a b :: IteratorResult
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (IteratorResult -> Int
forall a. Enum a => a -> Int
P.fromEnum IteratorResult
a) (IteratorResult -> Int
forall a. Enum a => a -> Int
P.fromEnum IteratorResult
b)
foreign import ccall "gst_iterator_result_get_type" c_gst_iterator_result_get_type ::
IO GType
instance BoxedEnum IteratorResult where
boxedEnumType :: IteratorResult -> IO GType
boxedEnumType _ = IO GType
c_gst_iterator_result_get_type
data IteratorItem =
IteratorItemSkip
| IteratorItemPass
| IteratorItemEnd
| AnotherIteratorItem Int
deriving (Int -> IteratorItem -> ShowS
[IteratorItem] -> ShowS
IteratorItem -> String
(Int -> IteratorItem -> ShowS)
-> (IteratorItem -> String)
-> ([IteratorItem] -> ShowS)
-> Show IteratorItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IteratorItem] -> ShowS
$cshowList :: [IteratorItem] -> ShowS
show :: IteratorItem -> String
$cshow :: IteratorItem -> String
showsPrec :: Int -> IteratorItem -> ShowS
$cshowsPrec :: Int -> IteratorItem -> ShowS
Show, IteratorItem -> IteratorItem -> Bool
(IteratorItem -> IteratorItem -> Bool)
-> (IteratorItem -> IteratorItem -> Bool) -> Eq IteratorItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IteratorItem -> IteratorItem -> Bool
$c/= :: IteratorItem -> IteratorItem -> Bool
== :: IteratorItem -> IteratorItem -> Bool
$c== :: IteratorItem -> IteratorItem -> Bool
Eq)
instance P.Enum IteratorItem where
fromEnum :: IteratorItem -> Int
fromEnum IteratorItemSkip = 0
fromEnum IteratorItemPass = 1
fromEnum IteratorItemEnd = 2
fromEnum (AnotherIteratorItem k :: Int
k) = Int
k
toEnum :: Int -> IteratorItem
toEnum 0 = IteratorItem
IteratorItemSkip
toEnum 1 = IteratorItem
IteratorItemPass
toEnum 2 = IteratorItem
IteratorItemEnd
toEnum k :: Int
k = Int -> IteratorItem
AnotherIteratorItem Int
k
instance P.Ord IteratorItem where
compare :: IteratorItem -> IteratorItem -> Ordering
compare a :: IteratorItem
a b :: IteratorItem
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (IteratorItem -> Int
forall a. Enum a => a -> Int
P.fromEnum IteratorItem
a) (IteratorItem -> Int
forall a. Enum a => a -> Int
P.fromEnum IteratorItem
b)
foreign import ccall "gst_iterator_item_get_type" c_gst_iterator_item_get_type ::
IO GType
instance BoxedEnum IteratorItem where
boxedEnumType :: IteratorItem -> IO GType
boxedEnumType _ = IO GType
c_gst_iterator_item_get_type
data Format =
FormatUndefined
| FormatDefault
| FormatBytes
| FormatTime
| FormatBuffers
| FormatPercent
| AnotherFormat Int
deriving (Int -> Format -> ShowS
[Format] -> ShowS
Format -> String
(Int -> Format -> ShowS)
-> (Format -> String) -> ([Format] -> ShowS) -> Show Format
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Format] -> ShowS
$cshowList :: [Format] -> ShowS
show :: Format -> String
$cshow :: Format -> String
showsPrec :: Int -> Format -> ShowS
$cshowsPrec :: Int -> Format -> ShowS
Show, Format -> Format -> Bool
(Format -> Format -> Bool)
-> (Format -> Format -> Bool) -> Eq Format
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Format -> Format -> Bool
$c/= :: Format -> Format -> Bool
== :: Format -> Format -> Bool
$c== :: Format -> Format -> Bool
Eq)
instance P.Enum Format where
fromEnum :: Format -> Int
fromEnum FormatUndefined = 0
fromEnum FormatDefault = 1
fromEnum FormatBytes = 2
fromEnum FormatTime = 3
fromEnum FormatBuffers = 4
fromEnum FormatPercent = 5
fromEnum (AnotherFormat k :: Int
k) = Int
k
toEnum :: Int -> Format
toEnum 0 = Format
FormatUndefined
toEnum 1 = Format
FormatDefault
toEnum 2 = Format
FormatBytes
toEnum 3 = Format
FormatTime
toEnum 4 = Format
FormatBuffers
toEnum 5 = Format
FormatPercent
toEnum k :: Int
k = Int -> Format
AnotherFormat Int
k
instance P.Ord Format where
compare :: Format -> Format -> Ordering
compare a :: Format
a b :: Format
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (Format -> Int
forall a. Enum a => a -> Int
P.fromEnum Format
a) (Format -> Int
forall a. Enum a => a -> Int
P.fromEnum Format
b)
foreign import ccall "gst_format_get_type" c_gst_format_get_type ::
IO GType
instance BoxedEnum Format where
boxedEnumType :: Format -> IO GType
boxedEnumType _ = IO GType
c_gst_format_get_type
data FlowReturn =
FlowReturnCustomSuccess2
| FlowReturnCustomSuccess1
| FlowReturnCustomSuccess
| FlowReturnOk
| FlowReturnNotLinked
| FlowReturnFlushing
| FlowReturnEos
| FlowReturnNotNegotiated
| FlowReturnError
| FlowReturnNotSupported
| FlowReturnCustomError
| FlowReturnCustomError1
| FlowReturnCustomError2
| AnotherFlowReturn Int
deriving (Int -> FlowReturn -> ShowS
[FlowReturn] -> ShowS
FlowReturn -> String
(Int -> FlowReturn -> ShowS)
-> (FlowReturn -> String)
-> ([FlowReturn] -> ShowS)
-> Show FlowReturn
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FlowReturn] -> ShowS
$cshowList :: [FlowReturn] -> ShowS
show :: FlowReturn -> String
$cshow :: FlowReturn -> String
showsPrec :: Int -> FlowReturn -> ShowS
$cshowsPrec :: Int -> FlowReturn -> ShowS
Show, FlowReturn -> FlowReturn -> Bool
(FlowReturn -> FlowReturn -> Bool)
-> (FlowReturn -> FlowReturn -> Bool) -> Eq FlowReturn
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FlowReturn -> FlowReturn -> Bool
$c/= :: FlowReturn -> FlowReturn -> Bool
== :: FlowReturn -> FlowReturn -> Bool
$c== :: FlowReturn -> FlowReturn -> Bool
Eq)
instance P.Enum FlowReturn where
fromEnum :: FlowReturn -> Int
fromEnum FlowReturnCustomSuccess2 = 102
fromEnum FlowReturnCustomSuccess1 = 101
fromEnum FlowReturnCustomSuccess = 100
fromEnum FlowReturnOk = 0
fromEnum FlowReturnNotLinked = -1
fromEnum FlowReturnFlushing = -2
fromEnum FlowReturnEos = -3
fromEnum FlowReturnNotNegotiated = -4
fromEnum FlowReturnError = -5
fromEnum FlowReturnNotSupported = -6
fromEnum FlowReturnCustomError = -100
fromEnum FlowReturnCustomError1 = -101
fromEnum FlowReturnCustomError2 = -102
fromEnum (AnotherFlowReturn k :: Int
k) = Int
k
toEnum :: Int -> FlowReturn
toEnum 102 = FlowReturn
FlowReturnCustomSuccess2
toEnum 101 = FlowReturn
FlowReturnCustomSuccess1
toEnum 100 = FlowReturn
FlowReturnCustomSuccess
toEnum 0 = FlowReturn
FlowReturnOk
toEnum -1 = FlowReturn
FlowReturnNotLinked
toEnum -2 = FlowReturn
FlowReturnFlushing
toEnum -3 = FlowReturn
FlowReturnEos
toEnum -4 = FlowReturn
FlowReturnNotNegotiated
toEnum -5 = FlowReturn
FlowReturnError
toEnum -6 = FlowReturn
FlowReturnNotSupported
toEnum -100 = FlowReturn
FlowReturnCustomError
toEnum -101 = FlowReturn
FlowReturnCustomError1
toEnum -102 = FlowReturn
FlowReturnCustomError2
toEnum k :: Int
k = Int -> FlowReturn
AnotherFlowReturn Int
k
instance P.Ord FlowReturn where
compare :: FlowReturn -> FlowReturn -> Ordering
compare a :: FlowReturn
a b :: FlowReturn
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (FlowReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum FlowReturn
a) (FlowReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum FlowReturn
b)
foreign import ccall "gst_flow_return_get_type" c_gst_flow_return_get_type ::
IO GType
instance BoxedEnum FlowReturn where
boxedEnumType :: FlowReturn -> IO GType
boxedEnumType _ = IO GType
c_gst_flow_return_get_type
data EventType =
EventTypeUnknown
| EventTypeFlushStart
| EventTypeFlushStop
| EventTypeStreamStart
| EventTypeCaps
| EventTypeSegment
| EventTypeStreamCollection
| EventTypeTag
| EventTypeBuffersize
| EventTypeSinkMessage
| EventTypeStreamGroupDone
| EventTypeEos
| EventTypeToc
| EventTypeProtection
| EventTypeSegmentDone
| EventTypeGap
| EventTypeQos
| EventTypeSeek
| EventTypeNavigation
| EventTypeLatency
| EventTypeStep
| EventTypeReconfigure
| EventTypeTocSelect
| EventTypeSelectStreams
| EventTypeCustomUpstream
| EventTypeCustomDownstream
| EventTypeCustomDownstreamOob
| EventTypeCustomDownstreamSticky
| EventTypeCustomBoth
| EventTypeCustomBothOob
| AnotherEventType Int
deriving (Int -> EventType -> ShowS
[EventType] -> ShowS
EventType -> String
(Int -> EventType -> ShowS)
-> (EventType -> String)
-> ([EventType] -> ShowS)
-> Show EventType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EventType] -> ShowS
$cshowList :: [EventType] -> ShowS
show :: EventType -> String
$cshow :: EventType -> String
showsPrec :: Int -> EventType -> ShowS
$cshowsPrec :: Int -> EventType -> ShowS
Show, EventType -> EventType -> Bool
(EventType -> EventType -> Bool)
-> (EventType -> EventType -> Bool) -> Eq EventType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventType -> EventType -> Bool
$c/= :: EventType -> EventType -> Bool
== :: EventType -> EventType -> Bool
$c== :: EventType -> EventType -> Bool
Eq)
instance P.Enum EventType where
fromEnum :: EventType -> Int
fromEnum EventTypeUnknown = 0
fromEnum EventTypeFlushStart = 2563
fromEnum EventTypeFlushStop = 5127
fromEnum EventTypeStreamStart = 10254
fromEnum EventTypeCaps = 12814
fromEnum EventTypeSegment = 17934
fromEnum EventTypeStreamCollection = 19230
fromEnum EventTypeTag = 20510
fromEnum EventTypeBuffersize = 23054
fromEnum EventTypeSinkMessage = 25630
fromEnum EventTypeStreamGroupDone = 26894
fromEnum EventTypeEos = 28174
fromEnum EventTypeToc = 30750
fromEnum EventTypeProtection = 33310
fromEnum EventTypeSegmentDone = 38406
fromEnum EventTypeGap = 40966
fromEnum EventTypeQos = 48641
fromEnum EventTypeSeek = 51201
fromEnum EventTypeNavigation = 53761
fromEnum EventTypeLatency = 56321
fromEnum EventTypeStep = 58881
fromEnum EventTypeReconfigure = 61441
fromEnum EventTypeTocSelect = 64001
fromEnum EventTypeSelectStreams = 66561
fromEnum EventTypeCustomUpstream = 69121
fromEnum EventTypeCustomDownstream = 71686
fromEnum EventTypeCustomDownstreamOob = 74242
fromEnum EventTypeCustomDownstreamSticky = 76830
fromEnum EventTypeCustomBoth = 79367
fromEnum EventTypeCustomBothOob = 81923
fromEnum (AnotherEventType k :: Int
k) = Int
k
toEnum :: Int -> EventType
toEnum 0 = EventType
EventTypeUnknown
toEnum 2563 = EventType
EventTypeFlushStart
toEnum 5127 = EventType
EventTypeFlushStop
toEnum 10254 = EventType
EventTypeStreamStart
toEnum 12814 = EventType
EventTypeCaps
toEnum 17934 = EventType
EventTypeSegment
toEnum 19230 = EventType
EventTypeStreamCollection
toEnum 20510 = EventType
EventTypeTag
toEnum 23054 = EventType
EventTypeBuffersize
toEnum 25630 = EventType
EventTypeSinkMessage
toEnum 26894 = EventType
EventTypeStreamGroupDone
toEnum 28174 = EventType
EventTypeEos
toEnum 30750 = EventType
EventTypeToc
toEnum 33310 = EventType
EventTypeProtection
toEnum 38406 = EventType
EventTypeSegmentDone
toEnum 40966 = EventType
EventTypeGap
toEnum 48641 = EventType
EventTypeQos
toEnum 51201 = EventType
EventTypeSeek
toEnum 53761 = EventType
EventTypeNavigation
toEnum 56321 = EventType
EventTypeLatency
toEnum 58881 = EventType
EventTypeStep
toEnum 61441 = EventType
EventTypeReconfigure
toEnum 64001 = EventType
EventTypeTocSelect
toEnum 66561 = EventType
EventTypeSelectStreams
toEnum 69121 = EventType
EventTypeCustomUpstream
toEnum 71686 = EventType
EventTypeCustomDownstream
toEnum 74242 = EventType
EventTypeCustomDownstreamOob
toEnum 76830 = EventType
EventTypeCustomDownstreamSticky
toEnum 79367 = EventType
EventTypeCustomBoth
toEnum 81923 = EventType
EventTypeCustomBothOob
toEnum k :: Int
k = Int -> EventType
AnotherEventType Int
k
instance P.Ord EventType where
compare :: EventType -> EventType -> Ordering
compare a :: EventType
a b :: EventType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (EventType -> Int
forall a. Enum a => a -> Int
P.fromEnum EventType
a) (EventType -> Int
forall a. Enum a => a -> Int
P.fromEnum EventType
b)
foreign import ccall "gst_event_type_get_type" c_gst_event_type_get_type ::
IO GType
instance BoxedEnum EventType where
boxedEnumType :: EventType -> IO GType
boxedEnumType _ = IO GType
c_gst_event_type_get_type
data DebugLevel =
DebugLevelNone
| DebugLevelError
| DebugLevelWarning
| DebugLevelFixme
| DebugLevelInfo
| DebugLevelDebug
| DebugLevelLog
| DebugLevelTrace
| DebugLevelMemdump
| DebugLevelCount
| AnotherDebugLevel Int
deriving (Int -> DebugLevel -> ShowS
[DebugLevel] -> ShowS
DebugLevel -> String
(Int -> DebugLevel -> ShowS)
-> (DebugLevel -> String)
-> ([DebugLevel] -> ShowS)
-> Show DebugLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DebugLevel] -> ShowS
$cshowList :: [DebugLevel] -> ShowS
show :: DebugLevel -> String
$cshow :: DebugLevel -> String
showsPrec :: Int -> DebugLevel -> ShowS
$cshowsPrec :: Int -> DebugLevel -> ShowS
Show, DebugLevel -> DebugLevel -> Bool
(DebugLevel -> DebugLevel -> Bool)
-> (DebugLevel -> DebugLevel -> Bool) -> Eq DebugLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DebugLevel -> DebugLevel -> Bool
$c/= :: DebugLevel -> DebugLevel -> Bool
== :: DebugLevel -> DebugLevel -> Bool
$c== :: DebugLevel -> DebugLevel -> Bool
Eq)
instance P.Enum DebugLevel where
fromEnum :: DebugLevel -> Int
fromEnum DebugLevelNone = 0
fromEnum DebugLevelError = 1
fromEnum DebugLevelWarning = 2
fromEnum DebugLevelFixme = 3
fromEnum DebugLevelInfo = 4
fromEnum DebugLevelDebug = 5
fromEnum DebugLevelLog = 6
fromEnum DebugLevelTrace = 7
fromEnum DebugLevelMemdump = 9
fromEnum DebugLevelCount = 10
fromEnum (AnotherDebugLevel k :: Int
k) = Int
k
toEnum :: Int -> DebugLevel
toEnum 0 = DebugLevel
DebugLevelNone
toEnum 1 = DebugLevel
DebugLevelError
toEnum 2 = DebugLevel
DebugLevelWarning
toEnum 3 = DebugLevel
DebugLevelFixme
toEnum 4 = DebugLevel
DebugLevelInfo
toEnum 5 = DebugLevel
DebugLevelDebug
toEnum 6 = DebugLevel
DebugLevelLog
toEnum 7 = DebugLevel
DebugLevelTrace
toEnum 9 = DebugLevel
DebugLevelMemdump
toEnum 10 = DebugLevel
DebugLevelCount
toEnum k :: Int
k = Int -> DebugLevel
AnotherDebugLevel Int
k
instance P.Ord DebugLevel where
compare :: DebugLevel -> DebugLevel -> Ordering
compare a :: DebugLevel
a b :: DebugLevel
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (DebugLevel -> Int
forall a. Enum a => a -> Int
P.fromEnum DebugLevel
a) (DebugLevel -> Int
forall a. Enum a => a -> Int
P.fromEnum DebugLevel
b)
foreign import ccall "gst_debug_level_get_type" c_gst_debug_level_get_type ::
IO GType
instance BoxedEnum DebugLevel where
boxedEnumType :: DebugLevel -> IO GType
boxedEnumType _ = IO GType
c_gst_debug_level_get_type
data DebugColorMode =
DebugColorModeOff
| DebugColorModeOn
| DebugColorModeUnix
| AnotherDebugColorMode Int
deriving (Int -> DebugColorMode -> ShowS
[DebugColorMode] -> ShowS
DebugColorMode -> String
(Int -> DebugColorMode -> ShowS)
-> (DebugColorMode -> String)
-> ([DebugColorMode] -> ShowS)
-> Show DebugColorMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DebugColorMode] -> ShowS
$cshowList :: [DebugColorMode] -> ShowS
show :: DebugColorMode -> String
$cshow :: DebugColorMode -> String
showsPrec :: Int -> DebugColorMode -> ShowS
$cshowsPrec :: Int -> DebugColorMode -> ShowS
Show, DebugColorMode -> DebugColorMode -> Bool
(DebugColorMode -> DebugColorMode -> Bool)
-> (DebugColorMode -> DebugColorMode -> Bool) -> Eq DebugColorMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DebugColorMode -> DebugColorMode -> Bool
$c/= :: DebugColorMode -> DebugColorMode -> Bool
== :: DebugColorMode -> DebugColorMode -> Bool
$c== :: DebugColorMode -> DebugColorMode -> Bool
Eq)
instance P.Enum DebugColorMode where
fromEnum :: DebugColorMode -> Int
fromEnum DebugColorModeOff = 0
fromEnum DebugColorModeOn = 1
fromEnum DebugColorModeUnix = 2
fromEnum (AnotherDebugColorMode k :: Int
k) = Int
k
toEnum :: Int -> DebugColorMode
toEnum 0 = DebugColorMode
DebugColorModeOff
toEnum 1 = DebugColorMode
DebugColorModeOn
toEnum 2 = DebugColorMode
DebugColorModeUnix
toEnum k :: Int
k = Int -> DebugColorMode
AnotherDebugColorMode Int
k
instance P.Ord DebugColorMode where
compare :: DebugColorMode -> DebugColorMode -> Ordering
compare a :: DebugColorMode
a b :: DebugColorMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (DebugColorMode -> Int
forall a. Enum a => a -> Int
P.fromEnum DebugColorMode
a) (DebugColorMode -> Int
forall a. Enum a => a -> Int
P.fromEnum DebugColorMode
b)
foreign import ccall "gst_debug_color_mode_get_type" c_gst_debug_color_mode_get_type ::
IO GType
instance BoxedEnum DebugColorMode where
boxedEnumType :: DebugColorMode -> IO GType
boxedEnumType _ = IO GType
c_gst_debug_color_mode_get_type
data CoreError =
CoreErrorFailed
| CoreErrorTooLazy
| CoreErrorNotImplemented
| CoreErrorStateChange
| CoreErrorPad
| CoreErrorThread
| CoreErrorNegotiation
| CoreErrorEvent
| CoreErrorSeek
| CoreErrorCaps
| CoreErrorTag
| CoreErrorMissingPlugin
| CoreErrorClock
| CoreErrorDisabled
| CoreErrorNumErrors
| AnotherCoreError Int
deriving (Int -> CoreError -> ShowS
[CoreError] -> ShowS
CoreError -> String
(Int -> CoreError -> ShowS)
-> (CoreError -> String)
-> ([CoreError] -> ShowS)
-> Show CoreError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CoreError] -> ShowS
$cshowList :: [CoreError] -> ShowS
show :: CoreError -> String
$cshow :: CoreError -> String
showsPrec :: Int -> CoreError -> ShowS
$cshowsPrec :: Int -> CoreError -> ShowS
Show, CoreError -> CoreError -> Bool
(CoreError -> CoreError -> Bool)
-> (CoreError -> CoreError -> Bool) -> Eq CoreError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CoreError -> CoreError -> Bool
$c/= :: CoreError -> CoreError -> Bool
== :: CoreError -> CoreError -> Bool
$c== :: CoreError -> CoreError -> Bool
Eq)
instance P.Enum CoreError where
fromEnum :: CoreError -> Int
fromEnum CoreErrorFailed = 1
fromEnum CoreErrorTooLazy = 2
fromEnum CoreErrorNotImplemented = 3
fromEnum CoreErrorStateChange = 4
fromEnum CoreErrorPad = 5
fromEnum CoreErrorThread = 6
fromEnum CoreErrorNegotiation = 7
fromEnum CoreErrorEvent = 8
fromEnum CoreErrorSeek = 9
fromEnum CoreErrorCaps = 10
fromEnum CoreErrorTag = 11
fromEnum CoreErrorMissingPlugin = 12
fromEnum CoreErrorClock = 13
fromEnum CoreErrorDisabled = 14
fromEnum CoreErrorNumErrors = 15
fromEnum (AnotherCoreError k :: Int
k) = Int
k
toEnum :: Int -> CoreError
toEnum 1 = CoreError
CoreErrorFailed
toEnum 2 = CoreError
CoreErrorTooLazy
toEnum 3 = CoreError
CoreErrorNotImplemented
toEnum 4 = CoreError
CoreErrorStateChange
toEnum 5 = CoreError
CoreErrorPad
toEnum 6 = CoreError
CoreErrorThread
toEnum 7 = CoreError
CoreErrorNegotiation
toEnum 8 = CoreError
CoreErrorEvent
toEnum 9 = CoreError
CoreErrorSeek
toEnum 10 = CoreError
CoreErrorCaps
toEnum 11 = CoreError
CoreErrorTag
toEnum 12 = CoreError
CoreErrorMissingPlugin
toEnum 13 = CoreError
CoreErrorClock
toEnum 14 = CoreError
CoreErrorDisabled
toEnum 15 = CoreError
CoreErrorNumErrors
toEnum k :: Int
k = Int -> CoreError
AnotherCoreError Int
k
instance P.Ord CoreError where
compare :: CoreError -> CoreError -> Ordering
compare a :: CoreError
a b :: CoreError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (CoreError -> Int
forall a. Enum a => a -> Int
P.fromEnum CoreError
a) (CoreError -> Int
forall a. Enum a => a -> Int
P.fromEnum CoreError
b)
instance GErrorClass CoreError where
gerrorClassDomain :: CoreError -> Text
gerrorClassDomain _ = "gst-core-error-quark"
catchCoreError ::
IO a ->
(CoreError -> GErrorMessage -> IO a) ->
IO a
catchCoreError :: IO a -> (CoreError -> Text -> IO a) -> IO a
catchCoreError = IO a -> (CoreError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleCoreError ::
(CoreError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleCoreError :: (CoreError -> Text -> IO a) -> IO a -> IO a
handleCoreError = (CoreError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
foreign import ccall "gst_core_error_get_type" c_gst_core_error_get_type ::
IO GType
instance BoxedEnum CoreError where
boxedEnumType :: CoreError -> IO GType
boxedEnumType _ = IO GType
c_gst_core_error_get_type
data ClockType =
ClockTypeRealtime
| ClockTypeMonotonic
| ClockTypeOther
| AnotherClockType Int
deriving (Int -> ClockType -> ShowS
[ClockType] -> ShowS
ClockType -> String
(Int -> ClockType -> ShowS)
-> (ClockType -> String)
-> ([ClockType] -> ShowS)
-> Show ClockType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClockType] -> ShowS
$cshowList :: [ClockType] -> ShowS
show :: ClockType -> String
$cshow :: ClockType -> String
showsPrec :: Int -> ClockType -> ShowS
$cshowsPrec :: Int -> ClockType -> ShowS
Show, ClockType -> ClockType -> Bool
(ClockType -> ClockType -> Bool)
-> (ClockType -> ClockType -> Bool) -> Eq ClockType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClockType -> ClockType -> Bool
$c/= :: ClockType -> ClockType -> Bool
== :: ClockType -> ClockType -> Bool
$c== :: ClockType -> ClockType -> Bool
Eq)
instance P.Enum ClockType where
fromEnum :: ClockType -> Int
fromEnum ClockTypeRealtime = 0
fromEnum ClockTypeMonotonic = 1
fromEnum ClockTypeOther = 2
fromEnum (AnotherClockType k :: Int
k) = Int
k
toEnum :: Int -> ClockType
toEnum 0 = ClockType
ClockTypeRealtime
toEnum 1 = ClockType
ClockTypeMonotonic
toEnum 2 = ClockType
ClockTypeOther
toEnum k :: Int
k = Int -> ClockType
AnotherClockType Int
k
instance P.Ord ClockType where
compare :: ClockType -> ClockType -> Ordering
compare a :: ClockType
a b :: ClockType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ClockType -> Int
forall a. Enum a => a -> Int
P.fromEnum ClockType
a) (ClockType -> Int
forall a. Enum a => a -> Int
P.fromEnum ClockType
b)
foreign import ccall "gst_clock_type_get_type" c_gst_clock_type_get_type ::
IO GType
instance BoxedEnum ClockType where
boxedEnumType :: ClockType -> IO GType
boxedEnumType _ = IO GType
c_gst_clock_type_get_type
data ClockReturn =
ClockReturnOk
| ClockReturnEarly
| ClockReturnUnscheduled
| ClockReturnBusy
| ClockReturnBadtime
| ClockReturnError
| ClockReturnUnsupported
| ClockReturnDone
| AnotherClockReturn Int
deriving (Int -> ClockReturn -> ShowS
[ClockReturn] -> ShowS
ClockReturn -> String
(Int -> ClockReturn -> ShowS)
-> (ClockReturn -> String)
-> ([ClockReturn] -> ShowS)
-> Show ClockReturn
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClockReturn] -> ShowS
$cshowList :: [ClockReturn] -> ShowS
show :: ClockReturn -> String
$cshow :: ClockReturn -> String
showsPrec :: Int -> ClockReturn -> ShowS
$cshowsPrec :: Int -> ClockReturn -> ShowS
Show, ClockReturn -> ClockReturn -> Bool
(ClockReturn -> ClockReturn -> Bool)
-> (ClockReturn -> ClockReturn -> Bool) -> Eq ClockReturn
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClockReturn -> ClockReturn -> Bool
$c/= :: ClockReturn -> ClockReturn -> Bool
== :: ClockReturn -> ClockReturn -> Bool
$c== :: ClockReturn -> ClockReturn -> Bool
Eq)
instance P.Enum ClockReturn where
fromEnum :: ClockReturn -> Int
fromEnum ClockReturnOk = 0
fromEnum ClockReturnEarly = 1
fromEnum ClockReturnUnscheduled = 2
fromEnum ClockReturnBusy = 3
fromEnum ClockReturnBadtime = 4
fromEnum ClockReturnError = 5
fromEnum ClockReturnUnsupported = 6
fromEnum ClockReturnDone = 7
fromEnum (AnotherClockReturn k :: Int
k) = Int
k
toEnum :: Int -> ClockReturn
toEnum 0 = ClockReturn
ClockReturnOk
toEnum 1 = ClockReturn
ClockReturnEarly
toEnum 2 = ClockReturn
ClockReturnUnscheduled
toEnum 3 = ClockReturn
ClockReturnBusy
toEnum 4 = ClockReturn
ClockReturnBadtime
toEnum 5 = ClockReturn
ClockReturnError
toEnum 6 = ClockReturn
ClockReturnUnsupported
toEnum 7 = ClockReturn
ClockReturnDone
toEnum k :: Int
k = Int -> ClockReturn
AnotherClockReturn Int
k
instance P.Ord ClockReturn where
compare :: ClockReturn -> ClockReturn -> Ordering
compare a :: ClockReturn
a b :: ClockReturn
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ClockReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum ClockReturn
a) (ClockReturn -> Int
forall a. Enum a => a -> Int
P.fromEnum ClockReturn
b)
foreign import ccall "gst_clock_return_get_type" c_gst_clock_return_get_type ::
IO GType
instance BoxedEnum ClockReturn where
boxedEnumType :: ClockReturn -> IO GType
boxedEnumType _ = IO GType
c_gst_clock_return_get_type
data ClockEntryType =
ClockEntryTypeSingle
| ClockEntryTypePeriodic
| AnotherClockEntryType Int
deriving (Int -> ClockEntryType -> ShowS
[ClockEntryType] -> ShowS
ClockEntryType -> String
(Int -> ClockEntryType -> ShowS)
-> (ClockEntryType -> String)
-> ([ClockEntryType] -> ShowS)
-> Show ClockEntryType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClockEntryType] -> ShowS
$cshowList :: [ClockEntryType] -> ShowS
show :: ClockEntryType -> String
$cshow :: ClockEntryType -> String
showsPrec :: Int -> ClockEntryType -> ShowS
$cshowsPrec :: Int -> ClockEntryType -> ShowS
Show, ClockEntryType -> ClockEntryType -> Bool
(ClockEntryType -> ClockEntryType -> Bool)
-> (ClockEntryType -> ClockEntryType -> Bool) -> Eq ClockEntryType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClockEntryType -> ClockEntryType -> Bool
$c/= :: ClockEntryType -> ClockEntryType -> Bool
== :: ClockEntryType -> ClockEntryType -> Bool
$c== :: ClockEntryType -> ClockEntryType -> Bool
Eq)
instance P.Enum ClockEntryType where
fromEnum :: ClockEntryType -> Int
fromEnum ClockEntryTypeSingle = 0
fromEnum ClockEntryTypePeriodic = 1
fromEnum (AnotherClockEntryType k :: Int
k) = Int
k
toEnum :: Int -> ClockEntryType
toEnum 0 = ClockEntryType
ClockEntryTypeSingle
toEnum 1 = ClockEntryType
ClockEntryTypePeriodic
toEnum k :: Int
k = Int -> ClockEntryType
AnotherClockEntryType Int
k
instance P.Ord ClockEntryType where
compare :: ClockEntryType -> ClockEntryType -> Ordering
compare a :: ClockEntryType
a b :: ClockEntryType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ClockEntryType -> Int
forall a. Enum a => a -> Int
P.fromEnum ClockEntryType
a) (ClockEntryType -> Int
forall a. Enum a => a -> Int
P.fromEnum ClockEntryType
b)
foreign import ccall "gst_clock_entry_type_get_type" c_gst_clock_entry_type_get_type ::
IO GType
instance BoxedEnum ClockEntryType where
boxedEnumType :: ClockEntryType -> IO GType
boxedEnumType _ = IO GType
c_gst_clock_entry_type_get_type
data CapsIntersectMode =
CapsIntersectModeZigZag
| CapsIntersectModeFirst
| AnotherCapsIntersectMode Int
deriving (Int -> CapsIntersectMode -> ShowS
[CapsIntersectMode] -> ShowS
CapsIntersectMode -> String
(Int -> CapsIntersectMode -> ShowS)
-> (CapsIntersectMode -> String)
-> ([CapsIntersectMode] -> ShowS)
-> Show CapsIntersectMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CapsIntersectMode] -> ShowS
$cshowList :: [CapsIntersectMode] -> ShowS
show :: CapsIntersectMode -> String
$cshow :: CapsIntersectMode -> String
showsPrec :: Int -> CapsIntersectMode -> ShowS
$cshowsPrec :: Int -> CapsIntersectMode -> ShowS
Show, CapsIntersectMode -> CapsIntersectMode -> Bool
(CapsIntersectMode -> CapsIntersectMode -> Bool)
-> (CapsIntersectMode -> CapsIntersectMode -> Bool)
-> Eq CapsIntersectMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CapsIntersectMode -> CapsIntersectMode -> Bool
$c/= :: CapsIntersectMode -> CapsIntersectMode -> Bool
== :: CapsIntersectMode -> CapsIntersectMode -> Bool
$c== :: CapsIntersectMode -> CapsIntersectMode -> Bool
Eq)
instance P.Enum CapsIntersectMode where
fromEnum :: CapsIntersectMode -> Int
fromEnum CapsIntersectModeZigZag = 0
fromEnum CapsIntersectModeFirst = 1
fromEnum (AnotherCapsIntersectMode k :: Int
k) = Int
k
toEnum :: Int -> CapsIntersectMode
toEnum 0 = CapsIntersectMode
CapsIntersectModeZigZag
toEnum 1 = CapsIntersectMode
CapsIntersectModeFirst
toEnum k :: Int
k = Int -> CapsIntersectMode
AnotherCapsIntersectMode Int
k
instance P.Ord CapsIntersectMode where
compare :: CapsIntersectMode -> CapsIntersectMode -> Ordering
compare a :: CapsIntersectMode
a b :: CapsIntersectMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (CapsIntersectMode -> Int
forall a. Enum a => a -> Int
P.fromEnum CapsIntersectMode
a) (CapsIntersectMode -> Int
forall a. Enum a => a -> Int
P.fromEnum CapsIntersectMode
b)
foreign import ccall "gst_caps_intersect_mode_get_type" c_gst_caps_intersect_mode_get_type ::
IO GType
instance BoxedEnum CapsIntersectMode where
boxedEnumType :: CapsIntersectMode -> IO GType
boxedEnumType _ = IO GType
c_gst_caps_intersect_mode_get_type
data BusSyncReply =
BusSyncReplyDrop
| BusSyncReplyPass
| BusSyncReplyAsync
| AnotherBusSyncReply Int
deriving (Int -> BusSyncReply -> ShowS
[BusSyncReply] -> ShowS
BusSyncReply -> String
(Int -> BusSyncReply -> ShowS)
-> (BusSyncReply -> String)
-> ([BusSyncReply] -> ShowS)
-> Show BusSyncReply
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BusSyncReply] -> ShowS
$cshowList :: [BusSyncReply] -> ShowS
show :: BusSyncReply -> String
$cshow :: BusSyncReply -> String
showsPrec :: Int -> BusSyncReply -> ShowS
$cshowsPrec :: Int -> BusSyncReply -> ShowS
Show, BusSyncReply -> BusSyncReply -> Bool
(BusSyncReply -> BusSyncReply -> Bool)
-> (BusSyncReply -> BusSyncReply -> Bool) -> Eq BusSyncReply
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BusSyncReply -> BusSyncReply -> Bool
$c/= :: BusSyncReply -> BusSyncReply -> Bool
== :: BusSyncReply -> BusSyncReply -> Bool
$c== :: BusSyncReply -> BusSyncReply -> Bool
Eq)
instance P.Enum BusSyncReply where
fromEnum :: BusSyncReply -> Int
fromEnum BusSyncReplyDrop = 0
fromEnum BusSyncReplyPass = 1
fromEnum BusSyncReplyAsync = 2
fromEnum (AnotherBusSyncReply k :: Int
k) = Int
k
toEnum :: Int -> BusSyncReply
toEnum 0 = BusSyncReply
BusSyncReplyDrop
toEnum 1 = BusSyncReply
BusSyncReplyPass
toEnum 2 = BusSyncReply
BusSyncReplyAsync
toEnum k :: Int
k = Int -> BusSyncReply
AnotherBusSyncReply Int
k
instance P.Ord BusSyncReply where
compare :: BusSyncReply -> BusSyncReply -> Ordering
compare a :: BusSyncReply
a b :: BusSyncReply
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (BusSyncReply -> Int
forall a. Enum a => a -> Int
P.fromEnum BusSyncReply
a) (BusSyncReply -> Int
forall a. Enum a => a -> Int
P.fromEnum BusSyncReply
b)
foreign import ccall "gst_bus_sync_reply_get_type" c_gst_bus_sync_reply_get_type ::
IO GType
instance BoxedEnum BusSyncReply where
boxedEnumType :: BusSyncReply -> IO GType
boxedEnumType _ = IO GType
c_gst_bus_sync_reply_get_type
data BufferingMode =
BufferingModeStream
| BufferingModeDownload
| BufferingModeTimeshift
| BufferingModeLive
| AnotherBufferingMode Int
deriving (Int -> BufferingMode -> ShowS
[BufferingMode] -> ShowS
BufferingMode -> String
(Int -> BufferingMode -> ShowS)
-> (BufferingMode -> String)
-> ([BufferingMode] -> ShowS)
-> Show BufferingMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BufferingMode] -> ShowS
$cshowList :: [BufferingMode] -> ShowS
show :: BufferingMode -> String
$cshow :: BufferingMode -> String
showsPrec :: Int -> BufferingMode -> ShowS
$cshowsPrec :: Int -> BufferingMode -> ShowS
Show, BufferingMode -> BufferingMode -> Bool
(BufferingMode -> BufferingMode -> Bool)
-> (BufferingMode -> BufferingMode -> Bool) -> Eq BufferingMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BufferingMode -> BufferingMode -> Bool
$c/= :: BufferingMode -> BufferingMode -> Bool
== :: BufferingMode -> BufferingMode -> Bool
$c== :: BufferingMode -> BufferingMode -> Bool
Eq)
instance P.Enum BufferingMode where
fromEnum :: BufferingMode -> Int
fromEnum BufferingModeStream = 0
fromEnum BufferingModeDownload = 1
fromEnum BufferingModeTimeshift = 2
fromEnum BufferingModeLive = 3
fromEnum (AnotherBufferingMode k :: Int
k) = Int
k
toEnum :: Int -> BufferingMode
toEnum 0 = BufferingMode
BufferingModeStream
toEnum 1 = BufferingMode
BufferingModeDownload
toEnum 2 = BufferingMode
BufferingModeTimeshift
toEnum 3 = BufferingMode
BufferingModeLive
toEnum k :: Int
k = Int -> BufferingMode
AnotherBufferingMode Int
k
instance P.Ord BufferingMode where
compare :: BufferingMode -> BufferingMode -> Ordering
compare a :: BufferingMode
a b :: BufferingMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (BufferingMode -> Int
forall a. Enum a => a -> Int
P.fromEnum BufferingMode
a) (BufferingMode -> Int
forall a. Enum a => a -> Int
P.fromEnum BufferingMode
b)
foreign import ccall "gst_buffering_mode_get_type" c_gst_buffering_mode_get_type ::
IO GType
instance BoxedEnum BufferingMode where
boxedEnumType :: BufferingMode -> IO GType
boxedEnumType _ = IO GType
c_gst_buffering_mode_get_type