gstreamer-1.0
Description:
Powerful framework for creating multimedia applications. Supports both Audio and Video.
- Home: https://gstreamer.freedesktop.org/
- C-Documentation: https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
- Devhelp-Package download
- Example listing
Content:
Namespaces:
- Gst
- ChildProxy - This interface abstracts handling of property sets for elements with children.
- Preset - This interface offers methods to query and manipulate parameter preset sets.
- TagSetter - Element interface that allows setting of media metadata.
- TocSetter - Element interface that allows setting of the TOC.
- URIHandler - The URIHandler is an interface that is implemented by Source and Sink Element to unify handling of URI.
- AllocationParams - Parameters to control the allocation of memory
- Allocator - Memory is usually created by allocators with a alloc method call.
- AtomicQueue - The AtomicQueue object implements a queue that can be used from multiple threads without performing any blocking operations.
- Bin - Bin is an element that can contain other Element, allowing them to be managed as a group.
- Bitmask - A fundamental type that describes a 64-bit bitmask
- Buffer - Buffers are the basic unit of data transfer in GStreamer.
- BufferList - Buffer lists are an object containing a list of buffers.
- BufferPool - A BufferPool is an object that can be used to pre-allocate and recycle buffers of the same size and with the same properties.
- Bus - The Bus is an object responsible for delivering Message packets in a first-in first-out way from the streaming threads (see Task) to the application.
- Caps - Caps (capabilities) are lightweight refcounted objects describing media types.
- CapsFeatures - CapsFeatures can optionally be set on a Caps to add requirements for additional features for a specific Structure.
- Clock - GStreamer uses a global clock to synchronize the plugins in a pipeline.
- Context - Context is a container object used to store contexts like a device context, a display server connection and similar concepts that should be shared between multiple elements.
- ControlBinding - A base class for value mapping objects that attaches control sources to Object properties.
- ControlSource - The ControlSource is a base class for control value sources that could be used to get timestamp-value pairs.
- DateTime - Struct to store date, time and timezone information altogether.
- DebugMessage
- Device - Device are objects representing a device, they contain relevant metadata about the device, such as its class and the Caps representing the media types it can produce or handle.
- DeviceMonitor - Applications should create a DeviceMonitor when they want to probe, list and monitor devices of a specific type.
- DeviceProvider - A DeviceProvider subclass is provided by a plugin that handles devices if there is a way to programmatically list connected devices.
- DeviceProviderFactory - DeviceProviderFactory is used to create instances of device providers.
- DoubleRange - A fundamental type that describes a double range
- DynamicTypeFactory - DynamicTypeFactory is used to represent a type that can be automatically loaded the first time it is used.
- Element - GstElement is the abstract base class needed to construct an element that can be used in a GStreamer pipeline.
- ElementFactory - ElementFactory is used to create instances of elements.
- Event - The event class provides factory methods to construct events for sending and functions to query (parse) received events.
- FlagSet - A fundamental type that describes a 32-bit flag bitfield, with 32-bit mask indicating which of the bits in the field are explicitly set.
- Fraction - A fundamental type that describes a fraction of an integer numerator over an integer denominator
- FractionRange - A fundamental type that describes a FractionRange range
- GhostPad - GhostPads are useful when organizing pipelines with Bin like elements.
- Int64Range - A fundamental type that describes a int64 range
- IntRange - A fundamental type that describes a int range
- Iterator - A GstIterator is used to retrieve multiple objects from another object in a threadsafe way.
- Memory - GstMemory is a lightweight refcounted object that wraps a region of memory.
- Message - Messages are implemented as a subclass of MiniObject with a generic Structure as the content.
- MiniObject - MiniObject is a simple structure that can be used to implement refcounted types.
- Object - Object provides a root for the object hierarchy tree filed in by the GStreamer library.
- Pad - A Element is linked to other elements via "pads", which are extremely light-weight generic link points.
- PadTemplate - Padtemplates describe the possible media types a pad or an elementfactory can handle.
- ParamArray - A fundamental type that describes a ParamSpec for arrays of values
- ParamFraction - A fundamental type that describes a ParamSpec for fractional properties
- ParseContext - Opaque structure.
- Pipeline - A Pipeline is a special Bin used as the toplevel container for the filter graph.
- Plugin - GStreamer is extensible, so Element instances can be loaded at runtime.
- PluginFeature - This is a base class for anything that can be added to a Plugin.
- Poll - A Poll keeps
track of file descriptors much like fd_set (used with
select
) or a struct pollfd array (used withpoll
). - Promise - The Promise object implements the container for values that may be available later.
- ProxyPad
- Query - Queries can be performed on pads (gst_pad_query()) and elements (gst_element_query()).
- Registry - One registry holds the metadata of a set of plugins.
- Sample - A Sample is a small object containing data, a type, timing and extra arbitrary information.
- Segment - This helper structure holds the relevant values for tracking the region of interest in a media file, called a segment.
- SharedTaskPool - The SharedTaskPool object.
- Stream - A high-level object representing a single stream.
- StreamCollection - A collection of Stream that are available.
- Structure - A Structure is a collection of key/value pairs.
- SystemClock - The GStreamer core provides a GstSystemClock based on the system time.
- TagList - List of tags and values used to describe media metadata.
- Task - Task is used by Element and Pad to provide the data passing threads in a Pipeline.
- TaskPool - This object provides an abstraction for creating threads.
- Toc - Toc functions are used to create/free Toc and TocEntry structures.
- TocEntry
- Tracer - Tracing modules will subclass Tracer and register through register.
- TracerFactory - Use get_list to get a list of tracer factories known to GStreamer.
- TracerRecord - Tracing modules will create instances of this class to announce the data they will log and create a log formatter.
- TypeFindFactory - These functions allow querying information about registered typefind functions.
- Uri - A Uri object can be used to parse and split a URI string into its constituent parts.
- ValueArray - A fundamental type that describes an ordered list of Value
- ValueList - A fundamental type that describes an unordered list of Value
- BufferPoolAcquireParams - Parameters passed to the acquire_buffer function to control the allocation of the buffer.
- ClockEntry - All pending timeouts or periodic notifies are converted into an entry.
- ClockID - A datatype to hold the handle to an outstanding sync or async clock callback.
- ClockTime - A datatype to hold a time, measured in nanoseconds.
- ClockTimeDiff - A datatype to hold a time difference, measured in nanoseconds.
- CustomMeta - Simple typing wrapper around Meta
- DebugCategory - This is the struct that describes the categories.
- ElementFactoryListType - A type defining the type of an element factory.
- FormatDefinition - A format definition
- MapInfo - A structure containing the result of a map operation such as map.
- Meta - The Meta structure should be included as the first member of a Buffer metadata structure.
- MetaInfo - The MetaInfo provides information about a specific metadata structure.
- MetaTransformCopy - Extra data passed to a "gst-copy" transform MetaTransformFunction.
- PadProbeInfo - Info passed in the PadProbeCallback.
- ParentBufferMeta - The ParentBufferMeta is a Meta which can be attached to a Buffer to hold a reference to another buffer that is only released when the child Buffer is released.
- PluginDesc - A plugin should export a variable of this type called plugin_desc.
- PollFD - A file descriptor object.
- ProtectionMeta - Metadata type that holds information about a sample from a protection-protected track, including the information needed to decrypt it (if it is encrypted).
- ReferenceTimestampMeta - ReferenceTimestampMeta can be used to attach alternative timestamps and possibly durations to a Buffer.
- StaticCaps - Data structure to initialize
Caps from a string description usually used in conjunction with
GST_STATIC_CAPS
and @get to instantiate a Caps. - StaticPadTemplate - Structure describing the StaticPadTemplate.
- TimedValue - Structure for storing a timestamp and a value.
- TypeFind - The following functions allow you to detect the media type of an unknown stream.
- ValueTable - VTable for the
Value
type
. - AllocatorFlags - Flags for allocators.
- BinFlags - GstBinFlags are a set of flags specific to bins.
- BufferCopyFlags - A set of flags that can be provided to the copy_into function to specify which items should be copied.
- BufferFlags - A set of buffer flags used to describe properties of a Buffer.
- BufferPoolAcquireFlags - Additional flags to control the allocation of a buffer
- BufferingMode - The different types of buffering methods.
- BusFlags - The standard flags that a bus may have.
- BusSyncReply - The result values for a GstBusSyncHandler.
- CapsFlags - Extra flags for a caps.
- CapsIntersectMode - Modes of caps intersection
- ClockEntryType - The type of the clock entry
- ClockFlags - The capabilities of this clock
- ClockReturn - The return value of a clock operation.
- ClockType - The different kind of clocks.
- DebugColorFlags - These are some terminal style flags you can use when creating your debugging categories to make them stand out in debugging output.
- DebugColorMode
- DebugGraphDetails - Available details for pipeline graphs produced by BIN_TO_DOT_FILE and BIN_TO_DOT_FILE_WITH_TS.
- DebugLevel - The level defines the importance of a debugging message.
- ElementFlags - The standard flags that an element may have.
- EventType - EventType lists the standard event types that can be sent in a pipeline.
- EventTypeFlags - EventTypeFlags indicate the aspects of the different EventType values.
- FlowReturn - The result of passing data to a pad.
- Format - Standard predefined formats
- GapFlags - The different flags that can be set on GAP events.
- IteratorItem - The result of a IteratorItemFunction.
- IteratorResult - The result of next.
- LockFlags - Flags used when locking miniobjects
- MapFlags - Flags used when mapping memory
- MemoryFlags - Flags for wrapped memory.
- MessageType - The different message types that are available.
- MetaFlags - Extra metadata flags.
- MiniObjectFlags - Flags for the mini object
- ObjectFlags - The standard flags that an gstobject may have.
- PadDirection - The direction of a pad.
- PadFlags - Pad state flags
- PadLinkCheck - The amount of checking to be done when linking pads.
- PadLinkReturn - Result values from gst_pad_link and friends.
- PadMode - The status of a GstPad.
- PadPresence - Indicates when this pad will become available.
- PadProbeReturn - Different return values for the PadProbeCallback.
- PadProbeType - The different probing types that can occur.
- PadTemplateFlags - Flags for the padtemplate
- ParseFlags - Parsing options.
- PipelineFlags - Pipeline flags
- PluginAPIFlags
- PluginDependencyFlags - Flags used in connection with add_dependency.
- PluginFlags - The plugin loading state
- ProgressType - The type of a PROGRESS.
- PromiseResult - The result of a Promise
- QOSType - The different types of QoS events that can be given to the Event.qos method.
- QueryType - Standard predefined Query types
- QueryTypeFlags - QueryTypeFlags indicate the aspects of the different QueryType values.
- Rank - Element priority ranks.
- SchedulingFlags - The different scheduling flags.
- SearchMode - The different search modes.
- SeekFlags - Flags to be used with seek or Event.seek.
- SeekType - The different types of seek events.
- SegmentFlags - Flags for the GstSegment structure.
- SerializeFlags
- StackTraceFlags
- State - The possible states an element can be in.
- StateChange - These are the different state changes an element goes through.
- StateChangeReturn - The possible return values from a state change function such as set_state.
- StreamFlags
- StreamStatusType - The type of a STREAM_STATUS.
- StreamType - StreamType describes a high level classification set for flows of data in Stream objects.
- StructureChangeType - The type of a STRUCTURE_CHANGE.
- TagFlag - Extra tag flags used when registering tags.
- TagMergeMode - The different tag merging modes are basically replace, overwrite and append, but they can be seen from two directions.
- TagScope - GstTagScope specifies if a taglist applies to the complete medium or only to one single stream.
- TaskState - The different states a task can be in
- TocEntryType - The different types of TOC entries (see TocEntry).
- TocLoopType - How a TocEntry should be repeated.
- TocScope - The scope of a TOC.
- TracerValueFlags - Flag that describe the value.
- TracerValueScope - Tracing record will contain fields that contain a measured value or extra meta-data.
- TypeFindProbability - The probability of the typefind function.
- URIType - The different types of URI direction.
- CoreError - Core errors are errors inside the core GStreamer library.
- LibraryError - Library errors are for errors from the library being used by elements (initializing, finalizing, settings, ...)
- ParseError - The different parsing errors that can occur.
- PluginError - The plugin loading errors
- ResourceError - Resource errors are for any resource used by an element: memory, files, network connections, process space, ... They're typically used by source and sink elements.
- StreamError - Stream errors are for anything related to the stream being processed: format errors, media type errors, ... They're typically used by decoders, demuxers, converters, ...
- URIError - Different URI-related errors that can occur.
- public const string ALLOCATOR_SYSMEM
The allocator name for the default system memory allocator
- public const BufferCopyFlags BUFFER_COPY_ALL
Combination of all possible fields that can be copied with copy_into.
- public const BufferCopyFlags BUFFER_COPY_METADATA
Combination of all possible metadata fields that can be copied with copy_into.
- public const uint64 BUFFER_OFFSET_NONE
Constant for no-offset return results.
- public const int CAN_INLINE
- public const string CAPS_FEATURE_MEMORY_SYSTEM_MEMORY
- public const ClockTime CLOCK_TIME_NONE
Constant to define an undefined clock time.
- public const string ELEMENT_METADATA_AUTHOR
Name and contact details of the author(s).
- public const string ELEMENT_METADATA_DESCRIPTION
Sentence describing the purpose of the element.
- public const string ELEMENT_METADATA_DOC_URI
Set uri pointing to user documentation.
- public const string ELEMENT_METADATA_ICON_NAME
Elements that bridge to certain other products can include an icon of that used product.
- public const string ELEMENT_METADATA_KLASS
String describing the type of element, as an unordered list separated with slashes ('/').
- public const string ELEMENT_METADATA_LONGNAME
The long English name of the element.
- public const int EVENT_NUM_SHIFT
- public const EventTypeFlags EVENT_TYPE_BOTH
The same thing as UPSTREAM | DOWNSTREAM.
- public const uint FLAG_SET_MASK_EXACT
A mask value with all bits set, for use as a GstFlagSet mask where all flag bits must match exactly
- public const int64 FORMAT_PERCENT_MAX
The PERCENT format is between 0 and this value
- public const int64 FORMAT_PERCENT_SCALE
The value used to scale down the reported PERCENT format value to its real value.
- public const string FOURCC_FORMAT
Can be used together with
GST_FOURCC_ARGS
to properly output a uint32 fourcc value in a printf\()-style text message. - public const int GROUP_ID_INVALID
A value which is guaranteed to never be returned by group_id_next.
- public const string LICENSE_UNKNOWN
To be used in GST_PLUGIN_DEFINE if unsure about the licence.
- public const LockFlags LOCK_FLAG_READWRITE
GstLockFlags value alias for GST_LOCK_FLAG_READ | GST_LOCK_FLAG_WRITE
- public const MapFlags MAP_READWRITE
GstMapFlags value alias for GST_MAP_READ | GST_MAP_WRITE
- public const string META_TAG_MEMORY_REFERENCE_STR
This metadata stays relevant until a deep copy is made.
- public const string META_TAG_MEMORY_STR
This metadata stays relevant as long as memory layout is unchanged.
- public const ClockTimeDiff MSECOND
Constant that defines one GStreamer millisecond.
- public const ClockTimeDiff NSECOND
Constant that defines one GStreamer nanosecond
- public const int PARAM_CONDITIONALLY_AVAILABLE
Use this flag on GObject properties of GstObject to indicate that they might not be available depending on environment such as OS, device, etc, so such properties will be installed conditionally only if the GstObject is able to support it.
- public const int PARAM_CONTROLLABLE
Use this flag on GObject properties to signal they can make sense to be.
- public const int PARAM_DOC_SHOW_DEFAULT
Use this flag on GObject properties of GstObject to indicate that during `gst-inspect` and friends, the default value should be used as default instead of the current value.
- public const int PARAM_MUTABLE_PAUSED
Use this flag on GObject properties of GstElements to indicate that they can be changed when the element is in the PAUSED or lower state.
- public const int PARAM_MUTABLE_PLAYING
Use this flag on GObject properties of GstElements to indicate that they can be changed when the element is in the PLAYING or lower state.
- public const int PARAM_MUTABLE_READY
Use this flag on GObject properties of GstElements to indicate that they can be changed when the element is in the READY or lower state.
- public const int PARAM_USER_SHIFT
Bits based on GST_PARAM_USER_SHIFT can be used by 3rd party applications.
- public const string PROTECTION_SYSTEM_ID_CAPS_FIELD
The field name in a GstCaps that is used to signal the UUID of the protection system.
- public const string PROTECTION_UNSPECIFIED_SYSTEM_ID
The protection system value of the unspecified UUID.
- public const string PTR_FORMAT
printf format type used to debug GStreamer types.
- public const int QUERY_NUM_SHIFT
- public const QueryTypeFlags QUERY_TYPE_BOTH
The same thing as UPSTREAM | DOWNSTREAM.
- public const ClockTimeDiff SECOND
Constant that defines one GStreamer second.
- public const string SEGMENT_FORMAT
printf format type used to debug GStreamer segments.
- public const int SEGMENT_INSTANT_FLAGS
- public const int SEQNUM_INVALID
A value which is guaranteed to never be returned by seqnum_next.
- public const string STIMEP_FORMAT
printf format type used to debug GStreamer signed time value pointers.
- public const string STIME_FORMAT
A string that can be used in printf-like format strings to display a signed ClockTimeDiff or int64 value in `h:m:s` format.
- public const string TIMEP_FORMAT
printf format type used to debug GStreamer ClockTime pointers.
- public const string TIME_FORMAT
A string that can be used in printf-like format strings to display a ClockTime value in `h:m:s` format.
- public const int TOC_REPEAT_COUNT_INFINITE
- public const int URI_NO_PORT
Value for Uri.
- public const ClockTimeDiff USECOND
Constant that defines one GStreamer microsecond.
- public const int VALUE_EQUAL
Indicates that the first value provided to a comparison function (gst_value_compare()) is equal to the second one.
- public const int VALUE_GREATER_THAN
Indicates that the first value provided to a comparison function (gst_value_compare()) is greater than the second one.
- public const int VALUE_LESS_THAN
Indicates that the first value provided to a comparison function (gst_value_compare()) is lesser than the second one.
- public const int VALUE_UNORDERED
Indicates that the comparison function (gst_value_compare()) can not determine a order for the two provided values.
- public const int VERSION_MAJOR
The major version of GStreamer at compile time:
- public const int VERSION_MICRO
The micro version of GStreamer at compile time:
- public const int VERSION_MINOR
The minor version of GStreamer at compile time:
- public const int VERSION_NANO
The nano version of GStreamer at compile time: Actual releases have 0, GIT versions have 1, prerelease versions have 2-...
- public delegate bool BufferForeachMetaFunc (Buffer buffer, out Meta? meta)
A function that will be called from foreach_meta.
- public delegate bool BufferListFunc (out Buffer? buffer, uint idx)
A function that will be called from @foreach.
- public delegate bool BusFunc (Bus bus, Message message)
Specifies the type of function passed to
gst_bus_add_watch
or add_watch, which is called from the mainloop when a message is available on the bus. - public delegate BusSyncReply BusSyncHandler (Bus bus, Message message)
Handler will be invoked synchronously, when a new message has been injected into the bus.
- public delegate bool CapsFilterMapFunc (CapsFeatures features, Structure structure)
A function that will be called in filter_and_map_in_place.
- public delegate bool CapsForeachFunc (CapsFeatures features, Structure structure)
A function that will be called in @foreach.
- public delegate bool CapsMapFunc (CapsFeatures features, Structure structure)
A function that will be called in map_in_place.
- public delegate bool ClockCallback (Clock clock, ClockTime time, ClockID id)
The function prototype of the callback.
- public delegate bool ControlSourceGetValue (ControlSource self, ClockTime timestamp, out double value)
Function for returning a value for a given timestamp.
- public delegate bool ControlSourceGetValueArray (ControlSource self, ClockTime timestamp, ClockTime interval, double[] values)
Function for returning an array of values starting at a given timestamp.
- public delegate bool CustomMetaTransformFunction (Buffer transbuf, CustomMeta meta, Buffer buffer, Quark type, void* data)
Function called for each
meta
inbuffer
as a result of performing a transformation that yieldstransbuf
. - public delegate void DebugFuncPtr ()
we define this to avoid a compiler warning regarding a cast from a function pointer to a void pointer (see https://bugzilla.
- public delegate void ElementCallAsyncFunc (Element element)
Callback prototype used in call_async
- public delegate bool ElementForeachPadFunc (Element element, Pad pad)
Function called for each pad when using foreach_sink_pad, foreach_src_pad, or foreach_pad.
- public delegate void IteratorCopyFunction (Iterator it, Iterator copy)
This function will be called when creating a copy of
it
and should create a copy of all custom iterator fields or increase their reference counts. - public delegate bool IteratorFoldFunction (Value item, ref Value ret)
A function to be passed to fold.
- public delegate void IteratorForeachFunction (Value item)
A function that is called by @foreach for every element.
- public delegate void IteratorFreeFunction (Iterator it)
This function will be called when the iterator is freed.
- public delegate IteratorItem IteratorItemFunction (Iterator it, Value item)
The function that will be called after the next item of the iterator has been retrieved.
- public delegate IteratorResult IteratorNextFunction (Iterator it, ref Value result)
The function that will be called when the next element of the iterator should be retrieved.
- public delegate void IteratorResyncFunction (Iterator it)
This function will be called whenever a concurrent update happened to the iterated datastructure.
- public delegate void LogFunction (DebugCategory category, DebugLevel level, string file, string function, int line, Object object, DebugMessage message)
Function prototype for a logging function that can be registered with add_log_function.
- public delegate Memory MemoryCopyFunction (Memory mem, ssize_t offset, ssize_t size)
Copy
size
bytes frommem
starting atoffset
and return them wrapped in a new GstMemory object. - public delegate bool MemoryIsSpanFunction (Memory mem1, Memory mem2, size_t offset)
Check if
mem1
andmem2
occupy contiguous memory and return the offset ofmem1
in the parent buffer inoffset
. - public delegate void* MemoryMapFullFunction (Memory mem, MapInfo info, size_t maxsize)
Get the memory of
mem
that can be accessed according to the mode specified ininfo
's flags. - public delegate void* MemoryMapFunction (Memory mem, size_t maxsize, MapFlags flags)
Get the memory of
mem
that can be accessed according to the mode specified inflags
. - public delegate Memory MemoryShareFunction (Memory mem, ssize_t offset, ssize_t size)
Share
size
bytes frommem
starting atoffset
and return them wrapped in a new GstMemory object. - public delegate void MemoryUnmapFullFunction (Memory mem, MapInfo info)
Release the pointer previously retrieved with map with
info
. - public delegate void MemoryUnmapFunction (Memory mem)
Release the pointer previously retrieved with map.
- public delegate void MetaFreeFunction (Meta meta, Buffer buffer)
Function called when
meta
is freed inbuffer
. - public delegate bool MetaInitFunction (Meta meta, void* @params, Buffer buffer)
Function called when
meta
is initialized inbuffer
. - public delegate bool MetaTransformFunction (Buffer transbuf, Meta meta, Buffer buffer, Quark type, void* data)
Function called for each
meta
inbuffer
as a result of performing a transformation ontransbuf
. - public delegate MiniObject MiniObjectCopyFunction (MiniObject obj)
Function prototype for methods to create copies of instances.
- public delegate bool MiniObjectDisposeFunction (MiniObject obj)
Function prototype for when a miniobject has lost its last refcount.
- public delegate void MiniObjectFreeFunction (MiniObject obj)
Virtual function prototype for methods to free resources used by mini-objects.
- public delegate void MiniObjectNotify (MiniObject obj)
A MiniObjectNotify function can be added to a mini object as a callback that gets triggered when unref drops the last ref and
obj
is about to be freed. - public delegate bool PadActivateFunction (Pad pad, Object parent)
This function is called when the pad is activated during the element READY to PAUSED state change.
- public delegate bool PadActivateModeFunction (Pad pad, Object parent, PadMode mode, bool active)
The prototype of the push and pull activate functions.
- public delegate FlowReturn PadChainFunction (Pad pad, Object? parent, owned Buffer buffer)
A function that will be called on sinkpads when chaining buffers.
- public delegate FlowReturn PadChainListFunction (Pad pad, Object? parent, owned BufferList list)
A function that will be called on sinkpads when chaining buffer lists.
- public delegate FlowReturn PadEventFullFunction (Pad pad, Object? parent, owned Event event)
Function signature to handle an event for the pad.
- public delegate bool PadEventFunction (Pad pad, Object? parent, owned Event event)
Function signature to handle an event for the pad.
- public delegate bool PadForwardFunction (Pad pad)
A forward function is called for all internally linked pads, see forward.
- public delegate FlowReturn PadGetRangeFunction (Pad pad, Object? parent, uint64 offset, uint length, Buffer buffer)
This function will be called on source pads when a peer element request a buffer at the specified
offset
andlength
. - public delegate Iterator PadIterIntLinkFunction (Pad pad, Object? parent)
The signature of the internal pad link iterator function.
- public delegate PadLinkReturn PadLinkFunction (Pad pad, Object? parent, Pad peer)
Function signature to handle a new link on the pad.
- public delegate PadProbeReturn PadProbeCallback (Pad pad, PadProbeInfo info)
Callback used by add_probe.
- public delegate bool PadQueryFunction (Pad pad, Object? parent, Query query)
The signature of the query function.
- public delegate bool PadStickyEventsForeachFunction (Pad pad, Event? event)
Callback used by sticky_events_foreach.
- public delegate void PadUnlinkFunction (Pad pad, Object? parent)
Function signature to handle a unlinking the pad prom its peer.
- public delegate bool PluginFeatureFilter (PluginFeature feature)
A function that can be used with e.g. feature_filter to get a list of pluginfeature that match certain criteria.
- public delegate bool PluginFilter (Plugin plugin)
A function that can be used with e.g. plugin_filter to get a list of plugins that match certain criteria.
- public delegate bool PluginInitFullFunc (Plugin plugin)
A plugin should provide a pointer to a function of either PluginInitFunc or this type in the plugin_desc struct.
- public delegate bool PluginInitFunc (Plugin plugin)
A plugin should provide a pointer to a function of this type in the plugin_desc struct.
- public delegate void PromiseChangeFunc (Promise promise)
- public delegate bool StructureFilterMapFunc (Quark field_id, ref Value value)
A function that will be called in filter_and_map_in_place.
- public delegate bool StructureForeachFunc (Quark field_id, Value value)
A function that will be called in @foreach.
- public delegate bool StructureMapFunc (Quark field_id, ref Value value)
A function that will be called in map_in_place.
- public delegate void TagForeachFunc (TagList list, string tag)
A function that will be called in @foreach.
- public delegate void TagMergeFunc (out Value dest, Value src)
A function for merging multiple values of a tag used when registering tags.
- public delegate void TaskFunction ()
A function that will repeatedly be called in the thread created by a Task.
- public delegate void TaskPoolFunction ()
Task function, see push.
- public delegate void TaskThreadFunc (Task task, Thread thread)
Custom GstTask thread callback functions that can be installed.
- public delegate void TypeFindFunction (TypeFind find)
A function that will be called by typefinding.
- public delegate uint64 TypeFindGetLengthVFunc (void* data)
- public delegate uint8 TypeFindPeekVFunc (void* data, int64 offset, uint size)
- public delegate void TypeFindSuggestVFunc (void* data, uint probability, Caps caps)
- public delegate int ValueCompareFunc (Value value1, Value value2)
- public delegate bool ValueDeserializeFunc (ref Value dest, string s)
Used by deserialize to parse a non-binary form into the Value.
- public delegate bool ValueDeserializeWithPSpecFunc (Value dest, string s, ParamSpec pspec)
Used by deserialize_with_pspec to parse a non-binary form into the Value.
- public delegate string ValueSerializeFunc (Value value1)
- public uint STIME_ARGS (ClockTimeDiff t)
- public uint TIME_ARGS (ClockTime t)
- public uint buffer_get_max_memory ()
Gets the maximum amount of memory blocks that a buffer can hold.
- public bool buffer_list_replace (ref BufferList? old_list, BufferList? new_list)
Modifies a pointer to a BufferList to point to a different BufferList.
- public bool buffer_list_take (ref BufferList old_list, owned BufferList? new_list)
Modifies a pointer to a BufferList to point to a different BufferList.
- public CapsFeatures? caps_features_from_string (string features)
Creates a CapsFeatures from a string representation.
- public Caps? caps_from_string (string string)
Converts
caps
from a string representation. - public bool context_replace (ref Context old_context, Context? new_context)
- public Quark core_error_quark ()
- public void deinit ()
Clean up any resources created by GStreamer in init.
- public bool dynamic_type_register (Plugin plugin, Type type)
Registers a new DynamicTypeFactory in the registry
- public string error_get_message (Quark domain, int code)
Get a string describing the error message in the current locale.
- public EventTypeFlags event_type_get_flags (EventType type)
- public unowned string event_type_get_name (EventType type)
- public Quark event_type_to_quark (EventType type)
- public uint event_type_to_sticky_ordering (EventType type)
- public string? filename_to_uri (string filename) throws Error
Similar to to_uri, but attempts to handle relative file paths as well.
- public Quark flow_to_quark (FlowReturn ret)
Get the unique quark for the given GstFlowReturn.
- public Format format_get_by_nick (string nick)
- public unowned FormatDefinition? format_get_details (Format format)
- public unowned string? format_get_name (Format format)
- public Iterator format_iterate_definitions ()
- public Format format_register (string nick, string description)
- public Quark format_to_quark (Format format)
- public unowned string? get_main_executable_path ()
This helper is mostly helpful for plugins that need to inspect the folder of the main executable to determine their set of features.
- public void init (ref unowned string[]? argv)
Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins.
- public bool init_check (ref unowned string[]? argv) throws Error
Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins.
- public OptionGroup? init_get_option_group ()
Returns a OptionGroup with GStreamer's argument specifications.
- public bool is_caps_features (void* obj)
Checks if
obj
is a CapsFeatures - public bool is_initialized ()
Use this function to check if GStreamer has been initialized with init or init_check .
- public Quark library_error_quark ()
- public bool message_take (ref Message old_message, owned Message? new_message)
- public unowned string message_type_get_name (MessageType type)
- public Quark message_type_to_quark (MessageType type)
- public unowned string[] meta_api_type_get_tags (Type api)
- public bool meta_api_type_has_tag (Type api, Quark tag)
- public Type meta_api_type_register (string api, string[] tags)
- public unowned MetaInfo? meta_get_info (string impl)
- public unowned MetaInfo? meta_register (Type api, string impl, size_t size, MetaInitFunction init_func, MetaFreeFunction free_func, MetaTransformFunction transform_func)
- public unowned MetaInfo? meta_register_custom (string name, string[] tags, owned CustomMetaTransformFunction? transform_func)
- public bool mini_object_replace (ref MiniObject? olddata, MiniObject? newdata)
Atomically modifies a pointer to point to a new mini-object.
- public bool mini_object_take (ref MiniObject olddata, MiniObject newdata)
Modifies a pointer to point to a new mini-object.
- public unowned string pad_mode_get_name (PadMode mode)
- public ParamSpec param_spec_array (string name, string nick, string blurb, ParamSpec element_spec, ParamFlags flags)
This function creates a GstArray GParamSpec for use by objects/elements that want to expose properties of GstArray type.
- public ParamSpec? param_spec_fraction (string name, string nick, string blurb, int min_num, int min_denom, int max_num, int max_denom, int default_num, int default_denom, ParamFlags flags)
This function creates a fraction GParamSpec for use by objects/elements that want to expose properties of fraction type.
- public unowned MetaInfo? parent_buffer_meta_get_info ()
- public Element parse_bin_from_description (string bin_description, bool ghost_unlinked_pads, ParseContext? context = null, ParseFlags flags = NONE) throws Error
This is a convenience wrapper around
gst_parse_launch
to create a Bin from a gst-launch-style pipeline description. - public Quark parse_error_quark ()
- public Element parse_launch (string pipeline_description, ParseContext? context = null, ParseFlags flags = NONE) throws Error
Create a new pipeline based on command line syntax.
- public Element parse_launchv (string[] argv, ParseContext? context = null, ParseFlags flags = NONE) throws Error
Create a new element based on command line syntax.
- public Quark plugin_error_quark ()
- public unowned string? preset_get_app_dir ()
- public bool preset_set_app_dir (string app_dir)
- public string[]? protection_filter_systems_by_available_decryptors (string[] system_identifiers)
Iterates the supplied list of UUIDs and checks the GstRegistry for all the decryptors supporting one of the supplied UUIDs.
- public unowned MetaInfo? protection_meta_get_info ()
- public unowned string? protection_select_system (string[] system_identifiers)
Iterates the supplied list of UUIDs and checks the GstRegistry for an element that supports one of the supplied UUIDs.
- public bool query_take (ref Query? old_query, owned Query? new_query)
- public QueryTypeFlags query_type_get_flags (QueryType type)
- public unowned string query_type_get_name (QueryType type)
- public Quark query_type_to_quark (QueryType type)
- public unowned MetaInfo? reference_timestamp_meta_get_info ()
- public Quark resource_error_quark ()
- public bool segtrap_is_enabled ()
Some functions in the GStreamer core might install a custom SIGSEGV handler to better catch and report errors to the application.
- public void segtrap_set_enabled (bool enabled)
Applications might want to disable/enable the SIGSEGV handling of the GStreamer core.
- public unowned string state_change_get_name (StateChange transition)
- public Quark stream_error_quark ()
- public unowned string stream_type_get_name (StreamType stype)
- public bool structure_take (ref Structure? oldstr_ptr, owned Structure? newstr)
Atomically modifies a pointer to point to a new structure.
- public unowned string toc_entry_type_get_nick (TocEntryType type)
- public List<Tracer> tracing_get_active_tracers ()
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 deinit is called.
- public void tracing_register_hook (Tracer tracer, string detail, Callback func)
Register
func
to be called when the trace hookdetail
is getting invoked. - public bool type_find_register (Plugin? plugin, string name, uint rank, owned TypeFindFunction func, string? extensions, Caps? possible_caps)
- public bool type_is_plugin_api (Type type, out PluginAPIFlags flags)
Checks if
type
is plugin API. - public void type_mark_as_plugin_api (Type type, PluginAPIFlags flags)
Marks
type
as plugin API. - public bool update_registry ()
Forces GStreamer to re-scan its plugin paths and update the default plugin registry.
- public void version (out uint major, out uint minor, out uint micro, out uint nano)
Gets the version number of the GStreamer library.
- public string version_string ()
This function returns a string that is useful for describing this version of GStreamer to the outside world: user agent strings, logging, ...
- Debug
- public void BIN_TO_DOT_FILE (Bin bin, DebugGraphDetails details, string file_name)
- public void BIN_TO_DOT_FILE_WITH_TS (Bin bin, DebugGraphDetails details, string file_name)
- public void add_log_function (owned LogFunction func)
Adds the logging function to the list of logging functions.
- public void add_ring_buffer_logger (uint max_size_per_thread, uint thread_timeout)
Adds a memory ringbuffer based debug logger that stores up to
max_size_per_thread
bytes of logs per thread and times out threads afterthread_timeout
seconds of inactivity. - public string bin_to_dot_data (Bin bin, DebugGraphDetails details)
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.
- public void bin_to_dot_file (Bin bin, DebugGraphDetails details, string file_name)
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.
- public void bin_to_dot_file_with_ts (Bin bin, DebugGraphDetails details, string file_name)
This works like bin_to_dot_file, but adds the current timestamp to the filename, so that it can be used to take multiple snapshots.
- public string construct_term_color (uint colorinfo)
Constructs a string that can be used for getting the desired color in color terminals.
- public int construct_win_color (uint colorinfo)
Constructs an integer that can be used for getting the desired color in windows' terminals (cmd.
- public SList<unowned DebugCategory?> get_all_categories ()
Returns a snapshot of a all categories that are currently in use .
- public DebugColorMode get_color_mode ()
Changes the coloring mode for debug output.
- public DebugLevel get_default_threshold ()
Returns the default threshold that is used for new categories.
- public string? get_stack_trace (StackTraceFlags flags)
- public bool is_active ()
Checks if debugging output is activated.
- public bool is_colored ()
Checks if the debugging output should be colored.
- public unowned string level_get_name (DebugLevel level)
- public void log (DebugCategory category, DebugLevel level, string file, string function, int line, Object? object, string format, ...)
Logs the given message using the currently registered debugging handlers.
- public void log_default (DebugCategory category, DebugLevel level, string file, string function, int line, Object? object, DebugMessage message, void* user_data = null)
The default logging handler used by GStreamer.
- public string log_get_line (DebugCategory category, DebugLevel level, string file, string function, int line, Object? object, DebugMessage message)
Returns the string representation for the specified debug log message formatted in the same way as log_default (the default handler), without color.
- public void log_id_literal (DebugCategory category, DebugLevel level, string file, string function, int line, string? id, string message_string)
Logs the given message using the currently registered debugging handlers.
- public void log_id_valist (DebugCategory category, DebugLevel level, string file, string function, int line, string? id, string format, va_list args)
Logs the given message using the currently registered debugging handlers.
- public void log_literal (DebugCategory category, DebugLevel level, string file, string function, int line, Object? object, string message_string)
Logs the given message using the currently registered debugging handlers.
- public void log_valist (DebugCategory category, DebugLevel level, string file, string function, int line, Object? object, string format, va_list args)
Logs the given message using the currently registered debugging handlers.
- public void print_stack_trace ()
If libunwind, glibc backtrace or DbgHelp are present a stack trace is printed.
- public uint remove_log_function (LogFunction? func)
Removes all registered instances of the given logging functions.
- public uint remove_log_function_by_data (void* data)
Removes all registered instances of log functions with the given user data.
- public void remove_ring_buffer_logger ()
Removes any previously added ring buffer logger with add_ring_buffer_logger.
- public string[] ring_buffer_logger_get_logs ()
Fetches the current logs per thread from the ring buffer logger.
- public void set_active (bool active)
If activated, debugging messages are sent to the debugging handlers.
- public void set_color_mode (DebugColorMode mode)
Changes the coloring mode for debug output.
- public void set_color_mode_from_string (string mode)
Changes the coloring mode for debug output.
- public void set_colored (bool colored)
Sets or unsets the use of coloured debugging output.
- public void set_default_threshold (DebugLevel level)
Sets the default threshold to the given level and updates all categories to use this threshold.
- public void set_threshold_for_name (string name, DebugLevel level)
Sets all categories which match the given glob style pattern to the given level.
- public void set_threshold_from_string (string list, bool reset)
Sets the debug logging wanted in the same form as with the GST_DEBUG environment variable.
- public void unset_threshold_for_name (string name)
Resets all categories with the given name back to the default level.
- ElementFactoryKlass
- public const string DECODER
- public const string DECRYPTOR
- public const string DEMUXER
- public const string DEPAYLOADER
- public const string ENCODER
- public const string ENCRYPTOR
- public const string FORMATTER
- public const string HARDWARE
Elements interacting with hardware devices should specify this classifier in their metadata.
- public const string MEDIA_AUDIO
- public const string MEDIA_IMAGE
- public const string MEDIA_METADATA
- public const string MEDIA_SUBTITLE
- public const string MEDIA_VIDEO
- public const string MUXER
- public const string PARSER
- public const string PAYLOADER
- public const string SINK
- public const string SRC
- ElementFactoryType
- public const ElementFactoryListType ANY
Elements of any of the defined GST_ELEMENT_FACTORY_LIST types
- public const ElementFactoryListType AUDIOVIDEO_SINKS
All sinks handling audio, video or image media types
- public const ElementFactoryListType AUDIO_ENCODER
All encoders handling audio media types
- public const ElementFactoryListType DECODABLE
All elements used to 'decode' streams (decoders, demuxers, parsers, depayloaders)
- public const ElementFactoryListType DECODER
- public const ElementFactoryListType DECRYPTOR
- public const ElementFactoryListType DEMUXER
- public const ElementFactoryListType DEPAYLOADER
- public const ElementFactoryListType ENCODER
- public const ElementFactoryListType ENCRYPTOR
- public const ElementFactoryListType FORMATTER
- public const ElementFactoryListType HARDWARE
- public const ElementFactoryListType MAX_ELEMENTS
- public const ElementFactoryListType MEDIA_ANY
Elements matching any of the defined GST_ELEMENT_FACTORY_TYPE_MEDIA types
- public const ElementFactoryListType MEDIA_AUDIO
- public const ElementFactoryListType MEDIA_IMAGE
- public const ElementFactoryListType MEDIA_METADATA
- public const ElementFactoryListType MEDIA_SUBTITLE
- public const ElementFactoryListType MEDIA_VIDEO
- public const ElementFactoryListType MUXER
- public const ElementFactoryListType PARSER
- public const ElementFactoryListType PAYLOADER
- public const ElementFactoryListType SINK
- public const ElementFactoryListType SRC
- public const ElementFactoryListType TIMESTAMPER
Timestamp correcting elements
- public const ElementFactoryListType VIDEO_ENCODER
All encoders handling video or image media types
- Tags
- public const string ALBUM
album containing this data (string)
- public const string ALBUM_ARTIST
The artist of the entire album, as it should be displayed.
- public const string ALBUM_ARTIST_SORTNAME
The artist of the entire album, as it should be sorted.
- public const string ALBUM_GAIN
album gain in db (double)
- public const string ALBUM_PEAK
peak of the album (double)
- public const string ALBUM_SORTNAME
album containing this data, as used for sorting (string)
- public const string ALBUM_VOLUME_COUNT
count of discs inside collection this disc belongs to (unsigned integer)
- public const string ALBUM_VOLUME_NUMBER
disc number inside a collection (unsigned integer)
- public const string APPLICATION_DATA
Arbitrary application data (sample)
- public const string APPLICATION_NAME
Name of the application used to create the media (string)
- public const string ARTIST
person(s) responsible for the recording (string)
- public const string ARTIST_SORTNAME
person(s) responsible for the recording, as used for sorting (string)
- public const string ATTACHMENT
generic file attachment (sample) (sample taglist should specify the content type and if possible set "filename" to the file name of the attachment)
- public const string AUDIO_CODEC
codec the audio data is stored in (string)
- public const string BEATS_PER_MINUTE
number of beats per minute in audio (double)
- public const string BITRATE
exact or average bitrate in bits/s (unsigned integer)
- public const string CODEC
codec the data is stored in (string)
- public const string COMMENT
free text commenting the data (string)
- public const string COMPOSER
person(s) who composed the recording (string)
- public const string COMPOSER_SORTNAME
The composer's name, used for sorting (string)
- public const string CONDUCTOR
conductor/performer refinement (string)
- public const string CONTACT
contact information (string)
- public const string CONTAINER_FORMAT
container format the data is stored in (string)
- public const string COPYRIGHT
copyright notice of the data (string)
- public const string COPYRIGHT_URI
URI to location where copyright details can be found (string)
- public const string DATE
date the data was created (#GDate structure)
- public const string DATE_TIME
date and time the data was created (#GstDateTime structure)
- public const string DESCRIPTION
short text describing the content of the data (string)
- public const string DEVICE_MANUFACTURER
Manufacturer of the device used to create the media (string)
- public const string DEVICE_MODEL
Model of the device used to create the media (string)
- public const string DURATION
length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
- public const string ENCODED_BY
name of the person or organisation that encoded the file.
- public const string ENCODER
encoder used to encode this stream (string)
- public const string ENCODER_VERSION
version of the encoder used to encode this stream (unsigned integer)
- public const string EXTENDED_COMMENT
key/value text commenting the data (string)
- public const string GENRE
genre this data belongs to (string)
- public const string GEO_LOCATION_CAPTURE_DIRECTION
Indicates the direction the device is pointing to when capturing a media.
- public const string GEO_LOCATION_CITY
The city (english name) where the media has been produced (string).
- public const string GEO_LOCATION_COUNTRY
The country (english name) where the media has been produced (string).
- public const string GEO_LOCATION_ELEVATION
geo elevation of where the media has been recorded or produced in meters according to WGS84 (zero is average sea level) (double).
- public const string GEO_LOCATION_HORIZONTAL_ERROR
Represents the expected error on the horizontal positioning in meters (double).
- public const string GEO_LOCATION_LATITUDE
geo latitude location of where the media has been recorded or produced in degrees according to WGS84 (zero at the equator, negative values for southern latitudes) (double).
- public const string GEO_LOCATION_LONGITUDE
geo longitude location of where the media has been recorded or produced in degrees according to WGS84 (zero at the prime meridian in Greenwich/UK, negative values for western longitudes).
- public const string GEO_LOCATION_MOVEMENT_DIRECTION
Indicates the movement direction of the device performing the capture of a media.
- public const string GEO_LOCATION_MOVEMENT_SPEED
Speed of the capturing device when performing the capture.
- public const string GEO_LOCATION_NAME
human readable descriptive location of where the media has been recorded or produced.
- public const string GEO_LOCATION_SUBLOCATION
A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better where the media has been produced.
- public const string GROUPING
Groups together media that are related and spans multiple tracks.
- public const string HOMEPAGE
Homepage for this media (i.e. artist or movie homepage) (string)
- public const string IMAGE
image (sample) (sample taglist should specify the content type and preferably also set "image-type" field as `GstTagImageType`)
- public const string IMAGE_ORIENTATION
Represents the 'Orientation' tag from EXIF.
- public const string INTERPRETED_BY
Information about the people behind a remix and similar interpretations of another existing piece (string)
- public const string ISRC
International Standard Recording Code - see http://www.
- public const string KEYWORDS
comma separated keywords describing the content (string).
- public const string LANGUAGE_CODE
ISO-639-2 or ISO-639-1 code for the language the content is in (string)
- public const string LANGUAGE_NAME
Name of the language the content is in (string)
- public const string LICENSE
license of data (string)
- public const string LICENSE_URI
URI to location where license details can be found (string)
- public const string LOCATION
Origin of media as a URI (location, where the original of the file or stream is hosted) (string)
- public const string LYRICS
The lyrics of the media (string)
- public const string MAXIMUM_BITRATE
maximum bitrate in bits/s (unsigned integer)
- public const string MIDI_BASE_NOTE
[Midi note number](http://en.
- public const string MINIMUM_BITRATE
minimum bitrate in bits/s (unsigned integer)
- public const string NOMINAL_BITRATE
nominal bitrate in bits/s (unsigned integer).
- public const string ORGANIZATION
organization (string)
- public const string PERFORMER
person(s) performing (string)
- public const string PREVIEW_IMAGE
image that is meant for preview purposes, e.g. small icon-sized version (sample) (sample taglist should specify the content type)
- public const string PRIVATE_DATA
Any private data that may be contained in tags (sample).
- public const string PUBLISHER
Name of the label or publisher (string)
- public const string REFERENCE_LEVEL
reference level of track and album gain values (double)
- public const string SERIAL
serial number of track (unsigned integer)
- public const string SHOW_EPISODE_NUMBER
Number of the episode within a season/show (unsigned integer)
- public const string SHOW_NAME
Name of the show, used for displaying (string)
- public const string SHOW_SEASON_NUMBER
Number of the season of a show/series (unsigned integer)
- public const string SHOW_SORTNAME
Name of the show, used for sorting (string)
- public const string SUBTITLE_CODEC
codec/format the subtitle data is stored in (string)
- public const string TITLE
commonly used title (string)
- public const string TITLE_SORTNAME
commonly used title, as used for sorting (string)
- public const string TRACK_COUNT
count of tracks inside collection this track belongs to (unsigned integer)
- public const string TRACK_GAIN
track gain in db (double)
- public const string TRACK_NUMBER
track number inside a collection (unsigned integer)
- public const string TRACK_PEAK
peak of the track (double)
- public const string USER_RATING
Rating attributed by a person (likely the application user).
- public const string VERSION
version of this data (string)
- public const string VIDEO_CODEC
codec the video data is stored in (string)
- public bool exists (string tag)
Checks if the given type is already registered.
- public unowned string get_description (string tag)
Returns the human-readable description of this tag, You must not change or free this string.
- public TagFlag get_flag (string tag)
Gets the flag of
tag
. - public unowned string get_nick (string tag)
Returns the human-readable name of this tag, You must not change or free this string.
- public Type get_type (string tag)
Gets the Type used for this tag.
- public bool is_fixed (string tag)
Checks if the given tag is fixed.
- public bool list_copy_value (out Value dest, TagList list, string tag)
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
- public bool list_replace (ref TagList? old_taglist, TagList? new_taglist)
- public bool list_take (ref TagList old_taglist, owned TagList? new_taglist)
- public void merge_strings_with_comma (out Value dest, Value src)
This is a convenience function for the func argument of register.
- public void merge_use_first (out Value dest, Value src)
This is a convenience function for the func argument of register.
- public void register (string name, TagFlag flag, Type type, string nick, string blurb, TagMergeFunc? func)
Registers a new tag type for the use with GStreamer's type system.
- public void register_static (string name, TagFlag flag, Type type, string nick, string blurb, TagMergeFunc? func)
Registers a new tag type for the use with GStreamer's type system.
- URI
- public string @construct (string protocol, string location)
Constructs a URI for a given valid protocol and location.
- public Quark error_quark ()
- public Uri? from_string (string uri)
Parses a URI string into a new Uri object.
- public Uri? from_string_escaped (string uri)
Parses a URI string into a new Uri object.
- public string? get_location (string uri)
Extracts the location out of a given valid URI, ie.
- public string? get_protocol (string uri)
Extracts the protocol out of a given valid URI.
- public bool has_protocol (string uri, string protocol)
Checks if the protocol of a given valid URI matches
protocol
. - public bool is_valid (string uri)
Tests if the given string is a valid URI identifier.
- public string? join_strings (string base_uri, string ref_uri)
This is a convenience function to join two URI strings and return the result.
- public bool protocol_is_supported (URIType type, string protocol)
Checks if an element exists that supports the given URI protocol.
- public bool protocol_is_valid (string protocol)
Tests if the given string is a valid protocol identifier.
- Util
- public void* array_binary_search (void* array, uint num_elements, size_t element_size, CompareDataFunc<void*> search_func, SearchMode mode, void* search_data)
Searches inside
array
forsearch_data
by using the comparison functionsearch_func
. - public void double_to_fraction (double src, out int dest_n, out int dest_d)
Transforms a double to a fraction and simplifies the result.
- public void dump_buffer (Buffer buf)
Dumps the buffer memory into a hex representation.
- public void dump_mem (uint8[] mem)
Dumps the memory block into a hex representation.
- public bool fraction_add (int a_n, int a_d, int b_n, int b_d, out int res_n, out int res_d)
Adds the fractions
a_n
/a_d
andb_n
/b_d
and stores the result inres_n
andres_d
. - public int fraction_compare (int a_n, int a_d, int b_n, int b_d)
Compares the fractions
a_n
/a_d
andb_n
/b_d
and returns -1 if a < b, 0 if a = b and 1 if a > b. - public bool fraction_multiply (int a_n, int a_d, int b_n, int b_d, out int res_n, out int res_d)
Multiplies the fractions
a_n
/a_d
andb_n
/b_d
and stores the result inres_n
andres_d
. - public void fraction_to_double (int src_n, int src_d, out double dest)
Transforms a fraction to a double.
- public uint64 gdouble_to_guint64 (double value)
- public bool get_object_array (Object object, string name, out ValueArray array)
Get a property of type
GST_TYPE_ARRAY
and transform it into a ValueArray. - public ClockTime get_timestamp ()
Get a timestamp as GstClockTime to be used for interval measurements.
- public int greatest_common_divisor (int a, int b)
Calculates the greatest common divisor of
a
andb
. - public int64 greatest_common_divisor_int64 (int64 a, int64 b)
Calculates the greatest common divisor of
a
andb
. - public uint group_id_next ()
Return a constantly incrementing group id.
- public double guint64_to_gdouble (uint64 value)
- public int32 seqnum_compare (uint32 s1, uint32 s2)
Compare two sequence numbers, handling wraparound.
- public uint32 seqnum_next ()
Return a constantly incrementing sequence number.
- public void set_object_arg (Object object, string name, string value)
Converts the string value to the type of the objects argument and sets the argument with it.
- public bool set_object_array (Object object, string name, ValueArray array)
Transfer a ValueArray to
GST_TYPE_ARRAY
and set this value on the specified property name. - public void set_value_from_string (ref Value value, string value_str)
Converts the string to the type of the value and sets the value with it.
- public void simplify_fraction (int numerator, int denominator, uint n_terms, uint threshold)
Calculates the simpler representation of
numerator
anddenominator
and update both values with the resulting simplified fraction. - public uint64 uint64_scale (uint64 val, uint64 num, uint64 denom)
Scale
val
by the rational numbernum
/denom
, avoiding overflows and underflows and without loss of precision. - public uint64 uint64_scale_ceil (uint64 val, uint64 num, uint64 denom)
Scale
val
by the rational numbernum
/denom
, avoiding overflows and underflows and without loss of precision. - public uint64 uint64_scale_int (uint64 val, int num, int denom)
Scale
val
by the rational numbernum
/denom
, avoiding overflows and underflows and without loss of precision. - public uint64 uint64_scale_int_ceil (uint64 val, int num, int denom)
Scale
val
by the rational numbernum
/denom
, avoiding overflows and underflows and without loss of precision. - public uint64 uint64_scale_int_round (uint64 val, int num, int denom)
Scale
val
by the rational numbernum
/denom
, avoiding overflows and underflows and without loss of precision. - public uint64 uint64_scale_round (uint64 val, uint64 num, uint64 denom)
Scale
val
by the rational numbernum
/denom
, avoiding overflows and underflows and without loss of precision. - Value
- public bool can_compare (Value value1, Value value2)
Determines if
value1
andvalue2
can be compared. - public bool can_intersect (Value value1, Value value2)
Determines if intersecting two values will produce a valid result.
- public bool can_subtract (Value minuend, Value subtrahend)
Checks if it's possible to subtract
subtrahend
fromminuend
. - public bool can_union (Value value1, Value value2)
Determines if
value1
andvalue2
can be non-trivially unioned. - public int compare (Value value1, Value value2)
Compares
value1
andvalue2
. - public bool deserialize (ref Value dest, string src)
Tries to deserialize a string into the type specified by the given GValue.
- public bool deserialize_with_pspec (ref Value dest, string src, ParamSpec? pspec)
Tries to deserialize a string into the type specified by the given GValue.
- public bool fixate (Value dest, Value src)
Fixate
src
into a new valuedest
. - public bool fraction_multiply (ref Value product, Value factor1, Value factor2)
Multiplies the two Value items containing a
GST_TYPE_FRACTION
and setsproduct
to the product of the two fractions. - public bool fraction_subtract (ref Value dest, Value minuend, Value subtrahend)
Subtracts the
subtrahend
from theminuend
and setsdest
to the result. - public uint64 get_bitmask (Value value)
Gets the bitmask specified by
value
. - public unowned Caps get_caps (Value value)
Gets the contents of
value
. - public unowned CapsFeatures get_caps_features (Value value)
Gets the contents of
value
. - public double get_double_range_max (Value value)
Gets the maximum of the range specified by
value
. - public double get_double_range_min (Value value)
Gets the minimum of the range specified by
value
. - public uint get_flagset_flags (Value value)
Retrieve the flags field of a GstFlagSet
value
. - public uint get_flagset_mask (Value value)
Retrieve the mask field of a GstFlagSet
value
. - public int get_fraction_denominator (Value value)
Gets the denominator of the fraction specified by
value
. - public int get_fraction_numerator (Value value)
Gets the numerator of the fraction specified by
value
. - public unowned Value? get_fraction_range_max (Value value)
Gets the maximum of the range specified by
value
. - public unowned Value? get_fraction_range_min (Value value)
Gets the minimum of the range specified by
value
. - public int64 get_int64_range_max (Value value)
Gets the maximum of the range specified by
value
. - public int64 get_int64_range_min (Value value)
Gets the minimum of the range specified by
value
. - public int64 get_int64_range_step (Value value)
Gets the step of the range specified by
value
. - public int get_int_range_max (Value value)
Gets the maximum of the range specified by
value
. - public int get_int_range_min (Value value)
Gets the minimum of the range specified by
value
. - public int get_int_range_step (Value value)
Gets the step of the range specified by
value
. - public unowned Structure get_structure (Value value)
Gets the contents of
value
. - public void init_and_copy (ref Value dest, Value src)
Initialises the target value to be of the same type as source and then copies the contents from source to target.
- public bool intersect (out Value dest, Value value1, Value value2)
Calculates the intersection of two values.
- public bool is_fixed (Value value)
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.
- public bool is_subset (Value value1, Value value2)
Check that
value1
is a subset ofvalue2
. - public void register (ValueTable table)
Registers functions to perform calculations on Value items of a given type.
- public string? serialize (Value value)
tries to transform the given
value
into a string representation that allows getting back this string later on using deserialize. - public void set_bitmask (ref Value value, uint64 bitmask)
Sets
value
to the bitmask specified bybitmask
. - public void set_caps (ref Value value, Caps caps)
Sets the contents of
value
tocaps
. - public void set_caps_features (ref Value value, CapsFeatures features)
Sets the contents of
value
tofeatures
. - public void set_double_range (ref Value value, double start, double end)
Sets
value
to the range specified bystart
andend
. - public void set_flagset (ref Value value, uint flags, uint mask)
Sets
value
to the flags and mask values provided inflags
andmask
. - public void set_fraction (ref Value value, int numerator, int denominator)
Sets
value
to the fraction specified bynumerator
overdenominator
. - public void set_fraction_range (ref Value value, Value start, Value end)
Sets
value
to the range specified bystart
andend
. - public void set_fraction_range_full (ref Value value, int numerator_start, int denominator_start, int numerator_end, int denominator_end)
Sets
value
to the range specified bynumerator_start
/denominator_start
andnumerator_end
/denominator_end
. - public void set_int64_range (ref Value value, int64 start, int64 end)
Sets
value
to the range specified bystart
andend
. - public void set_int64_range_step (ref Value value, int64 start, int64 end, int64 step)
Sets
value
to the range specified bystart
,end
andstep
. - public void set_int_range (ref Value value, int start, int end)
Sets
value
to the range specified bystart
andend
. - public void set_int_range_step (ref Value value, int start, int end, int step)
Sets
value
to the range specified bystart
,end
andstep
. - public void set_structure (ref Value value, Structure structure)
Sets the contents of
value
tostructure
. - public bool subtract (out Value dest, Value minuend, Value subtrahend)
Subtracts
subtrahend
fromminuend
and stores the result indest
. - public bool union (out Value dest, Value value1, Value value2)
Creates a GValue corresponding to the union of
value1
andvalue2
.