Module: Gst
- Defined in:
- lib/gst/bin.rb,
lib/gst.rb,
lib/gst/bus.rb,
lib/gst/caps.rb,
lib/gst/buffer.rb,
lib/gst/loader.rb,
lib/gst/element.rb,
lib/gst/version.rb,
lib/gst/registry.rb,
lib/gst/tag-list.rb,
lib/gst/structure.rb,
lib/gst/plugin-feature.rb,
lib/gst/element-factory.rb,
lib/gst/type-find-factory.rb
Overview
Copyright (C) 2015 Ruby-GNOME2 Project Team
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Defined Under Namespace
Modules: AllocatorFlags, BinFlags, BufferCopyFlags, BufferFlags, BufferPoolAcquireFlags, BufferingMode, BusFlags, BusSyncReply, CapsFlags, CapsIntersectMode, ChildProxy, ClockEntryType, ClockFlags, ClockReturn, ClockType, CoreError, DebugColorFlags, DebugColorMode, DebugGraphDetails, DebugLevel, ElementFlags, EventType, EventTypeFlags, FlowReturn, Format, GapFlags, IteratorItem, IteratorResult, LibraryError, LockFlags, MapFlags, MemoryFlags, MessageType, MetaFlags, MiniObjectFlags, ObjectFlags, PadDirection, PadFlags, PadLinkCheck, PadLinkReturn, PadMode, PadPresence, PadProbeReturn, PadProbeType, PadTemplateFlags, ParseError, ParseFlags, PipelineFlags, PluginAPIFlags, PluginDependencyFlags, PluginError, PluginFlags, Preset, ProgressType, PromiseResult, QOSType, QueryType, QueryTypeFlags, Rank, ResourceError, SchedulingFlags, SearchMode, SeekFlags, SeekType, SegmentFlags, SerializeFlags, StackTraceFlags, State, StateChange, StateChangeReturn, StreamError, StreamFlags, StreamStatusType, StreamType, StructureChangeType, TagFlag, TagMergeMode, TagScope, TagSetter, TaskState, TocEntryType, TocLoopType, TocScope, TocSetter, TracerValueFlags, TracerValueScope, TypeFindProbability, URIError, URIHandler, URIType, Version Classes: Allocator, Bin, Bitmask, Buffer, BufferPool, Bus, Caps, Clock, ControlBinding, ControlSource, Device, DeviceMonitor, DeviceProvider, DeviceProviderFactory, DoubleRange, DynamicTypeFactory, Element, ElementFactory, FlagSet, Fraction, FractionRange, GhostPad, Int64Range, IntRange, Loader, Object, Pad, PadTemplate, ParamArray, ParamFraction, Pipeline, Plugin, PluginFeature, ProxyPad, Registry, SharedTaskPool, Stream, StreamCollection, Structure, SystemClock, TagList, Task, TaskPool, Tracer, TracerFactory, TracerRecord, TypeFindFactory, ValueArray, ValueList
Constant Summary collapse
- ALLOCATOR_SYSMEM =
The allocator name for the default system memory allocator
SystemMemory- BUFFER_COPY_ALL =
Combination of all possible fields that can be copied with gst_buffer_copy_into().
15- BUFFER_COPY_METADATA =
Combination of all possible metadata fields that can be copied with gst_buffer_copy_into().
7- BUFFER_OFFSET_NONE =
Constant for no-offset return results.
18446744073709551615- CAN_INLINE =
1- CAPS_FEATURE_MEMORY_SYSTEM_MEMORY =
memory:SystemMemory
- CLOCK_TIME_NONE =
Constant to define an undefined clock time.
18446744073709551615- DEBUG_BG_MASK =
240- DEBUG_FG_MASK =
15- DEBUG_FORMAT_MASK =
65280- ELEMENT_FACTORY_KLASS_DECODER =
Decoder- ELEMENT_FACTORY_KLASS_DECRYPTOR =
Decryptor- ELEMENT_FACTORY_KLASS_DEMUXER =
Demuxer- ELEMENT_FACTORY_KLASS_DEPAYLOADER =
Depayloader- ELEMENT_FACTORY_KLASS_ENCODER =
Encoder- ELEMENT_FACTORY_KLASS_ENCRYPTOR =
Encryptor- ELEMENT_FACTORY_KLASS_FORMATTER =
Formatter- ELEMENT_FACTORY_KLASS_HARDWARE =
Elements interacting with hardware devices should specify this classifier in their metadata. You may need to put the element in "READY" state to test if the hardware is present in the system.
Hardware- ELEMENT_FACTORY_KLASS_MEDIA_AUDIO =
Audio- ELEMENT_FACTORY_KLASS_MEDIA_IMAGE =
Image- ELEMENT_FACTORY_KLASS_MEDIA_METADATA =
Metadata- ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE =
Subtitle- ELEMENT_FACTORY_KLASS_MEDIA_VIDEO =
Video- ELEMENT_FACTORY_KLASS_MUXER =
Muxer- ELEMENT_FACTORY_KLASS_PARSER =
Parser- ELEMENT_FACTORY_KLASS_PAYLOADER =
Payloader- ELEMENT_FACTORY_KLASS_SINK =
Sink- ELEMENT_FACTORY_KLASS_SRC =
Source- ELEMENT_FACTORY_TYPE_ANY =
Elements of any of the defined GST_ELEMENT_FACTORY_LIST types
562949953421311- ELEMENT_FACTORY_TYPE_AUDIOVIDEO_SINKS =
All sinks handling audio, video or image media types
3940649673949188- ELEMENT_FACTORY_TYPE_AUDIO_ENCODER =
All encoders handling audio media types
1125899906842626- ELEMENT_FACTORY_TYPE_DECODABLE =
All elements used to 'decode' streams (decoders, demuxers, parsers, depayloaders)
1377- ELEMENT_FACTORY_TYPE_DECODER =
1- ELEMENT_FACTORY_TYPE_DECRYPTOR =
1024- ELEMENT_FACTORY_TYPE_DEMUXER =
32- ELEMENT_FACTORY_TYPE_DEPAYLOADER =
256- ELEMENT_FACTORY_TYPE_ENCODER =
2- ELEMENT_FACTORY_TYPE_ENCRYPTOR =
2048- ELEMENT_FACTORY_TYPE_FORMATTER =
512- ELEMENT_FACTORY_TYPE_HARDWARE =
4096- ELEMENT_FACTORY_TYPE_MAX_ELEMENTS =
281474976710656- ELEMENT_FACTORY_TYPE_MEDIA_ANY =
Elements matching any of the defined GST_ELEMENT_FACTORY_TYPE_MEDIA types
Note: Do not use this if you wish to not filter against any of the defined media types. If you wish to do this, simply don't specify any GST_ELEMENT_FACTORY_TYPE_MEDIA flag.
18446462598732840960- ELEMENT_FACTORY_TYPE_MEDIA_AUDIO =
1125899906842624- ELEMENT_FACTORY_TYPE_MEDIA_IMAGE =
2251799813685248- ELEMENT_FACTORY_TYPE_MEDIA_METADATA =
9007199254740992- ELEMENT_FACTORY_TYPE_MEDIA_SUBTITLE =
4503599627370496- ELEMENT_FACTORY_TYPE_MEDIA_VIDEO =
562949953421312- ELEMENT_FACTORY_TYPE_MUXER =
16- ELEMENT_FACTORY_TYPE_PARSER =
64- ELEMENT_FACTORY_TYPE_PAYLOADER =
128- ELEMENT_FACTORY_TYPE_SINK =
4- ELEMENT_FACTORY_TYPE_SRC =
8- ELEMENT_FACTORY_TYPE_TIMESTAMPER =
Timestamp correcting elements
8192- ELEMENT_FACTORY_TYPE_VIDEO_ENCODER =
All encoders handling video or image media types
2814749767106562- ELEMENT_METADATA_AUTHOR =
Name and contact details of the author(s). Use \n to separate multiple author details. E.g: "Joe Bloggs <joe.blogs at foo.com>"
- ELEMENT_METADATA_DESCRIPTION =
Sentence describing the purpose of the element. E.g: "Write stream to a file"
description- ELEMENT_METADATA_DOC_URI =
Set uri pointing to user documentation. Applications can use this to show help for e.g. effects to users.
doc-uri
- ELEMENT_METADATA_ICON_NAME =
Elements that bridge to certain other products can include an icon of that used product. Application can show the icon in menus/selectors to help identifying specific elements.
icon-name
- ELEMENT_METADATA_KLASS =
String describing the type of element, as an unordered list separated with slashes ('/'). See draft-klass.txt of the design docs for more details and common types. E.g: "Sink/File"
klass- ELEMENT_METADATA_LONGNAME =
The long English name of the element. E.g. "File Sink"
long-name
- ERROR_SYSTEM =
Builds a string using errno describing the previously failed system call. To be used as the debug argument in #GST_ELEMENT_ERROR.
system error: %s
- EVENT_NUM_SHIFT =
8- EVENT_TYPE_BOTH =
The same thing as #GST_EVENT_TYPE_UPSTREAM | #GST_EVENT_TYPE_DOWNSTREAM.
3- FLAG_SET_MASK_EXACT =
A mask value with all bits set, for use as a GstFlagSet mask where all flag bits must match exactly
4294967295- FORMAT_PERCENT_MAX =
The PERCENT format is between 0 and this value
1000000- FORMAT_PERCENT_SCALE =
The value used to scale down the reported PERCENT format value to its real value.
10000- FOURCC_FORMAT =
Can be used together with #GST_FOURCC_ARGS to properly output a #guint32 fourcc value in a printf()-style text message.
|[ printf ("fourcc: %" GST_FOURCC_FORMAT "\n", GST_FOURCC_ARGS (fcc)); ]|
c%c%c%c
- GROUP_ID_INVALID =
A value which is guaranteed to never be returned by gst_util_group_id_next().
Can be used as a default value in variables used to store group_id.
0- LICENSE_UNKNOWN =
To be used in GST_PLUGIN_DEFINE if unsure about the licence.
unknown- LOCK_FLAG_READWRITE =
GstLockFlags value alias for GST_LOCK_FLAG_READ | GST_LOCK_FLAG_WRITE
3- MAP_READWRITE =
GstMapFlags value alias for GST_MAP_READ | GST_MAP_WRITE
3- META_TAG_MEMORY_REFERENCE_STR =
This metadata stays relevant until a deep copy is made.
memory-reference
- META_TAG_MEMORY_STR =
This metadata stays relevant as long as memory layout is unchanged. In hindsight, this tag should have been called "memory-layout".
memory- MSECOND =
Constant that defines one GStreamer millisecond.
1000000- NSECOND =
Constant that defines one GStreamer nanosecond
1- 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.
16384- PARAM_CONTROLLABLE =
Use this flag on GObject properties to signal they can make sense to be. controlled over time. This hint is used by the GstController.
512- PARAM_DOC_SHOW_DEFAULT =
Use this flag on GObject properties of GstObject to indicate that during
gst-inspectand friends, the default value should be used as default instead of the current value. 8192- 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. This flag implies GST_PARAM_MUTABLE_READY.
2048- 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. This flag implies GST_PARAM_MUTABLE_PAUSED.
4096- 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.
1024- PARAM_USER_SHIFT =
Bits based on GST_PARAM_USER_SHIFT can be used by 3rd party applications.
65536- PROTECTION_SYSTEM_ID_CAPS_FIELD =
The field name in a GstCaps that is used to signal the UUID of the protection system.
protection-system
- PROTECTION_UNSPECIFIED_SYSTEM_ID =
The protection system value of the unspecified UUID. In some cases the system protection ID is not present in the contents or in their metadata, as encrypted WebM. This define is used to set the value of the "system_id" field in GstProtectionEvent, with this value, the application will use an external information to choose which protection system to use.
Example: The matroskademux uses this value in the case of encrypted WebM, the application will choose the appropriate protection system based on the information received through EME API.
unspecified-system-id
- PTR_FORMAT =
printf format type used to debug GStreamer types. You can use this in combination with GStreamer's debug logging system as well as the functions gst_info_vasprintf(), gst_info_strdup_vprintf() and gst_info_strdup_printf() to pretty-print the following types: Gst::Caps, #GstStructure, Gst::CapsFeatures, #GstTagList, #GstDateTime, #GstBuffer, #GstBufferList, Gst::Message, #GstEvent, #GstQuery, #GstContext, #GstPad, #GstObject. All #GObject types will be printed as typename plus pointer, and everything else will simply be printed as pointer address.
This can only be used on types whose size is >= sizeof(gpointer).
paA- QUERY_NUM_SHIFT =
8- QUERY_TYPE_BOTH =
The same thing as #GST_QUERY_TYPE_UPSTREAM | #GST_QUERY_TYPE_DOWNSTREAM.
3- SECOND =
Constant that defines one GStreamer second.
1000000000- SEGMENT_FORMAT =
printf format type used to debug GStreamer segments. You can use this in combination with GStreamer's debug logging system as well as the functions gst_info_vasprintf(), gst_info_strdup_vprintf() and gst_info_strdup_printf() to pretty-print Gst::Segment structures. This can only be used on pointers to GstSegment structures.
paB- SEGMENT_INSTANT_FLAGS =
912- SEQNUM_INVALID =
A value which is guaranteed to never be returned by gst_util_seqnum_next().
Can be used as a default value in variables used to store seqnum.
0- STIMEP_FORMAT =
printf format type used to debug GStreamer signed time value pointers. You can use this in combination with GStreamer's debug logging system as well as the functions gst_info_vasprintf(), gst_info_strdup_vprintf() and gst_info_strdup_printf() to pretty-print signed time (pointers to Gst::ClockTimeDiff or #gint64).
paS- STIME_FORMAT =
A string that can be used in printf-like format strings to display a signed Gst::ClockTimeDiff or #gint64 value in
h:m:sformat. Use GST_TIME_ARGS() to construct the matching arguments.Example:
printf("%" GST_STIME_FORMAT "\n", GST_STIME_ARGS(ts)); c%
- TAG_ALBUM =
album containing this data (string)
The album name as it should be displayed, e.g. 'The Jazz Guitar'
album- TAG_ALBUM_ARTIST =
The artist of the entire album, as it should be displayed.
album-artist
- TAG_ALBUM_ARTIST_SORTNAME =
The artist of the entire album, as it should be sorted.
album-artist-sortname
- TAG_ALBUM_GAIN =
album gain in db (double)
replaygain-album-gain
- TAG_ALBUM_PEAK =
peak of the album (double)
replaygain-album-peak
- TAG_ALBUM_SORTNAME =
album containing this data, as used for sorting (string)
The album name as it should be sorted, e.g. 'Jazz Guitar, The'
album-sortname
- TAG_ALBUM_VOLUME_COUNT =
count of discs inside collection this disc belongs to (unsigned integer)
album-disc-count
- TAG_ALBUM_VOLUME_NUMBER =
disc number inside a collection (unsigned integer)
album-disc-number
- TAG_APPLICATION_DATA =
Arbitrary application data (sample)
Some formats allow applications to add their own arbitrary data into files. This data is application dependent.
application-data
- TAG_APPLICATION_NAME =
Name of the application used to create the media (string)
application-name
- TAG_ARTIST =
person(s) responsible for the recording (string)
The artist name as it should be displayed, e.g. 'Jimi Hendrix' or 'The Guitar Heroes'
artist- TAG_ARTIST_SORTNAME =
person(s) responsible for the recording, as used for sorting (string)
The artist name as it should be sorted, e.g. 'Hendrix, Jimi' or 'Guitar Heroes, The'
artist-sortname
- TAG_ATTACHMENT =
generic file attachment (sample) (sample taglist should specify the content type and if possible set "filename" to the file name of the attachment)
- TAG_AUDIO_CODEC =
codec the audio data is stored in (string)
audio-codec
- TAG_BEATS_PER_MINUTE =
number of beats per minute in audio (double)
beats-per-minute
- TAG_BITRATE =
exact or average bitrate in bits/s (unsigned integer)
bitrate- TAG_CODEC =
codec the data is stored in (string)
codec- TAG_COMMENT =
free text commenting the data (string)
comment- TAG_COMPOSER =
person(s) who composed the recording (string)
composer- TAG_COMPOSER_SORTNAME =
The composer's name, used for sorting (string)
composer-sortname
- TAG_CONDUCTOR =
conductor/performer refinement (string)
conductor- TAG_CONTACT =
contact information (string)
contact- TAG_CONTAINER_FORMAT =
container format the data is stored in (string)
container-format
- TAG_CONTAINER_SPECIFIC_TRACK_ID =
Unique identifier for the audio, video or text track this tag is associated with. The mappings for several container formats are defined in the Sourcing In-band Media Resource Tracks from Media Containers into HTML specification.
container-specific-track-id
- TAG_COPYRIGHT =
copyright notice of the data (string)
copyright- TAG_COPYRIGHT_URI =
URI to location where copyright details can be found (string)
copyright-uri
- TAG_DATE =
date the data was created (#GDate structure)
date- TAG_DATE_TIME =
date and time the data was created (Gst::DateTime structure)
datetime- TAG_DESCRIPTION =
short text describing the content of the data (string)
description- TAG_DEVICE_MANUFACTURER =
Manufacturer of the device used to create the media (string)
device-manufacturer
- TAG_DEVICE_MODEL =
Model of the device used to create the media (string)
device-model
- TAG_DURATION =
length in GStreamer time units (nanoseconds) (unsigned 64-bit integer)
duration- TAG_ENCODED_BY =
name of the person or organisation that encoded the file. May contain a copyright message if the person or organisation also holds the copyright (string)
Note: do not use this field to describe the encoding application. Use #GST_TAG_APPLICATION_NAME or #GST_TAG_COMMENT for that.
encoded-by
- TAG_ENCODER =
encoder used to encode this stream (string)
encoder- TAG_ENCODER_VERSION =
version of the encoder used to encode this stream (unsigned integer)
encoder-version
- TAG_EXTENDED_COMMENT =
key/value text commenting the data (string)
Must be in the form of 'key=comment' or 'key[lc]=comment' where 'lc' is an ISO-639 language code.
This tag is used for unknown Vorbis comment tags, unknown APE tags and certain ID3v2 comment fields.
extended-comment
- TAG_GENRE =
genre this data belongs to (string)
genre- TAG_GEO_LOCATION_CAPTURE_DIRECTION =
Indicates the direction the device is pointing to when capturing a media. It is represented as degrees in floating point representation, 0 means the geographic north, and increases clockwise (double from 0 to 360)
See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
geo-location-capture-direction
- TAG_GEO_LOCATION_CITY =
The city (english name) where the media has been produced (string).
geo-location-city
- TAG_GEO_LOCATION_COUNTRY =
The country (english name) where the media has been produced (string).
geo-location-country
- TAG_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).
geo-location-elevation
- TAG_GEO_LOCATION_HORIZONTAL_ERROR =
Represents the expected error on the horizontal positioning in meters (double).
geo-location-horizontal-error
- TAG_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).
geo-location-latitude
- TAG_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). (double).
geo-location-longitude
- TAG_GEO_LOCATION_MOVEMENT_DIRECTION =
Indicates the movement direction of the device performing the capture of a media. It is represented as degrees in floating point representation, 0 means the geographic north, and increases clockwise (double from 0 to 360)
See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
geo-location-movement-direction
- TAG_GEO_LOCATION_MOVEMENT_SPEED =
Speed of the capturing device when performing the capture. Represented in m/s. (double)
See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
geo-location-movement-speed
- TAG_GEO_LOCATION_NAME =
human readable descriptive location of where the media has been recorded or produced. (string).
geo-location-name
- TAG_GEO_LOCATION_SUBLOCATION =
A location 'smaller' than GST_TAG_GEO_LOCATION_CITY that specifies better where the media has been produced. (e.g. the neighborhood) (string).
This tag has been added as this is how it is handled/named in XMP's Iptc4xmpcore schema.
geo-location-sublocation
- TAG_GROUPING =
Groups together media that are related and spans multiple tracks. An example are multiple pieces of a concerto. (string)
grouping- TAG_HOMEPAGE =
Homepage for this media (i.e. artist or movie homepage) (string)
homepage- TAG_IMAGE =
image (sample) (sample taglist should specify the content type and preferably also set "image-type" field as
GstTagImageType) image- TAG_IMAGE_ORIENTATION =
Represents the 'Orientation' tag from EXIF. Defines how the image should be rotated and mirrored for display. (string)
This tag has a predefined set of allowed values: "rotate-0" "rotate-90" "rotate-180" "rotate-270" "flip-rotate-0" "flip-rotate-90" "flip-rotate-180" "flip-rotate-270"
The naming is adopted according to a possible transformation to perform on the image to fix its orientation, obviously equivalent operations will yield the same result.
Rotations indicated by the values are in clockwise direction and 'flip' means an horizontal mirroring.
image-orientation
- TAG_INTERPRETED_BY =
Information about the people behind a remix and similar interpretations of another existing piece (string)
interpreted-by
- TAG_ISRC =
International Standard Recording Code - see http://www.ifpi.org/isrc/ (string)
isrc- TAG_KEYWORDS =
comma separated keywords describing the content (string).
keywords- TAG_LANGUAGE_CODE =
ISO-639-2 or ISO-639-1 code for the language the content is in (string)
There is utility API in libgsttag in gst-plugins-base to obtain a translated language name from the language code:
gst_tag_get_language_name() language-code
- TAG_LANGUAGE_NAME =
Name of the language the content is in (string)
Free-form name of the language the content is in, if a language code is not available. This tag should not be set in addition to a language code. It is undefined what language or locale the language name is in.
language-name
- TAG_LICENSE =
license of data (string)
license- TAG_LICENSE_URI =
URI to location where license details can be found (string)
license-uri
- TAG_LOCATION =
Origin of media as a URI (location, where the original of the file or stream is hosted) (string)
location- TAG_LYRICS =
The lyrics of the media (string)
lyrics- TAG_MAXIMUM_BITRATE =
maximum bitrate in bits/s (unsigned integer)
maximum-bitrate
- TAG_MIDI_BASE_NOTE =
Midi note number of the audio track. This is useful for sample instruments and in particular for multi-samples.
midi-base-note
- TAG_MINIMUM_BITRATE =
minimum bitrate in bits/s (unsigned integer)
minimum-bitrate
- TAG_NOMINAL_BITRATE =
nominal bitrate in bits/s (unsigned integer). The actual bitrate might be different from this target bitrate.
nominal-bitrate
- TAG_ORGANIZATION =
organization (string)
organization- TAG_PERFORMER =
person(s) performing (string)
performer- TAG_PREVIEW_IMAGE =
image that is meant for preview purposes, e.g. small icon-sized version (sample) (sample taglist should specify the content type)
preview-image
- TAG_PRIVATE_DATA =
Any private data that may be contained in tags (sample).
It is represented by Gst::Sample in which #GstBuffer contains the binary data and the sample's info Gst::Structure may contain any extra information that identifies the origin or meaning of the data.
Private frames in ID3v2 tags ('PRIV' frames) will be represented using this tag, in which case the GstStructure will be named "ID3PrivateFrame" and contain a field named "owner" of type string which contains the owner-identification string from the tag.
private-data
- TAG_PUBLISHER =
Name of the label or publisher (string)
publisher- TAG_REFERENCE_LEVEL =
reference level of track and album gain values (double)
replaygain-reference-level
- TAG_SERIAL =
serial number of track (unsigned integer)
serial- TAG_SHOW_EPISODE_NUMBER =
Number of the episode within a season/show (unsigned integer)
show-episode-number
- TAG_SHOW_NAME =
Name of the show, used for displaying (string)
show-name
- TAG_SHOW_SEASON_NUMBER =
Number of the season of a show/series (unsigned integer)
show-season-number
- TAG_SHOW_SORTNAME =
Name of the show, used for sorting (string)
show-sortname
- TAG_SUBTITLE_CODEC =
codec/format the subtitle data is stored in (string)
subtitle-codec
- TAG_TITLE =
commonly used title (string)
The title as it should be displayed, e.g. 'The Doll House'
title- TAG_TITLE_SORTNAME =
commonly used title, as used for sorting (string)
The title as it should be sorted, e.g. 'Doll House, The'
title-sortname
- TAG_TRACK_COUNT =
count of tracks inside collection this track belongs to (unsigned integer)
track-count
- TAG_TRACK_GAIN =
track gain in db (double)
replaygain-track-gain
- TAG_TRACK_NUMBER =
track number inside a collection (unsigned integer)
track-number
- TAG_TRACK_PEAK =
peak of the track (double)
replaygain-track-peak
- TAG_USER_RATING =
Rating attributed by a person (likely the application user). The higher the value, the more the user likes this media (unsigned int from 0 to 100)
user-
- TAG_VERSION =
version of this data (string)
version- TAG_VIDEO_CODEC =
codec the video data is stored in (string)
video-codec
- TIMEP_FORMAT =
printf format type used to debug GStreamer ClockTime pointers. You can use this in combination with GStreamer's debug logging system as well as the functions gst_info_vasprintf(), gst_info_strdup_vprintf() and gst_info_strdup_printf() to pretty-print Gst::ClockTime pointers. This can only be used on pointers to GstClockTime values.
paT- TIME_FORMAT =
A string that can be used in printf-like format strings to display a Gst::ClockTime value in
h:m:sformat. Use GST_TIME_ARGS() to construct the matching arguments.Example:
printf("%" GST_TIME_FORMAT "\n", GST_TIME_ARGS(ts)); u:%02u:%02u.%09u
- TOC_REPEAT_COUNT_INFINITE =
Special value for the repeat_count set in gst_toc_entry_set_loop() or returned by gst_toc_entry_set_loop() to indicate infinite looping.
-1
- URI_NO_PORT =
Value for Gst::Uri.port to indicate no port number.
0- USECOND =
Constant that defines one GStreamer microsecond.
1000- VALUE_EQUAL =
Indicates that the first value provided to a comparison function (gst_value_compare()) is equal to the second one.
0- VALUE_GREATER_THAN =
Indicates that the first value provided to a comparison function (gst_value_compare()) is greater than the second one.
1- VALUE_LESS_THAN =
Indicates that the first value provided to a comparison function (gst_value_compare()) is lesser than the second one.
-1
- VALUE_UNORDERED =
Indicates that the comparison function (gst_value_compare()) can not determine a order for the two provided values.
2- VERSION_MAJOR =
The major version of GStreamer at compile time:
1- VERSION_MICRO =
The micro version of GStreamer at compile time:
2- VERSION_MINOR =
The minor version of GStreamer at compile time:
24- VERSION_NANO =
The nano version of GStreamer at compile time: Actual releases have 0, GIT versions have 1, prerelease versions have 2-...
0- LOG_DOMAIN =
"GStreamer"
Class Method Summary collapse
Instance Method Summary collapse
-
#buffer_get_max_memory ⇒ Integer
Gets the maximum amount of memory blocks that a buffer can hold.
-
#calculate_linear_regression(xy, temp, n, m_num, m_denom, b, xbase, r_squared) ⇒ Boolean
Calculates the linear regression of the values xy and places the result in m_num, m_denom, b and xbase, representing the function y(x) = m_num/m_denom * (x - xbase) + b that has the least-square distance from all points x and y.
-
#caps_features_from_string(features) ⇒ Gst::CapsFeatures
Creates a Gst::CapsFeatures from a string representation.
-
#caps_from_string(string) ⇒ Gst::Caps
Converts caps from a string representation.
-
#clear_mini_object(object_ptr) ⇒ nil
Clears a reference to a Gst::MiniObject.
-
#clear_object(object_ptr) ⇒ nil
Clears a reference to a Gst::Object.
-
#clear_structure(structure_ptr) ⇒ nil
Clears a reference to a Gst::Structure.
- #core_error_quark ⇒ GLib::Quark
-
#debug_add_log_function(func, user_data, notify) ⇒ nil
Adds the logging function to the list of logging functions.
-
#debug_add_ring_buffer_logger(max_size_per_thread, thread_timeout) ⇒ nil
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.
-
#debug_bin_to_dot_data(bin, details) ⇒ String
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.
-
#debug_bin_to_dot_file(bin, details, file_name) ⇒ nil
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.
-
#debug_bin_to_dot_file_with_ts(bin, details, file_name) ⇒ nil
This works like gst_debug_bin_to_dot_file(), but adds the current timestamp to the filename, so that it can be used to take multiple snapshots.
-
#debug_construct_term_color(colorinfo) ⇒ String
Constructs a string that can be used for getting the desired color in color terminals.
-
#debug_construct_win_color(colorinfo) ⇒ Integer
Constructs an integer that can be used for getting the desired color in windows' terminals (cmd.exe).
-
#debug_get_all_categories ⇒ GLib::SList<Gst::DebugCategory>
Returns a snapshot of a all categories that are currently in use .
-
#debug_get_color_mode ⇒ Gst::DebugColorMode
Changes the coloring mode for debug output.
-
#debug_get_default_threshold ⇒ Gst::DebugLevel
Returns the default threshold that is used for new categories.
-
#debug_get_stack_trace(flags) ⇒ String
look like.
-
#debug_is_active ⇒ Boolean
Checks if debugging output is activated.
-
#debug_is_colored ⇒ Boolean
Checks if the debugging output should be colored.
-
#debug_level_get_name(level) ⇒ String
Get the string representation of a debugging level.
-
#debug_log(category, level, file, function, line, object, format, array) ⇒ nil
Logs the given message using the currently registered debugging handlers.
-
#debug_log_default(category, level, file, function, line, object, message, user_data) ⇒ nil
The default logging handler used by GStreamer.
-
#debug_log_get_line(category, level, file, function, line, object, message) ⇒ String
Returns the string representation for the specified debug log message formatted in the same way as gst_debug_log_default() (the default handler), without color.
-
#debug_log_id(category, level, file, function, line, id, format, array) ⇒ nil
Logs the given message using the currently registered debugging handlers.
-
#debug_log_id_literal(category, level, file, function, line, id, message_string) ⇒ nil
Logs the given message using the currently registered debugging handlers.
-
#debug_log_id_valist(category, level, file, function, line, id, format, args) ⇒ nil
Logs the given message using the currently registered debugging handlers.
-
#debug_log_literal(category, level, file, function, line, object, message_string) ⇒ nil
Logs the given message using the currently registered debugging handlers.
-
#debug_log_valist(category, level, file, function, line, object, format, args) ⇒ nil
Logs the given message using the currently registered debugging handlers.
-
#debug_print_stack_trace ⇒ nil
If libunwind, glibc backtrace or DbgHelp are present a stack trace is printed.
-
#debug_remove_log_function(func) ⇒ Integer
Removes all registered instances of the given logging functions.
-
#debug_remove_log_function_by_data(data) ⇒ Integer
Removes all registered instances of log functions with the given user data.
-
#debug_remove_ring_buffer_logger ⇒ nil
Removes any previously added ring buffer logger with gst_debug_add_ring_buffer_logger().
-
#debug_ring_buffer_logger_get_logs ⇒ Array<String>
Fetches the current logs per thread from the ring buffer logger.
-
#debug_set_active(active) ⇒ nil
If activated, debugging messages are sent to the debugging handlers.
-
#debug_set_color_mode(mode) ⇒ nil
Changes the coloring mode for debug output.
-
#debug_set_color_mode_from_string(mode) ⇒ nil
Changes the coloring mode for debug output.
-
#debug_set_colored(colored) ⇒ nil
Sets or unsets the use of coloured debugging output.
-
#debug_set_default_threshold(level) ⇒ nil
Sets the default threshold to the given level and updates all categories to use this threshold.
-
#debug_set_threshold_for_name(name, level) ⇒ nil
Sets all categories which match the given glob style pattern to the given level.
-
#debug_set_threshold_from_string(list, reset) ⇒ nil
Sets the debug logging wanted in the same form as with the GST_DEBUG environment variable.
-
#debug_unset_threshold_for_name(name) ⇒ nil
Resets all categories with the given name back to the default level.
-
#deinit ⇒ nil
Clean up any resources created by GStreamer in gst_init().
-
#dynamic_type_register(plugin, type) ⇒ Boolean
Registers a new Gst::DynamicTypeFactory in the registry.
-
#error_get_message(domain, code) ⇒ String
Get a string describing the error message in the current locale.
-
#event_type_get_flags(type) ⇒ Gst::EventTypeFlags
Gets the Gst::EventTypeFlags associated with type.
-
#event_type_get_name(type) ⇒ String
Get a printable name for the given event type.
-
#event_type_to_quark(type) ⇒ GLib::Quark
Get the unique quark for the given event type.
-
#event_type_to_sticky_ordering(type) ⇒ Integer
Converts the Gst::EventType to an unsigned integer that represents the ordering of sticky events when re-sending them.
-
#filename_to_uri(filename) ⇒ String
Similar to g_filename_to_uri(), but attempts to handle relative file paths as well.
-
#flow_get_name(ret) ⇒ String
Gets a string representing the given flow return.
-
#flow_to_quark(ret) ⇒ GLib::Quark
Get the unique quark for the given GstFlowReturn.
-
#format_get_by_nick(nick) ⇒ Gst::Format
Return the format registered with the given nick.
-
#format_get_details(format) ⇒ Gst::FormatDefinition
Get details about the given format.
-
#format_get_name(format) ⇒ String
Get a printable name for the given format.
-
#format_iterate_definitions ⇒ Gst::Iterator
Iterate all the registered formats.
-
#format_register(nick, description) ⇒ Gst::Format
Create a new GstFormat based on the nick or return an already registered format with that nick.
-
#format_to_quark(format) ⇒ GLib::Quark
Get the unique quark for the given format.
-
#formats_contains(formats, format) ⇒ Boolean
See if the given format is inside the format array.
-
#info_strdup_printf(format, array) ⇒ String
Allocates, fills and returns a 0-terminated string from the printf style format string and corresponding arguments.
-
#info_strdup_vprintf(format, args) ⇒ String
Allocates, fills and returns a null terminated string from the printf style format string and args.
-
#info_vasprintf(result, format, args) ⇒ Integer
Allocates and fills a string large enough (including the terminating null byte) to hold the specified printf style format and args.
-
#init(argc, argv) ⇒ nil
Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins.
-
#init_check(argc, argv) ⇒ Boolean
Initializes the GStreamer library, setting up internal path lists, registering built-in elements, and loading standard plugins.
-
#init_get_option_group ⇒ GLib::OptionGroup
Returns a GOption::Group with GStreamer's argument specifications.
-
#is_caps_features(obj) ⇒ Boolean
Checks if obj is a Gst::CapsFeatures.
-
#is_initialized ⇒ Boolean
Use this function to check if GStreamer has been initialized with gst_init() or gst_init_check().
- #library_error_quark ⇒ GLib::Quark
-
#main_executable_path ⇒ String
This helper is mostly helpful for plugins that need to inspect the folder of the main executable to determine their set of features.
-
#make_element_message_details(name, array) ⇒ Gst::Structure
Create a Gst::Structure to be used with #gst_element_message_full_with_details.
-
#message_type_get_name(type) ⇒ String
Get a printable name for the given message type.
-
#message_type_to_quark(type) ⇒ GLib::Quark
Get the unique quark for the given message type.
-
#meta_api_type_get_tags(api) ⇒ Array<String>
An array of tags as strings.
-
#meta_api_type_has_tag(api, tag) ⇒ Boolean
Check if api was registered with tag.
-
#meta_api_type_register(api, tags) ⇒ GLib::Type
Register and return a GType for the api and associate it with tags.
-
#meta_deserialize(buffer, data, size, consumed) ⇒ Gst::Meta
Recreate a Gst::Meta from serialized data returned by gst_meta_serialize() and add it to buffer.
-
#meta_get_info(impl) ⇒ Gst::MetaInfo
Lookup a previously registered meta info structure by its implementation name impl.
-
#meta_info_new(api, impl, size) ⇒ Gst::MetaInfo
Creates a new structure that needs to be filled before being registered.
-
#meta_register(api, impl, size, init_func, free_func, transform_func) ⇒ Gst::MetaInfo
Register a new Gst::Meta implementation.
-
#meta_register_custom(name, tags, transform_func, user_data, destroy_data) ⇒ Gst::MetaInfo
Register a new custom Gst::Meta implementation, backed by an opaque structure holding a Gst::Structure.
-
#meta_register_custom_simple(name) ⇒ Gst::MetaInfo
Simplified version of gst_meta_register_custom(), with no tags and no transform function.
-
#mini_object_replace(olddata, newdata) ⇒ Boolean
Atomically modifies a pointer to point to a new mini-object.
-
#mini_object_steal(olddata) ⇒ Gst::MiniObject
Replace the current Gst::MiniObject pointer to by olddata with nil and return the old value.
-
#mini_object_take(olddata, newdata) ⇒ Boolean
Modifies a pointer to point to a new mini-object.
-
#pad_mode_get_name(mode) ⇒ String
Return the name of a pad mode, for use in debug messages mostly.
-
#param_spec_array(name, nick, blurb, element_spec, flags) ⇒ GObject::ParamSpec
This function creates a GstArray GParamSpec for use by objects/elements that want to expose properties of GstArray type.
-
#param_spec_fraction(name, nick, blurb, min_num, min_denom, max_num, max_denom, default_num, default_denom, flags) ⇒ GObject::ParamSpec
This function creates a fraction GParamSpec for use by objects/elements that want to expose properties of fraction type.
- #parent_buffer_meta_api_get_type ⇒ GLib::Type
-
#parent_buffer_meta_get_info ⇒ Gst::MetaInfo
Gets the global Gst::MetaInfo describing the #GstParentBufferMeta meta.
-
#parse_bin_from_description(bin_description, ghost_unlinked_pads) ⇒ Gst::Bin
This is a convenience wrapper around gst_parse_launch() to create a Gst::Bin from a gst-launch-style pipeline description.
-
#parse_bin_from_description_full(bin_description, ghost_unlinked_pads, context, flags) ⇒ Gst::Element
This is a convenience wrapper around gst_parse_launch() to create a Gst::Bin from a gst-launch-style pipeline description.
-
#parse_error_quark ⇒ GLib::Quark
Get the error quark used by the parsing subsystem.
-
#parse_launch(pipeline_description) ⇒ Gst::Element
Create a new pipeline based on command line syntax.
-
#parse_launch_full(pipeline_description, context, flags) ⇒ Gst::Element
Create a new pipeline based on command line syntax.
-
#parse_launchv(argv) ⇒ Gst::Element
Create a new element based on command line syntax.
-
#parse_launchv_full(argv, context, flags) ⇒ Gst::Element
Create a new element based on command line syntax.
-
#plugin_error_quark ⇒ GLib::Quark
Get the error quark.
-
#poll_new(controllable) ⇒ Gst::Poll
Create a new file descriptor set.
-
#poll_new_timer ⇒ Gst::Poll
Create a new poll object that can be used for scheduling cancellable timeouts.
-
#preset_get_app_dir ⇒ Gst::filename
Gets the directory for application specific presets if set by the application.
-
#preset_set_app_dir(app_dir) ⇒ Boolean
Sets an extra directory as an absolute path that should be considered when looking for presets.
-
#print(format, array) ⇒ nil
Outputs a formatted message via the GLib print handler.
-
#printerr(format, array) ⇒ nil
Outputs a formatted message via the GLib error message handler.
-
#printerrln(format, array) ⇒ nil
Outputs a formatted message via the GLib error message handler.
-
#println(format, array) ⇒ nil
Outputs a formatted message via the GLib print handler.
-
#protection_filter_systems_by_available_decryptors(system_identifiers) ⇒ Array<String>
Iterates the supplied list of UUIDs and checks the GstRegistry for all the decryptors supporting one of the supplied UUIDs.
- #protection_meta_api_get_type ⇒ GLib::Type
- #protection_meta_get_info ⇒ Gst::MetaInfo
-
#protection_select_system(system_identifiers) ⇒ String
Iterates the supplied list of UUIDs and checks the GstRegistry for an element that supports one of the supplied UUIDs.
-
#query_type_get_flags(type) ⇒ Gst::QueryTypeFlags
Gets the Gst::QueryTypeFlags associated with type.
-
#query_type_get_name(type) ⇒ String
Get a printable name for the given query type.
-
#query_type_to_quark(type) ⇒ GLib::Quark
Get the unique quark for the given query type.
- #reference_timestamp_meta_api_get_type ⇒ GLib::Type
-
#reference_timestamp_meta_get_info ⇒ Gst::MetaInfo
Gets the global Gst::MetaInfo describing the #GstReferenceTimestampMeta meta.
- #resource_error_quark ⇒ GLib::Quark
-
#segtrap_is_enabled ⇒ Boolean
Some functions in the GStreamer core might install a custom SIGSEGV handler to better catch and report errors to the application.
-
#segtrap_set_enabled(enabled) ⇒ nil
Applications might want to disable/enable the SIGSEGV handling of the GStreamer core.
-
#state_change_get_name(transition) ⇒ String
Gets a string representing the given state transition.
- #static_caps_get_type ⇒ GLib::Type
- #static_pad_template_get_type ⇒ GLib::Type
- #stream_error_quark ⇒ GLib::Quark
-
#stream_type_get_name(stype) ⇒ String
Get a descriptive string for a given Gst::StreamType.
-
#structure_take(oldstr_ptr, newstr) ⇒ Boolean
Atomically modifies a pointer to point to a new structure.
-
#tag_exists(tag) ⇒ Boolean
Checks if the given type is already registered.
-
#tag_get_description(tag) ⇒ String
Returns the human-readable description of this tag, You must not change or free this string.
-
#tag_get_flag(tag) ⇒ Gst::TagFlag
Gets the flag of tag.
-
#tag_get_nick(tag) ⇒ String
Returns the human-readable name of this tag, You must not change or free this string.
-
#tag_get_type(tag) ⇒ GLib::Type
Gets the #GType used for this tag.
-
#tag_is_fixed(tag) ⇒ Boolean
Checks if the given tag is fixed.
-
#tag_list_copy_value(dest, list, tag) ⇒ Boolean
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.
-
#tag_merge_strings_with_comma(dest, src) ⇒ nil
This is a convenience function for the func argument of gst_tag_register().
-
#tag_merge_use_first(dest, src) ⇒ nil
This is a convenience function for the func argument of gst_tag_register().
-
#tag_register(name, flag, type, nick, blurb, func) ⇒ nil
Registers a new tag type for the use with GStreamer's type system.
-
#tag_register_static(name, flag, type, nick, blurb, func) ⇒ nil
Registers a new tag type for the use with GStreamer's type system.
-
#toc_entry_type_get_nick(type) ⇒ String
Converts type to a string representation.
-
#tracing_get_active_tracers ⇒ GLib::List<Gst::Tracer>
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_deinit() is called.
-
#tracing_register_hook(tracer, detail, func) ⇒ nil
Register func to be called when the trace hook detail is getting invoked.
- #type_find_get_type ⇒ GLib::Type
-
#type_find_register(plugin, name, rank, func, extensions, possible_caps, data, data_notify) ⇒ Boolean
Registers a new typefind function to be used for typefinding.
-
#type_is_plugin_api(type, flags) ⇒ Boolean
Checks if type is plugin API.
-
#type_mark_as_plugin_api(type, flags) ⇒ nil
Marks type as plugin API.
-
#update_registry ⇒ Boolean
Forces GStreamer to re-scan its plugin paths and update the default plugin registry.
-
#uri_construct(protocol, location) ⇒ String
Constructs a URI for a given valid protocol and location.
- #uri_error_quark ⇒ GLib::Quark
-
#uri_from_string(uri) ⇒ Gst::Uri
Parses a URI string into a new Gst::Uri object.
-
#uri_from_string_escaped(uri) ⇒ Gst::Uri
Parses a URI string into a new Gst::Uri object.
-
#uri_get_location(uri) ⇒ String
Extracts the location out of a given valid URI, ie.
-
#uri_get_protocol(uri) ⇒ String
Extracts the protocol out of a given valid URI.
-
#uri_has_protocol(uri, protocol) ⇒ Boolean
Checks if the protocol of a given valid URI matches protocol.
-
#uri_is_valid(uri) ⇒ Boolean
Tests if the given string is a valid URI identifier.
-
#uri_join_strings(base_uri, ref_uri) ⇒ String
This is a convenience function to join two URI strings and return the result.
-
#uri_protocol_is_supported(type, protocol) ⇒ Boolean
Checks if an element exists that supports the given URI protocol.
-
#uri_protocol_is_valid(protocol) ⇒ Boolean
Tests if the given string is a valid protocol identifier.
-
#util_array_binary_search(array, num_elements, element_size, search_func, mode, search_data, user_data) ⇒ GObject
Searches inside array for search_data by using the comparison function search_func.
-
#util_ceil_log2(v) ⇒ Integer
Return a max num of log2.
-
#util_double_to_fraction(src, dest_n, dest_d) ⇒ nil
Transforms a #gdouble to a fraction and simplifies the result.
-
#util_dump_buffer(buf) ⇒ nil
Dumps the buffer memory into a hex representation.
-
#util_dump_mem(mem, size) ⇒ nil
Dumps the memory block into a hex representation.
-
#util_filename_compare(a, b) ⇒ Integer
Compares the given filenames using natural ordering.
-
#util_fraction_add(a_n, a_d, b_n, b_d, res_n, res_d) ⇒ Boolean
Adds the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
-
#util_fraction_compare(a_n, a_d, b_n, b_d) ⇒ Integer
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.
-
#util_fraction_multiply(a_n, a_d, b_n, b_d, res_n, res_d) ⇒ Boolean
Multiplies the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
-
#util_fraction_to_double(src_n, src_d, dest) ⇒ nil
Transforms a fraction to a #gdouble.
-
#util_gdouble_to_guint64(value) ⇒ Integer
value casted to #guint64.
-
#util_get_object_array(object, name, array) ⇒ Boolean
Get a property of type %GST_TYPE_ARRAY and transform it into a GValue::Array.
-
#util_get_timestamp ⇒ Gst::ClockTime
Get a timestamp as GstClockTime to be used for interval measurements.
-
#util_greatest_common_divisor(a, b) ⇒ Integer
Calculates the greatest common divisor of a and b.
-
#util_greatest_common_divisor_int64(a, b) ⇒ Integer
Calculates the greatest common divisor of a and b.
-
#util_group_id_next ⇒ Integer
Return a constantly incrementing group id.
-
#util_guint64_to_gdouble(value) ⇒ Float
value casted to #gdouble.
-
#util_seqnum_compare(s1, s2) ⇒ Integer
Compare two sequence numbers, handling wraparound.
-
#util_seqnum_next ⇒ Integer
Return a constantly incrementing sequence number.
-
#util_set_object_arg(object, name, value) ⇒ nil
Converts the string value to the type of the objects argument and sets the argument with it.
-
#util_set_object_array(object, name, array) ⇒ Boolean
Transfer a GValue::Array to %GST_TYPE_ARRAY and set this value on the specified property name.
-
#util_set_value_from_string(value, value_str) ⇒ nil
Converts the string to the type of the value and sets the value with it.
-
#util_simplify_fraction(numerator, denominator, n_terms, threshold) ⇒ nil
Calculates the simpler representation of numerator and denominator and update both values with the resulting simplified fraction.
-
#util_uint64_scale(val, num, denom) ⇒ Integer
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
-
#util_uint64_scale_ceil(val, num, denom) ⇒ Integer
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
-
#util_uint64_scale_int(val, num, denom) ⇒ Integer
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
-
#util_uint64_scale_int_ceil(val, num, denom) ⇒ Integer
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
-
#util_uint64_scale_int_round(val, num, denom) ⇒ Integer
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
-
#util_uint64_scale_round(val, num, denom) ⇒ Integer
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision.
-
#value_can_compare(value1, value2) ⇒ Boolean
Determines if value1 and value2 can be compared.
-
#value_can_intersect(value1, value2) ⇒ Boolean
Determines if intersecting two values will produce a valid result.
-
#value_can_subtract(minuend, subtrahend) ⇒ Boolean
Checks if it's possible to subtract subtrahend from minuend.
-
#value_can_union(value1, value2) ⇒ Boolean
Determines if value1 and value2 can be non-trivially unioned.
-
#value_compare(value1, value2) ⇒ Integer
Compares value1 and value2.
-
#value_deserialize(dest, src) ⇒ Boolean
Tries to deserialize a string into the type specified by the given GValue.
-
#value_deserialize_with_pspec(dest, src, pspec) ⇒ Boolean
Tries to deserialize a string into the type specified by the given GValue.
-
#value_fixate(dest, src) ⇒ Boolean
Fixate src into a new value dest.
-
#value_fraction_multiply(product, factor1, factor2) ⇒ Boolean
Multiplies the two #GValue items containing a #GST_TYPE_FRACTION and sets product to the product of the two fractions.
-
#value_fraction_subtract(dest, minuend, subtrahend) ⇒ Boolean
Subtracts the subtrahend from the minuend and sets dest to the result.
-
#value_get_bitmask(value) ⇒ Integer
Gets the bitmask specified by value.
-
#value_get_caps(value) ⇒ Gst::Caps
Gets the contents of value.
-
#value_get_caps_features(value) ⇒ Gst::CapsFeatures
Gets the contents of value.
-
#value_get_double_range_max(value) ⇒ Float
Gets the maximum of the range specified by value.
-
#value_get_double_range_min(value) ⇒ Float
Gets the minimum of the range specified by value.
-
#value_get_flagset_flags(value) ⇒ Integer
Retrieve the flags field of a GstFlagSet value.
-
#value_get_flagset_mask(value) ⇒ Integer
Retrieve the mask field of a GstFlagSet value.
-
#value_get_fraction_denominator(value) ⇒ Integer
Gets the denominator of the fraction specified by value.
-
#value_get_fraction_numerator(value) ⇒ Integer
Gets the numerator of the fraction specified by value.
-
#value_get_fraction_range_max(value) ⇒ GObject::Value
Gets the maximum of the range specified by value.
-
#value_get_fraction_range_min(value) ⇒ GObject::Value
Gets the minimum of the range specified by value.
-
#value_get_int64_range_max(value) ⇒ Integer
Gets the maximum of the range specified by value.
-
#value_get_int64_range_min(value) ⇒ Integer
Gets the minimum of the range specified by value.
-
#value_get_int64_range_step(value) ⇒ Integer
Gets the step of the range specified by value.
-
#value_get_int_range_max(value) ⇒ Integer
Gets the maximum of the range specified by value.
-
#value_get_int_range_min(value) ⇒ Integer
Gets the minimum of the range specified by value.
-
#value_get_int_range_step(value) ⇒ Integer
Gets the step of the range specified by value.
-
#value_get_structure(value) ⇒ Gst::Structure
Gets the contents of value.
-
#value_init_and_copy(dest, src) ⇒ nil
Initialises the target value to be of the same type as source and then copies the contents from source to target.
-
#value_intersect(dest, value1, value2) ⇒ Boolean
Calculates the intersection of two values.
-
#value_is_fixed(value) ⇒ Boolean
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.
-
#value_is_subset(value1, value2) ⇒ Boolean
Check that value1 is a subset of value2.
-
#value_register(table) ⇒ nil
Registers functions to perform calculations on #GValue items of a given type.
-
#value_serialize(value) ⇒ String
tries to transform the given value into a string representation that allows getting back this string later on using gst_value_deserialize().
-
#value_set_bitmask(value, bitmask) ⇒ nil
Sets value to the bitmask specified by bitmask.
-
#value_set_caps(value, caps) ⇒ nil
Sets the contents of value to caps.
-
#value_set_caps_features(value, features) ⇒ nil
Sets the contents of value to features.
-
#value_set_double_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
-
#value_set_flagset(value, flags, mask) ⇒ nil
Sets value to the flags and mask values provided in flags and mask.
-
#value_set_fraction(value, numerator, denominator) ⇒ nil
Sets value to the fraction specified by numerator over denominator.
-
#value_set_fraction_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
-
#value_set_fraction_range_full(value, numerator_start, denominator_start, numerator_end, denominator_end) ⇒ nil
Sets value to the range specified by numerator_start/denominator_start and numerator_end/denominator_end.
-
#value_set_int64_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
-
#value_set_int64_range_step(value, start, end, step) ⇒ nil
Sets value to the range specified by start, end and step.
-
#value_set_int_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
-
#value_set_int_range_step(value, start, end, step) ⇒ nil
Sets value to the range specified by start, end and step.
-
#value_set_structure(value, structure) ⇒ nil
Sets the contents of value to structure.
-
#value_subtract(dest, minuend, subtrahend) ⇒ Boolean
Subtracts subtrahend from minuend and stores the result in dest.
-
#value_union(dest, value1, value2) ⇒ Boolean
Creates a GValue corresponding to the union of value1 and value2.
-
#version(major, minor, micro, nano) ⇒ nil
Gets the version number of the GStreamer library.
-
#version_string ⇒ String
This function returns a string that is useful for describing this version of GStreamer to the outside world: user agent strings, logging, ...
Class Method Details
.const_missing(name) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/gst.rb', line 31 def const_missing(name) init if const_defined?(name) const_get(name) else super end end |
.init(*argv) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gst.rb', line 49 def init(*argv) class << self remove_method(:init) remove_method(:const_missing) remove_method(:method_missing) end loader = Loader.new(self, argv) loader.load init_base init_controller init_audio end |
.method_missing(name, *args, &block) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/gst.rb', line 40 def method_missing(name, *args, &block) init if respond_to?(name) __send__(name, *args, &block) else super end end |
Instance Method Details
#buffer_get_max_memory ⇒ Integer
Gets the maximum amount of memory blocks that a buffer can hold. This is a compile time constant that can be queried with the function.
When more memory blocks are added, existing memory blocks will be merged together to make room for the new block.
#calculate_linear_regression(xy, temp, n, m_num, m_denom, b, xbase, r_squared) ⇒ Boolean
Calculates the linear regression of the values xy and places the result in m_num, m_denom, b and xbase, representing the function y(x) = m_num/m_denom * (x - xbase) + b that has the least-square distance from all points x and y.
r_squared will contain the remaining error.
If temp is not nil, it will be used as temporary space for the function, in which case the function works without any allocation at all. If temp is nil, an allocation will take place. temp should have at least the same amount of memory allocated as xy, i.e. 2nsizeof(GstClockTime).
This function assumes (x,y) values with reasonable large differences between them. It will not calculate the exact results if the differences between neighbouring values are too small due to not being able to represent sub-integer values during the calculations.
#caps_features_from_string(features) ⇒ Gst::CapsFeatures
Creates a Gst::CapsFeatures from a string representation.
#caps_from_string(string) ⇒ Gst::Caps
Converts caps from a string representation.
The implementation of serialization up to 1.20 would lead to unexpected results when there were nested Gst::Caps / #GstStructure deeper than one level.
#clear_mini_object(object_ptr) ⇒ nil
Clears a reference to a Gst::MiniObject.
object_ptr must not be nil.
If the reference is nil then this function does nothing. Otherwise, the reference count of the object is decreased using gst_mini_object_unref() and the pointer is set to nil.
A macro is also included that allows this function to be used without pointer casts.
#clear_object(object_ptr) ⇒ nil
Clears a reference to a Gst::Object.
object_ptr must not be nil.
If the reference is nil then this function does nothing. Otherwise, the reference count of the object is decreased using gst_object_unref() and the pointer is set to nil.
A macro is also included that allows this function to be used without pointer casts.
#clear_structure(structure_ptr) ⇒ nil
Clears a reference to a Gst::Structure.
structure_ptr must not be nil.
If the reference is nil then this function does nothing. Otherwise, the structure is free'd using gst_structure_free() and the pointer is set to nil.
A macro is also included that allows this function to be used without pointer casts.
#core_error_quark ⇒ GLib::Quark
#debug_add_log_function(func, user_data, notify) ⇒ nil
Adds the logging function to the list of logging functions. Be sure to use #G_GNUC_NO_INSTRUMENT on that function, it is needed.
#debug_add_ring_buffer_logger(max_size_per_thread, thread_timeout) ⇒ nil
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.
Logs can be fetched with gst_debug_ring_buffer_logger_get_logs() and the logger can be removed again with gst_debug_remove_ring_buffer_logger(). Only one logger at a time is possible.
#debug_bin_to_dot_data(bin, details) ⇒ String
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. dot format.
#debug_bin_to_dot_file(bin, details, file_name) ⇒ nil
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.
dot -Tpng -oimage.png graph_lowlevel.dot
#debug_bin_to_dot_file_with_ts(bin, details, file_name) ⇒ nil
This works like gst_debug_bin_to_dot_file(), but adds the current timestamp to the filename, so that it can be used to take multiple snapshots.
#debug_construct_term_color(colorinfo) ⇒ String
Constructs a string that can be used for getting the desired color in color terminals. You need to free the string after use.
#debug_construct_win_color(colorinfo) ⇒ Integer
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.
#debug_get_all_categories ⇒ GLib::SList<Gst::DebugCategory>
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.
#debug_get_color_mode ⇒ Gst::DebugColorMode
Changes the coloring mode for debug output.
#debug_get_default_threshold ⇒ Gst::DebugLevel
Returns the default threshold that is used for new categories.
#debug_get_stack_trace(flags) ⇒ String
look like. Pass #GST_STACK_TRACE_SHOW_NONE to retrieve a minimal backtrace. present, else nil.
#debug_is_active ⇒ Boolean
Checks if debugging output is activated.
#debug_is_colored ⇒ Boolean
Checks if the debugging output should be colored.
#debug_level_get_name(level) ⇒ String
Get the string representation of a debugging level
#debug_log(category, level, file, function, line, object, format, array) ⇒ nil
Logs the given message using the currently registered debugging handlers.
#debug_log_default(category, level, file, function, line, object, message, user_data) ⇒ nil
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.
You can add other handlers by using gst_debug_add_log_function(). And you can remove this handler by calling gst_debug_remove_log_function(gst_debug_log_default);
#debug_log_get_line(category, level, file, function, line, object, message) ⇒ String
Returns the string representation for the specified debug log message formatted in the same way as gst_debug_log_default() (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.
#debug_log_id(category, level, file, function, line, id, format, array) ⇒ nil
Logs the given message using the currently registered debugging handlers.
#debug_log_id_literal(category, level, file, function, line, id, message_string) ⇒ nil
Logs the given message using the currently registered debugging handlers.
#debug_log_id_valist(category, level, file, function, line, id, format, args) ⇒ nil
Logs the given message using the currently registered debugging handlers.
#debug_log_literal(category, level, file, function, line, object, message_string) ⇒ nil
Logs the given message using the currently registered debugging handlers.
#debug_log_valist(category, level, file, function, line, object, format, args) ⇒ nil
Logs the given message using the currently registered debugging handlers.
#debug_print_stack_trace ⇒ nil
If libunwind, glibc backtrace or DbgHelp are present a stack trace is printed.
#debug_remove_log_function(func) ⇒ Integer
Removes all registered instances of the given logging functions.
#debug_remove_log_function_by_data(data) ⇒ Integer
Removes all registered instances of log functions with the given user data.
#debug_remove_ring_buffer_logger ⇒ nil
Removes any previously added ring buffer logger with gst_debug_add_ring_buffer_logger().
#debug_ring_buffer_logger_get_logs ⇒ Array<String>
Fetches the current logs per thread from the ring buffer logger. See gst_debug_add_ring_buffer_logger() for details. strings with the debug output per thread
#debug_set_active(active) ⇒ nil
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.
#debug_set_color_mode(mode) ⇒ nil
Changes the coloring mode for debug output.
This function may be called before gst_init().
#debug_set_color_mode_from_string(mode) ⇒ nil
Changes the coloring mode for debug output.
This function may be called before gst_init(). "on", "auto", "off", "disable", "unix".
#debug_set_colored(colored) ⇒ nil
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 gst_init().
#debug_set_default_threshold(level) ⇒ nil
Sets the default threshold to the given level and updates all categories to use this threshold.
This function may be called before gst_init().
#debug_set_threshold_for_name(name, level) ⇒ nil
Sets all categories which match the given glob style pattern to the given level.
#debug_set_threshold_from_string(list, reset) ⇒ nil
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.
false if adding the threshold described by list to the one already set.
#debug_unset_threshold_for_name(name) ⇒ nil
Resets all categories with the given name back to the default level.
#deinit ⇒ nil
Clean up any resources created by GStreamer in gst_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.
#dynamic_type_register(plugin, type) ⇒ Boolean
Registers a new Gst::DynamicTypeFactory in the registry
#error_get_message(domain, code) ⇒ String
Get a string describing the error message in the current locale.
#event_type_get_flags(type) ⇒ Gst::EventTypeFlags
Gets the Gst::EventTypeFlags associated with type.
#event_type_get_name(type) ⇒ String
Get a printable name for the given event type. Do not modify or free.
#event_type_to_quark(type) ⇒ GLib::Quark
Get the unique quark for the given event type.
#event_type_to_sticky_ordering(type) ⇒ Integer
Converts the Gst::EventType to an unsigned integer that represents the ordering of sticky events when re-sending them. A lower value represents a higher-priority event.
#filename_to_uri(filename) ⇒ String
Similar to g_filename_to_uri(), 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.
#flow_get_name(ret) ⇒ String
Gets a string representing the given flow return.
#flow_to_quark(ret) ⇒ GLib::Quark
Get the unique quark for the given GstFlowReturn. invalid return was specified.
#format_get_by_nick(nick) ⇒ Gst::Format
Return the format registered with the given nick. if the format was not registered.
#format_get_details(format) ⇒ Gst::FormatDefinition
Get details about the given format. on failure.
MT safe.
#format_get_name(format) ⇒ String
Get a printable name for the given format. Do not modify or free. or nil if the format is unknown.
#format_iterate_definitions ⇒ Gst::Iterator
Iterate all the registered formats. The format definition is read only.
#format_register(nick, description) ⇒ Gst::Format
Create a new GstFormat based on the nick or return an already registered format with that nick. with the same nick.
MT safe.
#format_to_quark(format) ⇒ GLib::Quark
Get the unique quark for the given format. is unknown.
#formats_contains(formats, format) ⇒ Boolean
See if the given format is inside the format array.
#info_strdup_printf(format, array) ⇒ String
Allocates, fills and returns a 0-terminated string from the printf style format string and corresponding arguments.
See gst_info_vasprintf() for when this function is required.
Free with g_free().
#info_strdup_vprintf(format, args) ⇒ String
Allocates, fills and returns a null terminated string from the printf style format string and args.
See gst_info_vasprintf() for when this function is required.
Free with g_free().
#info_vasprintf(result, format, args) ⇒ Integer
Allocates and fills a string large enough (including the terminating null byte) to hold the specified printf style format and args.
This function deals with the GStreamer specific printf specifiers #GST_PTR_FORMAT and #GST_SEGMENT_FORMAT. If you do not have these specifiers in your format string, you do not need to use this function and can use alternatives such as g_vasprintf().
Free result with g_free().
#init(argc, argv) ⇒ nil
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 gst_update_registry() for details and section
WARNING: 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 gst_init_check() instead.
#init_check(argc, argv) ⇒ Boolean
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 gst_init() instead.
#init_get_option_group ⇒ GLib::OptionGroup
Returns a GOption::Group with GStreamer's argument specifications. The group is set up to use standard GOption callbacks, so when using this group in combination with GOption parsing methods, all argument parsing and initialization is automated.
This function is useful if you want to integrate GStreamer with other libraries that use GOption (see g_option_context_add_group() ).
If you use this function, you should make sure you initialise the GLib threading system as one of the very first things in your program (see the example at the beginning of this section).
#is_caps_features(obj) ⇒ Boolean
Checks if obj is a Gst::CapsFeatures
#is_initialized ⇒ Boolean
Use this function to check if GStreamer has been initialized with gst_init() or gst_init_check().
#library_error_quark ⇒ GLib::Quark
#main_executable_path ⇒ String
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.
#make_element_message_details(name, array) ⇒ Gst::Structure
Create a Gst::Structure to be used with #gst_element_message_full_with_details. nil terminator required.
#message_type_get_name(type) ⇒ String
Get a printable name for the given message type. Do not modify or free.
#message_type_to_quark(type) ⇒ GLib::Quark
Get the unique quark for the given message type.
#meta_api_type_get_tags(api) ⇒ Array<String>
Returns an array of tags as strings.
#meta_api_type_has_tag(api, tag) ⇒ Boolean
Check if api was registered with tag.
#meta_api_type_register(api, tags) ⇒ GLib::Type
Register and return a GType for the api and associate it with tags.
#meta_deserialize(buffer, data, size, consumed) ⇒ Gst::Meta
Recreate a Gst::Meta from serialized data returned by gst_meta_serialize() and add it to buffer.
Note that the meta must have been previously registered by calling one of
gst_*_meta_get_info () functions.
consumed is set to the number of bytes that can be skipped from data to find the next meta serialization, if any. In case of parsing error that does not allow to determine that size, consumed is set to 0.
#meta_get_info(impl) ⇒ Gst::MetaInfo
Lookup a previously registered meta info structure by its implementation name impl. nil when no such metainfo exists.
#meta_info_new(api, impl, size) ⇒ Gst::MetaInfo
Creates a new structure that needs to be filled before being registered. This structure should filled and then registered with gst_meta_info_register().
Example:
const GstMetaInfo *
gst_my_meta_get_info (void)
{
static const GstMetaInfo *meta_info = NULL;
if (g_once_init_enter ((GstMetaInfo **) & meta_info)) {
GstMetaInfo *info = gst_meta_info_new (
gst_my_meta_api_get_type (),
"GstMyMeta",
sizeof (GstMyMeta));
const GstMetaInfo *meta = NULL;
info->init_func = my_meta_init;
info->free_func = my_meta_free;
info->transform_func = my_meta_transform;
info->serialize_func = my_meta_serialize;
info->deserialize_func = my_meta_deserialize;
meta = gst_meta_info_register (info);
g_once_init_leave ((GstMetaInfo **) & meta_info, (GstMetaInfo *) meta);
}
return meta_info;
}
#meta_register(api, impl, size, init_func, free_func, transform_func) ⇒ Gst::MetaInfo
Register a new Gst::Meta implementation.
The same info can be retrieved later with gst_meta_get_info() by using impl as the key. access metadata.
#meta_register_custom(name, tags, transform_func, user_data, destroy_data) ⇒ Gst::MetaInfo
Register a new custom Gst::Meta implementation, backed by an opaque structure holding a Gst::Structure.
The registered info can be retrieved later with gst_meta_get_info() by using name as the key.
The backing Gst::Structure can be retrieved with gst_custom_meta_get_structure(), its mutability is conditioned by the writability of the buffer the meta is attached to.
When transform_func is nil, the meta and its backing Gst::Structure will always be copied when the transform operation is copy, other operations are discarded, copy regions are ignored. access metadata.
#meta_register_custom_simple(name) ⇒ Gst::MetaInfo
Simplified version of gst_meta_register_custom(), with no tags and no transform function.
#mini_object_replace(olddata, newdata) ⇒ Boolean
Atomically modifies a pointer to point to a new mini-object. The reference count of olddata is decreased and the reference count of newdata is increased.
Either newdata and the value pointed to by olddata may be nil.
#mini_object_steal(olddata) ⇒ Gst::MiniObject
Replace the current Gst::MiniObject pointer to by olddata with nil and return the old value.
#mini_object_take(olddata, newdata) ⇒ Boolean
Modifies a pointer to point to a new mini-object. The modification is done atomically. This version is similar to gst_mini_object_replace() except that it does not increase the refcount of newdata and thus takes ownership of newdata.
Either newdata and the value pointed to by olddata may be nil.
#pad_mode_get_name(mode) ⇒ String
Return the name of a pad mode, for use in debug messages mostly.
#param_spec_array(name, nick, blurb, element_spec, flags) ⇒ GObject::ParamSpec
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 g_object_class_install_property() in a GObjects's instance_init function.
#param_spec_fraction(name, nick, blurb, min_num, min_denom, max_num, max_denom, default_num, default_denom, flags) ⇒ GObject::ParamSpec
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 g_object_class_install_property() in a GObjects's instance_init function.
#parent_buffer_meta_api_get_type ⇒ GLib::Type
#parent_buffer_meta_get_info ⇒ Gst::MetaInfo
Gets the global Gst::MetaInfo describing the #GstParentBufferMeta meta.
#parse_bin_from_description(bin_description, ghost_unlinked_pads) ⇒ Gst::Bin
This is a convenience wrapper around gst_parse_launch() to create a Gst::Bin from a gst-launch-style pipeline description. See gst_parse_launch() 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).
#parse_bin_from_description_full(bin_description, ghost_unlinked_pads, context, flags) ⇒ Gst::Element
This is a convenience wrapper around gst_parse_launch() to create a Gst::Bin from a gst-launch-style pipeline description. See gst_parse_launch() 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).
#parse_error_quark ⇒ GLib::Quark
Get the error quark used by the parsing subsystem.
#parse_launch(pipeline_description) ⇒ Gst::Element
Create a new pipeline based on command line syntax. Please note that you might get a return value that is not nil even though the error is set. In this case there was a recoverable parsing error and you can try to play the pipeline.
To create a sub-pipeline (bin) for embedding into an existing pipeline use gst_parse_bin_from_description().
#parse_launch_full(pipeline_description, context, flags) ⇒ Gst::Element
Create a new pipeline based on command line syntax. Please note that you might get a return value that is not nil even though the error is set. In this case there was a recoverable parsing error and you can try to play the pipeline.
To create a sub-pipeline (bin) for embedding into an existing pipeline use gst_parse_bin_from_description_full().
#parse_launchv(argv) ⇒ Gst::Element
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. on failure.
#parse_launchv_full(argv, context, flags) ⇒ Gst::Element
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.
#plugin_error_quark ⇒ GLib::Quark
Get the error quark.
#poll_new(controllable) ⇒ Gst::Poll
Create a new file descriptor set. If controllable, it is possible to restart or flush a call to gst_poll_wait() with gst_poll_restart() and gst_poll_set_flushing() respectively.
Free-function: gst_poll_free
#poll_new_timer ⇒ Gst::Poll
Create a new poll object that can be used for scheduling cancellable timeouts.
A timeout is performed with gst_poll_wait(). Multiple timeouts can be performed from different threads.
Free-function: gst_poll_free
#preset_get_app_dir ⇒ Gst::filename
Gets the directory for application specific presets if set by the application. the string
#preset_set_app_dir(app_dir) ⇒ Boolean
Sets an extra directory as an absolute path that should be considered when looking for presets. Any presets in the application dir will shadow the system presets.
#print(format, array) ⇒ nil
Outputs a formatted message via the GLib print handler. The default print handler simply outputs the message to stdout.
This function will not append a new-line character at the end, unlike gst_println() which will.
All strings must be in ASCII or UTF-8 encoding.
This function differs from g_print() in that it supports all the additional printf specifiers that are supported by GStreamer's debug logging system, such as #GST_PTR_FORMAT and #GST_SEGMENT_FORMAT.
This function is primarily for printing debug output.
#printerr(format, array) ⇒ nil
Outputs a formatted message via the GLib error message handler. The default handler simply outputs the message to stderr.
This function will not append a new-line character at the end, unlike gst_printerrln() which will.
All strings must be in ASCII or UTF-8 encoding.
This function differs from g_printerr() in that it supports the additional printf specifiers that are supported by GStreamer's debug logging system, such as #GST_PTR_FORMAT and #GST_SEGMENT_FORMAT.
This function is primarily for printing debug output.
#printerrln(format, array) ⇒ nil
Outputs a formatted message via the GLib error message handler. The default handler simply outputs the message to stderr.
This function will append a new-line character at the end, unlike gst_printerr() which will not.
All strings must be in ASCII or UTF-8 encoding.
This function differs from g_printerr() in that it supports the additional printf specifiers that are supported by GStreamer's debug logging system, such as #GST_PTR_FORMAT and #GST_SEGMENT_FORMAT.
This function is primarily for printing debug output.
#println(format, array) ⇒ nil
Outputs a formatted message via the GLib print handler. The default print handler simply outputs the message to stdout.
This function will append a new-line character at the end, unlike gst_print() which will not.
All strings must be in ASCII or UTF-8 encoding.
This function differs from g_print() in that it supports all the additional printf specifiers that are supported by GStreamer's debug logging system, such as #GST_PTR_FORMAT and #GST_SEGMENT_FORMAT.
This function is primarily for printing debug output.
#protection_filter_systems_by_available_decryptors(system_identifiers) ⇒ Array<String>
Iterates the supplied list of UUIDs and checks the GstRegistry for all the decryptors supporting one of the supplied UUIDs. A null terminated array of strings that contains the UUID values of each protection system that is to be checked. A null terminated array containing all the system_identifiers supported by the set of available decryptors, or nil if no matches were found.
#protection_meta_api_get_type ⇒ GLib::Type
#protection_meta_get_info ⇒ Gst::MetaInfo
#protection_select_system(system_identifiers) ⇒ String
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. that contains the UUID values of each protection system that is to be checked. system_identifiers that indicates the highest ranked element that implements the protection system indicated by that system ID, or nil if no element has been found.
#query_type_get_flags(type) ⇒ Gst::QueryTypeFlags
Gets the Gst::QueryTypeFlags associated with type.
#query_type_get_name(type) ⇒ String
Get a printable name for the given query type. Do not modify or free.
#query_type_to_quark(type) ⇒ GLib::Quark
Get the unique quark for the given query type.
#reference_timestamp_meta_api_get_type ⇒ GLib::Type
#reference_timestamp_meta_get_info ⇒ Gst::MetaInfo
Gets the global Gst::MetaInfo describing the #GstReferenceTimestampMeta meta.
#resource_error_quark ⇒ GLib::Quark
#segtrap_is_enabled ⇒ Boolean
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 gst_segtrap_set_enabled() function. This is typically done if the application wants to install its own handler without GStreamer interfering.
#segtrap_set_enabled(enabled) ⇒ nil
Applications might want to disable/enable the SIGSEGV handling of the GStreamer core. See gst_segtrap_is_enabled() for more information.
#state_change_get_name(transition) ⇒ String
Gets a string representing the given state transition.
#static_caps_get_type ⇒ GLib::Type
#static_pad_template_get_type ⇒ GLib::Type
#stream_error_quark ⇒ GLib::Quark
#stream_type_get_name(stype) ⇒ String
Get a descriptive string for a given Gst::StreamType
#structure_take(oldstr_ptr, newstr) ⇒ Boolean
Atomically modifies a pointer to point to a new structure. The Gst::Structure oldstr_ptr is pointing to is freed and newstr is taken ownership over.
Either newstr and the value pointed to by oldstr_ptr may be nil.
It is a programming error if both newstr and the value pointed to by oldstr_ptr refer to the same, non-nil structure.
#tag_exists(tag) ⇒ Boolean
Checks if the given type is already registered.
#tag_get_description(tag) ⇒ String
Returns the human-readable description of this tag, You must not change or free this string.
#tag_get_flag(tag) ⇒ Gst::TagFlag
Gets the flag of tag.
#tag_get_nick(tag) ⇒ String
Returns the human-readable name of this tag, You must not change or free this string.
#tag_get_type(tag) ⇒ GLib::Type
Gets the #GType used for this tag.
#tag_is_fixed(tag) ⇒ Boolean
Checks if the given tag is fixed. A fixed tag can only contain one value. Unfixed tags can contain lists of values.
#tag_list_copy_value(dest, list, tag) ⇒ Boolean
Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. You must g_value_unset() the value after use.
#tag_merge_strings_with_comma(dest, src) ⇒ nil
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.
#tag_merge_use_first(dest, src) ⇒ nil
This is a convenience function for the func argument of gst_tag_register(). It creates a copy of the first value from the list.
#tag_register(name, flag, type, nick, blurb, func) ⇒ nil
Registers a new tag type for the use with GStreamer's type system. If a type with that name is already registered, that one is used. The old registration may have used a different type however. So don't rely on your supplied values.
Important: if you do not supply a merge function the implication will be that there can only be one single value for this tag in a tag list and any additional values will silently be discarded when being added (unless #GST_TAG_MERGE_REPLACE, #GST_TAG_MERGE_REPLACE_ALL, or #GST_TAG_MERGE_PREPEND is used as merge mode, in which case the new value will replace the old one in the list).
The merge function will be called from gst_tag_list_copy_value() when it is required that one or more values for a tag be condensed into one single value. This may happen from gst_tag_list_get_string(), gst_tag_list_get_int(), gst_tag_list_get_double() etc. What will happen exactly in that case depends on how the tag was registered and if a merge function was supplied and if so which one.
Two default merge functions are provided: gst_tag_merge_use_first() and gst_tag_merge_strings_with_comma().
#tag_register_static(name, flag, type, nick, blurb, func) ⇒ nil
Registers a new tag type for the use with GStreamer's type system.
Same as gst_tag_register(), but name, nick, and blurb must be static strings or inlined strings, as they will not be copied. (GStreamer plugins will be made resident once loaded, so this function can be used even from dynamically loaded plugins.)
#toc_entry_type_get_nick(type) ⇒ String
Converts type to a string representation.
#tracing_get_active_tracers ⇒ GLib::List<Gst::Tracer>
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_deinit() is called. Gst::Tracer objects
#tracing_register_hook(tracer, detail, func) ⇒ nil
Register func to be called when the trace hook detail is getting invoked. Use nil for detail to register to all hooks.
#type_find_get_type ⇒ GLib::Type
#type_find_register(plugin, name, rank, func, extensions, possible_caps, data, data_notify) ⇒ Boolean
Registers a new typefind function to be used for typefinding. After registering this function will be available for typefinding. This function is typically called during an element's plugin initialization.
#type_is_plugin_api(type, flags) ⇒ Boolean
Checks if type is plugin API. See gst_type_mark_as_plugin_api() for details.
#type_mark_as_plugin_api(type, flags) ⇒ nil
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.
Types exposed by plugins are not automatically added to the documentation as they might originate from another library and should in that case be documented via that library instead.
By marking a type as plugin API it will be included in the documentation of the plugin that defines it.
#update_registry ⇒ Boolean
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 gst_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.
#uri_construct(protocol, location) ⇒ String
Constructs a URI for a given valid protocol and location.
Free-function: g_free
#uri_error_quark ⇒ GLib::Quark
#uri_from_string(uri) ⇒ Gst::Uri
Parses a URI string into a new Gst::Uri object. Will return NULL if the URI cannot be parsed.
#uri_from_string_escaped(uri) ⇒ Gst::Uri
Parses a URI string into a new Gst::Uri object. Will return NULL if the URI cannot be parsed. This is identical to gst_uri_from_string() except that the userinfo and fragment components of the URI will not be unescaped while parsing.
Use this when you need to extract a username and password from the userinfo such as https://user:passwordexample.com since either may contain a URI-escaped ':' character. gst_uri_from_string() will unescape the entire userinfo component, which will make it impossible to know which ':' delineates the username and password.
The same applies to the fragment component of the URI, such as https://example.com/path#fragment which may contain a URI-escaped '#'.
#uri_get_location(uri) ⇒ String
Extracts the location out of a given valid URI, ie. the protocol and "://" are stripped from the URI, which means that the location returned includes the hostname if one is specified. The returned string must be freed using g_free().
Free-function: g_free
#uri_get_protocol(uri) ⇒ String
Extracts the protocol out of a given valid URI. The returned string must be freed using g_free().
#uri_has_protocol(uri, protocol) ⇒ Boolean
Checks if the protocol of a given valid URI matches protocol.
#uri_is_valid(uri) ⇒ Boolean
Tests if the given string is a valid URI identifier. URIs start with a valid scheme followed by ":" and maybe a string identifying the location.
#uri_join_strings(base_uri, ref_uri) ⇒ String
This is a convenience function to join two URI strings and return the result. The returned string should be g_free()'d after use.
#uri_protocol_is_supported(type, protocol) ⇒ Boolean
Checks if an element exists that supports the given URI protocol. Note that a positive return value does not imply that a subsequent call to gst_element_make_from_uri() is guaranteed to work.
#uri_protocol_is_valid(protocol) ⇒ Boolean
Tests if the given string is a valid protocol identifier. Protocols must consist of alphanumeric characters, '+', '-' and '.' and must start with a alphabetic character. See RFC 3986 Section 3.1.
#util_array_binary_search(array, num_elements, element_size, search_func, mode, search_data, user_data) ⇒ GObject
Searches inside array for search_data by using the comparison function search_func. array must be sorted ascending.
As search_data is always passed as second argument to search_func it's not required that search_data has the same type as the array elements.
The complexity of this search function is O(log (num_elements)). element or nil if nothing was found
#util_ceil_log2(v) ⇒ Integer
Return a max num of log2.
#util_double_to_fraction(src, dest_n, dest_d) ⇒ nil
Transforms a #gdouble to a fraction and simplifies the result.
#util_dump_buffer(buf) ⇒ nil
Dumps the buffer memory into a hex representation. Useful for debugging.
#util_dump_mem(mem, size) ⇒ nil
Dumps the memory block into a hex representation. Useful for debugging.
#util_filename_compare(a, b) ⇒ Integer
Compares the given filenames using natural ordering.
#util_fraction_add(a_n, a_d, b_n, b_d, res_n, res_d) ⇒ Boolean
Adds the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
#util_fraction_compare(a_n, a_d, b_n, b_d) ⇒ Integer
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.
#util_fraction_multiply(a_n, a_d, b_n, b_d, res_n, res_d) ⇒ Boolean
Multiplies the fractions a_n/a_d and b_n/b_d and stores the result in res_n and res_d.
#util_fraction_to_double(src_n, src_d, dest) ⇒ nil
Transforms a fraction to a #gdouble.
#util_gdouble_to_guint64(value) ⇒ Integer
Returns value casted to #guint64.
#util_get_object_array(object, name, array) ⇒ Boolean
Get a property of type %GST_TYPE_ARRAY and transform it into a GValue::Array. This allow language bindings to get GST_TYPE_ARRAY properties which are otherwise not an accessible type.
#util_get_timestamp ⇒ Gst::ClockTime
Get a timestamp as GstClockTime to be used for interval measurements. The timestamp should not be interpreted in any other way.
#util_greatest_common_divisor(a, b) ⇒ Integer
Calculates the greatest common divisor of a and b.
#util_greatest_common_divisor_int64(a, b) ⇒ Integer
Calculates the greatest common divisor of a and b.
#util_group_id_next ⇒ Integer
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 %GST_GROUP_ID_INVALID (which is 0) overflow back to 0 at some point.
#util_guint64_to_gdouble(value) ⇒ Float
Returns value casted to #gdouble.
#util_seqnum_compare(s1, s2) ⇒ Integer
Compare two sequence numbers, handling wraparound.
The current implementation just returns (gint32)(s1 - s2). positive number if s1 is after s2.
#util_seqnum_next ⇒ Integer
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 %GST_SEQNUM_INVALID (which is 0). overflow at some point. Use gst_util_seqnum_compare() to make sure you handle wraparound correctly.
#util_set_object_arg(object, name, value) ⇒ nil
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.
#util_set_object_array(object, name, array) ⇒ Boolean
Transfer a GValue::Array 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.
#util_set_value_from_string(value, value_str) ⇒ nil
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.
#util_simplify_fraction(numerator, denominator, n_terms, threshold) ⇒ nil
Calculates the simpler representation of numerator and denominator and update both values with the resulting simplified fraction.
Simplify a fraction using a simple continued fraction decomposition. The idea here is to convert fractions such as 333333/10000000 to 1/30 using 32 bit arithmetic only. The algorithm is not perfect and relies upon two arbitrary parameters to remove non-significative terms from the simple continued fraction decomposition. Using 8 and 333 for n_terms and threshold respectively seems to give nice results.
#util_uint64_scale(val, num, denom) ⇒ Integer
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. function returns G_MAXUINT64. If the result is not exactly representable as an integer it is truncated. See also gst_util_uint64_scale_round(), gst_util_uint64_scale_ceil(), gst_util_uint64_scale_int(), gst_util_uint64_scale_int_round(), gst_util_uint64_scale_int_ceil().
#util_uint64_scale_ceil(val, num, denom) ⇒ Integer
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. function returns G_MAXUINT64. If the result is not exactly representable as an integer, it is rounded up. See also gst_util_uint64_scale(), gst_util_uint64_scale_round(), gst_util_uint64_scale_int(), gst_util_uint64_scale_int_round(), gst_util_uint64_scale_int_ceil().
#util_uint64_scale_int(val, num, denom) ⇒ Integer
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. function returns G_MAXUINT64. If the result is not exactly representable as an integer, it is truncated. See also gst_util_uint64_scale_int_round(), gst_util_uint64_scale_int_ceil(), gst_util_uint64_scale(), gst_util_uint64_scale_round(), gst_util_uint64_scale_ceil().
#util_uint64_scale_int_ceil(val, num, denom) ⇒ Integer
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. function returns G_MAXUINT64. If the result is not exactly representable as an integer, it is rounded up. See also gst_util_uint64_scale_int(), gst_util_uint64_scale_int_round(), gst_util_uint64_scale(), gst_util_uint64_scale_round(), gst_util_uint64_scale_ceil().
#util_uint64_scale_int_round(val, num, denom) ⇒ Integer
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. function returns G_MAXUINT64. If the result is not exactly representable as an integer, it is rounded to the nearest integer (half-way cases are rounded up). See also gst_util_uint64_scale_int(), gst_util_uint64_scale_int_ceil(), gst_util_uint64_scale(), gst_util_uint64_scale_round(), gst_util_uint64_scale_ceil().
#util_uint64_scale_round(val, num, denom) ⇒ Integer
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. function returns G_MAXUINT64. If the result is not exactly representable as an integer, it is rounded to the nearest integer (half-way cases are rounded up). See also gst_util_uint64_scale(), gst_util_uint64_scale_ceil(), gst_util_uint64_scale_int(), gst_util_uint64_scale_int_round(), gst_util_uint64_scale_int_ceil().
#value_can_compare(value1, value2) ⇒ Boolean
Determines if value1 and value2 can be compared.
#value_can_intersect(value1, value2) ⇒ Boolean
Determines if intersecting two values will produce a valid result. Two values will produce a valid intersection if they have the same type.
#value_can_subtract(minuend, subtrahend) ⇒ Boolean
Checks if it's possible to subtract subtrahend from minuend.
#value_can_union(value1, value2) ⇒ Boolean
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. be unioned.
#value_compare(value1, value2) ⇒ Integer
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.
#value_deserialize(dest, src) ⇒ Boolean
Tries to deserialize a string into the type specified by the given GValue. If the operation succeeds, true is returned, false otherwise.
#value_deserialize_with_pspec(dest, src, pspec) ⇒ Boolean
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.
#value_fixate(dest, src) ⇒ Boolean
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.
#value_fraction_multiply(product, factor1, factor2) ⇒ Boolean
Multiplies the two #GValue items containing a #GST_TYPE_FRACTION and sets product to the product of the two fractions.
#value_fraction_subtract(dest, minuend, subtrahend) ⇒ Boolean
Subtracts the subtrahend from the minuend and sets dest to the result.
#value_get_bitmask(value) ⇒ Integer
Gets the bitmask specified by value.
#value_get_caps(value) ⇒ Gst::Caps
Gets the contents of value. The reference count of the returned Gst::Caps will not be modified, therefore the caller must take one before getting rid of the value.
#value_get_caps_features(value) ⇒ Gst::CapsFeatures
Gets the contents of value.
#value_get_double_range_max(value) ⇒ Float
Gets the maximum of the range specified by value.
#value_get_double_range_min(value) ⇒ Float
Gets the minimum of the range specified by value.
#value_get_flagset_flags(value) ⇒ Integer
Retrieve the flags field of a GstFlagSet value.
#value_get_flagset_mask(value) ⇒ Integer
Retrieve the mask field of a GstFlagSet value.
#value_get_fraction_denominator(value) ⇒ Integer
Gets the denominator of the fraction specified by value.
#value_get_fraction_numerator(value) ⇒ Integer
Gets the numerator of the fraction specified by value.
#value_get_fraction_range_max(value) ⇒ GObject::Value
Gets the maximum of the range specified by value.
#value_get_fraction_range_min(value) ⇒ GObject::Value
Gets the minimum of the range specified by value.
#value_get_int64_range_max(value) ⇒ Integer
Gets the maximum of the range specified by value.
#value_get_int64_range_min(value) ⇒ Integer
Gets the minimum of the range specified by value.
#value_get_int64_range_step(value) ⇒ Integer
Gets the step of the range specified by value.
#value_get_int_range_max(value) ⇒ Integer
Gets the maximum of the range specified by value.
#value_get_int_range_min(value) ⇒ Integer
Gets the minimum of the range specified by value.
#value_get_int_range_step(value) ⇒ Integer
Gets the step of the range specified by value.
#value_get_structure(value) ⇒ Gst::Structure
Gets the contents of value.
#value_init_and_copy(dest, src) ⇒ nil
Initialises the target value to be of the same type as source and then copies the contents from source to target.
#value_intersect(dest, value1, value2) ⇒ Boolean
Calculates the intersection of two values. If the values have a non-empty intersection, the value representing the intersection is placed in dest, unless nil. If the intersection is non-empty, dest is not modified.
#value_is_fixed(value) ⇒ Boolean
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.
#value_is_subset(value1, value2) ⇒ Boolean
Check that value1 is a subset of value2.
#value_register(table) ⇒ nil
Registers functions to perform calculations on #GValue items of a given type. Each type can only be added once.
#value_serialize(value) ⇒ String
tries to transform the given value into a string representation that allows getting back this string later on using gst_value_deserialize().
Free-function: g_free or nil if none exists
#value_set_bitmask(value, bitmask) ⇒ nil
Sets value to the bitmask specified by bitmask.
#value_set_caps(value, caps) ⇒ nil
Sets the contents of value to caps. A reference to the provided caps will be taken by the value.
#value_set_caps_features(value, features) ⇒ nil
Sets the contents of value to features.
#value_set_double_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
#value_set_flagset(value, flags, mask) ⇒ nil
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"
#value_set_fraction(value, numerator, denominator) ⇒ nil
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.
#value_set_fraction_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
#value_set_fraction_range_full(value, numerator_start, denominator_start, numerator_end, denominator_end) ⇒ nil
Sets value to the range specified by numerator_start/denominator_start and numerator_end/denominator_end.
#value_set_int64_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
#value_set_int64_range_step(value, start, end, step) ⇒ nil
Sets value to the range specified by start, end and step.
#value_set_int_range(value, start, end) ⇒ nil
Sets value to the range specified by start and end.
#value_set_int_range_step(value, start, end, step) ⇒ nil
Sets value to the range specified by start, end and step.
#value_set_structure(value, structure) ⇒ nil
Sets the contents of value to structure.
#value_subtract(dest, minuend, subtrahend) ⇒ Boolean
Subtracts subtrahend from minuend and stores the result in dest. Note that this means subtraction as in sets, not as in mathematics.
#value_union(dest, value1, value2) ⇒ Boolean
Creates a GValue corresponding to the union of value1 and value2.
#version(major, minor, micro, nano) ⇒ nil
Gets the version number of the GStreamer library.
#version_string ⇒ String
This function returns a string that is useful for describing this version of GStreamer to the outside world: user agent strings, logging, ...