Adds the logging function to the list of logging functions. Be sure to use #G_GNUC_NO_INSTRUMENT on that function, it is needed.
Adds a memory ringbuffer based debug logger that stores up to max_size_per_thread bytes of logs per thread and times out threads after thread_timeout seconds of inactivity.
To aid debugging applications one can use this method to obtain the whole network of gstreamer elements that form the pipeline into a dot file. This data can be processed with graphviz to get an image.
To aid debugging applications one can use this method to write out the whole network of gstreamer elements that form the pipeline into a dot file. This file can be processed with graphviz to get an image.
This works like gst.global.debugBinToDotFile, but adds the current timestamp to the filename, so that it can be used to take multiple snapshots.
Constructs a string that can be used for getting the desired color in color terminals. You need to free the string after use.
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.
Changes the coloring mode for debug output.
Returns the default threshold that is used for new categories.
Checks if debugging output is activated.
Checks if the debugging output should be colored.
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 user_data.
Returns the string representation for the specified debug log message formatted in the same way as gst.global.debugLogDefault (the default handler), without color. The purpose is to make it easy for custom log output handlers to get a log output that is identical to what the default handler would write out.
Logs the given message using the currently registered debugging handlers.
Logs the given message using the currently registered debugging handlers.
If libunwind, glibc backtrace or DbgHelp are present a stack trace is printed.
Removes all registered instances of the given logging functions.
Removes all registered instances of log functions with the given user data.
Removes any previously added ring buffer logger with gst.global.debugAddRingBufferLogger.
Fetches the current logs per thread from the ring buffer logger. See gst.global.debugAddRingBufferLogger for details.
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.
Changes the coloring mode for debug output.
Changes the coloring mode for debug output.
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.
Sets the default threshold to the given level and updates all categories to use this threshold.
Sets all categories which match the given glob style pattern to the given level.
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.
Resets all categories with the given name back to the default level.
Clean up any resources created by GStreamer in gst.global.init_.
Registers a new #GstDynamicTypeFactory in the registry
Get a string describing the error message in the current locale.
Similar to glib.global.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.
Gets a string representing the given flow return.
Get the unique quark for the given GstFlowReturn.
See if the given format is inside the format array.
This helper is mostly helpful for plugins that need to inspect the folder of the main executable to determine their set of features.
Checks if obj is a #GstCapsFeatures
Use this function to check if GStreamer has been initialized with gst.global.init_ or gst.global.initCheck.
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 gobject.object_class.ObjectClass.installProperty in a GObjects's instance_init function.
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 gobject.object_class.ObjectClass.installProperty in a GObjects's instance_init function.
This is a convenience wrapper around gst.global.parseLaunch to create a #GstBin from a gst-launch-style pipeline description. See gst.global.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).
This is a convenience wrapper around gst.global.parseLaunch to create a #GstBin from a gst-launch-style pipeline description. See gst.global.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).
Create a new pipeline based on command line syntax. Please note that you might get a return value that is not null even though the error is set. In this case there was a recoverable parsing error and you can try to play the pipeline.
Create a new pipeline based on command line syntax. Please note that you might get a return value that is not null even though the error is set. In this case there was a recoverable parsing error and you can try to play the pipeline.
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.
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.
Iterates the supplied list of UUIDs and checks the GstRegistry for all the decryptors supporting one of the supplied UUIDs.
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.
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/enable the SIGSEGV handling of the GStreamer core. See gst.global.segtrapIsEnabled for more information.
Checks if the given type is already registered.
Returns the human-readable description of this tag, You must not change or free this string.
Gets the flag of tag.
Returns the human-readable name of this tag, You must not change or free this string.
Gets the #GType used for this tag.
Checks if the given tag is fixed. A fixed tag can only contain one value. Unfixed tags can contain lists of values.
This is a convenience function for the func argument of gst.global.tagRegister. It concatenates all given strings using a comma. The tag must be registered as a G_TYPE_STRING or this function will fail.
This is a convenience function for the func argument of gst.global.tagRegister. It creates a copy of the first value from the list.
Get a list of all active tracer objects owned by the tracing framework for the entirety of the run-time of the process or till gst.global.deinit is called.
Checks if type is plugin API. See gst.global.typeMarkAsPluginApi for details.
Marks type as plugin API. This should be called in class_init of elements that expose new types (i.e. enums, flags or internal GObjects) via properties, signals or pad templates.
Forces GStreamer to re-scan its plugin paths and update the default plugin registry.
Searches inside array for search_data by using the comparison function search_func. array must be sorted ascending.
Return a max num of log2.
Transforms a #gdouble to a fraction and simplifies the result.
Dumps the buffer memory into a hex representation. Useful for debugging.
Dumps the memory block into a hex representation. Useful for debugging.
Compares the given filenames using natural ordering.
Adds the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
Compares the fractions a_n/a_d and b_n/b_d and returns -1 if a < b, 0 if a = b and 1 if a > b.
Multiplies the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
Transforms a fraction to a #gdouble.
Get a property of type GST_TYPE_ARRAY and transform it into a #GValueArray. This allow language bindings to get GST_TYPE_ARRAY properties which are otherwise not an accessible type.
Get a timestamp as GstClockTime to be used for interval measurements. The timestamp should not be interpreted in any other way.
Calculates the greatest common divisor of a and b.
Calculates the greatest common divisor of a and b.
Return a constantly incrementing group id.
Compare two sequence numbers, handling wraparound.
Return a constantly incrementing sequence number.
Converts the string value to the type of the objects argument and sets the argument with it.
Transfer a #GValueArray 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.
Converts the string to the type of the value and sets the value with it.
Calculates the simpler representation of numerator and denominator and update both values with the resulting simplified fraction.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
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.
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.
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.
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
Determines if value1 and value2 can be compared.
Determines if intersecting two values will produce a valid result. Two values will produce a valid intersection if they have the same type.
Checks if it's possible to subtract subtrahend from minuend.
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.
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.
Tries to deserialize a string into the type specified by the given GValue. If the operation succeeds, true is returned, false otherwise.
Tries to deserialize a string into the type specified by the given GValue. pspec may be used to guide the deserializing of nested members. If the operation succeeds, true is returned, false otherwise.
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.
Multiplies the two #GValue items containing a #GST_TYPE_FRACTION and sets product to the product of the two fractions.
Subtracts the subtrahend from the minuend and sets dest to the result.
Gets the bitmask specified by value.
Gets the contents of value. The reference count of the returned #GstCaps will not be modified, therefore the caller must take one before getting rid of the value.
Gets the contents of value.
Gets the maximum of the range specified by value.
Gets the minimum of the range specified by value.
Retrieve the flags field of a GstFlagSet value.
Retrieve the mask field of a GstFlagSet value.
Gets the denominator of the fraction specified by value.
Gets the numerator of the fraction specified by value.
Gets the maximum of the range specified by value.
Gets the minimum of the range specified by value.
Gets the maximum of the range specified by value.
Gets the minimum of the range specified by value.
Gets the step of the range specified by value.
Gets the maximum of the range specified by value.
Gets the minimum of the range specified by value.
Gets the step of the range specified by value.
Gets the contents of value.
Initialises the target value to be of the same type as source and then copies the contents from source to target.
Calculates the intersection of two values. If the values have a non-empty intersection, the value representing the intersection is placed in dest, unless null. If the intersection is non-empty, dest is not modified.
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.
Check that value1 is a subset of value2.
Registers functions to perform calculations on #GValue items of a given type. Each type can only be added once.
tries to transform the given value into a string representation that allows getting back this string later on using gst.global.valueDeserialize.
Sets value to the bitmask specified by bitmask.
Sets the contents of value to caps. A reference to the provided caps will be taken by the value.
Sets the contents of value to features.
Sets value to the range specified by start and end.
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"
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.
Sets value to the range specified by start and end.
Sets value to the range specified by numerator_start/denominator_start and numerator_end/denominator_end.
Sets value to the range specified by start and end.
Sets value to the range specified by start, end and step.
Sets value to the range specified by start and end.
Sets value to the range specified by start, end and step.
Sets the contents of value to structure.
Subtracts subtrahend from minuend and stores the result in dest. Note that this means subtraction as in sets, not as in mathematics.
Creates a GValue corresponding to the union of value1 and value2.
This function returns a string that is useful for describing this version of GStreamer to the outside world: user agent strings, logging, ...
Gets the version number of the GStreamer library.