Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
- Methods
- debugAddLogFunction
- debugAddRingBufferLogger
- debugBinToDotData
- debugBinToDotFile
- debugBinToDotFileWithTs
- debugConstructTermColor
- debugConstructWinColor
- debugGetAllCategories
- debugGetColorMode
- debugGetDefaultThreshold
- debugGetStackTrace
- debugIsActive
- debugIsColored
- debugLogDefault
- debugPrintStackTrace
- debugRemoveLogFunction
- debugRemoveLogFunctionByData
- debugRemoveRingBufferLogger
- debugRingBufferLoggerGetLogs
- debugSetActive
- debugSetColorMode
- debugSetColorModeFromString
- debugSetColored
- debugSetDefaultThreshold
- debugSetThresholdForName
- debugSetThresholdFromString
- debugUnsetThresholdForName
- deinit
- dynamicTypeRegister
- errorGetMessage
- filenameToUri
- flowGetName
- flowToQuark
- formatsContains
- getMainExecutablePath
- init
- initCheck
- isCapsFeatures
- isInitialized
- paramSpecArray
- paramSpecFraction
- parentBufferMetaApiGetType
- parseBinFromDescription
- parseBinFromDescriptionFull
- parseLaunch
- parseLaunchFull
- parseLaunchv
- parseLaunchvFull
- protectionFilterSystemsByAvailableDecryptors
- protectionMetaApiGetType
- protectionSelectSystem
- referenceTimestampMetaApiGetType
- segtrapIsEnabled
- segtrapSetEnabled
- staticCapsGetType
- staticPadTemplateGetType
- tagExists
- tagGetDescription
- tagGetFlag
- tagGetNick
- tagGetType
- tagIsFixed
- tagMergeStringsWithComma
- tagMergeUseFirst
- typeFindGetType
- updateRegistry
- utilArrayBinarySearch
- utilDoubleToFraction
- utilDumpBuffer
- utilDumpMem
- utilFractionAdd
- utilFractionCompare
- utilFractionMultiply
- utilFractionToDouble
- utilGdoubleToGuint64
- utilGetObjectArray
- utilGetTimestamp
- utilGreatestCommonDivisor
- utilGreatestCommonDivisorInt64
- utilGroupIdNext
- utilGuint64ToGdouble
- utilSeqnumCompare
- utilSeqnumNext
- utilSetObjectArg
- utilSetObjectArray
- utilSetValueFromString
- utilUint64Scale
- utilUint64ScaleCeil
- utilUint64ScaleInt
- utilUint64ScaleIntCeil
- utilUint64ScaleIntRound
- utilUint64ScaleRound
- valueCanCompare
- valueCanIntersect
- valueCanSubtract
- valueCanUnion
- valueCompare
- valueDeserialize
- valueFixate
- valueFractionMultiply
- valueFractionSubtract
- valueGetBitmask
- valueGetCaps
- valueGetCapsFeatures
- valueGetDoubleRangeMax
- valueGetDoubleRangeMin
- valueGetFlagsetFlags
- valueGetFlagsetMask
- valueGetFractionDenominator
- valueGetFractionNumerator
- valueGetFractionRangeMax
- valueGetFractionRangeMin
- valueGetInt64RangeMax
- valueGetInt64RangeMin
- valueGetInt64RangeStep
- valueGetIntRangeMax
- valueGetIntRangeMin
- valueGetIntRangeStep
- valueGetStructure
- valueInitAndCopy
- valueIntersect
- valueIsFixed
- valueIsSubset
- valueRegister
- valueSerialize
- valueSetBitmask
- valueSetCaps
- valueSetCapsFeatures
- valueSetDoubleRange
- valueSetFlagset
- valueSetFraction
- valueSetFractionRange
- valueSetFractionRangeFull
- valueSetInt64Range
- valueSetInt64RangeStep
- valueSetIntRange
- valueSetIntRangeStep
- valueSetStructure
- valueSubtract
- valueUnion
- version
- versionString
Synopsis
- debugAddLogFunction :: (HasCallStack, MonadIO m) => LogFunction -> m ()
- debugAddRingBufferLogger :: (HasCallStack, MonadIO m) => Word32 -> Word32 -> m ()
- debugBinToDotData :: (HasCallStack, MonadIO m, IsBin a) => a -> [DebugGraphDetails] -> m Text
- debugBinToDotFile :: (HasCallStack, MonadIO m, IsBin a) => a -> [DebugGraphDetails] -> [Char] -> m ()
- debugBinToDotFileWithTs :: (HasCallStack, MonadIO m, IsBin a) => a -> [DebugGraphDetails] -> [Char] -> m ()
- debugConstructTermColor :: (HasCallStack, MonadIO m) => Word32 -> m Text
- debugConstructWinColor :: (HasCallStack, MonadIO m) => Word32 -> m Int32
- debugGetAllCategories :: (HasCallStack, MonadIO m) => m [DebugCategory]
- debugGetColorMode :: (HasCallStack, MonadIO m) => m DebugColorMode
- debugGetDefaultThreshold :: (HasCallStack, MonadIO m) => m DebugLevel
- debugGetStackTrace :: (HasCallStack, MonadIO m) => [StackTraceFlags] -> m (Maybe Text)
- debugIsActive :: (HasCallStack, MonadIO m) => m Bool
- debugIsColored :: (HasCallStack, MonadIO m) => m Bool
- debugLogDefault :: (HasCallStack, MonadIO m, IsObject a) => DebugCategory -> DebugLevel -> Text -> Text -> Int32 -> Maybe a -> DebugMessage -> Ptr () -> m ()
- debugPrintStackTrace :: (HasCallStack, MonadIO m) => m ()
- debugRemoveLogFunction :: (HasCallStack, MonadIO m) => Maybe LogFunction -> m Word32
- debugRemoveLogFunctionByData :: (HasCallStack, MonadIO m) => Ptr () -> m Word32
- debugRemoveRingBufferLogger :: (HasCallStack, MonadIO m) => m ()
- debugRingBufferLoggerGetLogs :: (HasCallStack, MonadIO m) => m [Text]
- debugSetActive :: (HasCallStack, MonadIO m) => Bool -> m ()
- debugSetColorMode :: (HasCallStack, MonadIO m) => DebugColorMode -> m ()
- debugSetColorModeFromString :: (HasCallStack, MonadIO m) => Text -> m ()
- debugSetColored :: (HasCallStack, MonadIO m) => Bool -> m ()
- debugSetDefaultThreshold :: (HasCallStack, MonadIO m) => DebugLevel -> m ()
- debugSetThresholdForName :: (HasCallStack, MonadIO m) => Text -> DebugLevel -> m ()
- debugSetThresholdFromString :: (HasCallStack, MonadIO m) => Text -> Bool -> m ()
- debugUnsetThresholdForName :: (HasCallStack, MonadIO m) => Text -> m ()
- deinit :: (HasCallStack, MonadIO m) => m ()
- dynamicTypeRegister :: (HasCallStack, MonadIO m, IsPlugin a) => a -> GType -> m Bool
- errorGetMessage :: (HasCallStack, MonadIO m) => Word32 -> Int32 -> m Text
- filenameToUri :: (HasCallStack, MonadIO m) => [Char] -> m Text
- flowGetName :: (HasCallStack, MonadIO m) => FlowReturn -> m Text
- flowToQuark :: (HasCallStack, MonadIO m) => FlowReturn -> m Word32
- formatsContains :: (HasCallStack, MonadIO m) => [Format] -> Format -> m Bool
- getMainExecutablePath :: (HasCallStack, MonadIO m) => m (Maybe Text)
- init :: (HasCallStack, MonadIO m) => Maybe [Text] -> m (Maybe [Text])
- initCheck :: (HasCallStack, MonadIO m) => Maybe [Text] -> m (Maybe [Text])
- isCapsFeatures :: (HasCallStack, MonadIO m) => Ptr () -> m Bool
- isInitialized :: (HasCallStack, MonadIO m) => m Bool
- paramSpecArray :: (HasCallStack, MonadIO m) => Text -> Text -> Text -> GParamSpec -> [ParamFlags] -> m GParamSpec
- paramSpecFraction :: (HasCallStack, MonadIO m) => Text -> Text -> Text -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> Int32 -> [ParamFlags] -> m (Maybe GParamSpec)
- parentBufferMetaApiGetType :: (HasCallStack, MonadIO m) => m GType
- parseBinFromDescription :: (HasCallStack, MonadIO m) => Text -> Bool -> m (Maybe Bin)
- parseBinFromDescriptionFull :: (HasCallStack, MonadIO m) => Text -> Bool -> Maybe ParseContext -> [ParseFlags] -> m (Maybe Element)
- parseLaunch :: (HasCallStack, MonadIO m) => Text -> m (Maybe Element)
- parseLaunchFull :: (HasCallStack, MonadIO m) => Text -> Maybe ParseContext -> [ParseFlags] -> m (Maybe Element)
- parseLaunchv :: (HasCallStack, MonadIO m) => [Text] -> m (Maybe Element)
- parseLaunchvFull :: (HasCallStack, MonadIO m) => [Text] -> Maybe ParseContext -> [ParseFlags] -> m (Maybe Element)
- protectionFilterSystemsByAvailableDecryptors :: (HasCallStack, MonadIO m) => [Text] -> m (Maybe [Text])
- protectionMetaApiGetType :: (HasCallStack, MonadIO m) => m GType
- protectionSelectSystem :: (HasCallStack, MonadIO m) => [Text] -> m (Maybe Text)
- referenceTimestampMetaApiGetType :: (HasCallStack, MonadIO m) => m GType
- segtrapIsEnabled :: (HasCallStack, MonadIO m) => m Bool
- segtrapSetEnabled :: (HasCallStack, MonadIO m) => Bool -> m ()
- staticCapsGetType :: (HasCallStack, MonadIO m) => m GType
- staticPadTemplateGetType :: (HasCallStack, MonadIO m) => m GType
- tagExists :: (HasCallStack, MonadIO m) => Text -> m Bool
- tagGetDescription :: (HasCallStack, MonadIO m) => Text -> m (Maybe Text)
- tagGetFlag :: (HasCallStack, MonadIO m) => Text -> m TagFlag
- tagGetNick :: (HasCallStack, MonadIO m) => Text -> m (Maybe Text)
- tagGetType :: (HasCallStack, MonadIO m) => Text -> m GType
- tagIsFixed :: (HasCallStack, MonadIO m) => Text -> m Bool
- tagMergeStringsWithComma :: (HasCallStack, MonadIO m) => GValue -> m GValue
- tagMergeUseFirst :: (HasCallStack, MonadIO m) => GValue -> m GValue
- typeFindGetType :: (HasCallStack, MonadIO m) => m GType
- updateRegistry :: (HasCallStack, MonadIO m) => m Bool
- utilArrayBinarySearch :: (HasCallStack, MonadIO m) => Ptr () -> Word32 -> Word64 -> CompareDataFunc -> SearchMode -> Ptr () -> m (Ptr ())
- utilDoubleToFraction :: (HasCallStack, MonadIO m) => Double -> m (Int32, Int32)
- utilDumpBuffer :: (HasCallStack, MonadIO m) => Buffer -> m ()
- utilDumpMem :: (HasCallStack, MonadIO m) => ByteString -> m ()
- utilFractionAdd :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> Int32 -> Int32 -> m (Bool, Int32, Int32)
- utilFractionCompare :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> Int32 -> Int32 -> m Int32
- utilFractionMultiply :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> Int32 -> Int32 -> m (Bool, Int32, Int32)
- utilFractionToDouble :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> m Double
- utilGdoubleToGuint64 :: (HasCallStack, MonadIO m) => Double -> m Word64
- utilGetObjectArray :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> m (Bool, ValueArray)
- utilGetTimestamp :: (HasCallStack, MonadIO m) => m Word64
- utilGreatestCommonDivisor :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> m Int32
- utilGreatestCommonDivisorInt64 :: (HasCallStack, MonadIO m) => Int64 -> Int64 -> m Int64
- utilGroupIdNext :: (HasCallStack, MonadIO m) => m Word32
- utilGuint64ToGdouble :: (HasCallStack, MonadIO m) => Word64 -> m Double
- utilSeqnumCompare :: (HasCallStack, MonadIO m) => Word32 -> Word32 -> m Int32
- utilSeqnumNext :: (HasCallStack, MonadIO m) => m Word32
- utilSetObjectArg :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> Text -> m ()
- utilSetObjectArray :: (HasCallStack, MonadIO m, IsObject a) => a -> Text -> ValueArray -> m Bool
- utilSetValueFromString :: (HasCallStack, MonadIO m) => Text -> m GValue
- utilUint64Scale :: (HasCallStack, MonadIO m) => Word64 -> Word64 -> Word64 -> m Word64
- utilUint64ScaleCeil :: (HasCallStack, MonadIO m) => Word64 -> Word64 -> Word64 -> m Word64
- utilUint64ScaleInt :: (HasCallStack, MonadIO m) => Word64 -> Int32 -> Int32 -> m Word64
- utilUint64ScaleIntCeil :: (HasCallStack, MonadIO m) => Word64 -> Int32 -> Int32 -> m Word64
- utilUint64ScaleIntRound :: (HasCallStack, MonadIO m) => Word64 -> Int32 -> Int32 -> m Word64
- utilUint64ScaleRound :: (HasCallStack, MonadIO m) => Word64 -> Word64 -> Word64 -> m Word64
- valueCanCompare :: (HasCallStack, MonadIO m) => GValue -> GValue -> m Bool
- valueCanIntersect :: (HasCallStack, MonadIO m) => GValue -> GValue -> m Bool
- valueCanSubtract :: (HasCallStack, MonadIO m) => GValue -> GValue -> m Bool
- valueCanUnion :: (HasCallStack, MonadIO m) => GValue -> GValue -> m Bool
- valueCompare :: (HasCallStack, MonadIO m) => GValue -> GValue -> m Int32
- valueDeserialize :: (HasCallStack, MonadIO m) => Text -> m (Bool, GValue)
- valueFixate :: (HasCallStack, MonadIO m) => GValue -> GValue -> m Bool
- valueFractionMultiply :: (HasCallStack, MonadIO m) => GValue -> GValue -> GValue -> m Bool
- valueFractionSubtract :: (HasCallStack, MonadIO m) => GValue -> GValue -> GValue -> m Bool
- valueGetBitmask :: (HasCallStack, MonadIO m) => GValue -> m Word64
- valueGetCaps :: (HasCallStack, MonadIO m) => GValue -> m Caps
- valueGetCapsFeatures :: (HasCallStack, MonadIO m) => GValue -> m CapsFeatures
- valueGetDoubleRangeMax :: (HasCallStack, MonadIO m) => GValue -> m Double
- valueGetDoubleRangeMin :: (HasCallStack, MonadIO m) => GValue -> m Double
- valueGetFlagsetFlags :: (HasCallStack, MonadIO m) => GValue -> m Word32
- valueGetFlagsetMask :: (HasCallStack, MonadIO m) => GValue -> m Word32
- valueGetFractionDenominator :: (HasCallStack, MonadIO m) => GValue -> m Int32
- valueGetFractionNumerator :: (HasCallStack, MonadIO m) => GValue -> m Int32
- valueGetFractionRangeMax :: (HasCallStack, MonadIO m) => GValue -> m (Maybe GValue)
- valueGetFractionRangeMin :: (HasCallStack, MonadIO m) => GValue -> m (Maybe GValue)
- valueGetInt64RangeMax :: (HasCallStack, MonadIO m) => GValue -> m Int64
- valueGetInt64RangeMin :: (HasCallStack, MonadIO m) => GValue -> m Int64
- valueGetInt64RangeStep :: (HasCallStack, MonadIO m) => GValue -> m Int64
- valueGetIntRangeMax :: (HasCallStack, MonadIO m) => GValue -> m Int32
- valueGetIntRangeMin :: (HasCallStack, MonadIO m) => GValue -> m Int32
- valueGetIntRangeStep :: (HasCallStack, MonadIO m) => GValue -> m Int32
- valueGetStructure :: (HasCallStack, MonadIO m) => GValue -> m Structure
- valueInitAndCopy :: (HasCallStack, MonadIO m) => GValue -> m GValue
- valueIntersect :: (HasCallStack, MonadIO m) => GValue -> GValue -> m (Bool, GValue)
- valueIsFixed :: (HasCallStack, MonadIO m) => GValue -> m Bool
- valueIsSubset :: (HasCallStack, MonadIO m) => GValue -> GValue -> m Bool
- valueRegister :: (HasCallStack, MonadIO m) => ValueTable -> m ()
- valueSerialize :: (HasCallStack, MonadIO m) => GValue -> m (Maybe Text)
- valueSetBitmask :: (HasCallStack, MonadIO m) => GValue -> Word64 -> m ()
- valueSetCaps :: (HasCallStack, MonadIO m) => GValue -> Caps -> m ()
- valueSetCapsFeatures :: (HasCallStack, MonadIO m) => GValue -> CapsFeatures -> m ()
- valueSetDoubleRange :: (HasCallStack, MonadIO m) => GValue -> Double -> Double -> m ()
- valueSetFlagset :: (HasCallStack, MonadIO m) => GValue -> Word32 -> Word32 -> m ()
- valueSetFraction :: (HasCallStack, MonadIO m) => GValue -> Int32 -> Int32 -> m ()
- valueSetFractionRange :: (HasCallStack, MonadIO m) => GValue -> GValue -> GValue -> m ()
- valueSetFractionRangeFull :: (HasCallStack, MonadIO m) => GValue -> Int32 -> Int32 -> Int32 -> Int32 -> m ()
- valueSetInt64Range :: (HasCallStack, MonadIO m) => GValue -> Int64 -> Int64 -> m ()
- valueSetInt64RangeStep :: (HasCallStack, MonadIO m) => GValue -> Int64 -> Int64 -> Int64 -> m ()
- valueSetIntRange :: (HasCallStack, MonadIO m) => GValue -> Int32 -> Int32 -> m ()
- valueSetIntRangeStep :: (HasCallStack, MonadIO m) => GValue -> Int32 -> Int32 -> Int32 -> m ()
- valueSetStructure :: (HasCallStack, MonadIO m) => GValue -> Structure -> m ()
- valueSubtract :: (HasCallStack, MonadIO m) => GValue -> GValue -> m (Bool, GValue)
- valueUnion :: (HasCallStack, MonadIO m) => GValue -> GValue -> m (Bool, GValue)
- version :: (HasCallStack, MonadIO m) => m (Word32, Word32, Word32, Word32)
- versionString :: (HasCallStack, MonadIO m) => m Text
Methods
debugAddLogFunction
:: (HasCallStack, MonadIO m) | |
=> LogFunction |
|
-> m () |
Adds the logging function to the list of logging functions.
Be sure to use G_GNUC_NO_INSTRUMENT
on that function, it is needed.
debugAddRingBufferLogger
debugAddRingBufferLogger Source #
:: (HasCallStack, MonadIO m) | |
=> Word32 |
|
-> Word32 |
|
-> m () |
Adds a memory ringbuffer based debug logger that stores up to
maxSizePerThread
bytes of logs per thread and times out threads after
threadTimeout
seconds of inactivity.
Logs can be fetched with debugRingBufferLoggerGetLogs
and the
logger can be removed again with debugRemoveRingBufferLogger
.
Only one logger at a time is possible.
Since: 1.14
debugBinToDotData
:: (HasCallStack, MonadIO m, IsBin a) | |
=> a |
|
-> [DebugGraphDetails] |
|
-> m Text | Returns: a string containing the pipeline in graphviz dot format. |
To aid debugging applications one can use this method to obtain the whole network of gstreamer elements that form the pipeline into an dot file. This data can be processed with graphviz to get an image.
debugBinToDotFile
:: (HasCallStack, MonadIO m, IsBin a) | |
=> a |
|
-> [DebugGraphDetails] |
|
-> [Char] |
|
-> m () |
To aid debugging applications one can use this method to write out the whole network of gstreamer elements that form the pipeline into an dot file. This file can be processed with graphviz to get an image. <informalexample><programlisting> dot -Tpng -oimage.png graph_lowlevel.dot </programlisting></informalexample>
debugBinToDotFileWithTs
debugBinToDotFileWithTs Source #
:: (HasCallStack, MonadIO m, IsBin a) | |
=> a |
|
-> [DebugGraphDetails] |
|
-> [Char] |
|
-> m () |
This works like debugBinToDotFile
, but adds the current timestamp
to the filename, so that it can be used to take multiple snapshots.
debugConstructTermColor
debugConstructTermColor Source #
:: (HasCallStack, MonadIO m) | |
=> Word32 |
|
-> m Text | Returns: a string containing the color definition |
Constructs a string that can be used for getting the desired color in color terminals. You need to free the string after use.
debugConstructWinColor
debugConstructWinColor Source #
:: (HasCallStack, MonadIO m) | |
=> Word32 |
|
-> m Int32 | Returns: an integer containing the color definition |
Constructs an integer that can be used for getting the desired color in windows' terminals (cmd.exe). As there is no mean to underline, we simply ignore this attribute.
This function returns 0 on non-windows machines.
debugGetAllCategories
debugGetAllCategories Source #
:: (HasCallStack, MonadIO m) | |
=> m [DebugCategory] | Returns: the list of debug categories |
Returns a snapshot of a all categories that are currently in use . This list may change anytime. The caller has to free the list after use.
debugGetColorMode
:: (HasCallStack, MonadIO m) | |
=> m DebugColorMode | Returns: see |
Changes the coloring mode for debug output.
Since: 1.2
debugGetDefaultThreshold
debugGetDefaultThreshold Source #
:: (HasCallStack, MonadIO m) | |
=> m DebugLevel | Returns: the default threshold level |
Returns the default threshold that is used for new categories.
debugGetStackTrace
:: (HasCallStack, MonadIO m) | |
=> [StackTraceFlags] |
|
-> m (Maybe Text) | Returns: a stack trace, if libunwind or glibc backtrace are
present, else |
No description available in the introspection data.
Since: 1.12
debugIsActive
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
Checks if debugging output is activated.
debugIsColored
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
Checks if the debugging output should be colored.
debugLogDefault
:: (HasCallStack, MonadIO m, IsObject a) | |
=> DebugCategory |
|
-> DebugLevel |
|
-> Text |
|
-> Text |
|
-> Int32 |
|
-> Maybe a |
|
-> DebugMessage |
|
-> Ptr () |
|
-> m () |
The default logging handler used by GStreamer. Logging functions get called
whenever a macro like GST_DEBUG or similar is used. By default this function
is setup to output the message and additional info to stderr (or the log file
specified via the GST_DEBUG_FILE environment variable) as received via
userData
.
You can add other handlers by using debugAddLogFunction
.
And you can remove this handler by calling
gst_debug_remove_log_function(gst_debug_log_default);
debugPrintStackTrace
debugPrintStackTrace :: (HasCallStack, MonadIO m) => m () Source #
If libunwind, glibc backtrace or DbgHelp are present a stack trace is printed.
debugRemoveLogFunction
debugRemoveLogFunction Source #
:: (HasCallStack, MonadIO m) | |
=> Maybe LogFunction |
|
-> m Word32 | Returns: How many instances of the function were removed |
Removes all registered instances of the given logging functions.
debugRemoveLogFunctionByData
debugRemoveLogFunctionByData Source #
:: (HasCallStack, MonadIO m) | |
=> Ptr () |
|
-> m Word32 | Returns: How many instances of the function were removed |
Removes all registered instances of log functions with the given user data.
debugRemoveRingBufferLogger
debugRemoveRingBufferLogger :: (HasCallStack, MonadIO m) => m () Source #
Removes any previously added ring buffer logger with
debugAddRingBufferLogger
.
Since: 1.14
debugRingBufferLoggerGetLogs
debugRingBufferLoggerGetLogs Source #
:: (HasCallStack, MonadIO m) | |
=> m [Text] | Returns: NULL-terminated array of strings with the debug output per thread |
Fetches the current logs per thread from the ring buffer logger. See
debugAddRingBufferLogger
for details.
Since: 1.14
debugSetActive
:: (HasCallStack, MonadIO m) | |
=> Bool |
|
-> m () |
If activated, debugging messages are sent to the debugging handlers. It makes sense to deactivate it for speed issues. > This function is not threadsafe. It makes sense to only call it during initialization.
debugSetColorMode
:: (HasCallStack, MonadIO m) | |
=> DebugColorMode |
|
-> m () |
debugSetColorModeFromString
debugSetColorModeFromString Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m () |
debugSetColored
:: (HasCallStack, MonadIO m) | |
=> Bool |
|
-> m () |
Sets or unsets the use of coloured debugging output. Same as gst_debug_set_color_mode () with the argument being being GST_DEBUG_COLOR_MODE_ON or GST_DEBUG_COLOR_MODE_OFF.
This function may be called before init
.
debugSetDefaultThreshold
debugSetDefaultThreshold Source #
:: (HasCallStack, MonadIO m) | |
=> DebugLevel |
|
-> m () |
Sets the default threshold to the given level and updates all categories to use this threshold.
This function may be called before init
.
debugSetThresholdForName
debugSetThresholdForName Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> DebugLevel |
|
-> m () |
Sets all categories which match the given glob style pattern to the given level.
debugSetThresholdFromString
debugSetThresholdFromString Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Bool |
|
-> m () |
Sets the debug logging wanted in the same form as with the GST_DEBUG environment variable. You can use wildcards such as '*', but note that the order matters when you use wild cards, e.g. "foosrc:6,*src:3,*:2" sets everything to log level 2.
Since: 1.2
debugUnsetThresholdForName
debugUnsetThresholdForName Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m () |
Resets all categories with the given name back to the default level.
deinit
deinit :: (HasCallStack, MonadIO m) => m () Source #
Clean up any resources created by GStreamer in init
.
It is normally not needed to call this function in a normal application as the resources will automatically be freed when the program terminates. This function is therefore mostly used by testsuites and other memory profiling tools.
After this call GStreamer (including this method) should not be used anymore.
dynamicTypeRegister
dynamicTypeRegister :: (HasCallStack, MonadIO m, IsPlugin a) => a -> GType -> m Bool Source #
No description available in the introspection data.
errorGetMessage
:: (HasCallStack, MonadIO m) | |
=> Word32 |
|
-> Int32 |
|
-> m Text | Returns: a newly allocated string describing the error message (in UTF-8 encoding) |
Get a string describing the error message in the current locale.
filenameToUri
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> m Text | Returns: newly-allocated URI string, or NULL on error. The caller must
free the URI string with |
Similar to filenameToUri
, but attempts to handle relative file paths
as well. Before converting filename
into an URI, it will be prefixed by
the current working directory if it is a relative path, and then the path
will be canonicalised so that it doesn't contain any './' or '../' segments.
On Windows filename
should be in UTF-8 encoding.
flowGetName
:: (HasCallStack, MonadIO m) | |
=> FlowReturn |
|
-> m Text | Returns: a static string with the name of the flow return. |
Gets a string representing the given flow return.
flowToQuark
:: (HasCallStack, MonadIO m) | |
=> FlowReturn |
|
-> m Word32 | Returns: the quark associated with the flow return or 0 if an invalid return was specified. |
Get the unique quark for the given GstFlowReturn.
formatsContains
:: (HasCallStack, MonadIO m) | |
=> [Format] |
|
-> Format |
|
-> m Bool | Returns: |
See if the given format is inside the format array.
getMainExecutablePath
getMainExecutablePath Source #
:: (HasCallStack, MonadIO m) | |
=> m (Maybe Text) | Returns: The path of the executable that
initialized GStreamer, or |
This helper is mostly helpful for plugins that need to inspect the folder of the main executable to determine their set of features.
When a plugin is initialized from the gst-plugin-scanner external process, the returned path will be the same as from the parent process.
Since: 1.14
init
:: (HasCallStack, MonadIO m) | |
=> Maybe [Text] |
|
-> m (Maybe [Text]) |
Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins.
Unless the plugin registry is disabled at compile time, the registry will be
loaded. By default this will also check if the registry cache needs to be
updated and rescan all plugins if needed. See updateRegistry
for
details and section
<link linkend="gst-running">Running GStreamer Applications</link>
for how to disable automatic registry updates.
This function will terminate your program if it was unable to initialize GStreamer for some reason. If you want your program to fall back, use 'GI.Gst.Functions.initCheck' instead.
WARNING: This function does not work in the same way as corresponding functions in other glib-style libraries, such as gtk_init\(\). In particular, unknown command line options cause this function to abort program execution.
initCheck
:: (HasCallStack, MonadIO m) | |
=> Maybe [Text] |
|
-> m (Maybe [Text]) | (Can throw |
Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins.
This function will return False
if GStreamer could not be initialized
for some reason. If you want your program to fail fatally,
use init
instead.
isCapsFeatures
isCapsFeatures :: (HasCallStack, MonadIO m) => Ptr () -> m Bool Source #
No description available in the introspection data.
isInitialized
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
paramSpecArray
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> Text |
|
-> GParamSpec |
|
-> [ParamFlags] |
|
-> m GParamSpec | Returns: a newly created parameter specification |
This function creates a GstArray GParamSpec for use by objects/elements
that want to expose properties of GstArray type. This function is
typically * used in connection with objectClassInstallProperty
in a
GObjects's instance_init function.
Since: 1.14
paramSpecFraction
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> Text |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> [ParamFlags] |
|
-> m (Maybe GParamSpec) | Returns: a newly created parameter specification |
This function creates a fraction GParamSpec for use by objects/elements
that want to expose properties of fraction type. This function is typically
used in connection with objectClassInstallProperty
in a GObjects's
instance_init function.
parentBufferMetaApiGetType
parentBufferMetaApiGetType :: (HasCallStack, MonadIO m) => m GType Source #
No description available in the introspection data.
parseBinFromDescription
parseBinFromDescription Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Bool |
|
-> m (Maybe Bin) | Returns: a
newly-created bin, or |
This is a convenience wrapper around parseLaunch
to create a
Bin
from a gst-launch-style pipeline description. See
parseLaunch
and the gst-launch man page for details about the
syntax. Ghost pads on the bin for unlinked source or sink pads
within the bin can automatically be created (but only a maximum of
one ghost pad for each direction will be created; if you expect
multiple unlinked source pads or multiple unlinked sink pads
and want them all ghosted, you will have to create the ghost pads
yourself).
parseBinFromDescriptionFull
parseBinFromDescriptionFull Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Bool |
|
-> Maybe ParseContext |
|
-> [ParseFlags] |
|
-> m (Maybe Element) | Returns: a newly-created
element, which is guaranteed to be a bin unless
GST_FLAG_NO_SINGLE_ELEMENT_BINS was passed, or |
This is a convenience wrapper around parseLaunch
to create a
Bin
from a gst-launch-style pipeline description. See
parseLaunch
and the gst-launch man page for details about the
syntax. Ghost pads on the bin for unlinked source or sink pads
within the bin can automatically be created (but only a maximum of
one ghost pad for each direction will be created; if you expect
multiple unlinked source pads or multiple unlinked sink pads
and want them all ghosted, you will have to create the ghost pads
yourself).
parseLaunch
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe Element) | Returns: a new element on success, |
Create a new pipeline based on command line syntax.
Please note that you might get a return value that is not Nothing
even though
the error
is set. In this case there was a recoverable parsing error and you
can try to play the pipeline.
parseLaunchFull
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Maybe ParseContext |
|
-> [ParseFlags] |
|
-> m (Maybe Element) | Returns: a new element on success, |
Create a new pipeline based on command line syntax.
Please note that you might get a return value that is not Nothing
even though
the error
is set. In this case there was a recoverable parsing error and you
can try to play the pipeline.
parseLaunchv
:: (HasCallStack, MonadIO m) | |
=> [Text] |
|
-> m (Maybe Element) | Returns: a new element on success and |
Create a new element based on command line syntax.
error
will contain an error message if an erroneous pipeline is specified.
An error does not mean that the pipeline could not be constructed.
parseLaunchvFull
:: (HasCallStack, MonadIO m) | |
=> [Text] |
|
-> Maybe ParseContext |
|
-> [ParseFlags] |
|
-> m (Maybe Element) | Returns: a new element on success; on
failure, either |
Create a new element based on command line syntax.
error
will contain an error message if an erroneous pipeline is specified.
An error does not mean that the pipeline could not be constructed.
protectionFilterSystemsByAvailableDecryptors
protectionFilterSystemsByAvailableDecryptors Source #
:: (HasCallStack, MonadIO m) | |
=> [Text] |
|
-> m (Maybe [Text]) | Returns:
A null terminated array containing all
the |
Iterates the supplied list of UUIDs and checks the GstRegistry for all the decryptors supporting one of the supplied UUIDs.
Since: 1.14
protectionMetaApiGetType
protectionMetaApiGetType :: (HasCallStack, MonadIO m) => m GType Source #
No description available in the introspection data.
protectionSelectSystem
protectionSelectSystem Source #
:: (HasCallStack, MonadIO m) | |
=> [Text] |
|
-> m (Maybe Text) | Returns: One of the strings from
|
Iterates the supplied list of UUIDs and checks the GstRegistry for an element that supports one of the supplied UUIDs. If more than one element matches, the system ID of the highest ranked element is selected.
Since: 1.6
referenceTimestampMetaApiGetType
referenceTimestampMetaApiGetType :: (HasCallStack, MonadIO m) => m GType Source #
No description available in the introspection data.
segtrapIsEnabled
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
Some functions in the GStreamer core might install a custom SIGSEGV handler to better catch and report errors to the application. Currently this feature is enabled by default when loading plugins.
Applications might want to disable this behaviour with the
segtrapSetEnabled
function. This is typically done if the application
wants to install its own handler without GStreamer interfering.
segtrapSetEnabled
:: (HasCallStack, MonadIO m) | |
=> Bool |
|
-> m () |
Applications might want to disable/enable the SIGSEGV handling of
the GStreamer core. See segtrapIsEnabled
for more information.
staticCapsGetType
staticCapsGetType :: (HasCallStack, MonadIO m) => m GType Source #
No description available in the introspection data.
staticPadTemplateGetType
staticPadTemplateGetType :: (HasCallStack, MonadIO m) => m GType Source #
No description available in the introspection data.
tagExists
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m Bool | Returns: |
Checks if the given type is already registered.
tagGetDescription
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe Text) | Returns: the human-readable description of this tag |
Returns the human-readable description of this tag, You must not change or free this string.
tagGetFlag
Gets the flag of tag
.
tagGetNick
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe Text) | Returns: the human-readable name of this tag |
Returns the human-readable name of this tag, You must not change or free this string.
tagGetType
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m GType | Returns: the |
Gets the GType
used for this tag.
tagIsFixed
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m Bool | Returns: |
Checks if the given tag is fixed. A fixed tag can only contain one value. Unfixed tags can contain lists of values.
tagMergeStringsWithComma
tagMergeStringsWithComma Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m GValue |
This is a convenience function for the func argument of gst_tag_register()
.
It concatenates all given strings using a comma. The tag must be registered
as a G_TYPE_STRING or this function will fail.
tagMergeUseFirst
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m GValue |
This is a convenience function for the func argument of gst_tag_register()
.
It creates a copy of the first value from the list.
typeFindGetType
typeFindGetType :: (HasCallStack, MonadIO m) => m GType Source #
No description available in the introspection data.
updateRegistry
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
Forces GStreamer to re-scan its plugin paths and update the default plugin registry.
Applications will almost never need to call this function, it is only
useful if the application knows new plugins have been installed (or old
ones removed) since the start of the application (or, to be precise, the
first call to init
) and the application wants to make use of any
newly-installed plugins without restarting the application.
Applications should assume that the registry update is neither atomic nor thread-safe and should therefore not have any dynamic pipelines running (including the playbin and decodebin elements) and should also not create any elements or access the GStreamer registry while the update is in progress.
Note that this function may block for a significant amount of time.
utilArrayBinarySearch
utilArrayBinarySearch Source #
:: (HasCallStack, MonadIO m) | |
=> Ptr () |
|
-> Word32 |
|
-> Word64 |
|
-> CompareDataFunc |
|
-> SearchMode |
|
-> Ptr () |
|
-> m (Ptr ()) | Returns: The address of the found
element or |
Searches inside array
for searchData
by using the comparison function
searchFunc
. array
must be sorted ascending.
As searchData
is always passed as second argument to searchFunc
it's
not required that searchData
has the same type as the array elements.
The complexity of this search function is O(log (num_elements)).
utilDoubleToFraction
:: (HasCallStack, MonadIO m) | |
=> Double |
|
-> m (Int32, Int32) |
Transforms a gdouble
to a fraction and simplifies
the result.
utilDumpBuffer
Dumps the buffer memory into a hex representation. Useful for debugging.
Since: 1.14
utilDumpMem
:: (HasCallStack, MonadIO m) | |
=> ByteString |
|
-> m () |
Dumps the memory block into a hex representation. Useful for debugging.
utilFractionAdd
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m (Bool, Int32, Int32) | Returns: |
Adds the fractions aN
/aD
and bN
/bD
and stores
the result in resN
and resD
.
utilFractionCompare
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: -1 if a < b; 0 if a = b; 1 if a > b. |
Compares the fractions aN
/aD
and bN
/bD
and returns
-1 if a < b, 0 if a = b and 1 if a > b.
utilFractionMultiply
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m (Bool, Int32, Int32) | Returns: |
Multiplies the fractions aN
/aD
and bN
/bD
and stores
the result in resN
and resD
.
utilFractionToDouble
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> m Double |
Transforms a fraction to a gdouble
.
utilGdoubleToGuint64
utilGdoubleToGuint64 :: (HasCallStack, MonadIO m) => Double -> m Word64 Source #
No description available in the introspection data.
utilGetObjectArray
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Text |
|
-> m (Bool, ValueArray) |
Get a property of type GST_TYPE_ARRAY
and transform it into a
ValueArray
. This allow language bindings to get GST_TYPE_ARRAY
properties which are otherwise not an accessible type.
Since: 1.12
utilGetTimestamp
:: (HasCallStack, MonadIO m) | |
=> m Word64 | Returns: the timestamp |
Get a timestamp as GstClockTime to be used for interval measurements. The timestamp should not be interpreted in any other way.
utilGreatestCommonDivisor
utilGreatestCommonDivisor Source #
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: Greatest common divisor of |
Calculates the greatest common divisor of a
and b
.
utilGreatestCommonDivisorInt64
utilGreatestCommonDivisorInt64 Source #
:: (HasCallStack, MonadIO m) | |
=> Int64 |
|
-> Int64 |
|
-> m Int64 | Returns: Greatest common divisor of |
Calculates the greatest common divisor of a
and b
.
utilGroupIdNext
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: A constantly incrementing unsigned integer, which might overflow back to 0 at some point. |
Return a constantly incrementing group id.
This function is used to generate a new group-id for the stream-start event.
This function never returns GROUP_ID_INVALID
(which is 0)
utilGuint64ToGdouble
utilGuint64ToGdouble :: (HasCallStack, MonadIO m) => Word64 -> m Double Source #
No description available in the introspection data.
utilSeqnumCompare
:: (HasCallStack, MonadIO m) | |
=> Word32 |
|
-> Word32 |
|
-> m Int32 | Returns: A negative number if |
Compare two sequence numbers, handling wraparound.
The current implementation just returns (gint32)(s1
- s2
).
utilSeqnumNext
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: A constantly incrementing 32-bit unsigned integer, which might
overflow at some point. Use |
Return a constantly incrementing sequence number.
This function is used internally to GStreamer to be able to determine which events and messages are "the same". For example, elements may set the seqnum on a segment-done message to be the same as that of the last seek event, to indicate that event and the message correspond to the same segment.
This function never returns SEQNUM_INVALID
(which is 0).
utilSetObjectArg
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m () |
Converts the string value to the type of the objects argument and sets the argument with it.
Note that this function silently returns if object
has no property named
name
or when value
cannot be converted to the type of the property.
utilSetObjectArray
:: (HasCallStack, MonadIO m, IsObject a) | |
=> a |
|
-> Text |
|
-> ValueArray |
|
-> m Bool |
Transfer a ValueArray
to GST_TYPE_ARRAY
and set this value on the
specified property name. This allow language bindings to set GST_TYPE_ARRAY
properties which are otherwise not an accessible type.
Since: 1.12
utilSetValueFromString
utilSetValueFromString Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m GValue |
Converts the string to the type of the value and sets the value with it.
Note that this function is dangerous as it does not return any indication if the conversion worked or not.
utilUint64Scale
:: (HasCallStack, MonadIO m) | |
=> Word64 |
|
-> Word64 |
|
-> Word64 |
|
-> m Word64 | Returns: |
Scale val
by the rational number num
/ denom
, avoiding overflows and
underflows and without loss of precision.
This function can potentially be very slow if val and num are both greater than G_MAXUINT32.
utilUint64ScaleCeil
:: (HasCallStack, MonadIO m) | |
=> Word64 |
|
-> Word64 |
|
-> Word64 |
|
-> m Word64 | Returns: |
Scale val
by the rational number num
/ denom
, avoiding overflows and
underflows and without loss of precision.
This function can potentially be very slow if val and num are both greater than G_MAXUINT32.
utilUint64ScaleInt
:: (HasCallStack, MonadIO m) | |
=> Word64 |
|
-> Int32 |
|
-> Int32 |
|
-> m Word64 | Returns: |
Scale val
by the rational number num
/ denom
, avoiding overflows and
underflows and without loss of precision. num
must be non-negative and
denom
must be positive.
utilUint64ScaleIntCeil
utilUint64ScaleIntCeil Source #
:: (HasCallStack, MonadIO m) | |
=> Word64 |
|
-> Int32 |
|
-> Int32 |
|
-> m Word64 | Returns: |
Scale val
by the rational number num
/ denom
, avoiding overflows and
underflows and without loss of precision. num
must be non-negative and
denom
must be positive.
utilUint64ScaleIntRound
utilUint64ScaleIntRound Source #
:: (HasCallStack, MonadIO m) | |
=> Word64 |
|
-> Int32 |
|
-> Int32 |
|
-> m Word64 | Returns: |
Scale val
by the rational number num
/ denom
, avoiding overflows and
underflows and without loss of precision. num
must be non-negative and
denom
must be positive.
utilUint64ScaleRound
:: (HasCallStack, MonadIO m) | |
=> Word64 |
|
-> Word64 |
|
-> Word64 |
|
-> m Word64 | Returns: |
Scale val
by the rational number num
/ denom
, avoiding overflows and
underflows and without loss of precision.
This function can potentially be very slow if val and num are both greater than G_MAXUINT32.
valueCanCompare
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Determines if value1
and value2
can be compared.
valueCanIntersect
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Determines if intersecting two values will produce a valid result. Two values will produce a valid intersection if they have the same type.
valueCanSubtract
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Checks if it's possible to subtract subtrahend
from minuend
.
valueCanUnion
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Determines if value1
and value2
can be non-trivially unioned.
Any two values can be trivially unioned by adding both of them
to a GstValueList. However, certain types have the possibility
to be unioned in a simpler way. For example, an integer range
and an integer can be unioned if the integer is a subset of the
integer range. If there is the possibility that two values can
be unioned, this function returns True
.
valueCompare
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m Int32 | Returns: comparison result |
Compares value1
and value2
. If value1
and value2
cannot be
compared, the function returns GST_VALUE_UNORDERED. Otherwise,
if value1
is greater than value2
, GST_VALUE_GREATER_THAN is returned.
If value1
is less than value2
, GST_VALUE_LESS_THAN is returned.
If the values are equal, GST_VALUE_EQUAL is returned.
valueDeserialize
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Bool, GValue) | Returns: |
Tries to deserialize a string into the type specified by the given GValue.
If the operation succeeds, True
is returned, False
otherwise.
valueFixate
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Fixate src
into a new value dest
.
For ranges, the first element is taken. For lists and arrays, the
first item is fixated and returned.
If src
is already fixed, this function returns False
.
valueFractionMultiply
valueFractionMultiply Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Multiplies the two Value
items containing a GST_TYPE_FRACTION
and sets
product
to the product of the two fractions.
valueFractionSubtract
valueFractionSubtract Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Subtracts the subtrahend
from the minuend
and sets dest
to the result.
valueGetBitmask
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Word64 | Returns: the bitmask. |
Gets the bitmask specified by value
.
valueGetCaps
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Caps | Returns: the contents of |
Gets the contents of value
. The reference count of the returned
Caps
will not be modified, therefore the caller must take one
before getting rid of the value
.
valueGetCapsFeatures
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m CapsFeatures | Returns: the contents of |
Gets the contents of value
.
valueGetDoubleRangeMax
valueGetDoubleRangeMax Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Double | Returns: the maximum of the range |
Gets the maximum of the range specified by value
.
valueGetDoubleRangeMin
valueGetDoubleRangeMin Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Double | Returns: the minimum of the range |
Gets the minimum of the range specified by value
.
valueGetFlagsetFlags
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Word32 | Returns: the flags field of the flagset instance. |
Retrieve the flags field of a GstFlagSet value
.
Since: 1.6
valueGetFlagsetMask
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Word32 | Returns: the mask field of the flagset instance. |
Retrieve the mask field of a GstFlagSet value
.
Since: 1.6
valueGetFractionDenominator
valueGetFractionDenominator Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int32 | Returns: the denominator of the fraction. |
Gets the denominator of the fraction specified by value
.
valueGetFractionNumerator
valueGetFractionNumerator Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int32 | Returns: the numerator of the fraction. |
Gets the numerator of the fraction specified by value
.
valueGetFractionRangeMax
valueGetFractionRangeMax Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m (Maybe GValue) | Returns: the maximum of the range |
Gets the maximum of the range specified by value
.
valueGetFractionRangeMin
valueGetFractionRangeMin Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m (Maybe GValue) | Returns: the minimum of the range |
Gets the minimum of the range specified by value
.
valueGetInt64RangeMax
valueGetInt64RangeMax Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int64 | Returns: the maximum of the range |
Gets the maximum of the range specified by value
.
valueGetInt64RangeMin
valueGetInt64RangeMin Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int64 | Returns: the minimum of the range |
Gets the minimum of the range specified by value
.
valueGetInt64RangeStep
valueGetInt64RangeStep Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int64 | Returns: the step of the range |
Gets the step of the range specified by value
.
valueGetIntRangeMax
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int32 | Returns: the maximum of the range |
Gets the maximum of the range specified by value
.
valueGetIntRangeMin
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int32 | Returns: the minimum of the range |
Gets the minimum of the range specified by value
.
valueGetIntRangeStep
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Int32 | Returns: the step of the range |
Gets the step of the range specified by value
.
valueGetStructure
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Structure | Returns: the contents of |
Gets the contents of value
.
valueInitAndCopy
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m GValue |
Initialises the target value to be of the same type as source and then copies the contents from source to target.
valueIntersect
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m (Bool, GValue) | Returns: |
Calculates the intersection of two values. If the values have
a non-empty intersection, the value representing the intersection
is placed in dest
, unless Nothing
. If the intersection is non-empty,
dest
is not modified.
valueIsFixed
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m Bool | Returns: true if the value is "fixed". |
Tests if the given GValue, if available in a GstStructure (or any other container) contains a "fixed" (which means: one value) or an "unfixed" (which means: multiple possible values, such as data lists or data ranges) value.
valueIsSubset
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m Bool | Returns: |
Check that value1
is a subset of value2
.
valueRegister
:: (HasCallStack, MonadIO m) | |
=> ValueTable |
|
-> m () |
Registers functions to perform calculations on Value
items of a given
type. Each type can only be added once.
valueSerialize
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m (Maybe Text) | Returns: the serialization for |
tries to transform the given value
into a string representation that allows
getting back this string later on using valueDeserialize
.
Free-function: g_free
valueSetBitmask
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Word64 |
|
-> m () |
Sets value
to the bitmask specified by bitmask
.
valueSetCaps
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Caps |
|
-> m () |
Sets the contents of value
to caps
. A reference to the
provided caps
will be taken by the value
.
valueSetCapsFeatures
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> CapsFeatures |
|
-> m () |
Sets the contents of value
to features
.
valueSetDoubleRange
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Double |
|
-> Double |
|
-> m () |
Sets value
to the range specified by start
and end
.
valueSetFlagset
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Word32 |
|
-> Word32 |
|
-> m () |
Sets value
to the flags and mask values provided in flags
and mask
.
The flags
value indicates the values of flags, the mask
represents
which bits in the flag value have been set, and which are "don't care"
Since: 1.6
valueSetFraction
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Sets value
to the fraction specified by numerator
over denominator
.
The fraction gets reduced to the smallest numerator and denominator,
and if necessary the sign is moved to the numerator.
valueSetFractionRange
valueSetFractionRange Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> GValue |
|
-> m () |
Sets value
to the range specified by start
and end
.
valueSetFractionRangeFull
valueSetFractionRangeFull Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Sets value
to the range specified by numeratorStart
/denominatorStart
and numeratorEnd
/denominatorEnd
.
valueSetInt64Range
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Int64 |
|
-> Int64 |
|
-> m () |
Sets value
to the range specified by start
and end
.
valueSetInt64RangeStep
valueSetInt64RangeStep Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Int64 |
|
-> Int64 |
|
-> Int64 |
|
-> m () |
Sets value
to the range specified by start
, end
and step
.
valueSetIntRange
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Sets value
to the range specified by start
and end
.
valueSetIntRangeStep
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Sets value
to the range specified by start
, end
and step
.
valueSetStructure
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> Structure |
|
-> m () |
Sets the contents of value
to structure
.
valueSubtract
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m (Bool, GValue) | Returns: |
Subtracts subtrahend
from minuend
and stores the result in dest
.
Note that this means subtraction as in sets, not as in mathematics.
valueUnion
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> GValue |
|
-> m (Bool, GValue) | Returns: |
Creates a GValue corresponding to the union of value1
and value2
.
version
version :: (HasCallStack, MonadIO m) => m (Word32, Word32, Word32, Word32) Source #
Gets the version number of the GStreamer library.
versionString
:: (HasCallStack, MonadIO m) | |
=> m Text | Returns: a newly allocated string describing this version of GStreamer. |
This function returns a string that is useful for describing this version of GStreamer to the outside world: user agent strings, logging, ...