Flags indicating which tracing feature to enable. No tracing specified or desired. Trace number of non-freed memory. Trace pointers of unfreed memory. Flags for allocators. The allocator has a custom alloc function. first flag that can be used for custom purposes Signal that the end-of-stream has been reached. This signal is emitted from the streaming thread. the appsink element that emitted the signal Signal that a new preroll sample is available. This signal is emitted from the streaming thread and only when the "emit-signals" property is %TRUE. The new preroll sample can be retrieved with the "pull-preroll" action signal or gst_app_sink_pull_preroll() either from this signal callback or from any other thread. Note that this signal is only emitted when the "emit-signals" property is set to %TRUE, which it is not by default for performance reasons. the appsink element that emitted the signal Signal that a new sample is available. This signal is emitted from the streaming thread and only when the "emit-signals" property is %TRUE. The new sample can be retrieved with the "pull-sample" action signal or gst_app_sink_pull_sample() either from this signal callback or from any other thread. Note that this signal is only emitted when the "emit-signals" property is set to %TRUE, which it is not by default for performance reasons. the appsink element that emited the signal Get the last preroll sample in @appsink. This was the sample that caused the appsink to preroll in the PAUSED state. This sample can be pulled many times and remains available to the application even after EOS. This function is typically used when dealing with a pipeline in the PAUSED state. Calling this function after doing a seek will give the sample right after the seek position. Note that the preroll sample will also be returned as the first sample when calling gst_app_sink_pull_sample() or the "pull-sample" action signal. If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. This function blocks until a preroll sample or EOS is received or the appsink element is set to the READY/NULL state. the appsink element to emit this signal on a #GstSample or NULL when the appsink is stopped or EOS. This function blocks until a sample or EOS becomes available or the appsink element is set to the READY/NULL state. This function will only return samples when the appsink is in the PLAYING state. All rendered samples will be put in a queue so that the application can pull samples at its own rate. Note that when the application does not pull samples fast enough, the queued samples could consume a lot of memory, especially when dealing with raw video frames. It's possible to control the behaviour of the queue with the "drop" and "max-buffers" properties. If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. the appsink element to emit this signal on a #GstSample or NULL when the appsink is stopped or EOS. Wait for all buffers to be processed after receiving an EOS. In cases where it is uncertain if an @appsink will have a consumer for its buffers when it receives an EOS, set to %FALSE to ensure that the @appsink will not hang. When max-bytes are queued and after the enough-data signal has been emitted, block any further push-buffer calls until the amount of queued bytes drops below the max-bytes limit. The GstCaps that will negotiated downstream and will be put on outgoing buffers. The number of currently queued bytes inside appsrc. Make appsrc emit the "need-data", "enough-data" and "seek-data" signals. This option is by default enabled for backwards compatibility reasons but can disabled when needed because signal emission is expensive. Make appsrc emit the "need-data" signal when the amount of bytes in the queue drops below this percentage of max-bytes. Notify @appsrc that no more buffer are available. the appsrc Signal that the source has enough data. It is recommended that the application stops calling push-buffer until the need-data signal is emitted again to avoid excessive buffer queueing. the appsrc element that emitted the signal The format to use for segment events. When the source is producing timestamped buffers this property should be set to GST_FORMAT_TIME. Instruct the source to behave like a live source. This includes that it will only push out buffers in the PLAYING state. The maximum amount of bytes that can be queued internally. After the maximum amount of bytes are queued, appsrc will emit the "enough-data" signal. The maximum latency of the source. A value of -1 means an unlimited amout of latency. The minimum latency of the source. A value of -1 will use the default latency calculations of #GstBaseSrc. Signal that the source needs more data. In the callback or from another thread you should call push-buffer or end-of-stream. @length is just a hint and when it is set to -1, any number of bytes can be pushed into @appsrc. You can call push-buffer multiple times until the enough-data signal is fired. the appsrc element that emitted the signal the amount of bytes needed. Adds a buffer to the queue of buffers that the appsrc element will push to its source pad. This function does not take ownership of the buffer so the buffer needs to be unreffed after calling this function. When the block property is TRUE, this function can block until free space becomes available in the queue. the appsrc a buffer to push Extract a buffer from the provided sample and adds the extracted buffer to the queue of buffers that the appsrc element will push to its source pad. This function set the appsrc caps based on the caps in the sample and reset the caps if they change. Only the caps and the buffer of the provided sample are used and not for example the segment in the sample. This function does not take ownership of the sample so the sample needs to be unreffed after calling this function. When the block property is TRUE, this function can block until free space becomes available in the queue. the appsrc a sample from which extract buffer to push Seek to the given offset. The next push-buffer should produce buffers from the new @offset. This callback is only called for seekable stream types. the appsrc element that emitted the signal the offset to seek to %TRUE if the seek succeeded. The total size in bytes of the data stream. If the total size is known, it is recommended to configure it with this property. The type of stream that this source is producing. For seekable streams the application should connect to the seek-data signal. The stream type. No seeking is supported in the stream, such as a live stream. The stream is seekable but seeking might not be very fast, such as data from a webserver. The stream is seekable and seeking is fast, such as in a local file. Different possible reasons for discontinuities. This enum is useful for the custom slave method. No discontinuity occurred New caps are set, causing renegotiotion Samples have been flushed Sink was synchronized to the estimated latency (occurs during initialization) Aligning buffers failed because the timestamps are too discontinuous Audio output device experienced and recovered from an error but introduced latency in the process (see also @gst_audio_base_sink_report_device_failure()) Different possible clock slaving algorithms used when the internal audio clock is not selected as the pipeline master clock. Resample to match the master clock Adjust playout pointer when master clock drifts too much. No adjustment is done. Use custom clock slaving algorithm (Since: 1.6) Different possible clock slaving algorithms when the internal audio clock was not selected as the pipeline clock. Resample to match the master clock. Retimestamp output buffers with master clock time. Adjust capture pointer when master clock drifts too much. No adjustment is done. Mode in which the CD audio source operates. Influences timestamping, EOS handling and seeking. each single track is a stream the entire disc is a single stream Flags passed to gst_audio_channel_mixer_new() no flag input channels are not interleaved output channels are not interleaved input channels are explicitly unpositioned output channels are explicitly unpositioned Audio channel positions. These are the channels defined in SMPTE 2036-2-2008 Table 1 for 22.2 audio systems with the Surround and Wide channels from DTS Coherent Acoustics (v.1.3.1) and 10.2 and 7.1 layouts. In the caps the actual channel layout is expressed with a channel count and a channel mask, which describes the existing channels. The positions in the bit mask correspond to the enum values. For negotiation it is allowed to have more bits set in the channel mask than the number of channels to specify the allowed channel positions but this is not allowed in negotiated caps. It is not allowed in any situation other than the one mentioned below to have less bits set in the channel mask than the number of channels. @GST_AUDIO_CHANNEL_POSITION_MONO can only be used with a single mono channel that has no direction information and would be mixed into all directional channels. This is expressed in caps by having a single channel and no channel mask. @GST_AUDIO_CHANNEL_POSITION_NONE can only be used if all channels have this position. This is expressed in caps by having a channel mask with no bits set. As another special case it is allowed to have two channels without a channel mask. This implicitely means that this is a stereo stream with a front left and front right channel. Mono without direction; can only be used with 1 channel Front left Front right Front center Low-frequency effects 1 (subwoofer) Rear left Rear right Front left of center Front right of center Rear center Low-frequency effects 2 (subwoofer) Side left Side right Top front left Top front right Top front center Top center Top rear left Top rear right Top side right Top rear right Top rear center Bottom front center Bottom front left Bottom front right Wide left (between front left and side left) Wide right (between front right and side right) Surround left (between rear left and side left) Surround right (between rear right and side right) used for position-less channels, e.g. from a sound card that records 1024 channels; mutually exclusive with any other channel position invalid position Extra flags passed to gst_audio_converter_new() and gst_audio_converter_samples(). no flag the input sample arrays are writable and can be used as temporary storage during conversion. allow arbitrary rate updates with gst_audio_converter_update_config(). Set of available dithering methods. No dithering Rectangular dithering Triangular dithering (default) High frequency triangular dithering Extra audio flags no valid flag the position array explicitly contains unpositioned channels. Enum value describing the most common audio formats. unknown or unset audio format encoded audio format 8 bits in 8 bits, signed 8 bits in 8 bits, unsigned 16 bits in 16 bits, signed, little endian 16 bits in 16 bits, signed, big endian 16 bits in 16 bits, unsigned, little endian 16 bits in 16 bits, unsigned, big endian 24 bits in 32 bits, signed, little endian 24 bits in 32 bits, signed, big endian 24 bits in 32 bits, unsigned, little endian 24 bits in 32 bits, unsigned, big endian 32 bits in 32 bits, signed, little endian 32 bits in 32 bits, signed, big endian 32 bits in 32 bits, unsigned, little endian 32 bits in 32 bits, unsigned, big endian 24 bits in 24 bits, signed, little endian 24 bits in 24 bits, signed, big endian 24 bits in 24 bits, unsigned, little endian 24 bits in 24 bits, unsigned, big endian 20 bits in 24 bits, signed, little endian 20 bits in 24 bits, signed, big endian 20 bits in 24 bits, unsigned, little endian 20 bits in 24 bits, unsigned, big endian 18 bits in 24 bits, signed, little endian 18 bits in 24 bits, signed, big endian 18 bits in 24 bits, unsigned, little endian 18 bits in 24 bits, unsigned, big endian 32-bit floating point samples, little endian 32-bit floating point samples, big endian 64-bit floating point samples, little endian 64-bit floating point samples, big endian 16 bits in 16 bits, signed, native endianness 16 bits in 16 bits, unsigned, native endianness 24 bits in 32 bits, signed, native endianness 24 bits in 32 bits, unsigned, native endianness 32 bits in 32 bits, signed, native endianness 32 bits in 32 bits, unsigned, native endianness 24 bits in 24 bits, signed, native endianness 24 bits in 24 bits, unsigned, native endianness 20 bits in 24 bits, signed, native endianness 20 bits in 24 bits, unsigned, native endianness 18 bits in 24 bits, signed, native endianness 18 bits in 24 bits, unsigned, native endianness 32-bit floating point samples, native endianness 64-bit floating point samples, native endianness The different audio flags that a format info can have. integer samples float samples signed samples complex layout the format can be used in #GstAudioFormatUnpack and #GstAudioFormatPack functions Layout of the audio samples for the different channels. interleaved audio non-interleaved audio Set of available noise shaping methods No noise shaping (default) Error feedback Simple 2-pole noise shaping Medium 5-pole noise shaping High 8-pole noise shaping The different flags that can be used when packing and unpacking. No flag When the source has a smaller depth than the target format, set the least significant bits of the target to 0. This is likely sightly faster but less accurate. When this flag is not specified, the most significant bits of the source are duplicated in the least significant bits of the destination. Extra flags that can be passed to gst_audio_quantize_new() no flags samples are non-interleaved The format of the samples in the ringbuffer. samples in linear or float samples in mulaw samples in alaw samples in ima adpcm samples in mpeg audio (but not AAC) format samples in gsm format samples in IEC958 frames (e.g. AC3) samples in AC3 format samples in EAC3 format samples in DTS format samples in MPEG-2 AAC format samples in MPEG-4 AAC format The state of the ringbuffer. The ringbuffer is stopped The ringbuffer is paused The ringbuffer is started The ringbuffer has encountered an error after it has been started, e.g. because the device was disconnected (Since 1.2) Different types of supported background shading functions. no shading plain fading fade and move up fade and move down fade and move left fade and move right fade and move horizontally out fade and move horizontally in fade and move vertically out fade and move vertically in Flags to be used in a #GstBaseParseFrame. no flag set by baseclass if current frame is passed for processing to the subclass for the first time (and not set on subsequent calls with same data). set to indicate this buffer should not be counted as frame, e.g. if this frame is dependent on a previous one. As it is not counted as a frame, bitrate increases but frame to time conversions are maintained. @pre_push_frame can set this to indicate that regular segment clipping can still be performed (as opposed to any custom one having been done). indicates to @finish_frame that the the frame should be dropped (and might be handled internally by subclass) indicates to @finish_frame that the the frame should be queued for now and processed fully later when the first non-queued frame is finished The #GstElement flags that a basesrc element may have. has source is starting has source been started offset to define more flags Will be emitted when the bin needs to perform latency calculations. This signal is only emitted for toplevel bins or when async-handling is enabled. Only one signal handler is invoked. If no signals are connected, the default handler is invoked, which will query and distribute the lowest possible latency to all sinks. Connect to this signal if the default latency calculations are not sufficient, like when you need different latencies for different sinks in the same pipeline. the #GstBin Will be emitted after the element was added to the bin. the #GstBin the #GstElement that was added to the bin Will be emitted after the element was removed from the bin. the #GstBin the #GstElement that was removed from the bin GstBinFlags are a set of flags specific to bins. Most are set/used internally. They can be checked using the GST_OBJECT_FLAG_IS_SET () macro, and (un)set using GST_OBJECT_FLAG_SET () and GST_OBJECT_FLAG_UNSET (). don't resync a state change when elements are added or linked in the bin (Since 1.0.5) the last enum in the series of flags for bins. Derived classes can use this as first value in a list of flags. A set of flags that can be provided to the gst_buffer_copy_into() function to specify which items should be copied. copy nothing flag indicating that buffer flags should be copied flag indicating that buffer pts, dts, duration, offset and offset_end should be copied flag indicating that buffer memory should be reffed and appended to already existing memory. Unless the memory is marked as NO_SHARE, no actual copy of the memory is made but it is simply reffed. Add @GST_BUFFER_COPY_DEEP to force a real copy. flag indicating that buffer memory should be merged flag indicating that buffer meta should be copied flag indicating that memory should always be copied instead of reffed (Since 1.2) A set of buffer flags used to describe properties of a #GstBuffer. the buffer is live data and should be discarded in the PAUSED state. the buffer contains data that should be dropped because it will be clipped against the segment boundaries or because it does not contain data that should be shown to the user. the buffer marks a data discontinuity in the stream. This typically occurs after a seek or a dropped buffer from a live or network source. the buffer timestamps might have a discontinuity and this buffer is a good point to resynchronize. the buffer data is corrupted. the buffer contains a media specific marker. for video this is typically the end of a frame boundary, for audio this is usually the start of a talkspurt. the buffer contains header information that is needed to decode the following data. the buffer has been created to fill a gap in the stream and contains media neutral data (elements can switch to optimized code path that ignores the buffer content). the buffer can be dropped without breaking the stream, for example to reduce bandwidth. this unit cannot be decoded independently. this flag is set when memory of the buffer is added/removed Elements which write to disk or permanent storage should ensure the data is synced after writing the contents of this buffer. (Since 1.6) additional media specific flags can be added starting from this flag. Additional flags to control the allocation of a buffer no flags buffer is keyframe when the bufferpool is empty, acquire_buffer will by default block until a buffer is released into the pool again. Setting this flag makes acquire_buffer return #GST_FLOW_EOS instead of blocking. buffer is discont last flag, subclasses can use private flags starting from this value. The different types of buffering methods. a small amount of data is buffered the stream is being downloaded the stream is being downloaded in a ringbuffer the stream is a live stream Enable async message delivery support for bus watches, gst_bus_pop() and similar API. Without this only the synchronous message handlers are called. This property is used to create the child element buses in #GstBin. A message has been posted on the bus. This signal is emitted from a GSource added to the mainloop. this signal will only be emitted when there is a mainloop running. the object which received the signal the message that has been posted asynchronously A message has been posted on the bus. This signal is emitted from the thread that posted the message so one has to be careful with locking. This signal will not be emitted by default, you have to call gst_bus_enable_sync_message_emission() before. the object which received the signal the message that has been posted synchronously The standard flags that a bus may have. The bus is currently dropping all messages offset to define more flags The result values for a GstBusSyncHandler. drop the message pass the message to the async queue pass message to async queue, continue if message is handled Extra flags for a caps. Caps has no specific content, but can contain anything. Modes of caps intersection @GST_CAPS_INTERSECT_ZIG_ZAG tries to preserve overall order of both caps by iterating on the caps' structures as the following matrix shows: |[ caps1 +------------- | 1 2 4 7 caps2 | 3 5 8 10 | 6 9 11 12 ]| Used when there is no explicit precedence of one caps over the other. e.g. tee's sink pad getcaps function, it will probe its src pad peers' for their caps and intersect them with this mode. @GST_CAPS_INTERSECT_FIRST is useful when an element wants to preserve another element's caps priority order when intersecting with its own caps. Example: If caps1 is [A, B, C] and caps2 is [E, B, D, A], the result would be [A, B], maintaining the first caps priority on the intersection. Zig-zags over both caps. Keeps the first caps order. Will be emitted after the @object was added to the @child_proxy. the #GstChildProxy the #GObject that was added the name of the new child Will be emitted after the @object was removed from the @child_proxy. the #GstChildProxy the #GObject that was removed the name of the old child Signaled on clocks with GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC set once the clock is synchronized, or when it completely lost synchronization. This signal will not be emitted on clocks without the flag. This signal will be emitted from an arbitrary thread, most likely not the application's main thread. the clock if the clock is synced now The type of the clock entry a single shot timeout a periodic timeout request The capabilities of this clock clock can do a single sync timeout request clock can do a single async timeout request clock can do sync periodic timeout requests clock can do async periodic timeout callbacks clock's resolution can be changed clock can be slaved to a master clock clock needs to be synced before it can be used (Since 1.6) subclasses can add additional flags starting from this flag The return value of a clock operation. The operation succeeded. The operation was scheduled too late. The clockID was unscheduled The ClockID is busy A bad time was provided to a function. An error occurred Operation is not supported The ClockID is done waiting The different kind of clocks. time since Epoch monotonic time since some unspecified starting point some other time source is used (Since 1.0.5) Set if collectdata's pad is EOS. Set if collectdata's pad is flushing. Set if collectdata's pad received a new_segment event. Set if collectdata's pad must be waited for when collecting. Set collectdata's pad WAITING state must not be changed. #GstCollectPadsStateFlags indicate private state of a collectdata('s pad). Fired when the value of the indicated channel has changed. The GstColorBalance instance The #GstColorBalanceChannel The new value Fired when the value of the indicated channel has changed. The #GstColorBalanceChannel The new value An enumeration indicating whether an element implements color balancing operations in software or in dedicated hardware. In general, dedicated hardware implementations (such as those provided by xvimagesink) are preferred. Color balance is implemented with dedicated hardware. Color balance is implemented via software processing. Core errors are errors inside the core GStreamer library. a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. do not use this except as a placeholder for deciding where to go while developing code. use this when you do not want to implement this functionality yet. used for state change errors. used for pad-related errors. used for thread-related errors. used for negotiation-related errors. used for event-related errors. used for seek-related errors. used for caps-related errors. used for negotiation-related errors. used if a plugin is missing. used for clock related errors. used if functionality has been disabled at compile time. the number of core error types. Reports that the queue became empty (empty). A queue is empty if the total amount of visible items inside it (num-visible, time, size) is lower than the boundary values which can be set through the GObject properties. the queue instance Reports that the queue became full (full). A queue is full if the total amount of data inside it (num-visible, time, size) is higher than the boundary values which can be set through the GObject properties. the queue instance These are some terminal style flags you can use when creating your debugging categories to make them stand out in debugging output. Use black as foreground color. Use red as foreground color. Use green as foreground color. Use yellow as foreground color. Use blue as foreground color. Use magenta as foreground color. Use cyan as foreground color. Use white as foreground color. Use black as background color. Use red as background color. Use green as background color. Use yellow as background color. Use blue as background color. Use magenta as background color. Use cyan as background color. Use white as background color. Make the output bold. Underline the output. Do not use colors in logs. Paint logs in a platform-specific way. Paint logs with UNIX terminal color codes no matter what platform GStreamer is running on. Available details for pipeline graphs produced by GST_DEBUG_BIN_TO_DOT_FILE() and GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(). show caps-name on edges show caps-details on edges show modified parameters on elements show element states show full element parameter values even if they are very long show all the typical details that one might want show all details regardless of how large or verbose they make the resulting output The level defines the importance of a debugging message. The more important a message is, the greater the probability that the debugging system outputs it. No debugging level specified or desired. Used to deactivate debugging output. Error messages are to be used only when an error occurred that stops the application from keeping working correctly. An examples is gst_element_error, which outputs a message with this priority. It does not mean that the application is terminating as with g_error. Warning messages are to inform about abnormal behaviour that could lead to problems or weird behaviour later on. An example of this would be clocking issues ("your computer is pretty slow") or broken input data ("Can't synchronize to stream.") Fixme messages are messages that indicate that something in the executed code path is not fully implemented or handled yet. Note that this does not replace proper error handling in any way, the purpose of this message is to make it easier to spot incomplete/unfinished pieces of code when reading the debug log. Informational messages should be used to keep the developer updated about what is happening. Examples where this should be used are when a typefind function has successfully determined the type of the stream or when an mp3 plugin detects the format to be used. ("This file has mono sound.") Debugging messages should be used when something common happens that is not the expected default behavior, or something that's useful to know but doesn't happen all the time (ie. per loop iteration or buffer processed or event handled). An example would be notifications about state changes or receiving/sending of events. Log messages are messages that are very common but might be useful to know. As a rule of thumb a pipeline that is running as expected should never output anything else but LOG messages whilst processing data. Use this log level to log recurring information in chain functions and loop functions, for example. Tracing-related messages. Examples for this are referencing/dereferencing of objects. memory dump messages are used to log (small) chunks of data as memory dumps in the log. They will be displayed as hexdump with ASCII characters. The number of defined debugging levels. Will be emitted in async mode when all information on a URI could be discovered, or an error occurred. When an error occurs, @info might still contain some partial information, depending on the circumstances of the error. the #GstDiscoverer the results #GstDiscovererInfo #GError, which will be non-NULL if an error occurred during discovery. You must not free this #GError, it will be freed by the discoverer. Will be emitted in async mode when all pending URIs have been processed. the #GstDiscoverer This signal is emitted after the source element has been created for, so the URI being discovered, so it can be configured by setting additional properties (e.g. set a proxy server for an http source, or set the device and read speed for an audio cd source). This signal is usually emitted from the context of a GStreamer streaming thread. the #GstDiscoverer source element Will be emitted when the discover starts analyzing the pending URIs the #GstDiscoverer Result values for the discovery process. The discovery was successful the URI is invalid an error happened and the GError is set the discovery timed-out the discoverer was already discovering a file Some plugins are missing for full discovery You can use these flags to control what is serialized by gst_discoverer_info_to_variant() Serialize only basic information, excluding caps, tags and miscellaneous information Serialize the caps for each stream Serialize the tags for each stream Serialize miscellaneous information for each stream Serialize all the available info, including caps, tags and miscellaneous information This signals that the element will not generate more dynamic pads. Note that this signal will usually be emitted from the context of the streaming thread. the object which received the signal a new #GstPad has been added to the element. Note that this signal will usually be emitted from the context of the streaming thread. Also keep in mind that if you add new elements to the pipeline in the signal handler you will need to set them to the desired target state with gst_element_set_state() or gst_element_sync_state_with_parent(). the object which received the signal the pad that has been added a #GstPad has been removed from the element the object which received the signal the pad that has been removed The standard flags that an element may have. ignore state changes from parent the element is a sink the element is a source. the element can provide a clock the element requires a clock the element can use an index offset to define more flags #GstEventType lists the standard event types that can be sent in a pipeline. The custom event types can be used for private messages between elements that can't be expressed using normal GStreamer buffer passing semantics. Custom events carry an arbitrary #GstStructure. Specific custom events are distinguished by the name of the structure. unknown event. Start a flush operation. This event clears all data from the pipeline and unblock all streaming threads. Stop a flush operation. This event resets the running-time of the pipeline. Event to mark the start of a new stream. Sent before any other serialized event and only sent at the start of a new stream, not after flushing seeks. #GstCaps event. Notify the pad of a new media type. A new media segment follows in the dataflow. The segment events contains information for clipping buffers and converting buffer timestamps to running-time and stream-time. A new set of metadata tags has been found in the stream. Notification of buffering requirements. Currently not used yet. An event that sinks turn into a message. Used to send messages that should be emitted in sync with rendering. End-Of-Stream. No more data is to be expected to follow without a SEGMENT event. Marks the end of a segment playback. Marks a gap in the datastream. An event which indicates that a new table of contents (TOC) was found or updated. An event which indicates that new or updated encryption information has been found in the stream. A quality message. Used to indicate to upstream elements that the downstream elements should adjust their processing rate. A request for a new playback position and rate. Navigation events are usually used for communicating user requests, such as mouse or keyboard movements, to upstream elements. Notification of new latency adjustment. Sinks will use the latency information to adjust their synchronisation. A request for stepping through the media. Sinks will usually execute the step operation. A request for upstream renegotiating caps and reconfiguring. A request for a new playback position based on TOC entry's UID. Upstream custom event Downstream custom event that travels in the data flow. Custom out-of-band downstream event. Custom sticky downstream event. Custom upstream or downstream event. In-band when travelling downstream. Custom upstream or downstream out-of-band event. #GstEventTypeFlags indicate the aspects of the different #GstEventType values. You can get the type flags of a #GstEventType with the gst_event_type_get_flags() function. Set if the event can travel upstream. Set if the event can travel downstream. Set if the event should be serialized with data flow. Set if the event is sticky on the pads. Multiple sticky events can be on a pad, each identified by the event name. The various window functions available. Rectangular window Hamming window Hann (sometimes also called Hanning) window Bartlett window Blackman window The type of #GstElementFactory to filter. All @GstFactoryListType up to @GST_ELEMENT_FACTORY_TYPE_MAX_ELEMENTS are exclusive. If one or more of the MEDIA types are specified, then only elements matching the specified media types will be selected. Decoder elements Encoder elements Sink elements Source elements Muxer elements Demuxer elements Parser elements Payloader elements Depayloader elements Elements handling decryption (Since 1.6) Elements handling encryption (Since 1.6) Private, do not use Elements handling video media types Elements handling audio media types Elements handling image media types Elements handling subtitle media types Elements handling metadata media types Various flags to control the operation of the fd backed memory. no flag once the memory is mapped, keep it mapped until the memory is destroyed. do a private mapping instead of the default shared mapping. The result of passing data to a pad. Note that the custom return values should not be exposed outside of the element scope. Data passing was ok. Pad is not linked. Pad is flushing. Pad is EOS. Pad is not negotiated. Some (fatal) error occurred. Element generating this error should post an error message with more details. This operation is not supported. Elements can use values starting from this (and higher) to define custom success codes. Pre-defined custom success code (define your custom success code to this to avoid compiler warnings). Pre-defined custom success code. Elements can use values starting from this (and lower) to define custom error codes. Pre-defined custom error code (define your custom error code to this to avoid compiler warnings). Pre-defined custom error code. Standard predefined formats undefined format the default format of the pad/element. This can be samples for raw audio, frames/fields for raw video (some, but not all, elements support this; use @GST_FORMAT_TIME if you don't have a good reason to query for samples/frames) bytes time in nanoseconds buffers (few, if any, elements implement this as of May 2009) percentage of stream (few, if any, elements implement this as of May 2009) Is emitted when a new entry is added to the index. the object which received the signal. The entry added to the index. Flags for an association entry. no extra flags the entry marks a key unit, a key unit is one that marks a place where one can randomly seek to. the entry marks a delta unit, a delta unit is one that marks a place where one can relatively seek to. extra user defined flags should start here. The certainty of a group in the index. accuracy is not known accuracy is perfect accuracy is fuzzy The different types of entries in the index. This entry is an id that maps an index id to its owner object This entry is an association between formats An object A format definition Flags for this index The index is writable The index is readable First flag that can be used by subclasses Specify the method to find an index entry in the index. There has to be an exact indexentry with the given format/value The exact entry or the one before it The exact entry or the one after it The method used to resolve index writers Use a custom resolver Resolve based on the GType of the object Resolve on the path in graph Result codes returned by gst_install_plugins_async() and gst_install_plugins_sync(), and also the result code passed to the #GstInstallPluginsResultFunc specified with gst_install_plugins_async(). These codes indicate success or failure of starting an external installer program and to what extent the requested plugins could be installed. all of the requested plugins could be installed no appropriate installation candidate for any of the requested plugins could be found. Only return this if nothing has been installed. Return #GST_INSTALL_PLUGINS_PARTIAL_SUCCESS if some (but not all) of the requested plugins could be installed. an error occured during the installation. If this happens, the user has already seen an error message and another one should not be displayed the installer had an unclean exit code (ie. death by signal) some of the requested plugins could be installed, but not all the user has aborted the installation the helper returned an invalid status code returned by gst_install_plugins_async() to indicate that everything went fine so far and the provided callback will be called with the result of the installation later some internal failure has occured when trying to start the installer the helper script to call the actual installer is not installed a previously-started plugin installation is still in progress, try again later The various interpolation modes available. steps-like interpolation, default linear interpolation cubic interpolation (natural), may overshoot the min or max values set by the control point, but is more 'curvy' monotonic cubic interpolation, will not produce any values outside of the min-max range set by the control points (Since 1.8) The result of a #GstIteratorItemFunction. Skip this item Return item Stop after this item. The result of gst_iterator_next(). No more items in the iterator An item was retrieved Datastructure changed while iterating An error happened The various waveform modes available. sine waveform square waveform saw waveform reverse saw waveform triangle waveform Library errors are for errors from the library being used by elements (initializing, finalizing, settings, ...) a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. do not use this except as a placeholder for deciding where to go while developing code. used when the library could not be opened. used when the library could not be closed. used when the library doesn't accept settings. used when the library generated an encoding error. the number of library error types. Flags used when locking miniobjects lock for read access lock for write access lock for exclusive access first flag that can be used for custom purposes The different cache types The envelope key MUST NOT be cached The envelope key MUST be cached The envelope key MUST be cached, but only to be used for the specific CSB. The encryption algorithm used to encrypt the Encr data field no encryption AES-CM using a 128-bit key AES Key Wrap using a 128-bit key The key validity type No specific usage rule The key is associated with the SPI/MKI The key has a start and expiration time The type of key. a TEK Generation Key Traffic-Encrypting Key Specifies the authentication algorithm used no authentication HMAC-SHA-1-160 Specifies the method of uniquely mapping Crypto Sessions to the security protocol sessions. The PRF function that has been/will be used for key derivation MIKEY-1 PRF function Different MIKEY Payload types. Last payload Key data transport payload Envelope data payload DH data payload Signature payload Timestamp payload ID payload Certificate Payload Cert hash payload Verfication message payload Security Policy payload RAND payload Error payload Key data sub-payload General Extension Payload Specifies the security protocol This policy specifies the parameters for SRTP and SRTCP Encryption algorithm Session Encr. key length Authentication algorithm Session Auth. key length Session Salt key length SRTP Pseudo Random Function Key derivation rate SRTP encryption off/on, 0 if off, 1 if on SRTCP encryption off/on, 0 if off, 1 if on sender's FEC order SRTP authentication off/on, 0 if off, 1 if on Authentication tag length SRTP prefix length Specifies the timestamp type. an NTP time in UTC timezone an NTP time a counter Different MIKEY data types. Invalid type Initiator's pre-shared key message Verification message of a Pre-shared key message Initiator's public-key transport message Verification message of a public-key message Initiator's DH exchange message Responder's DH exchange message Error message Flags used when mapping memory map for read access map for write access first flag that can be used for custom purposes Flags for wrapped memory. memory is readonly. It is not allowed to map the memory with #GST_MAP_WRITE. memory must not be shared. Copies will have to be made when this memory needs to be shared between buffers. the memory prefix is filled with 0 bytes the memory padding is filled with 0 bytes the memory is physically contiguous. (Since 1.2) the memory can't be mapped via gst_memory_map() without any preconditions. (Since 1.2) first flag that can be used for custom purposes The different message types that are available. an undefined message end-of-stream reached in a pipeline. The application will only receive this message in the PLAYING state and every time it sets a pipeline to PLAYING that is in the EOS state. The application can perform a flushing seek in the pipeline, which will undo the EOS state again. an error occurred. When the application receives an error message it should stop playback of the pipeline and not assume that more data will be played. a warning occurred. an info message occurred a tag was found. the pipeline is buffering. When the application receives a buffering message in the PLAYING state for a non-live pipeline it must PAUSE the pipeline until the buffering completes, when the percentage field in the message is 100%. For live pipelines, no action must be performed and the buffering percentage can be used to inform the user about the progress. a state change happened an element changed state in a streaming thread. This message is deprecated. a stepping operation finished. an element notifies its capability of providing a clock. This message is used internally and never forwarded to the application. The current clock as selected by the pipeline became unusable. The pipeline will select a new clock on the next PLAYING state change. The application should set the pipeline to PAUSED and back to PLAYING when this message is received. a new clock was selected in the pipeline. the structure of the pipeline changed. This message is used internally and never forwarded to the application. status about a stream, emitted when it starts, stops, errors, etc.. message posted by the application, possibly via an application-specific element. element-specific message, see the specific element's documentation pipeline started playback of a segment. This message is used internally and never forwarded to the application. pipeline completed playback of a segment. This message is forwarded to the application after all elements that posted @GST_MESSAGE_SEGMENT_START posted a GST_MESSAGE_SEGMENT_DONE message. The duration of a pipeline changed. The application can get the new duration with a duration query. Posted by elements when they start an ASYNC #GstStateChange. This message is not forwarded to the application but is used internally. Posted by elements when they complete an ASYNC #GstStateChange. The application will only receive this message from the toplevel pipeline. Posted by elements when their latency changes. The application should recalculate and distribute a new latency. Posted by elements when they want the pipeline to change state. This message is a suggestion to the application which can decide to perform the state change on (part of) the pipeline. A stepping operation was started. A buffer was dropped or an element changed its processing strategy for Quality of Service reasons. A progress message. A new table of contents (TOC) was found or previously found TOC was updated. Message to request resetting the pipeline's running time from the pipeline. This is an internal message which applications will likely never receive. Message indicating start of a new stream. Useful e.g. when using playbin in gapless playback mode, to get notified when the next title actually starts playing (which will be some time after the URI for the next title has been set). Message indicating that an element wants a specific context (Since 1.2) Message indicating that an element created a context (Since 1.2) Message is an extended message type (see below). These extended message IDs can't be used directly with mask-based API like gst_bus_poll() or gst_bus_timed_pop_filtered(), but you can still filter for GST_MESSAGE_EXTENDED and then check the result for the specific type. (Since 1.4) Message indicating a #GstDevice was added to a #GstDeviceProvider (Since 1.4) Message indicating a #GstDevice was removed from a #GstDeviceProvider (Since 1.4) mask for all of the above messages. Extra metadata flags. no flags metadata should not be modified metadata is managed by a bufferpool metadata should not be removed additional flags can be added starting from this flag. Flags for the mini object the object can be locked and unlocked with gst_mini_object_lock() and gst_mini_object_unlock(). the object is permanently locked in READONLY mode. Only read locks can be performed on the object. first flag that can be used by subclasses. A set of commands that may be issued to an element providing the #GstNavigation interface. The available commands can be queried via the gst_navigation_query_new_commands() query. For convenience in handling DVD navigation, the MENU commands are aliased as: GST_NAVIGATION_COMMAND_DVD_MENU = @GST_NAVIGATION_COMMAND_MENU1 GST_NAVIGATION_COMMAND_DVD_TITLE_MENU = @GST_NAVIGATION_COMMAND_MENU2 GST_NAVIGATION_COMMAND_DVD_ROOT_MENU = @GST_NAVIGATION_COMMAND_MENU3 GST_NAVIGATION_COMMAND_DVD_SUBPICTURE_MENU = @GST_NAVIGATION_COMMAND_MENU4 GST_NAVIGATION_COMMAND_DVD_AUDIO_MENU = @GST_NAVIGATION_COMMAND_MENU5 GST_NAVIGATION_COMMAND_DVD_ANGLE_MENU = @GST_NAVIGATION_COMMAND_MENU6 GST_NAVIGATION_COMMAND_DVD_CHAPTER_MENU = @GST_NAVIGATION_COMMAND_MENU7 An invalid command entry Execute navigation menu command 1. For DVD, this enters the DVD root menu, or exits back to the title from the menu. Execute navigation menu command 2. For DVD, this jumps to the DVD title menu. Execute navigation menu command 3. For DVD, this jumps into the DVD root menu. Execute navigation menu command 4. For DVD, this jumps to the Subpicture menu. Execute navigation menu command 5. For DVD, the jumps to the audio menu. Execute navigation menu command 6. For DVD, this jumps to the angles menu. Execute navigation menu command 7. For DVD, this jumps to the chapter menu. Select the next button to the left in a menu, if such a button exists. Select the next button to the right in a menu, if such a button exists. Select the button above the current one in a menu, if such a button exists. Select the button below the current one in a menu, if such a button exists. Activate (click) the currently selected button in a menu, if such a button exists. Switch to the previous angle in a multiangle feature. Switch to the next angle in a multiangle feature. Enum values for the various events that an element implementing the GstNavigation interface might send up the pipeline. Returned from gst_navigation_event_get_type() when the passed event is not a navigation event. A key press event. Use gst_navigation_event_parse_key_event() to extract the details from the event. A key release event. Use gst_navigation_event_parse_key_event() to extract the details from the event. A mouse button press event. Use gst_navigation_event_parse_mouse_button_event() to extract the details from the event. A mouse button release event. Use gst_navigation_event_parse_mouse_button_event() to extract the details from the event. A mouse movement event. Use gst_navigation_event_parse_mouse_move_event() to extract the details from the event. A navigation command event. Use gst_navigation_event_parse_command() to extract the details from the event. A set of notifications that may be received on the bus when navigation related status changes. Returned from gst_navigation_message_get_type() when the passed message is not a navigation message. Sent when the mouse moves over or leaves a clickable region of the output, such as a DVD menu button. Sent when the set of available commands changes and should re-queried by interested applications. Sent when display angles in a multi-angle feature (such as a multiangle DVD) change - either angles have appeared or disappeared. Sent when a navigation event was not handled by any element in the pipeline (Since 1.6) Tyoes of navigation interface queries. invalid query command query viewing angle query Maximum allowed round-trip for packets. If this property is set to a nonzero value, all packets with a round-trip interval larger than this limit will be ignored. This is useful for networks with severe and fluctuating transport delays. Filtering out these packets increases stability of the synchronization. On the other hand, the lower the limit, the higher the amount of filtered packets. Empirical tests are typically necessary to estimate a good value for the limit. If the property is set to zero, the limit is disabled. The deep notify signal is used to be notified of property changes. It is typically attached to the toplevel bin to receive notifications from all the elements contained in that bin. a #GstObject the object that originated the signal the property that changed The standard flags that an gstobject may have. subclasses can add additional flags starting from this flag Signals that a pad has been linked to the peer pad. the pad that emitted the signal the peer pad that has been connected Signals that a pad has been unlinked from the peer pad. the pad that emitted the signal the peer pad that has been disconnected The direction of a pad. direction is unknown. the pad is a source pad. the pad is a sink pad. Pad state flags is dataflow on a pad blocked is pad flushing is pad in EOS state is pad currently blocking on a buffer or event ensure that there is a parent object before calling into the pad callbacks. the pad should be reconfigured/renegotiated. The flag has to be unset manually after reconfiguration happened. the pad has pending events the pad is using fixed caps. This means that once the caps are set on the pad, the default caps query function will only return those caps. the default event and query handler will forward all events and queries to the internally linked pads instead of discarding them. the default query handler will forward allocation queries to the internally linked pads instead of discarding them. the default query handler will forward scheduling queries to the internally linked pads instead of discarding them. the default accept-caps handler will check it the caps intersect the query-caps result instead of checking for a subset. This is interesting for parsers that can accept incompletely specified caps. the default accept-caps handler will use the template pad caps instead of query caps to compare with the accept caps. Use this in combination with %GST_PAD_FLAG_ACCEPT_INTERSECT. (Since 1.6) offset to define more flags The amount of checking to be done when linking pads. @GST_PAD_LINK_CHECK_CAPS and @GST_PAD_LINK_CHECK_TEMPLATE_CAPS are mutually exclusive. If both are specified, expensive but safe @GST_PAD_LINK_CHECK_CAPS are performed. <warning><para> Only disable some of the checks if you are 100% certain you know the link will not fail because of hierarchy/caps compatibility failures. If uncertain, use the default checks (%GST_PAD_LINK_CHECK_DEFAULT) or the regular methods for linking the pads. </para></warning> Don't check hierarchy or caps compatibility. Check the pads have same parents/grandparents. Could be omitted if it is already known that the two elements that own the pads are in the same bin. Check if the pads are compatible by using their template caps. This is much faster than @GST_PAD_LINK_CHECK_CAPS, but would be unsafe e.g. if one pad has %GST_CAPS_ANY. Check if the pads are compatible by comparing the caps returned by gst_pad_query_caps(). The default checks done when linking pads (i.e. the ones used by gst_pad_link()). Result values from gst_pad_link and friends. link succeeded pads have no common grandparent pad was already linked pads have wrong direction pads do not have common format pads cannot cooperate in scheduling refused for some reason The status of a GstPad. After activating a pad, which usually happens when the parent element goes from READY to PAUSED, the GstPadMode defines if the pad operates in push or pull mode. Pad will not handle dataflow Pad handles dataflow in downstream push mode Pad handles dataflow in upstream pull mode Indicates when this pad will become available. the pad is always available the pad will become available depending on the media stream the pad is only available on request with gst_element_request_pad(). Different return values for the #GstPadProbeCallback. normal probe return value. This leaves the probe in place, and defers decisions about dropping or passing data to other probes, if any. If there are no other probes, the default behaviour for the probe type applies (block for blocking probes, and pass for non-blocking probes). drop data in data probes. For push mode this means that the data item is not sent downstream. For pull mode, it means that the data item is not passed upstream. In both cases, no more probes are called and #GST_FLOW_OK or %TRUE is returned to the caller. remove this probe. pass the data item in the block probe and block on the next item. Data has been handled in the probe and will not be forwarded further. For events and buffers this is the same behaviour as @GST_PAD_PROBE_DROP (except that in this case you need to unref the buffer or event yourself). For queries it will also return %TRUE to the caller. The probe can also modify the #GstFlowReturn value by using the #GST_PAD_PROBE_INFO_FLOW_RETURN() accessor. Note that the resulting query must contain valid entries. Since: 1.6 The different probing types that can occur. When either one of @GST_PAD_PROBE_TYPE_IDLE or @GST_PAD_PROBE_TYPE_BLOCK is used, the probe will be a blocking probe. invalid probe type probe idle pads and block probe and block pads probe buffers probe buffer lists probe downstream events probe upstream events probe flush events. This probe has to be explicitly enabled and is not included in the @@GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM or @@GST_PAD_PROBE_TYPE_EVENT_UPSTREAM probe types. probe downstream queries probe upstream queries probe push probe pull probe and block at the next opportunity, at data flow or when idle probe downstream data (buffers, buffer lists, and events) probe upstream data (events) probe upstream and downstream data (buffers, buffer lists, and events) probe and block downstream data (buffers, buffer lists, and events) probe and block upstream data (events) probe upstream and downstream events probe upstream and downstream queries probe upstream events and queries and downstream buffers, buffer lists, events and queries probe push and pull This signal is fired when an element creates a pad from this template. the object which received the signal. the pad that was created. Flags for the padtemplate first flag that can be used by subclasses. The different parsing errors that can occur. A syntax error occurred. The description contained an unknown element An element did not have a specified property There was an error linking two pads. There was an error setting a property An empty bin was specified. An empty description was specified A delayed link did not get resolved. Parsing options. Do not use any special parsing options. Always return %NULL when an error occurs (default behaviour is to return partially constructed bins or elements in some cases) If a bin only has a single element, just return the element. Pipeline flags this pipeline works with a fixed clock offset to define more flags Flags used in connection with gst_plugin_add_dependency(). no special flags recurse into subdirectories use paths argument only if none of the environment variables is set interpret filename argument as filter suffix and check all matching files in the directory interpret filename argument as filter prefix and check all matching files in the directory. Since 1.8. The plugin loading errors The plugin could not be loaded The plugin has unresolved dependencies The plugin has already be loaded from a different file The plugin loading state Temporarily loaded plugins The plugin won't be scanned (again) The type of a %GST_MESSAGE_PROGRESS. The progress messages inform the application of the status of asynchronous tasks. A new task started. A task completed and a new one continues. A task completed. A task was canceled. A task caused an error. An error message is also posted on the bus. The different types of QoS events that can be given to the gst_event_new_qos() method. The QoS event type that is produced when upstream elements are producing data too quickly and the element can't keep up processing the data. Upstream should reduce their production rate. This type is also used when buffers arrive early or in time. The QoS event type that is produced when upstream elements are producing data too slowly and need to speed up their production rate. The QoS event type that is produced when the application enabled throttling to limit the data rate. Standard predefined Query types unknown query type current position in stream total duration of the stream latency of stream current jitter of stream current rate of the stream seeking capabilities segment start/stop positions convert values between formats query supported formats for convert query available media for efficient seeking. a custom application or element defined query. query the URI of the source or sink. the buffer allocation properties the scheduling properties the accept caps query the caps query wait till all serialized data is consumed downstream query the pipeline-local context from downstream or upstream (since 1.2) #GstQueryTypeFlags indicate the aspects of the different #GstQueryType values. You can get the type flags of a #GstQueryType with the gst_query_type_get_flags() function. Set if the query can travel upstream. Set if the query can travel downstream. Set if the query should be serialized with data flow. Different types of feedback messages. Invalid type Generic NACK Temporary Maximum Media Stream Bit Rate Request Temporary Maximum Media Stream Bit Rate Notification Request an SR packet for early synchronization Picture Loss Indication Slice Loss Indication Reference Picture Selection Indication Application layer Feedback Full Intra Request Command Temporal-Spatial Trade-off Request Temporal-Spatial Trade-off Notification Video Back Channel Message Different types of SDES content. Invalid SDES entry End of SDES list Canonical name User name User's electronic mail address User's phone number Geographic user location Name of application or tool Notice about the source Private extensions Different RTCP packet types. Invalid type Sender report Receiver report Source description Goodbye Application defined Transport layer feedback. Payload-specific feedback. Additional mapping flags for gst_rtp_buffer_map(). Skip mapping and validation of RTP padding and RTP pad count when present. Useful for buffers where the padding may be encrypted. Offset to define more flags Standard predefined fixed payload types. The official list is at: http://www.iana.org/assignments/rtp-parameters Audio: reserved: 19 unassigned: 20-23, Video: unassigned: 24, 27, 29, 30, 35-71, 77-95 Reserved for RTCP conflict avoidance: 72-76 ITU-T G.711. mu-law audio (RFC 3551) RFC 3551 says reserved RFC 3551 says reserved GSM audio ITU G.723.1 audio IMA ADPCM wave type (RFC 3551) IMA ADPCM wave type (RFC 3551) experimental linear predictive encoding ITU-T G.711 A-law audio (RFC 3551) ITU-T G.722 (RFC 3551) stereo PCM mono PCM EIA & TIA standard IS-733 Comfort Noise (RFC 3389) Audio MPEG 1-3. ITU-T G.728 Speech coder (RFC 3551) IMA ADPCM wave type (RFC 3551) IMA ADPCM wave type (RFC 3551) ITU-T G.729 Speech coder (RFC 3551) See RFC 2029 ISO Standards 10918-1 and 10918-2 (RFC 2435) nv encoding by Ron Frederick ITU-T Recommendation H.261 (RFC 2032) Video MPEG 1 & 2 (RFC 2250) MPEG-2 transport stream (RFC 2250) Video H263 (RFC 2190) The transfer profile to use. invalid profile the Audio/Visual profile (RFC 3551) the secure Audio/Visual profile (RFC 3711) the Audio/Visual profile with feedback (RFC 4585) the secure Audio/Visual profile with feedback (RFC 5124) Authentication methods, ordered by strength no authentication basic authentication digest authentication The possible events for the connection. connection is readable connection is writable The possible network families. unknown network family internet internet V6 The different transport methods. invalid transport flag stream data over UDP stream data over UDP multicast stream data over TCP stream data tunneled over HTTP. encrypt TCP and HTTP with TLS The different supported RTSP methods. invalid method the DESCRIBE method the ANNOUNCE method the GET_PARAMETER method the OPTIONS method the PAUSE method the PLAY method the RECORD method the REDIRECT method the SETUP method the SET_PARAMETER method the TEARDOWN method the GET method (HTTP). the POST method (HTTP). The type of a message. invalid message type RTSP request message RTSP response message HTTP request message. HTTP response message. data message The transfer profile to use. invalid profile the Audio/Visual profile (RFC 3551) the secure Audio/Visual profile (RFC 3711) the Audio/Visual profile with feedback (RFC 4585) the secure Audio/Visual profile with feedback (RFC 5124) Different possible time range units. SMPTE timecode 29.97 frames per second 25 frames per second Normal play time Absolute time expressed as ISO 8601 timestamps Result codes from the RTSP functions. no error some unspecified error occured invalid arguments were provided to a function an operation was canceled no memory was available for the operation a host resolve error occured function not implemented a system error occured, errno contains more details a persing error occured windows networking could not start windows networking stack has wrong version end-of-file was reached a network problem occured, h_errno contains more details the host is not an IP host a timeout occured the tunnel GET request has been performed the tunnel POST request has been performed last error The different RTSP states. invalid state initializing ready for operation seeking in progress playing recording Possible time types. seconds now end frames and subframes UTC time The transfer mode to use. invalid tansport mode transfer RTP data transfer RDT (RealMedia) data The supported RTSP versions. unknown/invalid version version 1.0 version 1.1. Element priority ranks. Defines the order in which the autoplugger (or similar rank-picking mechanisms, such as e.g. gst_element_make_from_uri()) will choose this element over an alternative one with the same function. These constants serve as a rough guidance for defining the rank of a #GstPluginFeature. Any value is valid, including values bigger than @GST_RANK_PRIMARY. will be chosen last or not at all unlikely to be chosen likely to be chosen will be chosen first Signals that a feature has been added to the registry (possibly replacing a previously-added one by the same name) the registry that emitted the signal the feature that has been added Signals that a plugin has been added to the registry (possibly replacing a previously-added one by the same name) the registry that emitted the signal the plugin that has been added Resource errors are for any resource used by an element: memory, files, network connections, process space, ... They're typically used by source and sink elements. a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. do not use this except as a placeholder for deciding where to go while developing code. used when the resource could not be found. used when resource is busy. used when resource fails to open for reading. used when resource fails to open for writing. used when resource cannot be opened for both reading and writing, or either (but unspecified which). used when the resource can't be closed. used when the resource can't be read from. used when the resource can't be written to. used when a seek on the resource fails. used when a synchronize on the resource fails. used when settings can't be manipulated on. used when the resource has no space left. used when the resource can't be opened due to missing authorization. (Since 1.2.4) the number of resource error types. Return values for the SDP functions. A successful return value a function was given invalid parameters The different scheduling flags. if seeking is possible if sequential access is recommended if bandwidth is limited and buffering possible (since 1.2) The different search modes. Only search for exact matches. Search for an exact match or the element just before. Search for an exact match or the element just after. Flags to be used with gst_element_seek() or gst_event_new_seek(). All flags can be used together. A non flushing seek might take some time to perform as the currently playing data in the pipeline will not be cleared. An accurate seek might be slower for formats that don't have any indexes or timestamp markers in the stream. Specifying this flag might require a complete scan of the file in those cases. When performing a segment seek: after the playback of the segment completes, no EOS will be emitted by the element that performed the seek, but a %GST_MESSAGE_SEGMENT_DONE message will be posted on the bus by the element. When this message is posted, it is possible to send a new seek event to continue playback. With this seek method it is possible to perform seamless looping or simple linear editing. When doing fast forward (rate > 1.0) or fast reverse (rate < -1.0) trickmode playback, the %GST_SEEK_FLAG_TRICKMODE flag can be used to instruct decoders and demuxers to adjust the playback rate by skipping frames. This can improve performance and decrease CPU usage because not all frames need to be decoded. Beyond that, the %GST_SEEK_FLAG_TRICKMODE_KEY_UNITS flag can be used to request that decoders skip all frames except key units, and %GST_SEEK_FLAG_TRICKMODE_NO_AUDIO flags can be used to request that audio decoders do no decoding at all, and simple output silence. The %GST_SEEK_FLAG_SNAP_BEFORE flag can be used to snap to the previous relevant location, and the %GST_SEEK_FLAG_SNAP_AFTER flag can be used to select the next relevant location. If %GST_SEEK_FLAG_KEY_UNIT is specified, the relevant location is a keyframe. If both flags are specified, the nearest of these locations will be selected. If none are specified, the implementation is free to select whichever it wants. The before and after here are in running time, so when playing backwards, the next location refers to the one that will played in next, and not the one that is located after in the actual source stream. Also see part-seeking.txt in the GStreamer design documentation for more details on the meaning of these flags and the behaviour expected of elements that handle them. no flag flush pipeline accurate position is requested, this might be considerably slower for some formats. seek to the nearest keyframe. This might be faster but less accurate. perform a segment seek. when doing fast forward or fast reverse playback, allow elements to skip frames instead of generating all frames. (Since 1.6) go to a location before the requested position, if %GST_SEEK_FLAG_KEY_UNIT this means the keyframe at or before the requested position the one at or before the seek target. go to a location after the requested position, if %GST_SEEK_FLAG_KEY_UNIT this means the keyframe at of after the requested position. go to a position near the requested position, if %GST_SEEK_FLAG_KEY_UNIT this means the keyframe closest to the requested position, if both keyframes are at an equal distance, behaves like %GST_SEEK_FLAG_SNAP_BEFORE. when doing fast forward or fast reverse playback, request that elements only decode keyframes and skip all other content, for formats that have keyframes. (Since 1.6) when doing fast forward or fast reverse playback, request that audio decoder elements skip decoding and output only gap events or silence. (Since 1.6) Deprecated backward compatibility flag, replaced by %GST_SEEK_FLAG_TRICKMODE The different types of seek events. When constructing a seek event with gst_event_new_seek() or when doing gst_segment_do_seek (). no change in position is required absolute position is requested relative position to duration is requested Flags for the GstSegment structure. Currently mapped to the corresponding values of the seek flags. no flags reset the pipeline running_time to the segment running_time perform skip playback (Since 1.6) send SEGMENT_DONE instead of EOS Decode only keyframes, where possible (Since 1.6) Do not decode any audio, where possible (Since 1.6) Deprecated backward compatibility flag, replaced by @GST_SEGMENT_FLAG_TRICKMODE The possible states an element can be in. States can be changed using gst_element_set_state() and checked using gst_element_get_state(). no pending state. the NULL state or initial state of an element. the element is ready to go to PAUSED. the element is PAUSED, it is ready to accept and process data. Sink elements however only accept one buffer and then block. the element is PLAYING, the #GstClock is running and the data is flowing. These are the different state changes an element goes through. %GST_STATE_NULL ⇒ %GST_STATE_PLAYING is called an upwards state change and %GST_STATE_PLAYING ⇒ %GST_STATE_NULL a downwards state change. state change from NULL to READY. <itemizedlist> <listitem><para> The element must check if the resources it needs are available. Device sinks and -sources typically try to probe the device to constrain their caps. </para></listitem> <listitem><para> The element opens the device (in case feature need to be probed). </para></listitem> </itemizedlist> state change from READY to PAUSED. <itemizedlist> <listitem><para> The element pads are activated in order to receive data in PAUSED. Streaming threads are started. </para></listitem> <listitem><para> Some elements might need to return %GST_STATE_CHANGE_ASYNC and complete the state change when they have enough information. It is a requirement for sinks to return %GST_STATE_CHANGE_ASYNC and complete the state change when they receive the first buffer or %GST_EVENT_EOS (preroll). Sinks also block the dataflow when in PAUSED. </para></listitem> <listitem><para> A pipeline resets the running_time to 0. </para></listitem> <listitem><para> Live sources return %GST_STATE_CHANGE_NO_PREROLL and don't generate data. </para></listitem> </itemizedlist> state change from PAUSED to PLAYING. <itemizedlist> <listitem><para> Most elements ignore this state change. </para></listitem> <listitem><para> The pipeline selects a #GstClock and distributes this to all the children before setting them to PLAYING. This means that it is only allowed to synchronize on the #GstClock in the PLAYING state. </para></listitem> <listitem><para> The pipeline uses the #GstClock and the running_time to calculate the base_time. The base_time is distributed to all children when performing the state change. </para></listitem> <listitem><para> Sink elements stop blocking on the preroll buffer or event and start rendering the data. </para></listitem> <listitem><para> Sinks can post %GST_MESSAGE_EOS in the PLAYING state. It is not allowed to post %GST_MESSAGE_EOS when not in the PLAYING state. </para></listitem> <listitem><para> While streaming in PAUSED or PLAYING elements can create and remove sometimes pads. </para></listitem> <listitem><para> Live sources start generating data and return %GST_STATE_CHANGE_SUCCESS. </para></listitem> </itemizedlist> state change from PLAYING to PAUSED. <itemizedlist> <listitem><para> Most elements ignore this state change. </para></listitem> <listitem><para> The pipeline calculates the running_time based on the last selected #GstClock and the base_time. It stores this information to continue playback when going back to the PLAYING state. </para></listitem> <listitem><para> Sinks unblock any #GstClock wait calls. </para></listitem> <listitem><para> When a sink does not have a pending buffer to play, it returns %GST_STATE_CHANGE_ASYNC from this state change and completes the state change when it receives a new buffer or an %GST_EVENT_EOS. </para></listitem> <listitem><para> Any queued %GST_MESSAGE_EOS items are removed since they will be reposted when going back to the PLAYING state. The EOS messages are queued in #GstBin containers. </para></listitem> <listitem><para> Live sources stop generating data and return %GST_STATE_CHANGE_NO_PREROLL. </para></listitem> </itemizedlist> state change from PAUSED to READY. <itemizedlist> <listitem><para> Sinks unblock any waits in the preroll. </para></listitem> <listitem><para> Elements unblock any waits on devices </para></listitem> <listitem><para> Chain or get_range functions return %GST_FLOW_FLUSHING. </para></listitem> <listitem><para> The element pads are deactivated so that streaming becomes impossible and all streaming threads are stopped. </para></listitem> <listitem><para> The sink forgets all negotiated formats </para></listitem> <listitem><para> Elements remove all sometimes pads </para></listitem> </itemizedlist> state change from READY to NULL. <itemizedlist> <listitem><para> Elements close devices </para></listitem> <listitem><para> Elements reset any internal state. </para></listitem> </itemizedlist> The possible return values from a state change function such as gst_element_set_state(). Only @GST_STATE_CHANGE_FAILURE is a real failure. the state change failed the state change succeeded the state change will happen asynchronously the state change succeeded but the element cannot produce data in %GST_STATE_PAUSED. This typically happens with live sources. Stream errors are for anything related to the stream being processed: format errors, media type errors, ... They're typically used by decoders, demuxers, converters, ... a general error which doesn't fit in any other category. Make sure you add a custom message to the error call. do not use this except as a placeholder for deciding where to go while developing code. use this when you do not want to implement this functionality yet. used when the element doesn't know the stream's type. used when the element doesn't handle this type of stream. used when there's no codec to handle the stream's type. used when decoding fails. used when encoding fails. used when demuxing fails. used when muxing fails. used when the stream is of the wrong format (for example, wrong caps). used when the stream is encrypted and can't be decrypted because this is not supported by the element. used when the stream is encrypted and can't be decrypted because no suitable key is available. the number of stream error types. This stream has no special attributes This stream is a sparse stream (e.g. a subtitle stream), data may flow only in irregular intervals with large gaps in between. This stream should be selected by default. This flag may be used by demuxers to signal that a stream should be selected by default in a playback scenario. This stream should not be selected by default. This flag may be used by demuxers to signal that a stream should not be selected by default in a playback scenario, but only if explicitly selected by the user (e.g. an audio track for the hard of hearing or a director's commentary track). The type of a %GST_MESSAGE_STREAM_STATUS. The stream status messages inform the application of new streaming threads and their status. A new thread need to be created. a thread entered its loop function a thread left its loop function a thread is destroyed a thread is started a thread is paused a thread is stopped Different representations of a stream volume. gst_stream_volume_convert_volume() allows to convert between the different representations. Formulas to convert from a linear to a cubic or dB volume are cbrt(val) and 20 * log10 (val). Linear scale factor, 1.0 = 100% Cubic volume scale Logarithmic volume scale (dB, amplitude not power) The type of a %GST_MESSAGE_STRUCTURE_CHANGE. Pad linking is starting or done. Pad unlinking is starting or done. Result values from the parse_tag virtual function. cannot parse tag, just skip it call again with less or more data parsed tag successfully Extra tag flags used when registering tags. undefined flag tag is meta data tag is encoded tag is decoded number of tag flags Type of image contained in an image tag (specified as "image-type" field in the info structure in the image's #GstSample) No image type. Can be used to tell functions such as gst_tag_image_data_to_image_sample() that no image type should be set. Undefined/other image type Cover (front) Cover (back) Leaflet page Medium (e.g. label side of CD) Lead artist/lead performer/soloist Artist/performer Conductor Band/orchestra Composer Lyricist/text writer Recording location During recording During performance Movie/video screen capture A fish as funny as the ID3v2 spec Illustration Band/artist logotype Publisher/studio logotype See http://creativecommons.org/ns for more information. making multiple copies is allowed distribution, public display and public performance are allowed distribution of derivative works is allowed commercial derivatives are allowed, but only non-commercial distribution is allowed copyright and license notices must be kept intact credit must be given to copyright holder and/or author derivative works must be licensed under the same terms or compatible terms as the original work source code (the preferred form for making modifications) must be provided when exercising some rights granted by the license derivative and combined works must be licensed under specified terms, similar to those of the original work derivative works must be licensed under specified terms, with at least the same conditions as the original work; combinations with the work may be licensed under different terms exercising rights for commercial purposes is prohibited use in a non-developing country is prohibited this license was created by the Creative Commons project this license was created by the Free Software Foundation (FSF) The different tag merging modes are basically replace, overwrite and append, but they can be seen from two directions. Given two taglists: (A) the tags already in the element and (B) the ones that are supplied to the element ( e.g. via gst_tag_setter_merge_tags() / gst_tag_setter_add_tags() or a %GST_EVENT_TAG), how are these tags merged? In the table below this is shown for the cases that a tag exists in the list (A) or does not exists (!A) and combinations thereof. <table frame="all" colsep="1" rowsep="1"> <title>merge mode</title> <tgroup cols='5' align='left'> <thead> <row> <entry>merge mode</entry> <entry>A + B</entry> <entry>A + !B</entry> <entry>!A + B</entry> <entry>!A + !B</entry> </row> </thead> <tbody> <row> <entry>REPLACE_ALL</entry> <entry>B</entry> <entry>-</entry> <entry>B</entry> <entry>-</entry> </row> <row> <entry>REPLACE</entry> <entry>B</entry> <entry>A</entry> <entry>B</entry> <entry>-</entry> </row> <row> <entry>APPEND</entry> <entry>A, B</entry> <entry>A</entry> <entry>B</entry> <entry>-</entry> </row> <row> <entry>PREPEND</entry> <entry>B, A</entry> <entry>A</entry> <entry>B</entry> <entry>-</entry> </row> <row> <entry>KEEP</entry> <entry>A</entry> <entry>A</entry> <entry>B</entry> <entry>-</entry> </row> <row> <entry>KEEP_ALL</entry> <entry>A</entry> <entry>A</entry> <entry>-</entry> <entry>-</entry> </row> </tbody> </tgroup> </table> undefined merge mode replace all tags (clear list and append) replace tags append tags prepend tags keep existing tags keep all existing tags the number of merge modes GstTagScope specifies if a taglist applies to the complete medium or only to one single stream. tags specific to this single stream global tags for the complete medium The different states a task can be in the task is started and running the task is stopped the task is paused Emited right after the new value has been added to @self The #GstTimedValueControlSource into which a #GstTimedValue has been added The newly added #GstTimedValue Emited right after the new value has been set on @timed_signals The #GstTimedValueControlSource on which a #GstTimedValue has changed The #GstTimedValue where the value changed Emited when @timed_value is removed from @self The #GstTimedValueControlSource from which a #GstTimedValue has been removed The removed #GstTimedValue The different types of TOC entries (see #GstTocEntry). There are two types of TOC entries: alternatives or parts in a sequence. entry is an angle (i.e. an alternative) entry is a version (i.e. alternative) entry is an edition (i.e. alternative) invalid entry type value entry is a title (i.e. a part of a sequence) entry is a track (i.e. a part of a sequence) entry is a chapter (i.e. a part of a sequence) How a #GstTocEntry should be repeated. By default, entries are played a single time. single forward playback repeat forward repeat backward repeat forward and backward The scope of a TOC. global TOC representing all selectable options (this is what applications are usually interested in) TOC for the currently active/selected stream (this is a TOC representing the current stream from start to EOS, and is what a TOC writer / muxer is usually interested in; it will usually be a subset of the global TOC, e.g. just the chapters of the current title, or the chapters selected for playback from the current title) Flag that describe the value. These flags help applications processing the logs to understand the values. no flags the value is optional. When using this flag one need to have an additional boolean arg before this value in the var-args list passed to gst_tracer_record_log(). the value is combined since the start of tracing Tracing record will contain fields that contain a meassured value or extra meta-data. One such meta data are values that tell where a measurement was taken. This enumerating declares to which scope such a meta data field relates to. If it is e.g. %GST_TRACER_VALUE_SCOPE_PAD, then each of the log events may contain values for different #GstPads. the value is related to the process the value is related to a thread the value is related to an #GstElement the value is related to a #GstPad The probability of the typefind function. Higher values have more certainty in doing a reliable typefind. type undetected. unlikely typefind. possible type detected. likely a type was detected. nearly certain that a type was detected. very certain a type was detected. Different URI-related errors that can occur. The protocol is not supported There was a problem with the URI Could not set or change the URI because the URI handler was in a state where that is not possible or not permitted There was a problem with the entity that the URI references The different types of URI direction. The URI direction is unknown The URI is a consumer. The URI is a producer. Different alpha modes. When input and output have alpha, it will be copied. When the input has no alpha, alpha will be set to #GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE set all alpha to #GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE multiply all alpha with #GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE. When the input format has no alpha but the output format has, the alpha value will be set to #GST_VIDEO_CONVERTER_OPT_ALPHA_VALUE Additional video buffer flags. These flags can potentially be used on any buffers carrying video data - even encoded data. If the #GstBuffer is interlaced. In mixed interlace-mode, this flags specifies if the frame is interlaced or progressive. If the #GstBuffer is interlaced, then the first field in the video frame is the top field. If unset, the bottom field is first. If the #GstBuffer is interlaced, then the first field (as defined by the %GST_VIDEO_BUFFER_TFF flag setting) is repeated. If the #GstBuffer is interlaced, then only the first field (as defined by the %GST_VIDEO_BUFFER_TFF flag setting) is to be displayed. The #GstBuffer contains one or more specific views, such as left or right eye view. This flags is set on any buffer that contains non-mono content - even for streams that contain only a single viewpoint. In mixed mono / non-mono streams, the absense of the flag marks mono buffers. When conveying stereo/multiview content with frame-by-frame methods, this flag marks the first buffer in a bundle of frames that belong together. Offset to define more flags Extra flags that influence the result from gst_video_chroma_resample_new(). no flags the input is interlaced Different subsampling and upsampling methods Duplicates the chroma samples when upsampling and drops when subsampling Uses linear interpolation to reconstruct missing chroma and averaging to subsample Different chroma downsampling and upsampling modes do full chroma up and down sampling only perform chroma upsampling only perform chroma downsampling disable chroma resampling Various Chroma sitings. unknown cositing no cositing chroma is horizontally cosited chroma is vertically cosited choma samples are sited on alternate lines chroma samples cosited with luma samples jpeg style cositing, also for mpeg1 and mjpeg mpeg2 style cositing DV style cositing Flags for #GstVideoCodecFrame is the frame only meant to be decoded is the frame a synchronization point (keyframe) should the output frame be made a keyframe should the encoder output stream headers The color matrix is used to convert between Y'PbPr and non-linear RGB (R'G'B') unknown matrix identity matrix FCC color matrix ITU-R BT.709 color matrix ITU-R BT.601 color matrix SMPTE 240M color matrix ITU-R BT.2020 color matrix. Since: 1.6. The color primaries define the how to transform linear RGB values to and from the CIE XYZ colorspace. unknown color primaries BT709 primaries BT470M primaries BT470BG primaries SMPTE170M primaries SMPTE240M primaries Generic film BT2020 primaries. Since: 1.6. Adobe RGB primaries. Since: 1.8 Possible color range values. These constants are defined for 8 bit color values and can be scaled for other bit depths. unknown range [0..255] for 8 bit components [16..235] for 8 bit components. Chroma has [16..240] range. Extra flags that influence the result from gst_video_chroma_resample_new(). no flags the input is interlaced quantize values in addition to adding dither. Different dithering methods to use. no dithering propagate rounding errors downwards Dither with floyd-steinberg error diffusion Dither with Sierra Lite error diffusion ordered dither using a bayer pattern Extra video flags no flags a variable fps is selected, fps_n and fps_d denote the maximum fps of the video Each color has been scaled by the alpha value. The different video flags that a format info can have. The video format is YUV, components are numbered 0=Y, 1=U, 2=V. The video format is RGB, components are numbered 0=R, 1=G, 2=B. The video is gray, there is one gray component with index 0. The video format has an alpha components with the number 3. The video format has data stored in little endianness. The video format has a palette. The palette is stored in the second plane and indexes are stored in the first plane. The video format has a complex layout that can't be described with the usual information in the #GstVideoFormatInfo. This format can be used in a #GstVideoFormatUnpack and #GstVideoFormatPack function. The format is tiled, there is tiling information in the last plane. Extra video frame flags no flags The video frame is interlaced. In mixed interlace-mode, this flag specifies if the frame is interlaced or progressive. The video frame has the top field first The video frame has the repeat flag The video frame has one field The video contains one or more non-mono views The video frame is the first in a set of corresponding views provided as sequential frames. Additional mapping flags for gst_video_frame_map(). Don't take another reference of the buffer and store it in the GstVideoFrame. This makes sure that the buffer stays writable while the frame is mapped, but requires that the buffer reference stays valid until the frame is unmapped again. Offset to define more flags The orientation of the GL texture. Top line first in memory, left row first Bottom line first in memory, left row first Top line first in memory, right row first Bottom line first in memory, right row first The GL texture type. Luminance texture, GL_LUMINANCE Luminance-alpha texture, GL_LUMINANCE_ALPHA RGB 565 texture, GL_RGB RGB texture, GL_RGB RGBA texture, GL_RGBA R texture, GL_RED_EXT RG texture, GL_RG_EXT disable gamma handling convert between input and output gamma Different gamma conversion modes The possible values of the #GstVideoInterlaceMode describing the interlace mode of the stream. all frames are progressive 2 fields are interleaved in one video frame. Extra buffer flags describe the field order. frames contains both interlaced and progressive video, the buffer flags describe the frame and fields. 2 fields are stored in one buffer, use the frame ID to get access to the required field. For multiview (the 'views' property > 1) the fields of view N can be found at frame ID (N * 2) and (N * 2) + 1. Each field has only half the amount of lines as noted in the height property. This mode requires multiple GstVideoMeta metadata to describe the fields. Different color matrix conversion modes do conversion between color matrices use the input color matrix to convert to and from R'G'B use the output color matrix to convert to and from R'G'B disable color matrix conversion. GstVideoMultiviewFlags are used to indicate extra properties of a stereo/multiview stream beyond the frame layout and buffer mapping that is conveyed in the #GstMultiviewMode. No flags For stereo streams, the normal arrangement of left and right views is reversed. The left view is vertically mirrored. The left view is horizontally mirrored. The right view is vertically mirrored. The right view is horizontally mirrored. For frame-packed multiview modes, indicates that the individual views have been encoded with half the true width or height and should be scaled back up for display. This flag is used for overriding input layout interpretation by adjusting pixel-aspect-ratio. For side-by-side, column interleaved or checkerboard packings, the pixel width will be doubled. For row interleaved and top-bottom encodings, pixel height will be doubled. The video stream contains both mono and multiview portions, signalled on each buffer by the absence or presence of the @GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW buffer flag. #GstVideoMultiviewFramePacking represents the subset of #GstVideoMultiviewMode values that can be applied to any video frame without needing extra metadata. It can be used by elements that provide a property to override the multiview interpretation of a video stream when the video doesn't contain any markers. This enum is used (for example) on playbin, to re-interpret a played video stream as a stereoscopic video. The individual enum values are equivalent to and have the same value as the matching #GstVideoMultiviewMode. A special value indicating no frame packing info. All frames are monoscopic. All frames represent a left-eye view. All frames represent a right-eye view. Left and right eye views are provided in the left and right half of the frame respectively. Left and right eye views are provided in the left and right half of the frame, but have been sampled using quincunx method, with half-pixel offset between the 2 views. Alternating vertical columns of pixels represent the left and right eye view respectively. Alternating horizontal rows of pixels represent the left and right eye view respectively. The top half of the frame contains the left eye, and the bottom half the right eye. Pixels are arranged with alternating pixels representing left and right eye views in a checkerboard fashion. All possible stereoscopic 3D and multiview representations. In conjunction with #GstVideoMultiviewFlags, describes how multiview content is being transported in the stream. A special value indicating no multiview information. Used in GstVideoInfo and other places to indicate that no specific multiview handling has been requested or provided. This value is never carried on caps. All frames are monoscopic. All frames represent a left-eye view. All frames represent a right-eye view. Left and right eye views are provided in the left and right half of the frame respectively. Left and right eye views are provided in the left and right half of the frame, but have been sampled using quincunx method, with half-pixel offset between the 2 views. Alternating vertical columns of pixels represent the left and right eye view respectively. Alternating horizontal rows of pixels represent the left and right eye view respectively. The top half of the frame contains the left eye, and the bottom half the right eye. Pixels are arranged with alternating pixels representing left and right eye views in a checkerboard fashion. Left and right eye views are provided in separate frames alternately. Multiple independent views are provided in separate frames in sequence. This method only applies to raw video buffers at the moment. Specific view identification is via the #GstVideoMultiviewMeta and #GstVideoMeta(s) on raw video buffers. Multiple views are provided as separate #GstMemory framebuffers attached to each #GstBuffer, described by the #GstVideoMultiviewMeta and #GstVideoMeta(s) Overlay format flags. no flags RGB are premultiplied by A/255. a global-alpha value != 1 is set. The different flags that can be used when packing and unpacking. No flag When the source has a smaller depth than the target format, set the least significant bits of the target to 0. This is likely sightly faster but less accurate. When this flag is not specified, the most significant bits of the source are duplicated in the least significant bits of the destination. The source is interlaced. The unpacked format will be interlaced as well with each line containing information from alternating fields. (Since 1.2) Different primaries conversion modes disable conversion between primaries do conversion between primaries only when it can be merged with color matrix conversion. fast conversion between primaries Different resampler flags. no flags Different subsampling and upsampling methods Duplicates the samples when upsampling and drops when downsampling Uses linear interpolation to reconstruct missing samples and averaging to downsample Uses cubic interpolation Uses sinc interpolation Uses lanczos interpolation Different scale flags. no flags Set up a scaler for interlaced content Enum value describing the available tiling modes. Unknown or unset tile mode Every four adjacent blocks - two horizontally and two vertically are grouped together and are located in memory in Z or flipped Z order. In case of odd rows, the last row of blocks is arranged in linear order. Enum value describing the most common tiling types. Tiles are indexed. Use gst_video_tile_get_index () to retrieve the tile at the requested coordinates. The video transfer function defines the formula for converting between non-linear RGB (R'G'B') and linear RGB unknown transfer function linear RGB, gamma 1.0 curve Gamma 1.8 curve Gamma 2.0 curve Gamma 2.2 curve Gamma 2.2 curve with a linear segment in the lower range Gamma 2.2 curve with a linear segment in the lower range Gamma 2.4 curve with a linear segment in the lower range Gamma 2.8 curve Logarithmic transfer characteristic 100:1 range Logarithmic transfer characteristic 316.22777:1 range Gamma 2.2 curve with a linear segment in the lower range. Used for BT.2020 with 12 bits per component. Since: 1.6. Gamma 2.19921875. Since: 1.8 This macro checks that @a and @b are (almost) equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #gdouble or #gfloat value or expression a #gdouble or #gfloat value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #gint value or expression a #gint value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #gint64 value or expression a #gint64 value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to in hexadecimal format. This macro is for use in unit tests. a #gint64 value or expression a #gint64 value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to in hexadecimal format. This macro is for use in unit tests. a #gint value or expression a #gint value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a pointer value or expression a pointer value or expression This macro checks that @a and @b are equal (as per strcmp) and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a string literal or expression a string literal or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #guint64 value or expression a #guint64 value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to in hexadecimal format. This macro is for use in unit tests. a #guint64 value or expression a #guint64 value or expression This macro checks that @a and @b are (almost) equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #gdouble or #gfloat value or expression a #gdouble or #gfloat value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #gint value or expression a #gint value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #gint64 value or expression a #gint64 value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to in hexadecimal format. This macro is for use in unit tests. a #gint64 value or expression a #gint64 value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to in hexadecimal format. This macro is for use in unit tests. a #gint value or expression a #gint value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a pointer value or expression a pointer value or expression This macro checks that @a and @b are equal (as per strcmp) and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a string literal or expression a string literal or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to. This macro is for use in unit tests. a #guint64 value or expression a #guint64 value or expression This macro checks that @a and @b are equal and aborts if this is not the case, printing both expressions and the values they evaluated to in hexadecimal format. This macro is for use in unit tests. a #gint64 value or expression a #gint64 value or expression Gets the maximum amount of bytes available, that is it returns the maximum value that can be supplied to gst_adapter_map() without that function returning %NULL. a #GstAdapter number of bytes available in @adapter Gets the maximum number of bytes that are immediately available without requiring any expensive operations (like copying the data into a temporary buffer). a #GstAdapter number of bytes that are available in @adapter without expensive operations Removes all buffers from @adapter. a #GstAdapter Copies @size bytes of data starting at @offset out of the buffers contained in #GstAdapter into an array @dest provided by the caller. The array @dest should be large enough to contain @size bytes. The user should check that the adapter has (@offset + @size) bytes available before calling this function. a #GstAdapter the memory to copy into the bytes offset in the adapter to start from the number of bytes to copy Similar to gst_adapter_copy, but more suitable for language bindings. @size bytes of data starting at @offset will be copied out of the buffers contained in @adapter and into a new #GBytes structure which is returned. Depending on the value of the @size argument an empty #GBytes structure may be returned. a #GstAdapter the bytes offset in the adapter to start from the number of bytes to copy A new #GBytes structure containing the copied data. Flushes the first @flush bytes in the @adapter. The caller must ensure that at least this many bytes are available. See also: gst_adapter_map(), gst_adapter_unmap() a #GstAdapter the number of bytes to flush Returns a #GstBuffer containing the first @nbytes of the @adapter, but does not flush them from the adapter. See gst_adapter_take_buffer() for details. Caller owns a reference to the returned buffer. gst_buffer_unref() after usage. Free-function: gst_buffer_unref a #GstAdapter the number of bytes to get a #GstBuffer containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available. gst_buffer_unref() when no longer needed. Returns a #GstBuffer containing the first @nbytes of the @adapter, but does not flush them from the adapter. See gst_adapter_take_buffer_fast() for details. Caller owns a reference to the returned buffer. gst_buffer_unref() after usage. Free-function: gst_buffer_unref a #GstAdapter the number of bytes to get a #GstBuffer containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available. gst_buffer_unref() when no longer needed. Returns a #GstBufferList of buffers containing the first @nbytes bytes of the @adapter but does not flush them from the adapter. See gst_adapter_take_buffer_list() for details. Caller owns the returned list. Call gst_buffer_list_unref() to free the list after usage. a #GstAdapter the number of bytes to get a #GstBufferList of buffers containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available Returns a #GList of buffers containing the first @nbytes bytes of the @adapter, but does not flush them from the adapter. See gst_adapter_take_list() for details. Caller owns returned list and contained buffers. gst_buffer_unref() each buffer in the list before freeing the list after usage. a #GstAdapter the number of bytes to get a #GList of buffers containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available Gets the first @size bytes stored in the @adapter. The returned pointer is valid until the next function is called on the adapter. Note that setting the returned pointer as the data of a #GstBuffer is incorrect for general-purpose plugins. The reason is that if a downstream element stores the buffer so that it has access to it outside of the bounds of its chain function, the buffer will have an invalid data pointer after your element flushes the bytes. In that case you should use gst_adapter_take(), which returns a freshly-allocated buffer that you can set as #GstBuffer memory or the potentially more performant gst_adapter_take_buffer(). a #GstAdapter the number of bytes to map/peek a pointer to the first @size bytes of data, or %NULL Scan for pattern @pattern with applied mask @mask in the adapter data, starting from offset @offset. The bytes in @pattern and @mask are interpreted left-to-right, regardless of endianness. All four bytes of the pattern must be present in the adapter for it to match, even if the first or last bytes are masked out. It is an error to call this function without making sure that there is enough data (offset+size bytes) in the adapter. This function calls gst_adapter_masked_scan_uint32_peek() passing %NULL for value. a #GstAdapter mask to apply to data before matching against @pattern pattern to match (after mask is applied) offset into the adapter data from which to start scanning, returns the last scanned position. number of bytes to scan from offset offset of the first match, or -1 if no match was found. Example: <programlisting> // Assume the adapter contains 0x00 0x01 0x02 ... 0xfe 0xff gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x00010203, 0, 256); // -> returns 0 gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x00010203, 1, 255); // -> returns -1 gst_adapter_masked_scan_uint32 (adapter, 0xffffffff, 0x01020304, 1, 255); // -> returns 1 gst_adapter_masked_scan_uint32 (adapter, 0xffff, 0x0001, 0, 256); // -> returns -1 gst_adapter_masked_scan_uint32 (adapter, 0xffff, 0x0203, 0, 256); // -> returns 0 gst_adapter_masked_scan_uint32 (adapter, 0xffff0000, 0x02030000, 0, 256); // -> returns 2 gst_adapter_masked_scan_uint32 (adapter, 0xffff0000, 0x02030000, 0, 4); // -> returns -1 </programlisting> Scan for pattern @pattern with applied mask @mask in the adapter data, starting from offset @offset. If a match is found, the value that matched is returned through @value, otherwise @value is left untouched. The bytes in @pattern and @mask are interpreted left-to-right, regardless of endianness. All four bytes of the pattern must be present in the adapter for it to match, even if the first or last bytes are masked out. It is an error to call this function without making sure that there is enough data (offset+size bytes) in the adapter. a #GstAdapter mask to apply to data before matching against @pattern pattern to match (after mask is applied) offset into the adapter data from which to start scanning, returns the last scanned position. number of bytes to scan from offset pointer to uint32 to return matching data offset of the first match, or -1 if no match was found. Creates a new #GstAdapter. Free with g_object_unref(). a new #GstAdapter Get the dts that was before the current byte in the adapter. When @distance is given, the amount of bytes between the dts and the current position is returned. The dts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when the adapter is first created or when it is cleared. This also means that before the first byte with a dts is removed from the adapter, the dts and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. a #GstAdapter pointer to location for distance, or %NULL The previously seen dts. Get the dts that was before the byte at offset @offset in the adapter. When @distance is given, the amount of bytes between the dts and the current position is returned. The dts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when the adapter is first created or when it is cleared. This also means that before the first byte with a dts is removed from the adapter, the dts and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. a #GstAdapter the offset in the adapter at which to get timestamp pointer to location for distance, or %NULL The previously seen dts at given offset. Get the pts that was before the current byte in the adapter. When @distance is given, the amount of bytes between the pts and the current position is returned. The pts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when the adapter is first created or when it is cleared. This also means that before the first byte with a pts is removed from the adapter, the pts and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. a #GstAdapter pointer to location for distance, or %NULL The previously seen pts. Get the pts that was before the byte at offset @offset in the adapter. When @distance is given, the amount of bytes between the pts and the current position is returned. The pts is reset to GST_CLOCK_TIME_NONE and the distance is set to 0 when the adapter is first created or when it is cleared. This also means that before the first byte with a pts is removed from the adapter, the pts and distance returned are GST_CLOCK_TIME_NONE and 0 respectively. a #GstAdapter the offset in the adapter at which to get timestamp pointer to location for distance, or %NULL The previously seen pts at given offset. Adds the data from @buf to the data stored inside @adapter and takes ownership of the buffer. a #GstAdapter a #GstBuffer to add to queue in the adapter Returns a freshly allocated buffer containing the first @nbytes bytes of the @adapter. The returned bytes will be flushed from the adapter. Caller owns returned value. g_free after usage. Free-function: g_free a #GstAdapter the number of bytes to take oven-fresh hot data, or %NULL if @nbytes bytes are not available Returns a #GstBuffer containing the first @nbytes bytes of the @adapter. The returned bytes will be flushed from the adapter. This function is potentially more performant than gst_adapter_take() since it can reuse the memory in pushed buffers by subbuffering or merging. This function will always return a buffer with a single memory region. Note that no assumptions should be made as to whether certain buffer flags such as the DISCONT flag are set on the returned buffer, or not. The caller needs to explicitly set or unset flags that should be set or unset. Since 1.6 this will also copy over all GstMeta of the input buffers except for meta with the %GST_META_FLAG_POOLED flag or with the "memory" tag. Caller owns a reference to the returned buffer. gst_buffer_unref() after usage. Free-function: gst_buffer_unref a #GstAdapter the number of bytes to take a #GstBuffer containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available. gst_buffer_unref() when no longer needed. Returns a #GstBuffer containing the first @nbytes of the @adapter. The returned bytes will be flushed from the adapter. This function is potentially more performant than gst_adapter_take_buffer() since it can reuse the memory in pushed buffers by subbuffering or merging. Unlike gst_adapter_take_buffer(), the returned buffer may be composed of multiple non-contiguous #GstMemory objects, no copies are made. Note that no assumptions should be made as to whether certain buffer flags such as the DISCONT flag are set on the returned buffer, or not. The caller needs to explicitly set or unset flags that should be set or unset. This will also copy over all GstMeta of the input buffers except for meta with the %GST_META_FLAG_POOLED flag or with the "memory" tag. This function can return buffer up to the return value of gst_adapter_available() without making copies if possible. Caller owns a reference to the returned buffer. gst_buffer_unref() after usage. Free-function: gst_buffer_unref a #GstAdapter the number of bytes to take a #GstBuffer containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available. gst_buffer_unref() when no longer needed. Returns a #GstBufferList of buffers containing the first @nbytes bytes of the @adapter. The returned bytes will be flushed from the adapter. When the caller can deal with individual buffers, this function is more performant because no memory should be copied. Caller owns the returned list. Call gst_buffer_list_unref() to free the list after usage. a #GstAdapter the number of bytes to take a #GstBufferList of buffers containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available Returns a #GList of buffers containing the first @nbytes bytes of the @adapter. The returned bytes will be flushed from the adapter. When the caller can deal with individual buffers, this function is more performant because no memory should be copied. Caller owns returned list and contained buffers. gst_buffer_unref() each buffer in the list before freeing the list after usage. a #GstAdapter the number of bytes to take a #GList of buffers containing the first @nbytes of the adapter, or %NULL if @nbytes bytes are not available Releases the memory obtained with the last gst_adapter_map(). a #GstAdapter Trace a memory free operation The tracer to use The memory that is freed Use the tracer to trace a new memory allocation The tracer to use The memory allocated Register a new alloc tracer with the given name The name of the tracer object Create a copy of @params. Free-function: gst_allocation_params_free a #GstAllocationParams a new ##GstAllocationParams, free with gst_allocation_params_free(). Free @params a #GstAllocationParams Initialize @params to its default values a #GstAllocationParams Use @allocator to allocate a new memory block with memory that is at least @size big. The optional @params can specify the prefix and padding for the memory. If %NULL is passed, no flags, no extra prefix/padding and a default alignment is used. The prefix/padding will be filled with 0 if flags contains #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively. When @allocator is %NULL, the default allocator will be used. The alignment in @params is given as a bitmask so that @align + 1 equals the amount of bytes to align to. For example, to align to 8 bytes, use an alignment of 7. a #GstAllocator to use size of the visible memory area optional parameters a new #GstMemory. Find a previously registered allocator with @name. When @name is %NULL, the default allocator will be returned. the name of the allocator a #GstAllocator or %NULL when the allocator with @name was not registered. Use gst_object_unref() to release the allocator after usage. Free @memory that was previously allocated with gst_allocator_alloc(). a #GstAllocator to use the memory to free Registers the memory @allocator with @name. This function takes ownership of @allocator. the name of the allocator #GstAllocator Set the default allocator. This function takes ownership of @allocator. a #GstAllocator Get the configured caps on @appsink. a #GstAppSink the #GstCaps accepted by the sink. gst_caps_unref() after usage. Check if @appsink will drop old buffers when the maximum amount of queued buffers is reached. a #GstAppSink %TRUE if @appsink is dropping old buffers when the queue is filled. Check if appsink will emit the "new-preroll" and "new-sample" signals. a #GstAppSink %TRUE if @appsink is emiting the "new-preroll" and "new-sample" signals. Get the maximum amount of buffers that can be queued in @appsink. a #GstAppSink The maximum amount of buffers that can be queued. Check if @appsink will wait for all buffers to be consumed when an EOS is received. a #GstAppSink %TRUE if @appsink will wait for all buffers to be consumed when an EOS is received. Check if @appsink is EOS, which is when no more samples can be pulled because an EOS event was received. This function also returns %TRUE when the appsink is not in the PAUSED or PLAYING state. a #GstAppSink %TRUE if no more samples can be pulled and the appsink is EOS. Get the last preroll sample in @appsink. This was the sample that caused the appsink to preroll in the PAUSED state. This sample can be pulled many times and remains available to the application even after EOS. This function is typically used when dealing with a pipeline in the PAUSED state. Calling this function after doing a seek will give the sample right after the seek position. Note that the preroll sample will also be returned as the first sample when calling gst_app_sink_pull_sample(). If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. This function blocks until a preroll sample or EOS is received or the appsink element is set to the READY/NULL state. a #GstAppSink a #GstSample or NULL when the appsink is stopped or EOS. Call gst_sample_unref() after usage. This function blocks until a sample or EOS becomes available or the appsink element is set to the READY/NULL state. This function will only return samples when the appsink is in the PLAYING state. All rendered buffers will be put in a queue so that the application can pull samples at its own rate. Note that when the application does not pull samples fast enough, the queued buffers could consume a lot of memory, especially when dealing with raw video frames. If an EOS event was received before any buffers, this function returns %NULL. Use gst_app_sink_is_eos () to check for the EOS condition. a #GstAppSink a #GstSample or NULL when the appsink is stopped or EOS. Call gst_sample_unref() after usage. Set callbacks which will be executed for each new preroll, new sample and eos. This is an alternative to using the signals, it has lower overhead and is thus less expensive, but also less flexible. If callbacks are installed, no signals will be emitted for performance reasons. a #GstAppSink the callbacks a user_data argument for the callbacks a destroy notify function Set the capabilities on the appsink element. This function takes a copy of the caps structure. After calling this method, the sink will only accept caps that match @caps. If @caps is non-fixed, or incomplete, you must check the caps on the samples to get the actual used caps. a #GstAppSink caps to set Instruct @appsink to drop old buffers when the maximum amount of queued buffers is reached. a #GstAppSink the new state Make appsink emit the "new-preroll" and "new-sample" signals. This option is by default disabled because signal emission is expensive and unneeded when the application prefers to operate in pull mode. a #GstAppSink the new state Set the maximum amount of buffers that can be queued in @appsink. After this amount of buffers are queued in appsink, any more buffers will block upstream elements until a sample is pulled from @appsink. a #GstAppSink the maximum number of buffers to queue Instruct @appsink to wait for all buffers to be consumed when an EOS is received. a #GstAppSink the new state Indicates to the appsrc element that the last buffer queued in the element is the last buffer of the stream. a #GstAppSrc #GST_FLOW_OK when the EOS was successfuly queued. #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. Get the configured caps on @appsrc. a #GstAppSrc the #GstCaps produced by the source. gst_caps_unref() after usage. Get the number of currently queued bytes inside @appsrc. a #GstAppSrc The number of currently queued bytes. Check if appsrc will emit the "new-preroll" and "new-buffer" signals. a #GstAppSrc %TRUE if @appsrc is emitting the "new-preroll" and "new-buffer" signals. Retrieve the min and max latencies in @min and @max respectively. a #GstAppSrc the min latency the min latency Get the maximum amount of bytes that can be queued in @appsrc. a #GstAppSrc The maximum amount of bytes that can be queued. Get the size of the stream in bytes. A value of -1 means that the size is not known. a #GstAppSrc the size of the stream previously set with gst_app_src_set_size(); Get the stream type. Control the stream type of @appsrc with gst_app_src_set_stream_type(). a #GstAppSrc the stream type. Adds a buffer to the queue of buffers that the appsrc element will push to its source pad. This function takes ownership of the buffer. When the block property is TRUE, this function can block until free space becomes available in the queue. a #GstAppSrc a #GstBuffer to push #GST_FLOW_OK when the buffer was successfuly queued. #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. #GST_FLOW_EOS when EOS occured. Extract a buffer from the provided sample and adds it to the queue of buffers that the appsrc element will push to its source pad. Any previous caps that were set on appsrc will be replaced by the caps associated with the sample if not equal. When the block property is TRUE, this function can block until free space becomes available in the queue. a #GstAppSrc a #GstSample from which buffer and caps may be extracted #GST_FLOW_OK when the buffer was successfuly queued. #GST_FLOW_FLUSHING when @appsrc is not PAUSED or PLAYING. #GST_FLOW_EOS when EOS occured. Set callbacks which will be executed when data is needed, enough data has been collected or when a seek should be performed. This is an alternative to using the signals, it has lower overhead and is thus less expensive, but also less flexible. If callbacks are installed, no signals will be emitted for performance reasons. a #GstAppSrc the callbacks a user_data argument for the callbacks a destroy notify function Set the capabilities on the appsrc element. This function takes a copy of the caps structure. After calling this method, the source will only produce caps that match @caps. @caps must be fixed and the caps on the buffers must match the caps or left NULL. a #GstAppSrc caps to set Make appsrc emit the "new-preroll" and "new-buffer" signals. This option is by default disabled because signal emission is expensive and unneeded when the application prefers to operate in pull mode. a #GstAppSrc the new state Configure the @min and @max latency in @src. If @min is set to -1, the default latency calculations for pseudo-live sources will be used. a #GstAppSrc the min latency the min latency Set the maximum amount of bytes that can be queued in @appsrc. After the maximum amount of bytes are queued, @appsrc will emit the "enough-data" signal. a #GstAppSrc the maximum number of bytes to queue Set the size of the stream in bytes. A value of -1 means that the size is not known. a #GstAppSrc the size to set Set the stream type on @appsrc. For seekable streams, the "seek" signal must be connected to. A stream_type stream a #GstAppSrc the new state Create a new control-binding that attaches the given #GstControlSource to the #GObject property. the object of the property the property-name to attach the control source the control source for the alpha channel the control source for the red channel the control source for the green channel the control source for the blue channel the new #GstARGBControlBinding Get the amount of items in the queue. a #GstAtomicQueue the number of elements in the queue. Create a new atomic queue instance. @initial_size will be rounded up to the nearest power of 2 and used as the initial size of the queue. initial queue size a new #GstAtomicQueue Peek the head element of the queue without removing it from the queue. a #GstAtomicQueue the head element of @queue or %NULL when the queue is empty. Get the head element of the queue. a #GstAtomicQueue the head element of @queue or %NULL when the queue is empty. Append @data to the tail of the queue. a #GstAtomicQueue the data Increase the refcount of @queue. a #GstAtomicQueue Unref @queue and free the memory when the refcount reaches 0. a #GstAtomicQueue Create and return the #GstAudioRingBuffer for @sink. This function will call the ::create_ringbuffer vmethod and will set @sink as the parent of the returned buffer (see gst_object_set_parent()). a #GstAudioBaseSink. The new ringbuffer of @sink. Get the current alignment threshold, in nanoseconds, used by @sink. a #GstAudioBaseSink The current alignment threshold used by @sink. Get the current discont wait, in nanoseconds, used by @sink. a #GstAudioBaseSink The current discont wait used by @sink. Get the current drift tolerance, in microseconds, used by @sink. a #GstAudioBaseSink The current drift tolerance used by @sink. Queries whether @sink will provide a clock or not. See also gst_audio_base_sink_set_provide_clock. a #GstAudioBaseSink %TRUE if @sink will provide a clock. Get the current slave method used by @sink. a #GstAudioBaseSink The current slave method used by @sink. Informs this base class that the audio output device has failed for some reason, causing a discontinuity (for example, because the device recovered from the error, but lost all contents of its ring buffer). This function is typically called by derived classes, and is useful for the custom slave method. a #GstAudioBaseSink Controls the sink's alignment threshold. a #GstAudioBaseSink the new alignment threshold in nanoseconds Sets the custom slaving callback. This callback will be invoked if the slave-method property is set to GST_AUDIO_BASE_SINK_SLAVE_CUSTOM and the audio sink receives and plays samples. Setting the callback to NULL causes the sink to behave as if the GST_AUDIO_BASE_SINK_SLAVE_NONE method were used. a #GstAudioBaseSink a #GstAudioBaseSinkCustomSlavingCallback user data passed to the callback called when user_data becomes unused Controls how long the sink will wait before creating a discontinuity. a #GstAudioBaseSink the new discont wait in nanoseconds Controls the sink's drift tolerance. a #GstAudioBaseSink the new drift tolerance in microseconds Controls whether @sink will provide a clock or not. If @provide is %TRUE, gst_element_provide_clock() will return a clock that reflects the datarate of @sink. If @provide is %FALSE, gst_element_provide_clock() will return NULL. a #GstAudioBaseSink new state Controls how clock slaving will be performed in @sink. a #GstAudioBaseSink the new slave method Create and return the #GstAudioRingBuffer for @src. This function will call the ::create_ringbuffer vmethod and will set @src as the parent of the returned buffer (see gst_object_set_parent()). a #GstAudioBaseSrc. The new ringbuffer of @src. Queries whether @src will provide a clock or not. See also gst_audio_base_src_set_provide_clock. a #GstAudioBaseSrc %TRUE if @src will provide a clock. Get the current slave method used by @src. a #GstAudioBaseSrc The current slave method used by @src. Controls whether @src will provide a clock or not. If @provide is %TRUE, gst_element_provide_clock() will return a clock that reflects the datarate of @src. If @provide is %FALSE, gst_element_provide_clock() will return NULL. a #GstAudioBaseSrc new state Controls how clock slaving will be performed in @src. a #GstAudioBaseSrc the new slave method Clip the buffer to the given %GstSegment. After calling this function the caller does not own a reference to @buffer anymore. The buffer to clip. Segment in %GST_FORMAT_TIME or %GST_FORMAT_DEFAULT to which the buffer should be clipped. sample rate. size of one audio frame in bytes. This is the size of one sample * channels. %NULL if the buffer is completely outside the configured segment, otherwise the clipped buffer is returned. If the buffer has no timestamp, it is assumed to be inside the segment and is not clipped Reorders @buffer from the channel positions @from to the channel positions @to. @from and @to must contain the same number of positions and the same positions, only in a different order. @buffer must be writable. The buffer to reorder. The %GstAudioFormat of the buffer. The number of channels. The channel positions in the buffer. The channel positions to convert to. %TRUE if the reordering was possible. CDDA sources use this function from their start vfunc to announce the available data and audio tracks to the base source class. The caller should allocate @track on the stack, the base source will do a shallow copy of the structure (and take ownership of the taglist if there is one). a #GstAudioCdSrc address of #GstAudioCdSrcTrack to add FALSE on error, otherwise TRUE. Get the fallback channel-mask for the given number of channels. This function returns a reasonable fallback channel-mask and should be called as a last resort when the specific channel map is unknown. the number of channels a fallback channel-mask for @channels or 0 when there is no mask. Free memory allocated by @mix. a #GstAudioChannelMixer Check if @mix is in passthrough. a #GstAudioChannelMixer %TRUE is @mix is passthrough. In case the samples are interleaved, @in and @out must point to an array with a single element pointing to a block of interleaved samples. If non-interleaved samples are used, @in and @out must point to an array with pointers to memory blocks, one for each channel. Perform channel mixing on @in_data and write the result to @out_data. @in_data and @out_data need to be in @format and @layout. a #GstAudioChannelMixer input samples output samples number of samples Convert the @channels present in @channel_mask to a @position array (which should have at least @channels entries ensured by caller). If @channel_mask is set to 0, it is considered as 'not present' for purpose of conversion. A partially valid @channel_mask with less bits set than the number of channels is considered valid. The number of channels The input channel_mask The %GstAudioChannelPosition<!-- -->s %TRUE if channel and channel mask are valid and could be converted Convert the @position array of @channels channels to a bitmask. If @force_order is %TRUE it additionally checks if the channels are in the order required by GStreamer. The %GstAudioChannelPositions The number of channels. Only consider the GStreamer channel order. the output channel mask %TRUE if the channel positions are valid and could be converted. Reorders the channel positions in @position from any order to the GStreamer channel order. The channel positions to reorder to. The number of channels. %TRUE if the channel positions are valid and reordering was successful. Checks if @position contains valid channel positions for @channels channels. If @force_order is %TRUE it additionally checks if the channels are in the order required by GStreamer. The %GstAudioChannelPositions to check. The number of channels. Only consider the GStreamer channel order. %TRUE if the channel positions are valid. Adjust @time with the internal offset of the audio clock. a #GstAudioClock a #GstClockTime @time adjusted with the internal offset. Report the time as returned by the #GstAudioClockGetTimeFunc without applying any offsets. a #GstAudioClock the time as reported by the time function of the audio clock Invalidate the clock function. Call this function when the provided #GstAudioClockGetTimeFunc cannot be called anymore, for example, when the user_data becomes invalid. After calling this function, @clock will return the last returned time for the rest of its lifetime. a #GstAudioClock Create a new #GstAudioClock instance. Whenever the clock time should be calculated it will call @func with @user_data. When @func returns #GST_CLOCK_TIME_NONE, the clock will return the last reported time. the name of the clock a function user data #GDestroyNotify for @user_data a new #GstAudioClock casted to a #GstClock. Inform @clock that future calls to #GstAudioClockGetTimeFunc will return values starting from @time. The clock will update an internal offset to make sure that future calls to internal_time will return an increasing result as required by the #GstClock object. a #GstAudioClock a #GstClockTime Free a previously allocated @convert instance. a #GstAudioConverter Get the current configuration of @convert. a #GstAudioConverter result input rate result output rate a #GstStructure that remains valid for as long as @convert is valid or until gst_audio_converter_update_config() is called. Calculate how many input frames are currently needed by @convert to produce @out_frames of output frames. a #GstAudioConverter number of output frames the number of input frames Get the maximum number of input frames that the converter would need before producing output. a #GstAudioConverter the latency of @convert as expressed in the number of frames. Calculate how many output frames can be produced when @in_frames input frames are given to @convert. a #GstAudioConverter number of input frames the number of output frames Create a new #GstAudioConverter that is able to convert between @in and @out audio formats. @config contains extra configuration options, see #GST_VIDEO_CONVERTER_OPT_* parameters for details about the options and values. #GstAudioConverterFlags a source #GstAudioInfo a destination #GstAudioInfo a #GstStructure with configuration options a #GstAudioConverter or %NULL if conversion is not possible. Reset @convert to the state it was when it was first created, clearing any history it might currently have. a #GstAudioConverter Perform the conversion with @in_frames in @in to @out_frames in @out using @convert. In case the samples are interleaved, @in and @out must point to an array with a single element pointing to a block of interleaved samples. If non-interleaved samples are used, @in and @out must point to an array with pointers to memory blocks, one for each channel. @in may be %NULL, in which case @in_frames of silence samples are processed by the converter. This function always produces @out_frames of output and consumes @in_frames of input. Use gst_audio_converter_get_out_frames() and gst_audio_converter_get_in_frames() to make sure @in_frames and @out_frames are matching and @in and @out point to enough memory. a #GstAudioConverter extra #GstAudioConverterFlags input frames number of input frames output frames number of output frames %TRUE is the conversion could be performed. Set @in_rate, @out_rate and @config as extra configuration for @convert. in_rate and @out_rate specify the new sample rates of input and output formats. A value of 0 leaves the sample rate unchanged. @config can be %NULL, in which case, the current configuration is not changed. If the parameters in @config can not be set exactly, this function returns %FALSE and will try to update as much state as possible. The new state can then be retrieved and refined with gst_audio_converter_get_config(). Look at the #GST_AUDIO_CONVERTER_OPT_* fields to check valid configuration option and values. a #GstAudioConverter input rate output rate a #GstStructure or %NULL %TRUE when the new parameters could be set Helper function that allocates a buffer to hold an audio frame for @dec's current output format. a #GstAudioDecoder size of the buffer allocated buffer Collects decoded data and pushes it downstream. @buf may be NULL in which case the indicated number of frames are discarded and considered to have produced no output (e.g. lead-in or setup frames). Otherwise, source pad caps must be set when it is called with valid data in @buf. Note that a frame received in gst_audio_decoder_handle_frame() may be invalidated by a call to this function. a #GstAudioDecoder decoded data number of decoded frames represented by decoded data a #GstFlowReturn that should be escalated to caller (of caller) Lets #GstAudioDecoder sub-classes to know the memory @allocator used by the base class and its @params. Unref the @allocator after use it. a #GstAudioDecoder the #GstAllocator used the #GstAllocatorParams of @allocator a #GstAudioDecoder a #GstAudioInfo describing the input audio format a #GstAudioDecoder currently configured decoder delay Queries decoder drain handling. a #GstAudioDecoder TRUE if drainable handling is enabled. MT safe. a #GstAudioDecoder currently configured byte to time conversion setting Sets the variables pointed to by @min and @max to the currently configured latency. a #GstAudioDecoder a pointer to storage to hold minimum latency a pointer to storage to hold maximum latency a #GstAudioDecoder currently configured decoder tolerated error count. Queries decoder's latency aggregation. a #GstAudioDecoder aggregation latency. MT safe. Queries decoder required format handling. a #GstAudioDecoder TRUE if required format handling is enabled. MT safe. Return current parsing (sync and eos) state. a #GstAudioDecoder a pointer to a variable to hold the current sync state a pointer to a variable to hold the current eos state Queries decoder packet loss concealment handling. a #GstAudioDecoder TRUE if packet loss concealment is enabled. MT safe. a #GstAudioDecoder currently configured plc handling Queries current audio jitter tolerance threshold. a #GstAudioDecoder decoder audio jitter tolerance threshold. MT safe. Sets the audio decoder tags and how they should be merged with any upstream stream tags. This will override any tags previously-set with gst_audio_decoder_merge_tags(). Note that this is provided for convenience, and the subclass is not required to use this and can still do tag handling on its own. a #GstAudioDecoder a #GstTagList to merge, or NULL the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE Negotiate with downstream elements to currently configured #GstAudioInfo. Unmark GST_PAD_FLAG_NEED_RECONFIGURE in any case. But mark it again if negotiate fails. a #GstAudioDecoder #TRUE if the negotiation succeeded, else #FALSE. Returns caps that express @caps (or sink template caps if @caps == NULL) restricted to rate/channels/... combinations supported by downstream elements. a #GstAudioDecoder initial caps filter caps a #GstCaps owned by caller Configures decoder drain handling. If drainable, subclass might be handed a NULL buffer to have it return any leftover decoded data. Otherwise, it is not considered so capable and will only ever be passed real data. MT safe. a #GstAudioDecoder new state Allows baseclass to perform byte to time estimated conversion. a #GstAudioDecoder whether to enable byte to time conversion Sets decoder latency. a #GstAudioDecoder minimum latency maximum latency Sets numbers of tolerated decoder errors, where a tolerated one is then only warned about, but more than tolerated will lead to fatal error. You can set -1 for never returning fatal errors. Default is set to GST_AUDIO_DECODER_MAX_ERRORS. a #GstAudioDecoder max tolerated errors Sets decoder minimum aggregation latency. MT safe. a #GstAudioDecoder new minimum latency Configures decoder format needs. If enabled, subclass needs to be negotiated with format caps before it can process any data. It will then never be handed any data before it has been configured. Otherwise, it might be handed data without having been configured and is then expected being able to do so either by default or based on the input data. MT safe. a #GstAudioDecoder new state Configure output info on the srcpad of @dec. a #GstAudioDecoder #GstAudioInfo %TRUE on success. Enable or disable decoder packet loss concealment, provided subclass and codec are capable and allow handling plc. MT safe. a #GstAudioDecoder new state Indicates whether or not subclass handles packet loss concealment (plc). a #GstAudioDecoder new plc state Configures decoder audio jitter tolerance threshold. MT safe. a #GstAudioDecoder new tolerance Lets #GstAudioDecoder sub-classes decide if they want the sink pad to use the default pad query handler to reply to accept-caps queries. By setting this to true it is possible to further customize the default handler with %GST_PAD_SET_ACCEPT_INTERSECT and %GST_PAD_SET_ACCEPT_TEMPLATE a #GstAudioDecoder if the default pad accept-caps query handling should be used Helper function that allocates a buffer to hold an encoded audio frame for @enc's current output format. a #GstAudioEncoder size of the buffer allocated buffer Collects encoded data and pushes encoded data downstream. Source pad caps must be set when this is called. If @samples < 0, then best estimate is all samples provided to encoder (subclass) so far. @buf may be NULL, in which case next number of @samples are considered discarded, e.g. as a result of discontinuous transmission, and a discontinuity is marked. Note that samples received in gst_audio_encoder_handle_frame() may be invalidated by a call to this function. a #GstAudioEncoder encoded data number of samples (per channel) represented by encoded data a #GstFlowReturn that should be escalated to caller (of caller) Lets #GstAudioEncoder sub-classes to know the memory @allocator used by the base class and its @params. Unref the @allocator after use it. a #GstAudioEncoder the #GstAllocator used the #GstAllocatorParams of @allocator a #GstAudioEncoder a #GstAudioInfo describing the input audio format Queries encoder drain handling. a #GstAudioEncoder TRUE if drainable handling is enabled. MT safe. a #GstAudioEncoder currently configured maximum handled frames a #GstAudioEncoder currently maximum requested samples per frame a #GstAudioEncoder currently minimum requested samples per frame Queries encoder hard minimum handling. a #GstAudioEncoder TRUE if hard minimum handling is enabled. MT safe. Queries encoder's hard resync setting. a #GstAudioEncoder TRUE if hard resync is enabled. MT safe. Sets the variables pointed to by @min and @max to the currently configured latency. a #GstAudioEncoder a pointer to storage to hold minimum latency a pointer to storage to hold maximum latency a #GstAudioEncoder currently configured encoder lookahead Queries if the encoder will handle granule marking. a #GstAudioEncoder TRUE if granule marking is enabled. MT safe. Queries encoder perfect timestamp behaviour. a #GstAudioEncoder TRUE if perfect timestamp setting enabled. MT safe. Queries current audio jitter tolerance threshold. a #GstAudioEncoder encoder audio jitter tolerance threshold. MT safe. Sets the audio encoder tags and how they should be merged with any upstream stream tags. This will override any tags previously-set with gst_audio_encoder_merge_tags(). Note that this is provided for convenience, and the subclass is not required to use this and can still do tag handling on its own. MT safe. a #GstAudioEncoder a #GstTagList to merge, or NULL to unset previously-set tags the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE Negotiate with downstream elements to currently configured #GstCaps. Unmark GST_PAD_FLAG_NEED_RECONFIGURE in any case. But mark it again if negotiate fails. a #GstAudioEncoder #TRUE if the negotiation succeeded, else #FALSE. Returns caps that express @caps (or sink template caps if @caps == NULL) restricted to channel/rate combinations supported by downstream elements (e.g. muxers). a #GstAudioEncoder initial caps filter caps a #GstCaps owned by caller Configures encoder drain handling. If drainable, subclass might be handed a NULL buffer to have it return any leftover encoded data. Otherwise, it is not considered so capable and will only ever be passed real data. MT safe. a #GstAudioEncoder new state Sets max number of frames accepted at once (assumed minimally 1). Requires @frame_samples_min and @frame_samples_max to be the equal. Note: This value will be reset to 0 every time before GstAudioEncoder::set_format() is called. a #GstAudioEncoder number of frames Sets number of samples (per channel) subclass needs to be handed, at most or will be handed all available if 0. If an exact number of samples is required, gst_audio_encoder_set_frame_samples_min() must be called with the same number. Note: This value will be reset to 0 every time before GstAudioEncoder::set_format() is called. a #GstAudioEncoder number of samples per frame Sets number of samples (per channel) subclass needs to be handed, at least or will be handed all available if 0. If an exact number of samples is required, gst_audio_encoder_set_frame_samples_max() must be called with the same number. Note: This value will be reset to 0 every time before GstAudioEncoder::set_format() is called. a #GstAudioEncoder number of samples per frame Configures encoder hard minimum handling. If enabled, subclass will never be handed less samples than it configured, which otherwise might occur near end-of-data handling. Instead, the leftover samples will simply be discarded. MT safe. a #GstAudioEncoder new state Sets encoder hard resync handling. MT safe. a #GstAudioEncoder new state Set the codec headers to be sent downstream whenever requested. a #GstAudioEncoder a list of #GstBuffer containing the codec header Sets encoder latency. a #GstAudioEncoder minimum latency maximum latency Sets encoder lookahead (in units of input rate samples) Note: This value will be reset to 0 every time before GstAudioEncoder::set_format() is called. a #GstAudioEncoder lookahead Enable or disable encoder granule handling. MT safe. a #GstAudioEncoder new state Enable or disable encoder perfect output timestamp preference. MT safe. a #GstAudioEncoder new state Configures encoder audio jitter tolerance threshold. MT safe. a #GstAudioEncoder new tolerance Convenience function to add pad templates to this element class, with @allowed_caps as the caps that can be handled. This function is usually used from within a GObject class_init function. an #GstAudioFilterClass what formats the filter can handle, as #GstCaps Construct a #GstAudioFormat with given parameters. signed or unsigned format G_LITTLE_ENDIAN or G_BIG_ENDIAN amount of bits used per sample amount of used bits in @width a #GstAudioFormat or GST_AUDIO_FORMAT_UNKNOWN when no audio format exists with the given parameters. Fill @length bytes in @dest with silence samples for @info. a #GstAudioFormatInfo a destination to fill the length to fill Convert the @format string to its #GstAudioFormat. a format string the #GstAudioFormat for @format or GST_AUDIO_FORMAT_UNKNOWN when the string is not a known format. Get the #GstAudioFormatInfo for @format a #GstAudioFormat The #GstAudioFormatInfo for @format. Returns a reorder map for @from to @to that can be used in custom channel reordering code, e.g. to convert from or to the GStreamer channel order. @from and @to must contain the same number of positions and the same positions, only in a different order. The resulting @reorder_map can be used for reordering by assigning channel i of the input to channel reorder_map[i] of the output. The number of channels. The channel positions to reorder from. The channel positions to reorder to. Pointer to the reorder map. %TRUE if the channel positions are valid and reordering is possible. Calculated the size of the buffer expected by gst_audio_iec61937_payload() for payloading type from @spec. the ringbufer spec the size or 0 if the given @type is not supported or cannot be payloaded. Payloads @src in the form specified by IEC 61937 for the type from @spec and stores the result in @dst. @src must contain exactly one frame of data and the frame is not checked for errors. a buffer containing the data to payload size of @src in bytes the destination buffer to store the payloaded contents in. Should not overlap with @src size of @dst in bytes the ringbufer spec for @src the expected byte order of the payloaded data transfer-full: %TRUE if the payloading was successful, %FALSE otherwise. Converts among various #GstFormat types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw audio, GST_FORMAT_DEFAULT corresponds to audio frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT. a #GstAudioInfo #GstFormat of the @src_val value to convert #GstFormat of the @dest_val pointer to destination value TRUE if the conversion was successful. Copy a GstAudioInfo structure. a #GstAudioInfo a new #GstAudioInfo. free with gst_audio_info_free. Free a GstAudioInfo structure previously allocated with gst_audio_info_new() or gst_audio_info_copy(). a #GstAudioInfo Parse @caps and update @info. a #GstAudioInfo a #GstCaps TRUE if @caps could be parsed Initialize @info with default values. a #GstAudioInfo Compares two #GstAudioInfo and returns whether they are equal or not a #GstAudioInfo a #GstAudioInfo %TRUE if @info and @other are equal, else %FALSE. Allocate a new #GstAudioInfo that is also initialized with gst_audio_info_init(). a new #GstAudioInfo. free with gst_audio_info_free(). Set the default info for the audio info of @format and @rate and @channels. Note: This initializes @info first, no values are preserved. a #GstAudioInfo the format the samplerate the number of channels the channel positions Convert the values of @info into a #GstCaps. a #GstAudioInfo the new #GstCaps containing the info of @info. Free a #GstAudioQuantize. a #GstAudioQuantize Reset @quant to the state is was when created, clearing any history it might have. a #GstAudioQuantize Perform quantization on @samples in @in and write the result to @out. In case the samples are interleaved, @in and @out must point to an array with a single element pointing to a block of interleaved samples. If non-interleaved samples are used, @in and @out must point to an array with pointers to memory blocks, one for each channel. @in and @out may point to the same memory location, in which case samples will be modified in-place. a #GstAudioQuantize input samples output samples number of samples Reorders @data from the channel positions @from to the channel positions @to. @from and @to must contain the same number of positions and the same positions, only in a different order. The pointer to the memory. The size of the memory. The %GstAudioFormat of the buffer. The number of channels. The channel positions in the buffer. The channel positions to convert to. %TRUE if the reordering was possible. Allocate the resources for the ringbuffer. This function fills in the data pointer of the ring buffer with a valid #GstBuffer to which samples can be written. the #GstAudioRingBuffer to acquire the specs of the buffer TRUE if the device could be acquired, FALSE on error. MT safe. Activate @buf to start or stop pulling data. MT safe. the #GstAudioRingBuffer to activate the new mode TRUE if the device could be activated in the requested mode, FALSE on error. Subclasses should call this function to notify the fact that @advance segments are now processed by the device. MT safe. the #GstAudioRingBuffer to advance the number of segments written Clear the given segment of the buffer with silence samples. This function is used by subclasses. MT safe. the #GstAudioRingBuffer to clear the segment to clear Fill the ringbuffer with silence. MT safe. the #GstAudioRingBuffer to clear Close the audio device associated with the ring buffer. The ring buffer should already have been released via gst_audio_ring_buffer_release(). the #GstAudioRingBuffer TRUE if the device could be closed, FALSE on error. MT safe. Commit @in_samples samples pointed to by @data to the ringbuffer @buf. @in_samples and @out_samples define the rate conversion to perform on the samples in @data. For negative rates, @out_samples must be negative and @in_samples positive. When @out_samples is positive, the first sample will be written at position @sample in the ringbuffer. When @out_samples is negative, the last sample will be written to @sample in reverse order. @out_samples does not need to be a multiple of the segment size of the ringbuffer although it is recommended for optimal performance. @accum will hold a temporary accumulator used in rate conversion and should be set to 0 when this function is first called. In case the commit operation is interrupted, one can resume the processing by passing the previously returned @accum value back to this function. MT safe. the #GstAudioRingBuffer to commit the sample position of the data the data to commit the number of samples in the data to commit the number of samples to write to the ringbuffer accumulator for rate conversion. The number of samples written to the ringbuffer or -1 on error. The number of samples written can be less than @out_samples when @buf was interrupted with a flush or stop. Convert @src_val in @src_fmt to the equivalent value in @dest_fmt. The result will be put in @dest_val. the #GstAudioRingBuffer the source format the source value the destination format a location to store the converted value TRUE if the conversion succeeded. Print debug info about the buffer sized in @spec to the debug log. the spec to debug Print debug info about the parsed caps in @spec to the debug log. the spec to debug Get the number of samples queued in the audio device. This is usually less than the segment size but can be bigger when the implementation uses another internal buffer between the audio device. For playback ringbuffers this is the amount of samples transfered from the ringbuffer to the device but still not played. For capture ringbuffers this is the amount of samples in the device that are not yet transfered to the ringbuffer. the #GstAudioRingBuffer to query The number of samples queued in the audio device. MT safe. Checks the status of the device associated with the ring buffer. the #GstAudioRingBuffer TRUE if the device was open, FALSE if it was closed. MT safe. Check if the ringbuffer is acquired and ready to use. the #GstAudioRingBuffer to check TRUE if the ringbuffer is acquired, FALSE on error. MT safe. Check if @buf is activated. MT safe. the #GstAudioRingBuffer TRUE if the device is active. Check if @buf is flushing. MT safe. the #GstAudioRingBuffer TRUE if the device is flushing. Tell the ringbuffer that it is allowed to start playback when the ringbuffer is filled with samples. MT safe. the #GstAudioRingBuffer the new value Open the audio device associated with the ring buffer. Does not perform any setup on the device. You must open the device before acquiring the ring buffer. the #GstAudioRingBuffer TRUE if the device could be opened, FALSE on error. MT safe. Parse @caps into @spec. a spec a #GstCaps TRUE if the caps could be parsed. Pause processing samples from the ringbuffer. the #GstAudioRingBuffer to pause TRUE if the device could be paused, FALSE on error. MT safe. Returns a pointer to memory where the data from segment @segment can be found. This function is mostly used by subclasses. the #GstAudioRingBuffer to read from the segment to read the pointer to the memory where samples can be read the number of bytes to read FALSE if the buffer is not started. MT safe. Read @len samples from the ringbuffer into the memory pointed to by @data. The first sample should be read from position @sample in the ringbuffer. @len should not be a multiple of the segment size of the ringbuffer although it is recommended. @timestamp will return the timestamp associated with the data returned. the #GstAudioRingBuffer to read from the sample position of the data where the data should be read the number of samples in data to read where the timestamp is returned The number of samples read from the ringbuffer or -1 on error. MT safe. Free the resources of the ringbuffer. the #GstAudioRingBuffer to release TRUE if the device could be released, FALSE on error. MT safe. Get the number of samples that were processed by the ringbuffer since it was last started. This does not include the number of samples not yet processed (see gst_audio_ring_buffer_delay()). the #GstAudioRingBuffer to query The number of samples processed by the ringbuffer. MT safe. Sets the given callback function on the buffer. This function will be called every time a segment has been written to a device. MT safe. the #GstAudioRingBuffer to set the callback on the callback to set user data passed to the callback Tell the ringbuffer about the device's channel positions. This must be called in when the ringbuffer is acquired. the #GstAudioRingBuffer the device channel positions Set the ringbuffer to flushing mode or normal mode. MT safe. the #GstAudioRingBuffer to flush the new mode Make sure that the next sample written to the device is accounted for as being the @sample sample written to the device. This value will be used in reporting the current sample position of the ringbuffer. This function will also clear the buffer with silence. MT safe. the #GstAudioRingBuffer to use the sample number to set Start processing samples from the ringbuffer. the #GstAudioRingBuffer to start TRUE if the device could be started, FALSE on error. MT safe. Stop processing samples from the ringbuffer. the #GstAudioRingBuffer to stop TRUE if the device could be stopped, FALSE on error. MT safe. Adds an entry to the index associating @offset to @ts. It is recommended to only add keyframe entries. @force allows to bypass checks, such as whether the stream is (upstream) seekable, another entry is already "close" to the new entry, etc. #GstBaseParse. offset of entry timestamp associated with offset whether entry refers to keyframe add entry disregarding sanity checks #gboolean indicating whether entry was added Default implementation of "convert" vmethod in #GstBaseParse class. #GstBaseParse. #GstFormat describing the source format. Source value to be converted. #GstFormat defining the converted format. Pointer where the conversion result will be put. %TRUE if conversion was successful. Collects parsed data and pushes this downstream. Source pad caps must be set when this is called. If @frame's out_buffer is set, that will be used as subsequent frame data. Otherwise, @size samples will be taken from the input and used for output, and the output's metadata (timestamps etc) will be taken as (optionally) set by the subclass on @frame's (input) buffer (which is otherwise ignored for any but the above purpose/information). Note that the latter buffer is invalidated by this call, whereas the caller retains ownership of @frame. a #GstBaseParse a #GstBaseParseFrame consumed input data represented by frame a #GstFlowReturn that should be escalated to caller (of caller) Sets a #GstBaseParseFrame to initial state. Currently this means all public fields are zero-ed and a private flag is set to make sure gst_base_parse_frame_free() only frees the contents but not the actual frame. Use this function to initialise a #GstBaseParseFrame allocated on the stack. #GstBaseParseFrame. Allocates a new #GstBaseParseFrame. This function is mainly for bindings, elements written in C should usually allocate the frame on the stack and then use gst_base_parse_frame_init() to initialise it. a #GstBuffer the flags number of bytes in this frame which should be counted as metadata overhead, ie. not used to calculate the average bitrate. Set to -1 to mark the entire frame as metadata. If in doubt, set to 0. a newly-allocated #GstBaseParseFrame. Free with gst_base_parse_frame_free() when no longer needed. Sets the parser subclass's tags and how they should be merged with any upstream stream tags. This will override any tags previously-set with gst_base_parse_merge_tags(). Note that this is provided for convenience, and the subclass is not required to use this and can still do tag handling on its own. a #GstBaseParse a #GstTagList to merge, or NULL to unset previously-set tags the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE Pushes the frame's buffer downstream, sends any pending events and does some timestamp and segment handling. Takes ownership of frame's buffer, though caller retains ownership of @frame. This must be called with sinkpad STREAM_LOCK held. #GstBaseParse. a #GstBaseParseFrame #GstFlowReturn Optionally sets the average bitrate detected in media (if non-zero), e.g. based on metadata, as it will be posted to the application. By default, announced average bitrate is estimated. The average bitrate is used to estimate the total duration of the stream and to estimate a seek position, if there's no index and the format is syncable (see gst_base_parse_set_syncable()). #GstBaseParse. average bitrate in bits/second Sets the duration of the currently playing media. Subclass can use this when it is able to determine duration and/or notices a change in the media duration. Alternatively, if @interval is non-zero (default), then stream duration is determined based on estimated bitrate, and updated every @interval frames. #GstBaseParse. #GstFormat. duration value. how often to update the duration estimate based on bitrate, or 0. If frames per second is configured, parser can take care of buffer duration and timestamping. When performing segment clipping, or seeking to a specific location, a corresponding decoder might need an initial @lead_in and a following @lead_out number of frames to ensure the desired segment is entirely filled upon decoding. the #GstBaseParse to set frames per second (numerator). frames per second (denominator). frames needed before a segment for subsequent decode frames needed after a segment Set if frames carry timing information which the subclass can (generally) parse and provide. In particular, intrinsic (rather than estimated) time can be obtained following a seek. a #GstBaseParse whether frames carry timing information By default, the base class might try to infer PTS from DTS and vice versa. While this is generally correct for audio data, it may not be otherwise. Sub-classes implementing such formats should disable timestamp inferring. a #GstBaseParse %TRUE if parser should infer DTS/PTS from each other Sets the minimum and maximum (which may likely be equal) latency introduced by the parsing process. If there is such a latency, which depends on the particular parsing of the format, it typically corresponds to 1 frame duration. a #GstBaseParse minimum parse latency maximum parse latency Subclass can use this function to tell the base class that it needs to give at least #min_size buffers. #GstBaseParse. Minimum size of the data that this base class should give to subclass. Set if the nature of the format or configuration does not allow (much) parsing, and the parser should operate in passthrough mode (which only applies when operating in push mode). That is, incoming buffers are pushed through unmodified, i.e. no @check_valid_frame or @parse_frame callbacks will be invoked, but @pre_push_frame will still be invoked, so subclass can perform as much or as little is appropriate for passthrough semantics in @pre_push_frame. a #GstBaseParse %TRUE if parser should run in passthrough mode By default, the base class will guess PTS timestamps using a simple interpolation (previous timestamp + duration), which is incorrect for data streams with reordering, where PTS can go backward. Sub-classes implementing such formats should disable PTS interpolation. a #GstBaseParse %TRUE if parser should interpolate PTS timestamps Set if frame starts can be identified. This is set by default and determines whether seeking based on bitrate averages is possible for a format/stream. a #GstBaseParse set if frame starts can be identified This function should only be called from a @handle_frame implementation. #GstBaseParse creates initial timestamps for frames by using the last timestamp seen in the stream before the frame starts. In certain cases, the correct timestamps will occur in the stream after the start of the frame, but before the start of the actual picture data. This function can be used to set the timestamps based on the offset into the frame data that the picture starts. a #GstBaseParse offset into current buffer If the @sink spawns its own thread for pulling buffers from upstream it should call this method after it has pulled a buffer. If the element needed to preroll, this function will perform the preroll and will then block until the element state is changed. This function should be called with the PREROLL_LOCK held. the sink the mini object that caused the preroll %GST_FLOW_OK if the preroll completed and processing can continue. Any other return value should be returned from the render vmethod. Get the number of bytes that the sink will pull when it is operating in pull mode. a #GstBaseSink the number of bytes @sink will pull in pull mode. Get the last sample that arrived in the sink and was used for preroll or for rendering. This property can be used to generate thumbnails. The #GstCaps on the sample can be used to determine the type of the buffer. Free-function: gst_sample_unref the sink a #GstSample. gst_sample_unref() after usage. This function returns %NULL when no buffer has arrived in the sink yet or when the sink is not in PAUSED or PLAYING. Get the currently configured latency. the sink The configured latency. Get the maximum amount of bits per second that the sink will render. a #GstBaseSink the maximum number of bits per second @sink will render. Gets the max lateness value. See gst_base_sink_set_max_lateness for more details. the sink The maximum time in nanoseconds that a buffer can be late before it is dropped and not rendered. A value of -1 means an unlimited time. Get the render delay of @sink. see gst_base_sink_set_render_delay() for more information about the render delay. a #GstBaseSink the render delay of @sink. Checks if @sink is currently configured to synchronize against the clock. the sink %TRUE if the sink is configured to synchronize against the clock. Get the time that will be inserted between frames to control the maximum buffers per second. a #GstBaseSink the number of nanoseconds @sink will put between frames. Get the synchronisation offset of @sink. the sink The synchronisation offset. Checks if @sink is currently configured to perform asynchronous state changes to PAUSED. the sink %TRUE if the sink is configured to perform asynchronous state changes. Checks if @sink is currently configured to store the last received sample in the last-sample property. the sink %TRUE if the sink is configured to store the last received sample. Checks if @sink is currently configured to send Quality-of-Service events upstream. the sink %TRUE if the sink is configured to perform Quality-of-Service. Query the sink for the latency parameters. The latency will be queried from the upstream elements. @live will be %TRUE if @sink is configured to synchronize against the clock. @upstream_live will be %TRUE if an upstream element is live. If both @live and @upstream_live are %TRUE, the sink will want to compensate for the latency introduced by the upstream elements by setting the @min_latency to a strictly positive value. This function is mostly used by subclasses. the sink if the sink is live if an upstream element is live the min latency of the upstream elements the max latency of the upstream elements %TRUE if the query succeeded. Configures @sink to perform all state changes asynchronously. When async is disabled, the sink will immediately go to PAUSED instead of waiting for a preroll buffer. This feature is useful if the sink does not synchronize against the clock or when it is dealing with sparse streams. the sink the new async value. Set the number of bytes that the sink will pull when it is operating in pull mode. a #GstBaseSink the blocksize in bytes Configures @sink to store the last received sample in the last-sample property. the sink the new enable-last-sample value. Set the maximum amount of bits per second that the sink will render. a #GstBaseSink the max_bitrate in bits per second Sets the new max lateness value to @max_lateness. This value is used to decide if a buffer should be dropped or not based on the buffer timestamp and the current clock time. A value of -1 means an unlimited time. the sink the new max lateness value. Configures @sink to send Quality-of-Service events upstream. the sink the new qos value. Set the render delay in @sink to @delay. The render delay is the time between actual rendering of a buffer and its synchronisation time. Some devices might delay media rendering which can be compensated for with this function. After calling this function, this sink will report additional latency and other sinks will adjust their latency to delay the rendering of their media. This function is usually called by subclasses. a #GstBaseSink the new delay Configures @sink to synchronize on the clock or not. When @sync is %FALSE, incoming samples will be played as fast as possible. If @sync is %TRUE, the timestamps of the incoming buffers will be used to schedule the exact render time of its contents. the sink the new sync value. Set the time that will be inserted between rendered buffers. This can be used to control the maximum buffers per second that the sink will render. a #GstBaseSink the throttle time in nanoseconds Adjust the synchronisation of @sink with @offset. A negative value will render buffers earlier than their timestamp. A positive value will delay rendering. This function can be used to fix playback of badly timestamped buffers. the sink the new offset This function will wait for preroll to complete and will then block until @time is reached. It is usually called by subclasses that use their own internal synchronisation but want to let some synchronization (like EOS) be handled by the base class. This function should only be called with the PREROLL_LOCK held (like when receiving an EOS event in the ::event vmethod or when handling buffers in ::render). The @time argument should be the running_time of when the timeout should happen and will be adjusted with any latency and offset configured in the sink. the sink the running_time to be reached the jitter to be filled with time diff, or %NULL #GstFlowReturn This function will block until @time is reached. It is usually called by subclasses that use their own internal synchronisation. If @time is not valid, no synchronisation is done and %GST_CLOCK_BADTIME is returned. Likewise, if synchronisation is disabled in the element or there is no clock, no synchronisation is done and %GST_CLOCK_BADTIME is returned. This function should only be called with the PREROLL_LOCK held, like when receiving an EOS event in the #GstBaseSinkClass.event() vmethod or when receiving a buffer in the #GstBaseSinkClass.render() vmethod. The @time argument should be the running_time of when this method should return and is not adjusted with any latency or offset configured in the sink. the sink the running_time to be reached the jitter to be filled with time diff, or %NULL #GstClockReturn If the #GstBaseSinkClass.render() method performs its own synchronisation against the clock it must unblock when going from PLAYING to the PAUSED state and call this method before continuing to render the remaining data. This function will block until a state change to PLAYING happens (in which case this function returns %GST_FLOW_OK) or the processing must be stopped due to a state change to READY or a FLUSH event (in which case this function returns %GST_FLOW_FLUSHING). This function should only be called with the PREROLL_LOCK held, like in the render function. the sink %GST_FLOW_OK if the preroll completed and processing can continue. Any other return value should be returned from the render vmethod. Lets #GstBaseSrc sub-classes to know the memory @allocator used by the base class and its @params. Unref the @allocator after usage. a #GstBaseSrc the #GstAllocator used the #GstAllocationParams of @allocator Get the number of bytes that @src will push out with each buffer. the source the number of bytes pushed with each buffer. a #GstBaseSrc the instance of the #GstBufferPool used by the src; unref it after usage. Query if @src timestamps outgoing buffers based on the current running_time. the source %TRUE if the base class will automatically timestamp outgoing buffers. Get the current async behaviour of @src. See also gst_base_src_set_async(). base source instance %TRUE if @src is operating in async mode. Check if an element is in live mode. base source instance %TRUE if element is in live mode. Prepare a new seamless segment for emission downstream. This function must only be called by derived sub-classes, and only from the create() function, as the stream-lock needs to be held. The format for the new segment will be the current format of the source, as configured with gst_base_src_set_format() The source The new start value for the segment Stop value for the new segment The new time value for the start of the new segment %TRUE if preparation of the seamless segment succeeded. Query the source for the latency parameters. @live will be %TRUE when @src is configured as a live source. @min_latency and @max_latency will be set to the difference between the running time and the timestamp of the first buffer. This function is mostly used by subclasses. the source if the source is live the min latency of the source the max latency of the source %TRUE if the query succeeded. Configure async behaviour in @src, no state change will block. The open, close, start, stop, play and pause virtual methods will be executed in a different thread and are thus allowed to perform blocking operations. Any blocking operation should be unblocked with the unlock vmethod. base source instance new async mode If @automatic_eos is %TRUE, @src will automatically go EOS if a buffer after the total size is returned. By default this is %TRUE but sources that can't return an authoritative size and only know that they're EOS when trying to read more should set this to %FALSE. base source instance automatic eos Set the number of bytes that @src will push out with each buffer. When @blocksize is set to -1, a default length will be used. the source the new blocksize in bytes Set new caps on the basesrc source pad. a #GstBaseSrc a #GstCaps %TRUE if the caps could be set Configure @src to automatically timestamp outgoing buffers based on the current running_time of the pipeline. This property is mostly useful for live sources. the source enable or disable timestamping If not @dynamic, size is only updated when needed, such as when trying to read past current tracked size. Otherwise, size is checked for upon each read. base source instance new dynamic size mode Sets the default format of the source. This will be the format used for sending SEGMENT events and for performing seeks. If a format of GST_FORMAT_BYTES is set, the element will be able to operate in pull mode if the #GstBaseSrcClass.is_seekable() returns %TRUE. This function must only be called in states < %GST_STATE_PAUSED. base source instance the format to use If the element listens to a live source, @live should be set to %TRUE. A live source will not produce data in the PAUSED state and will therefore not be able to participate in the PREROLL phase of a pipeline. To signal this fact to the application and the pipeline, the state change return value of the live source will be GST_STATE_CHANGE_NO_PREROLL. base source instance new live-mode Complete an asynchronous start operation. When the subclass overrides the start method, it should call gst_base_src_start_complete() when the start operation completes either from the same thread or from an asynchronous helper thread. base source instance a #GstFlowReturn Wait until the start operation completes. base source instance a #GstFlowReturn. If the #GstBaseSrcClass.create() method performs its own synchronisation against the clock it must unblock when going from PLAYING to the PAUSED state and call this method before continuing to produce the remaining data. This function will block until a state change to PLAYING happens (in which case this function returns %GST_FLOW_OK) or the processing must be stopped due to a state change to READY or a FLUSH event (in which case this function returns %GST_FLOW_FLUSHING). the src %GST_FLOW_OK if @src is PLAYING and processing can continue. Any other return value should be returned from the create vmethod. Lets #GstBaseTransform sub-classes to know the memory @allocator used by the base class and its @params. Unref the @allocator after use it. a #GstBaseTransform the #GstAllocator used the #GstAllocationParams of @allocator a #GstBaseTransform the instance of the #GstBufferPool used by @trans; free it after use it See if @trans is configured as a in_place transform. the #GstBaseTransform to query %TRUE is the transform is configured in in_place mode. MT safe. See if @trans is configured as a passthrough transform. the #GstBaseTransform to query %TRUE is the transform is configured in passthrough mode. MT safe. Queries if the transform will handle QoS. a #GstBaseTransform %TRUE if QoS is enabled. MT safe. Instructs @trans to request renegotiation upstream. This function is typically called after properties on the transform were set that influence the input format. a #GstBaseTransform Instructs @trans to renegotiate a new downstream transform on the next buffer. This function is typically called after properties on the transform were set that influence the output format. a #GstBaseTransform If @gap_aware is %FALSE (the default), output buffers will have the %GST_BUFFER_FLAG_GAP flag unset. If set to %TRUE, the element must handle output buffers with this flag set correctly, i.e. it can assume that the buffer contains neutral data but must unset the flag if the output is no neutral data. MT safe. a #GstBaseTransform New state Determines whether a non-writable buffer will be copied before passing to the transform_ip function. <itemizedlist> <listitem>Always %TRUE if no transform function is implemented.</listitem> <listitem>Always %FALSE if ONLY transform function is implemented.</listitem> </itemizedlist> MT safe. the #GstBaseTransform to modify Boolean value indicating that we would like to operate on in_place buffers. Set passthrough mode for this filter by default. This is mostly useful for filters that do not care about negotiation. Always %TRUE for filters which don't implement either a transform or transform_ip method. MT safe. the #GstBaseTransform to set boolean indicating passthrough mode. If @prefer_passthrough is %TRUE (the default), @trans will check and prefer passthrough caps from the list of caps returned by the transform_caps vmethod. If set to %FALSE, the element must order the caps returned from the transform_caps function in such a way that the preferred format is first in the list. This can be interesting for transforms that can do passthrough transforms but prefer to do something else, like a capsfilter. MT safe. a #GstBaseTransform New state Enable or disable QoS handling in the transform. MT safe. a #GstBaseTransform new state Set the QoS parameters in the transform. This function is called internally when a QOS event is received but subclasses can provide custom information when needed. MT safe. a #GstBaseTransform the proportion the diff against the clock the timestamp of the buffer generating the QoS expressed in running_time. Updates the srcpad caps and send the caps downstream. This function can be used by subclasses when they have already negotiated their caps but found a change in them (or computed new informations). This way, they can notify downstream about that change without loosing any buffer. a #GstBaseTransform An updated version of the srcpad caps to be pushed downstream %TRUE if the caps could be send downstream %FALSE otherwise Adds the given element to the bin. Sets the element's parent, and thus takes ownership of the element. An element can only be added to one bin. If the element's pads are linked to other pads, the pads will be unlinked before the element is added to the bin. <note> When you add an element to an already-running pipeline, you will have to take care to set the state of the newly-added element to the desired state (usually PLAYING or PAUSED, same you set the pipeline to originally) with gst_element_set_state(), or use gst_element_sync_state_with_parent(). The bin or pipeline will not take care of this for you. </note> MT safe. a #GstBin the #GstElement to add %TRUE if the element could be added, %FALSE if the bin does not want to accept the element. Adds a %NULL-terminated list of elements to a bin. This function is equivalent to calling gst_bin_add() for each member of the list. The return value of each gst_bin_add() is ignored. a #GstBin the #GstElement element to add to the bin additional elements to add to the bin Recursively looks for elements with an unlinked pad of the given direction within the specified bin and returns an unlinked pad if one is found, or %NULL otherwise. If a pad is found, the caller owns a reference to it and should use gst_object_unref() on the pad when it is not needed any longer. bin in which to look for elements with unlinked pads whether to look for an unlinked source or sink pad unlinked pad of the given direction, %NULL. Looks for an element inside the bin that implements the given interface. If such an element is found, it returns the element. You can cast this element to the given interface afterwards. If you want all elements that implement the interface, use gst_bin_iterate_all_by_interface(). This function recurses into child bins. MT safe. Caller owns returned reference. a #GstBin the #GType of an interface A #GstElement inside the bin implementing the interface Gets the element with the given name from a bin. This function recurses into child bins. a #GstBin the element name to search for the #GstElement with the given name, or %NULL Gets the element with the given name from this bin. If the element is not found, a recursion is performed on the parent bin. a #GstBin the element name to search for the #GstElement with the given name, or %NULL Looks for all elements inside the bin that implements the given interface. You can safely cast all returned elements to the given interface. The function recurses inside child bins. The iterator will yield a series of #GstElement that should be unreffed after use. MT safe. Caller owns returned value. a #GstBin the #GType of an interface a #GstIterator of #GstElement for all elements in the bin implementing the given interface, or %NULL Gets an iterator for the elements in this bin. MT safe. Caller owns returned value. a #GstBin a #GstIterator of #GstElement, or %NULL Gets an iterator for the elements in this bin. This iterator recurses into GstBin children. MT safe. Caller owns returned value. a #GstBin a #GstIterator of #GstElement, or %NULL Gets an iterator for all elements in the bin that have the #GST_ELEMENT_FLAG_SINK flag set. MT safe. Caller owns returned value. a #GstBin a #GstIterator of #GstElement, or %NULL Gets an iterator for the elements in this bin in topologically sorted order. This means that the elements are returned from the most downstream elements (sinks) to the sources. This function is used internally to perform the state changes of the bin elements and for clock selection. MT safe. Caller owns returned value. a #GstBin a #GstIterator of #GstElement, or %NULL Gets an iterator for all elements in the bin that have the #GST_ELEMENT_FLAG_SOURCE flag set. MT safe. Caller owns returned value. a #GstBin a #GstIterator of #GstElement, or %NULL Creates a new bin with the given name. the name of the new bin a new #GstBin Query @bin for the current latency using and reconfigures this latency to all the elements with a LATENCY event. This method is typically called on the pipeline when a #GST_MESSAGE_LATENCY is posted on the bus. This function simply emits the 'do-latency' signal so any custom latency calculations will be performed. a #GstBin %TRUE if the latency could be queried and reconfigured. Removes the element from the bin, unparenting it as well. Unparenting the element means that the element will be dereferenced, so if the bin holds the only reference to the element, the element will be freed in the process of removing it from the bin. If you want the element to still exist after removing, you need to call gst_object_ref() before removing it from the bin. If the element's pads are linked to other pads, the pads will be unlinked before the element is removed from the bin. MT safe. a #GstBin the #GstElement to remove %TRUE if the element could be removed, %FALSE if the bin does not want to remove the element. Remove a list of elements from a bin. This function is equivalent to calling gst_bin_remove() with each member of the list. a #GstBin the first #GstElement to remove from the bin %NULL-terminated list of elements to remove from the bin Synchronizes the state of every child of @bin with the state of @bin. See also gst_element_sync_state_with_parent(). a #GstBin %TRUE if syncing the state was successful for all children, otherwise %FALSE. Frees a #GstBitReader instance, which was previously allocated by gst_bit_reader_new(). a #GstBitReader instance Read @nbits bits into @val and update the current position. a #GstBitReader instance Pointer to a #guint16 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val and update the current position without checking if there are enough bits available in the bit reader. a #GstBitReader instance number of bits to read unsigned 16 bit integer with the bits. Read @nbits bits into @val and update the current position. a #GstBitReader instance Pointer to a #guint32 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val and update the current position without checking if there are enough bits available in the bit reader. a #GstBitReader instance number of bits to read unsigned 32 bit integer with the bits. Read @nbits bits into @val and update the current position. a #GstBitReader instance Pointer to a #guint64 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val and update the current position without checking if there are enough bits available in the bit reader. a #GstBitReader instance number of bits to read unsigned 64 bit integer with the bits. Read @nbits bits into @val and update the current position. a #GstBitReader instance Pointer to a #guint8 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val and update the current position without checking if there are enough bits available in the bit reader. a #GstBitReader instance number of bits to read unsigned 8 bit integer with the bits. Returns the current position of a #GstBitReader instance in bits. a #GstBitReader instance The current position of @reader in bits. Returns the remaining number of bits of a #GstBitReader instance. a #GstBitReader instance The remaining number of bits of @reader instance. Returns the total number of bits of a #GstBitReader instance. a #GstBitReader instance The total number of bits of @reader instance. Initializes a #GstBitReader instance to read from @data. This function can be called on already initialized instances. a #GstBitReader instance data from which the bit reader should read Size of @data in bytes Create a new #GstBitReader instance, which will read from @data. Free-function: gst_bit_reader_free Data from which the #GstBitReader should read Size of @data in bytes a new #GstBitReader instance Read @nbits bits into @val but keep the current position. a #GstBitReader instance Pointer to a #guint16 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val but keep the current position without checking if there are enough bits available in the bit reader a #GstBitReader instance number of bits to read unsigned 16 bit integer with the bits. Read @nbits bits into @val but keep the current position. a #GstBitReader instance Pointer to a #guint32 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val but keep the current position without checking if there are enough bits available in the bit reader a #GstBitReader instance number of bits to read unsigned 32 bit integer with the bits. Read @nbits bits into @val but keep the current position. a #GstBitReader instance Pointer to a #guint64 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val but keep the current position without checking if there are enough bits available in the bit reader a #GstBitReader instance number of bits to read unsigned 64 bit integer with the bits. Read @nbits bits into @val but keep the current position. a #GstBitReader instance Pointer to a #guint8 to store the result number of bits to read %TRUE if successful, %FALSE otherwise. Read @nbits bits into @val but keep the current position without checking if there are enough bits available in the bit reader a #GstBitReader instance number of bits to read unsigned 8 bit integer with the bits. Sets the new position of a #GstBitReader instance to @pos in bits. a #GstBitReader instance The new position in bits %TRUE if the position could be set successfully, %FALSE otherwise. Skips @nbits bits of the #GstBitReader instance. a #GstBitReader instance the number of bits to skip %TRUE if @nbits bits could be skipped, %FALSE otherwise. Skips until the next byte. a #GstBitReader instance %TRUE if successful, %FALSE otherwise. Skips until the next byte without checking if there are enough bits available in the bit reader. a #GstBitReader instance Skips @nbits bits of the #GstBitReader instance without checking if there are enough bits available in the bit reader. a #GstBitReader instance the number of bits to skip Attaches #GstAudioClippingMeta metadata to @buffer with the given parameters. a #GstBuffer GstFormat of @start and @stop, GST_FORMAT_DEFAULT is samples Amount of audio to clip from start of buffer Amount of to clip from end of buffer the #GstAudioClippingMeta on @buffer. Attaches #GstAudioDownmixMeta metadata to @buffer with the given parameters. @matrix is an two-dimensional array of @to_channels times @from_channels coefficients, i.e. the i-th output channels is constructed by multiplicating the input channels with the coefficients in @matrix[i] and taking the sum of the results. a #GstBuffer the channel positions of the source The number of channels of the source the channel positions of the destination The number of channels of the destination The matrix coefficients. the #GstAudioDownmixMeta on @buffer. Add metadata for @info to @buffer using the parameters in @params. a #GstBuffer a #GstMetaInfo params for @info the metadata for the api in @info on @buffer. Attaches @addr as metadata in a #GstNetAddressMeta to @buffer. a #GstBuffer a @GSocketAddress to connect to @buffer a #GstNetAddressMeta connected to @buffer Attaches @message as metadata in a #GstNetControlMessageMeta to @buffer. a #GstBuffer a @GSocketControlMessage to attach to @buffer a #GstNetControlMessageMeta connected to @buffer Add a #GstParentBufferMeta to @buffer that holds a reference on @ref until the buffer is freed. a #GstBuffer a #GstBuffer to ref The #GstParentBufferMeta that was added to the buffer Attaches protection metadata to a #GstBuffer. #GstBuffer holding an encrypted sample, to which protection metadata should be added. a #GstStructure holding cryptographic information relating to the sample contained in @buffer. This function takes ownership of @info. a pointer to the added #GstProtectionMeta if successful; %NULL if unsuccessful. Attaches GstVideoAffineTransformationMeta metadata to @buffer with the given parameters. a #GstBuffer the #GstVideoAffineTransformationMeta on @buffer. Attaches GstVideoGLTextureUploadMeta metadata to @buffer with the given parameters. a #GstBuffer the #GstVideoGLTextureOrientation the number of textures array of #GstVideoGLTextureType the function to upload the buffer to a specific texture ID user data for the implementor of @upload function to copy @user_data function to free @user_data the #GstVideoGLTextureUploadMeta on @buffer. Attaches GstVideoMeta metadata to @buffer with the given parameters and the default offsets and strides for @format and @width x @height. This function calculates the default offsets and strides and then calls gst_buffer_add_video_meta_full() with them. a #GstBuffer #GstVideoFrameFlags a #GstVideoFormat the width the height the #GstVideoMeta on @buffer. Attaches GstVideoMeta metadata to @buffer with the given parameters. a #GstBuffer #GstVideoFrameFlags a #GstVideoFormat the width the height number of planes offset of each plane stride of each plane the #GstVideoMeta on @buffer. Sets an overlay composition on a buffer. The buffer will obtain its own reference to the composition, meaning this function does not take ownership of @comp. a #GstBuffer a #GstVideoOverlayComposition a #GstVideoOverlayCompositionMeta Attaches #GstVideoRegionOfInterestMeta metadata to @buffer with the given parameters. a #GstBuffer Type of the region of interest (e.g. "face") X position Y position width height the #GstVideoRegionOfInterestMeta on @buffer. Attaches #GstVideoRegionOfInterestMeta metadata to @buffer with the given parameters. a #GstBuffer Type of the region of interest (e.g. "face") X position Y position width height the #GstVideoRegionOfInterestMeta on @buffer. Append all the memory from @buf2 to @buf1. The result buffer will contain a concatenation of the memory of @buf1 and @buf2. the first source #GstBuffer to append. the second source #GstBuffer to append. the new #GstBuffer that contains the memory of the two source buffers. Append the memory block @mem to @buffer. This function takes ownership of @mem and thus doesn't increase its refcount. This function is identical to gst_buffer_insert_memory() with an index of -1. See gst_buffer_insert_memory() for more details. a #GstBuffer. a #GstMemory. Append @size bytes at @offset from @buf2 to @buf1. The result buffer will contain a concatenation of the memory of @buf1 and the requested region of @buf2. the first source #GstBuffer to append. the second source #GstBuffer to append. the offset in @buf2 the size or -1 of @buf2 the new #GstBuffer that contains the memory of the two source buffers. Create a copy of the given buffer. This will only copy the buffer's data to a newly allocated memory if needed (if the type of memory requires it), otherwise the underlying data is just referenced. Check gst_buffer_copy_deep() if you want to force the data to be copied to newly allocated memory. a #GstBuffer. a new copy of @buf. Create a copy of the given buffer. This will make a newly allocated copy of the data the source buffer contains. a #GstBuffer. a new copy of @buf. Copies the information from @src into @dest. If @dest already contains memory and @flags contains GST_BUFFER_COPY_MEMORY, the memory from @src will be appended to @dest. @flags indicate which fields will be copied. a destination #GstBuffer a source #GstBuffer flags indicating what metadata fields should be copied. offset to copy from total size to copy. If -1, all data is copied. %TRUE if the copying succeeded, %FALSE otherwise. Creates a sub-buffer from @parent at @offset and @size. This sub-buffer uses the actual memory space of the parent buffer. This function will copy the offset and timestamp fields when the offset is 0. If not, they will be set to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE. If @offset equals 0 and @size equals the total size of @buffer, the duration and offset end fields are also copied. If not they will be set to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE. MT safe. a #GstBuffer. the #GstBufferCopyFlags the offset into parent #GstBuffer at which the new sub-buffer begins. the size of the new #GstBuffer sub-buffer, in bytes. If -1, all data is copied. the new #GstBuffer or %NULL if the arguments were invalid. Copy @size bytes starting from @offset in @buffer to @dest. a #GstBuffer. the offset to extract the destination address the size to extract The amount of bytes extracted. This value can be lower than @size when @buffer did not contain enough data. Extracts a copy of at most @size bytes the data at @offset into newly-allocated memory. @dest must be freed using g_free() when done. a #GstBuffer the offset to extract the size to extract A pointer where the destination array will be written. A location where the size of @dest can be written Copy @size bytes from @src to @buffer at @offset. a #GstBuffer. the offset to fill the source address the size to fill The amount of bytes copied. This value can be lower than @size when @buffer did not contain enough data. Find the memory blocks that span @size bytes starting from @offset in @buffer. When this function returns %TRUE, @idx will contain the index of the first memory block where the byte for @offset can be found and @length contains the number of memory blocks containing the @size remaining bytes. @skip contains the number of bytes to skip in the memory block at @idx to get to the byte for @offset. @size can be -1 to get all the memory blocks after @idx. a #GstBuffer. an offset a size pointer to index pointer to length pointer to skip %TRUE when @size bytes starting from @offset could be found in @buffer and @idx, @length and @skip will be filled. Call @func with @user_data for each meta in @buffer. @func can modify the passed meta pointer or its contents. The return value of @func define if this function returns or if the remaining metadata items in the buffer should be skipped. a #GstBuffer a #GstBufferForeachMetaFunc to call user data passed to @func %FALSE when @func returned %FALSE for one of the metadata. Get all the memory block in @buffer. The memory blocks will be merged into one large #GstMemory. a #GstBuffer. a #GstMemory that contains the merged memory. Use gst_memory_unref () after usage. Find the #GstAudioDownmixMeta on @buffer for the given destination channel positions. a #GstBuffer the channel positions of the destination The number of channels of the destination the #GstAudioDownmixMeta on @buffer. Get 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. the maximum amount of memory blocks that a buffer can hold. Get the memory block at index @idx in @buffer. a #GstBuffer. an index a #GstMemory that contains the data of the memory block at @idx. Use gst_memory_unref () after usage. Get @length memory blocks in @buffer starting at @idx. The memory blocks will be merged into one large #GstMemory. If @length is -1, all memory starting from @idx is merged. a #GstBuffer. an index a length a #GstMemory that contains the merged data of @length blocks starting at @idx. Use gst_memory_unref () after usage. Get the metadata for @api on buffer. When there is no such metadata, %NULL is returned. If multiple metadata with the given @api are attached to this buffer only the first one is returned. To handle multiple metadata with a given API use gst_buffer_iterate_meta() or gst_buffer_foreach_meta() instead and check the meta->info.api member for the API type. a #GstBuffer the #GType of an API the metadata for @api on @buffer. Find the #GstNetAddressMeta on @buffer. a #GstBuffer the #GstNetAddressMeta or %NULL when there is no such metadata on @buffer. Find and return a #GstParentBufferMeta if one exists on the buffer a #GstBuffer Get the total size of the memory blocks in @buffer. a #GstBuffer. total size of the memory blocks in @buffer. Get the total size of the memory blocks in @b. When not %NULL, @offset will contain the offset of the data in the first memory block in @buffer and @maxsize will contain the sum of the size and @offset and the amount of extra padding on the last memory block. @offset and @maxsize can be used to resize the buffer memory blocks with gst_buffer_resize(). a #GstBuffer. a pointer to the offset a pointer to the maxsize total size of the memory blocks in @buffer. Get the total size of @length memory blocks stating from @idx in @buffer. When not %NULL, @offset will contain the offset of the data in the memory block in @buffer at @idx and @maxsize will contain the sum of the size and @offset and the amount of extra padding on the memory block at @idx + @length -1. @offset and @maxsize can be used to resize the buffer memory blocks with gst_buffer_resize_range(). a #GstBuffer. an index a length a pointer to the offset a pointer to the maxsize total size of @length memory blocks starting at @idx in @buffer. Find the #GstVideoMeta on @buffer with the lowest @id. Buffers can contain multiple #GstVideoMeta metadata items when dealing with multiview buffers. a #GstBuffer the #GstVideoMeta with lowest id (usually 0) or %NULL when there is no such metadata on @buffer. Find the #GstVideoMeta on @buffer with the given @id. Buffers can contain multiple #GstVideoMeta metadata items when dealing with multiview buffers. a #GstBuffer a metadata id the #GstVideoMeta with @id or %NULL when there is no such metadata on @buffer. Find the #GstVideoRegionOfInterestMeta on @buffer with the given @id. Buffers can contain multiple #GstVideoRegionOfInterestMeta metadata items if multiple regions of interests are marked on a frame. a #GstBuffer a metadata id the #GstVideoRegionOfInterestMeta with @id or %NULL when there is no such metadata on @buffer. Insert the memory block @mem to @buffer at @idx. This function takes ownership of @mem and thus doesn't increase its refcount. Only gst_buffer_get_max_memory() can be added to a buffer. If more memory is added, existing memory blocks will automatically be merged to make room for the new memory. a #GstBuffer. the index to add the memory at, or -1 to append it to the end a #GstMemory. Check if all memory blocks in @buffer are writable. Note that this function does not check if @buffer is writable, use gst_buffer_is_writable() to check that if needed. a #GstBuffer. %TRUE if all memory blocks in @buffer are writable Check if @length memory blocks in @buffer starting from @idx are writable. @length can be -1 to check all the memory blocks after @idx. Note that this function does not check if @buffer is writable, use gst_buffer_is_writable() to check that if needed. a #GstBuffer. an index a length should not be 0 %TRUE if the memory range is writable Tests if you can safely write to a buffer's metadata or its memory array. It is only safe to change buffer metadata when the current reference is writable, i.e. nobody can see the modifications you will make. a #GstBuffer Retrieve the next #GstMeta after @current. If @state points to %NULL, the first metadata is returned. @state will be updated with an opaque state pointer a #GstBuffer an opaque state pointer The next #GstMeta or %NULL when there are no more items. Append @b at the end of @l. a #GstBufferList a #GstBuffer Create a shallow copy of the given buffer list. This will make a newly allocated copy of the source list with copies of buffer pointers. The refcount of buffers pointed to will be increased by one. a #GstBufferList a new copy of @list. Create a copy of the given buffer list. This will make a newly allocated copy of the buffer that the source buffer list contains. a #GstBufferList a new copy of @list. Call @func with @data for each buffer in @list. @func can modify the passed buffer pointer or its contents. The return value of @func define if this function returns or if the remaining buffers in the list should be skipped. a #GstBufferList a #GstBufferListFunc to call user data passed to @func %TRUE when @func returned %TRUE for each buffer in @list or when @list is empty. Get the buffer at @idx. a #GstBufferList the index the buffer at @idx in @group or %NULL when there is no buffer. The buffer remains valid as long as @list is valid and buffer is not removed from the list. Insert @buffer at @idx in @list. Other buffers are moved to make room for this new buffer. A -1 value for @idx will append the buffer at the end. a #GstBufferList the index a #GstBuffer Tests if you can safely add buffers and groups into a buffer list. a #GstBufferList Returns the number of buffers in @list. a #GstBufferList the number of buffers in the buffer list Makes a writable buffer list from the given buffer list. If the source buffer list is already writable, this will simply return the same buffer list. A copy will otherwise be made using gst_buffer_list_copy(). a #GstBufferList a writable list, which may or may not be the same as @list Creates a new, empty #GstBufferList. The caller is responsible for unreffing the returned #GstBufferList. Free-function: gst_buffer_list_unref the new #GstBufferList. gst_buffer_list_unref() after usage. Creates a new, empty #GstBufferList. The caller is responsible for unreffing the returned #GstBufferList. The list will have @size space preallocated so that memory reallocations can be avoided. Free-function: gst_buffer_list_unref an initial reserved size the new #GstBufferList. gst_buffer_list_unref() after usage. Increases the refcount of the given buffer list by one. Note that the refcount affects the writability of @list and its data, see gst_buffer_list_make_writable(). It is important to note that keeping additional references to GstBufferList instances can potentially increase the number of memcpy operations in a pipeline. a #GstBufferList @list Remove @length buffers starting from @idx in @list. The following buffers are moved to close the gap. a #GstBufferList the index the amount to remove Decreases the refcount of the buffer list. If the refcount reaches 0, the buffer list will be freed. a #GstBufferList Returns a writable copy of @buf. If the source buffer is already writable, this will simply return the same buffer. Use this function to ensure that a buffer can be safely modified before making changes to it, including changing the metadata such as PTS/DTS. If the reference count of the source buffer @buf is exactly one, the caller is the sole owner and this function will return the buffer object unchanged. If there is more than one reference on the object, a copy will be made using gst_buffer_copy(). The passed-in @buf will be unreffed in that case, and the caller will now own a reference to the new returned buffer object. Note that this just copies the buffer structure itself, the underlying memory is not copied if it can be shared amongst multiple buffers. In short, this function unrefs the buf in the argument and refs the buffer that it returns. Don't access the argument after calling this function unless you have an additional reference to it. a #GstBuffer a writable buffer which may or may not be the same as @buf This function fills @info with the #GstMapInfo of all merged memory blocks in @buffer. @flags describe the desired access of the memory. When @flags is #GST_MAP_WRITE, @buffer should be writable (as returned from gst_buffer_is_writable()). When @buffer is writable but the memory isn't, a writable copy will automatically be created and returned. The readonly copy of the buffer memory will then also be replaced with this writable copy. The memory in @info should be unmapped with gst_buffer_unmap() after usage. a #GstBuffer. info about the mapping flags for the mapping %TRUE if the map succeeded and @info contains valid data. This function fills @info with the #GstMapInfo of @length merged memory blocks starting at @idx in @buffer. When @length is -1, all memory blocks starting from @idx are merged and mapped. @flags describe the desired access of the memory. When @flags is #GST_MAP_WRITE, @buffer should be writable (as returned from gst_buffer_is_writable()). When @buffer is writable but the memory isn't, a writable copy will automatically be created and returned. The readonly copy of the buffer memory will then also be replaced with this writable copy. The memory in @info should be unmapped with gst_buffer_unmap() after usage. a #GstBuffer. an index a length info about the mapping flags for the mapping %TRUE if the map succeeded and @info contains valid data. Compare @size bytes starting from @offset in @buffer with the memory in @mem. a #GstBuffer. the offset in @buffer the memory to compare the size to compare 0 if the memory is equal. Fill @buf with @size bytes with @val starting from @offset. a #GstBuffer. the offset in @buffer the value to set the size to set The amount of bytes filled. This value can be lower than @size when @buffer did not contain enough data. Get the amount of memory blocks that this buffer has. This amount is never larger than what gst_buffer_get_max_memory() returns. a #GstBuffer. the amount of memory block in this buffer. Creates a newly allocated buffer without any data. MT safe. the new #GstBuffer. Tries to create a newly allocated buffer with data of the given size and extra parameters from @allocator. If the requested amount of memory can't be allocated, %NULL will be returned. The allocated buffer memory is not cleared. When @allocator is %NULL, the default memory allocator will be used. Note that when @size == 0, the buffer will not have memory associated with it. MT safe. the #GstAllocator to use, or %NULL to use the default allocator the size in bytes of the new buffer's data. optional parameters a new #GstBuffer, or %NULL if the memory couldn't be allocated. Creates a new buffer that wraps the given @data. The memory will be freed with g_free and will be marked writable. MT safe. data to wrap allocated size of @data a new #GstBuffer Allocate a new buffer that wraps the given memory. @data must point to @maxsize of memory, the wrapped buffer will have the region from @offset and @size visible. When the buffer is destroyed, @notify will be called with @user_data. The prefix/padding must be filled with 0 if @flags contains #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively. #GstMemoryFlags data to wrap allocated size of @data offset in @data size of valid data user_data called with @user_data when the memory is freed a new #GstBuffer Get the memory block at @idx in @buffer. The memory block stays valid until the memory block in @buffer is removed, replaced or merged, typically with any call that modifies the memory in @buffer. a #GstBuffer. an index the #GstMemory at @idx. Acquire a buffer from @pool. @buffer should point to a memory location that can hold a pointer to the new buffer. @params can be %NULL or contain optional parameters to influence the allocation. a #GstBufferPool a location for a #GstBuffer parameters. a #GstFlowReturn such as %GST_FLOW_FLUSHING when the pool is inactive. Enabled the option in @config. This will instruct the @bufferpool to enable the specified option on the buffers that it allocates. The supported options by @pool can be retrieved with gst_buffer_pool_get_options(). a #GstBufferPool configuration an option to add Get the @allocator and @params from @config. a #GstBufferPool configuration a #GstAllocator, or %NULL #GstAllocationParams, or %NULL %TRUE, if the values are set. Parse an available @config and get the option at @index of the options API array. a #GstBufferPool configuration position in the option array to read a #gchar of the option at @index. Get the configuration values from @config. a #GstBufferPool configuration the caps of buffers the size of each buffer, not including prefix and padding the minimum amount of buffers to allocate. the maximum amount of buffers to allocate or 0 for unlimited. %TRUE if all parameters could be fetched. Get the video alignment from the bufferpool configuration @config in in @align a #GstStructure a #GstVideoAlignment #TRUE if @config could be parsed correctly. Check if @config contains @option. a #GstBufferPool configuration an option %TRUE if the options array contains @option. Retrieve the number of values currently stored in the options array of the @config structure. a #GstBufferPool configuration the options array size as a #guint. Set the @allocator and @params on @config. One of @allocator and @params can be %NULL, but not both. When @allocator is %NULL, the default allocator of the pool will use the values in @param to perform its allocation. When @param is %NULL, the pool will use the provided @allocator with its default #GstAllocationParams. A call to gst_buffer_pool_set_config() can update the allocator and params with the values that it is able to do. Some pools are, for example, not able to operate with different allocators or cannot allocate with the values specified in @params. Use gst_buffer_pool_get_config() to get the currently used values. a #GstBufferPool configuration a #GstAllocator #GstAllocationParams Configure @config with the given parameters. a #GstBufferPool configuration caps for the buffers the size of each buffer, not including prefix and padding the minimum amount of buffers to allocate. the maximum amount of buffers to allocate or 0 for unlimited. Set the video alignment in @align to the bufferpool configuration @config a #GstStructure a #GstVideoAlignment Validate that changes made to @config are still valid in the context of the expected parameters. This function is a helper that can be used to validate changes made by a pool to a config when gst_buffer_pool_set_config() returns %FALSE. This expects that @caps haven't changed and that @min_buffers aren't lower then what we initially expected. This does not check if options or allocator parameters are still valid, won't check if size have changed, since changing the size is valid to adapt padding. a #GstBufferPool configuration the excepted caps of buffers the expected size of each buffer, not including prefix and padding the expected minimum amount of buffers to allocate. the expect maximum amount of buffers to allocate or 0 for unlimited. %TRUE, if the parameters are valid in this context. Get a copy of the current configuration of the pool. This configuration can either be modified and used for the gst_buffer_pool_set_config() call or it must be freed after usage. a #GstBufferPool a copy of the current configuration of @pool. use gst_structure_free() after usage or gst_buffer_pool_set_config(). Get a %NULL terminated array of string with supported bufferpool options for @pool. An option would typically be enabled with gst_buffer_pool_config_add_option(). a #GstBufferPool a %NULL terminated array of strings. Check if the bufferpool supports @option. a #GstBufferPool an option %TRUE if the buffer pool contains @option. Check if @pool is active. A pool can be activated with the gst_buffer_pool_set_active() call. a #GstBufferPool %TRUE when the pool is active. Creates a new #GstBufferPool instance. a new #GstBufferPool instance Release @buffer to @pool. @buffer should have previously been allocated from @pool with gst_buffer_pool_acquire_buffer(). This function is usually called automatically when the last ref on @buffer disappears. a #GstBufferPool a #GstBuffer Control the active state of @pool. When the pool is inactive, new calls to gst_buffer_pool_acquire_buffer() will return with %GST_FLOW_FLUSHING. Activating the bufferpool will preallocate all resources in the pool based on the configuration of the pool. Deactivating will free the resources again when there are no outstanding buffers. When there are outstanding buffers, they will be freed as soon as they are all returned to the pool. a #GstBufferPool the new active state %FALSE when the pool was not configured or when preallocation of the buffers failed. Set the configuration of the pool. If the pool is already configured, and the configuration haven't change, this function will return %TRUE. If the pool is active, this method will return %FALSE and active configuration will remain. Buffers allocated form this pool must be returned or else this function will do nothing and return %FALSE. @config is a #GstStructure that contains the configuration parameters for the pool. A default and mandatory set of parameters can be configured with gst_buffer_pool_config_set_params(), gst_buffer_pool_config_set_allocator() and gst_buffer_pool_config_add_option(). If the parameters in @config can not be set exactly, this function returns %FALSE and will try to update as much state as possible. The new state can then be retrieved and refined with gst_buffer_pool_get_config(). This function takes ownership of @config. a #GstBufferPool a #GstStructure %TRUE when the configuration could be set. Enable or disable the flushing state of a @pool without freeing or allocating buffers. a #GstBufferPool whether to start or stop flushing Prepend the memory block @mem to @buffer. This function takes ownership of @mem and thus doesn't increase its refcount. This function is identical to gst_buffer_insert_memory() with an index of 0. See gst_buffer_insert_memory() for more details. a #GstBuffer. a #GstMemory. Increases the refcount of the given buffer by one. Note that the refcount affects the writability of @buf and its metadata, see gst_buffer_is_writable(). It is important to note that keeping additional references to GstBuffer instances can potentially increase the number of memcpy operations in a pipeline. a #GstBuffer. @buf Remove all the memory blocks in @buffer. a #GstBuffer. Remove the memory block in @b at index @i. a #GstBuffer. an index Remove @length memory blocks in @buffer starting from @idx. @length can be -1, in which case all memory starting from @idx is removed. a #GstBuffer. an index a length Remove the metadata for @meta on @buffer. a #GstBuffer a #GstMeta %TRUE if the metadata existed and was removed, %FALSE if no such metadata was on @buffer. Modifies a pointer to a #GstBuffer to point to a different #GstBuffer. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old buffer is unreffed, the new is reffed). Either @nbuf or the #GstBuffer pointed to by @obuf may be %NULL. pointer to a pointer to a #GstBuffer to be replaced. pointer to a #GstBuffer that will replace the buffer pointed to by @obuf. %TRUE when @obuf was different from @nbuf. Replaces all memory in @buffer with @mem. a #GstBuffer. a #GstMemory Replaces the memory block at index @idx in @buffer with @mem. a #GstBuffer. an index a #GstMemory Replaces @length memory blocks in @buffer starting at @idx with @mem. If @length is -1, all memory starting from @idx will be removed and replaced with @mem. @buffer should be writable. a #GstBuffer. an index a length should not be 0 a #GstMemory Set the offset and total size of the memory blocks in @buffer. a #GstBuffer. the offset adjustment the new size or -1 to just adjust the offset Set the total size of the @length memory blocks starting at @idx in @buffer a #GstBuffer. an index a length the offset adjustment the new size or -1 to just adjust the offset %TRUE if resizing succeeded, %FALSE otherwise. Set the total size of the memory blocks in @buffer. a #GstBuffer. the new size Get one buffer from @pad. Implemented via buffer probes. This function will block until the pipeline passes a buffer over @pad, so for robust behavior in unit tests, you need to use check's timeout to fail out in the case that a buffer never arrives. You must have previously called gst_buffer_straw_start_pipeline() on @pipeline and @pad. the pipeline previously started via gst_buffer_straw_start_pipeline() the pad previously passed to gst_buffer_straw_start_pipeline() the captured #GstBuffer. Sets up a pipeline for buffer sucking. This will allow you to call gst_buffer_straw_get_buffer() to access buffers as they pass over @pad. This function is normally used in unit tests that want to verify that a particular element is outputting correct buffers. For example, you would make a pipeline via gst_parse_launch(), pull out the pad you want to monitor, then call gst_buffer_straw_get_buffer() to get the buffers that pass through @pad. The pipeline will block until you have sucked off the buffers. This function will set the state of @bin to PLAYING; to clean up, be sure to call gst_buffer_straw_stop_pipeline(). Note that you may not start two buffer straws at the same time. This function is intended for unit tests, not general API use. In fact it calls fail_if from libcheck, so you cannot use it outside unit tests. the pipeline to run a pad on an element in @bin Set @bin to #GST_STATE_NULL and release resource allocated in gst_buffer_straw_start_pipeline(). You must have previously called gst_buffer_straw_start_pipeline() on @pipeline and @pad. the pipeline previously started via gst_buffer_straw_start_pipeline() the pad previously passed to gst_buffer_straw_start_pipeline() Release the memory previously mapped with gst_buffer_map(). a #GstBuffer. a #GstMapInfo Decreases the refcount of the buffer. If the refcount reaches 0, the buffer with the associated metadata and memory will be freed. a #GstBuffer. Adds a bus signal watch to the default main context with the default priority (%G_PRIORITY_DEFAULT). It is also possible to use a non-default main context set up using g_main_context_push_thread_default() (before one had to create a bus watch source and attach it to the desired main context 'manually'). After calling this statement, the bus will emit the "message" signal for each message posted on the bus. This function may be called multiple times. To clean up, the caller is responsible for calling gst_bus_remove_signal_watch() as many times as this function is called. MT safe. a #GstBus on which you want to receive the "message" signal Adds a bus signal watch to the default main context with the given @priority (e.g. %G_PRIORITY_DEFAULT). It is also possible to use a non-default main context set up using g_main_context_push_thread_default() (before one had to create a bus watch source and attach it to the desired main context 'manually'). After calling this statement, the bus will emit the "message" signal for each message posted on the bus when the main loop is running. This function may be called multiple times. To clean up, the caller is responsible for calling gst_bus_remove_signal_watch() as many times as this function is called. There can only be a single bus watch per bus, you must remove any signal watch before you can set another type of watch. MT safe. a #GstBus on which you want to receive the "message" signal The priority of the watch. Adds a bus watch to the default main context with the default priority (%G_PRIORITY_DEFAULT). It is also possible to use a non-default main context set up using g_main_context_push_thread_default() (before one had to create a bus watch source and attach it to the desired main context 'manually'). This function is used to receive asynchronous messages in the main loop. There can only be a single bus watch per bus, you must remove it before you can set a new one. The bus watch will only work if a GLib main loop is being run. The watch can be removed using gst_bus_remove_watch() or by returning %FALSE from @func. If the watch was added to the default main context it is also possible to remove the watch using g_source_remove(). a #GstBus to create the watch for A function to call when a message is received. user data passed to @func. The event source id or 0 if @bus already got an event source. MT safe. Adds a bus watch to the default main context with the given @priority (e.g. %G_PRIORITY_DEFAULT). It is also possible to use a non-default main context set up using g_main_context_push_thread_default() (before one had to create a bus watch source and attach it to the desired main context 'manually'). This function is used to receive asynchronous messages in the main loop. There can only be a single bus watch per bus, you must remove it before you can set a new one. The bus watch will only work if a GLib main loop is being run. When @func is called, the message belongs to the caller; if you want to keep a copy of it, call gst_message_ref() before leaving @func. The watch can be removed using gst_bus_remove_watch() or by returning %FALSE from @func. If the watch was added to the default main context it is also possible to remove the watch using g_source_remove(). MT safe. a #GstBus to create the watch for. The priority of the watch. A function to call when a message is received. user data passed to @func. the function to call when the source is removed. The event source id or 0 if @bus already got an event source. A helper #GstBusFunc that can be used to convert all asynchronous messages into signals. a #GstBus the #GstMessage received user data %TRUE Create watch for this bus. The GSource will be dispatched whenever a message is on the bus. After the GSource is dispatched, the message is popped off the bus and unreffed. a #GstBus to create the watch for a #GSource that can be added to a mainloop. Instructs GStreamer to stop emitting the "sync-message" signal for this bus. See gst_bus_enable_sync_message_emission() for more information. In the event that multiple pieces of code have called gst_bus_enable_sync_message_emission(), the sync-message emissions will only be stopped after all calls to gst_bus_enable_sync_message_emission() were "cancelled" by calling this function. In this way the semantics are exactly the same as gst_object_ref() that which calls enable should also call disable. MT safe. a #GstBus on which you previously called gst_bus_enable_sync_message_emission() Instructs GStreamer to emit the "sync-message" signal after running the bus's sync handler. This function is here so that code can ensure that they can synchronously receive messages without having to affect what the bin's sync handler is. This function may be called multiple times. To clean up, the caller is responsible for calling gst_bus_disable_sync_message_emission() as many times as this function is called. While this function looks similar to gst_bus_add_signal_watch(), it is not exactly the same -- this function enables <emphasis>synchronous</emphasis> emission of signals when messages arrive; gst_bus_add_signal_watch() adds an idle callback to pop messages off the bus <emphasis>asynchronously</emphasis>. The sync-message signal comes from the thread of whatever object posted the message; the "message" signal is marshalled to the main thread via the main loop. MT safe. a #GstBus on which you want to receive the "sync-message" signal Check if there are pending messages on the bus that should be handled. a #GstBus to check %TRUE if there are messages on the bus to be handled, %FALSE otherwise. MT safe. Creates a new #GstBus instance. a new #GstBus instance Peek the message on the top of the bus' queue. The message will remain on the bus' message queue. A reference is returned, and needs to be unreffed by the caller. a #GstBus the #GstMessage that is on the bus, or %NULL if the bus is empty. MT safe. Poll the bus for messages. Will block while waiting for messages to come. You can specify a maximum time to poll with the @timeout parameter. If @timeout is negative, this function will block indefinitely. All messages not in @events will be popped off the bus and will be ignored. It is not possible to use message enums beyond #GST_MESSAGE_EXTENDED in the @events mask Because poll is implemented using the "message" signal enabled by gst_bus_add_signal_watch(), calling gst_bus_poll() will cause the "message" signal to be emitted for every message that poll sees. Thus a "message" signal handler will see the same messages that this function sees -- neither will steal messages from the other. This function will run a main loop from the default main context when polling. You should never use this function, since it is pure evil. This is especially true for GUI applications based on Gtk+ or Qt, but also for any other non-trivial application that uses the GLib main loop. As this function runs a GLib main loop, any callback attached to the default GLib main context may be invoked. This could be timeouts, GUI events, I/O events etc.; even if gst_bus_poll() is called with a 0 timeout. Any of these callbacks may do things you do not expect, e.g. destroy the main application window or some other resource; change other application state; display a dialog and run another main loop until the user clicks it away. In short, using this function may add a lot of complexity to your code through unexpected re-entrancy and unexpected changes to your application's state. For 0 timeouts use gst_bus_pop_filtered() instead of this function; for other short timeouts use gst_bus_timed_pop_filtered(); everything else is better handled by setting up an asynchronous bus watch and doing things from there. a #GstBus a mask of #GstMessageType, representing the set of message types to poll for (note special handling of extended message types below) the poll timeout, as a #GstClockTime, or #GST_CLOCK_TIME_NONE to poll indefinitely. the message that was received, or %NULL if the poll timed out. The message is taken from the bus and needs to be unreffed with gst_message_unref() after usage. Get a message from the bus. a #GstBus to pop the #GstMessage that is on the bus, or %NULL if the bus is empty. The message is taken from the bus and needs to be unreffed with gst_message_unref() after usage. MT safe. Get a message matching @type from the bus. Will discard all messages on the bus that do not match @type and that have been posted before the first message that does match @type. If there is no message matching @type on the bus, all messages will be discarded. It is not possible to use message enums beyond #GST_MESSAGE_EXTENDED in the @events mask. a #GstBus to pop message types to take into account the next #GstMessage matching @type that is on the bus, or %NULL if the bus is empty or there is no message matching @type. The message is taken from the bus and needs to be unreffed with gst_message_unref() after usage. MT safe. Post a message on the given bus. Ownership of the message is taken by the bus. a #GstBus to post on the #GstMessage to post %TRUE if the message could be posted, %FALSE if the bus is flushing. MT safe. Removes a signal watch previously added with gst_bus_add_signal_watch(). MT safe. a #GstBus you previously added a signal watch to Removes an installed bus watch from @bus. a #GstBus to remove the watch from. %TRUE on success or %FALSE if @bus has no event source. If @flushing, flush out and unref any messages queued in the bus. Releases references to the message origin objects. Will flush future messages until gst_bus_set_flushing() sets @flushing to %FALSE. MT safe. a #GstBus whether or not to flush the bus Sets the synchronous handler on the bus. The function will be called every time a new message is posted on the bus. Note that the function will be called in the same thread context as the posting object. This function is usually only called by the creator of the bus. Applications should handle messages asynchronously using the gst_bus watch and poll functions. You cannot replace an existing sync_handler. You can pass %NULL to this function, which will clear the existing handler. a #GstBus to install the handler on The handler function to install User data that will be sent to the handler function. called when @user_data becomes unused A helper GstBusSyncHandler that can be used to convert all synchronous messages into signals. a #GstBus the #GstMessage received user data GST_BUS_PASS Get a message from the bus, waiting up to the specified timeout. If @timeout is 0, this function behaves like gst_bus_pop(). If @timeout is #GST_CLOCK_TIME_NONE, this function will block forever until a message was posted on the bus. a #GstBus to pop a timeout the #GstMessage that is on the bus after the specified timeout or %NULL if the bus is empty after the timeout expired. The message is taken from the bus and needs to be unreffed with gst_message_unref() after usage. MT safe. Get a message from the bus whose type matches the message type mask @types, waiting up to the specified timeout (and discarding any messages that do not match the mask provided). If @timeout is 0, this function behaves like gst_bus_pop_filtered(). If @timeout is #GST_CLOCK_TIME_NONE, this function will block forever until a matching message was posted on the bus. a #GstBus to pop from a timeout in nanoseconds, or GST_CLOCK_TIME_NONE to wait forever message types to take into account, GST_MESSAGE_ANY for any type a #GstMessage matching the filter in @types, or %NULL if no matching message was found on the bus until the timeout expired. The message is taken from the bus and needs to be unreffed with gst_message_unref() after usage. MT safe. Free-function: g_free a #GstByteReader instance Size in bytes address of a #guint8 pointer variable in which to store the result %TRUE if successful, %FALSE otherwise. Returns a newly-allocated copy of the data at the current data position without checking if at least @size bytes are left. Advances the current read position by @size bytes. Free-function: g_free a #GstByteReader instance Size in bytes a newly-allocated copy of the data @size bytes in size. Free with g_free() when no longer needed. Free-function: g_free a #GstByteReader instance address of a #guint16 pointer variable in which to store the result %TRUE if a string could be read, %FALSE otherwise. The string put into @str must be freed with g_free() when no longer needed. Free-function: g_free a #GstByteReader instance address of a #guint32 pointer variable in which to store the result %TRUE if a string could be read, %FALSE otherwise. The string put into @str must be freed with g_free() when no longer needed. Free-function: g_free FIXME:Reads (copies) a NUL-terminated string in the #GstByteReader instance, advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance address of a #gchar pointer variable in which to store the result %TRUE if a string could be read into @str, %FALSE otherwise. The string put into @str must be freed with g_free() when no longer needed. Frees a #GstByteReader instance, which was previously allocated by gst_byte_reader_new(). a #GstByteReader instance Returns a constant pointer to the current data position if at least @size bytes are left and updates the current position. a #GstByteReader instance Size in bytes address of a #guint8 pointer variable in which to store the result %TRUE if successful, %FALSE otherwise. Returns a constant pointer to the current data position without checking if at least @size bytes are left. Advances the current read position by @size bytes. a #GstByteReader instance Size in bytes a constant pointer to the current data position. Read a 32 bit big endian floating point value into @val and update the current position. a #GstByteReader instance Pointer to a #gfloat to store the result %TRUE if successful, %FALSE otherwise. Read a 32 bit big endian float without checking if there is enough data available and update the current position. a #GstByteReader instance floating point value read Read a 32 bit little endian floating point value into @val and update the current position. a #GstByteReader instance Pointer to a #gfloat to store the result %TRUE if successful, %FALSE otherwise. Read a 32 bit little endian float without checking if there is enough data available and update the current position. a #GstByteReader instance floating point value read Read a 64 bit big endian floating point value into @val and update the current position. a #GstByteReader instance Pointer to a #gdouble to store the result %TRUE if successful, %FALSE otherwise. Read a 64 bit big endian float without checking if there is enough data available and update the current position. a #GstByteReader instance double precision floating point value read Read a 64 bit little endian floating point value into @val and update the current position. a #GstByteReader instance Pointer to a #gdouble to store the result %TRUE if successful, %FALSE otherwise. Read a 64 bit little endian float without checking if there is enough data available and update the current position. a #GstByteReader instance double precision floating point value read Read a signed 16 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint16 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 16 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 16 bit integer. Read a signed 16 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint16 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 16 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 16 bit integer. Read a signed 24 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 24 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 24 bit integer (as gint32) Read a signed 24 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 24 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 24 bit integer (as gint32) Read a signed 32 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 32 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 32 bit integer. Read a signed 32 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 32 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 32 bit integer. Read a signed 64 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint64 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 64 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 64 bit integer. Read a signed 64 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint64 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 64 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 64 bit integer. Read a signed 8 bit integer into @val and update the current position. a #GstByteReader instance Pointer to a #gint8 to store the result %TRUE if successful, %FALSE otherwise. Read an signed 8 bit integer without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance signed 8 bit integer. Returns the current position of a #GstByteReader instance in bytes. a #GstByteReader instance The current position of @reader in bytes. Returns the remaining number of bytes of a #GstByteReader instance. a #GstByteReader instance The remaining number of bytes of @reader instance. Returns the total number of bytes of a #GstByteReader instance. a #GstByteReader instance The total number of bytes of @reader instance. Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator), advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance address of a #gchar pointer variable in which to store the result %TRUE if a string could be found, %FALSE otherwise. Initializes a #GstByteReader sub-reader instance to contain @size bytes of data from the current position of @reader. This is useful to read chunked formats and make sure that one doesn't read beyond the size of the sub-chunk. Unlike gst_byte_reader_peek_sub_reader(), this function also modifies the position of @reader and moves it forward by @size bytes. an existing and initialized #GstByteReader instance a #GstByteReader instance to initialize as sub-reader size of @sub_reader in bytes FALSE on error or if @reader does not contain @size more bytes from the current position, and otherwise TRUE Read an unsigned 16 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint16 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 16 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 16 bit integer. Read an unsigned 16 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint16 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 16 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 16 bit integer. Read an unsigned 24 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 24 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 24 bit integer (as guint32) Read an unsigned 24 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 24 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 24 bit integer (as guint32) Read an unsigned 32 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 32 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 32 bit integer. Read an unsigned 32 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 32 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 32 bit integer. Read an unsigned 64 bit big endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint64 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 64 bit integer in big endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 64 bit integer. Read an unsigned 64 bit little endian integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint64 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 64 bit integer in little endian format without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 64 bit integer. Read an unsigned 8 bit integer into @val and update the current position. a #GstByteReader instance Pointer to a #guint8 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 8 bit integer without checking if there are enough bytes available in the byte reader and update the current position. a #GstByteReader instance unsigned 8 bit integer. Initializes a #GstByteReader instance to read from @data. This function can be called on already initialized instances. a #GstByteReader instance data from which the #GstByteReader should read Size of @data in bytes Scan for pattern @pattern with applied mask @mask in the byte reader data, starting from offset @offset relative to the current position. The bytes in @pattern and @mask are interpreted left-to-right, regardless of endianness. All four bytes of the pattern must be present in the byte reader data for it to match, even if the first or last bytes are masked out. It is an error to call this function without making sure that there is enough data (offset+size bytes) in the byte reader. a #GstByteReader mask to apply to data before matching against @pattern pattern to match (after mask is applied) offset from which to start scanning, relative to the current position number of bytes to scan from offset offset of the first match, or -1 if no match was found. Example: <programlisting> // Assume the reader contains 0x00 0x01 0x02 ... 0xfe 0xff gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x00010203, 0, 256); // -> returns 0 gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x00010203, 1, 255); // -> returns -1 gst_byte_reader_masked_scan_uint32 (reader, 0xffffffff, 0x01020304, 1, 255); // -> returns 1 gst_byte_reader_masked_scan_uint32 (reader, 0xffff, 0x0001, 0, 256); // -> returns -1 gst_byte_reader_masked_scan_uint32 (reader, 0xffff, 0x0203, 0, 256); // -> returns 0 gst_byte_reader_masked_scan_uint32 (reader, 0xffff0000, 0x02030000, 0, 256); // -> returns 2 gst_byte_reader_masked_scan_uint32 (reader, 0xffff0000, 0x02030000, 0, 4); // -> returns -1 </programlisting> Scan for pattern @pattern with applied mask @mask in the byte reader data, starting from offset @offset relative to the current position. The bytes in @pattern and @mask are interpreted left-to-right, regardless of endianness. All four bytes of the pattern must be present in the byte reader data for it to match, even if the first or last bytes are masked out. It is an error to call this function without making sure that there is enough data (offset+size bytes) in the byte reader. a #GstByteReader mask to apply to data before matching against @pattern pattern to match (after mask is applied) offset from which to start scanning, relative to the current position number of bytes to scan from offset pointer to uint32 to return matching data offset of the first match, or -1 if no match was found. Create a new #GstByteReader instance, which will read from @data. Free-function: gst_byte_reader_free data from which the #GstByteReader should read Size of @data in bytes a new #GstByteReader instance Returns a constant pointer to the current data position if at least @size bytes are left and keeps the current position. a #GstByteReader instance Size in bytes address of a #guint8 pointer variable in which to store the result %TRUE if successful, %FALSE otherwise. a #GstByteReader instance a constant pointer to the current data position Read a 32 bit big endian floating point value into @val but keep the current position. a #GstByteReader instance Pointer to a #gfloat to store the result %TRUE if successful, %FALSE otherwise. Read a 32 bit big endian float without checking if there is enough data available, but keep the current position. a #GstByteReader instance floating point value read Read a 32 bit little endian floating point value into @val but keep the current position. a #GstByteReader instance Pointer to a #gfloat to store the result %TRUE if successful, %FALSE otherwise. Read a 32 bit little endian float without checking if there is enough data available, but keep the current position. a #GstByteReader instance floating point value read Read a 64 bit big endian floating point value into @val but keep the current position. a #GstByteReader instance Pointer to a #gdouble to store the result %TRUE if successful, %FALSE otherwise. Read a 64 bit big endian float without checking if there is enough data available, but keep the current position. a #GstByteReader instance double precision floating point value read Read a 64 bit little endian floating point value into @val but keep the current position. a #GstByteReader instance Pointer to a #gdouble to store the result %TRUE if successful, %FALSE otherwise. Read a 64 bit little endian float without checking if there is enough data available, but keep the current position. a #GstByteReader instance double precision floating point value read Read a signed 16 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint16 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 16 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 16 bit integer. Read a signed 16 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint16 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 16 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 16 bit integer. Read a signed 24 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 24 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 24 bit integer (as gint32) Read a signed 24 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 24 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 24 bit integer (as gint32) Read a signed 32 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 32 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 32 bit integer. Read a signed 32 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint32 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 32 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 32 bit integer. Read a signed 64 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint64 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 64 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 64 bit integer. Read a signed 64 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint64 to store the result %TRUE if successful, %FALSE otherwise. Read a signed 64 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance signed 64 bit integer. Read a signed 8 bit integer into @val but keep the current position. a #GstByteReader instance Pointer to a #gint8 to store the result %TRUE if successful, %FALSE otherwise. Read an signed 8 bit integer without checking if there are enough bytes available in the byte reader, but do not advance the current read position. a #GstByteReader instance signed 8 bit integer. Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator). The current position will be maintained. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance address of a #gchar pointer variable in which to store the result %TRUE if a string could be skipped, %FALSE otherwise. Returns a constant pointer to the current data position if there is a NUL-terminated string in the data (this could be just a NUL terminator). The current position will be maintained. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance address of a #gchar pointer variable in which to store the result %TRUE if a string could be skipped, %FALSE otherwise. Initializes a #GstByteReader sub-reader instance to contain @size bytes of data from the current position of @reader. This is useful to read chunked formats and make sure that one doesn't read beyond the size of the sub-chunk. Unlike gst_byte_reader_get_sub_reader(), this function does not modify the current position of @reader. an existing and initialized #GstByteReader instance a #GstByteReader instance to initialize as sub-reader size of @sub_reader in bytes FALSE on error or if @reader does not contain @size more bytes from the current position, and otherwise TRUE Read an unsigned 16 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint16 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 16 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 16 bit integer. Read an unsigned 16 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint16 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 16 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 16 bit integer. Read an unsigned 24 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 24 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 24 bit integer (as guint32) Read an unsigned 24 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 24 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 24 bit integer (as guint32) Read an unsigned 32 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 32 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 32 bit integer. Read an unsigned 32 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint32 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 32 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 32 bit integer. Read an unsigned 64 bit big endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint64 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 64 bit integer in big endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 64 bit integer. Read an unsigned 64 bit little endian integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint64 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 64 bit integer in little endian format without checking if there are enough bytes available in the byte reader, but do not advance the current position. a #GstByteReader instance unsigned 64 bit integer. Read an unsigned 8 bit integer into @val but keep the current position. a #GstByteReader instance Pointer to a #guint8 to store the result %TRUE if successful, %FALSE otherwise. Read an unsigned 8 bit integer without checking if there are enough bytes available in the byte reader, but do not advance the current read position. a #GstByteReader instance unsigned 8 bit integer. Sets the new position of a #GstByteReader instance to @pos in bytes. a #GstByteReader instance The new position in bytes %TRUE if the position could be set successfully, %FALSE otherwise. Skips @nbytes bytes of the #GstByteReader instance. a #GstByteReader instance the number of bytes to skip %TRUE if @nbytes bytes could be skipped, %FALSE otherwise. Skips a NUL-terminated string in the #GstByteReader instance, advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance %TRUE if a string could be skipped, %FALSE otherwise. Skips a NUL-terminated UTF-16 string in the #GstByteReader instance, advancing the current position to the byte after the string. No input checking for valid UTF-16 is done. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance %TRUE if a string could be skipped, %FALSE otherwise. Skips a NUL-terminated UTF-32 string in the #GstByteReader instance, advancing the current position to the byte after the string. No input checking for valid UTF-32 is done. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance %TRUE if a string could be skipped, %FALSE otherwise. Skips a NUL-terminated string in the #GstByteReader instance, advancing the current position to the byte after the string. This will work for any NUL-terminated string with a character width of 8 bits, so ASCII, UTF-8, ISO-8859-N etc. No input checking for valid UTF-8 is done. This function will fail if no NUL-terminator was found in in the data. a #GstByteReader instance %TRUE if a string could be skipped, %FALSE otherwise. Skips @nbytes bytes of the #GstByteReader instance without checking if there are enough bytes available in the byte reader. a #GstByteReader instance the number of bytes to skip Checks if enough free space from the current write cursor is available and reallocates if necessary. #GstByteWriter instance Number of bytes that should be available %TRUE if at least @size bytes are still available Writes @size bytes containing @value to @writer. #GstByteWriter instance Value to be written Number of bytes to be written %TRUE if the value could be written Writes @size bytes containing @value to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to be written Number of bytes to be written Frees @writer and all memory allocated by it. #GstByteWriter instance Frees @writer and all memory allocated by it except the current data, which is returned as #GstBuffer. Free-function: gst_buffer_unref #GstByteWriter instance the current data as buffer. gst_buffer_unref() after usage. Frees @writer and all memory allocated by it except the current data, which is returned. Free-function: g_free #GstByteWriter instance the current data. g_free() after usage. #GstByteWriter instance The current position of the read/write cursor Returns the remaining size of data that can still be written. If -1 is returned the remaining size is only limited by system resources. #GstByteWriter instance the remaining size of data that can still be written #GstByteWriter instance The current, initialized size of the data Initializes @writer to an empty instance #GstByteWriter instance Initializes @writer with the given memory area. If @initialized is %TRUE it is possible to read @size bytes from the #GstByteWriter from the beginning. #GstByteWriter instance Memory area for writing Size of @data in bytes If %TRUE the complete data can be read from the beginning Initializes @writer with the given initial data size. #GstByteWriter instance Initial size of data If %TRUE the data can't be reallocated Creates a new, empty #GstByteWriter instance Free-function: gst_byte_writer_free a new, empty #GstByteWriter instance Creates a new #GstByteWriter instance with the given memory area. If @initialized is %TRUE it is possible to read @size bytes from the #GstByteWriter from the beginning. Free-function: gst_byte_writer_free Memory area for writing Size of @data in bytes If %TRUE the complete data can be read from the beginning a new #GstByteWriter instance Creates a new #GstByteWriter instance with the given initial data size. Free-function: gst_byte_writer_free Initial size of data If %TRUE the data can't be reallocated a new #GstByteWriter instance Writes @size bytes of @data to @writer. #GstByteWriter instance source #GstBuffer offset to copy from total size to copy. If -1, all data is copied %TRUE if the data could be written Writes @size bytes of @data to @writer. #GstByteWriter instance Data to write Size of @data in bytes %TRUE if the value could be written Writes @size bytes of @data to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Data to write Size of @data in bytes Writes a big endian 32 bit float to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a big endian 32 bit float to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a little endian 32 bit float to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a little endian 32 bit float to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a big endian 64 bit float to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a big endian 64 bit float to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a little endian 64 bit float to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a little endian 64 bit float to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed big endian 16 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed big endian 16 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed little endian 16 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed little endian 16 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed big endian 24 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed big endian 24 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed little endian 24 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed little endian 24 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed big endian 32 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed big endian 32 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed little endian 32 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed little endian 32 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed big endian 64 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed big endian 64 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed little endian 64 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a signed little endian 64 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a signed 8 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Write a NUL-terminated string to @writer (including the terminator). The string is assumed to be in an 8-bit encoding (e.g. ASCII,UTF-8 or ISO-8859-1). #GstByteWriter instance Null terminated string %TRUE if the string could be written Writes a NUL-terminated UTF16 string to @writer (including the terminator). #GstByteWriter instance UTF16 string to write %TRUE if the value could be written Writes a NUL-terminated UTF32 string to @writer (including the terminator). #GstByteWriter instance UTF32 string to write %TRUE if the value could be written Writes a NUL-terminated UTF8 string to @writer (including the terminator). #GstByteWriter instance UTF8 string to write %TRUE if the value could be written Writes a unsigned big endian 16 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned big endian 16 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned little endian 16 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned little endian 16 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned big endian 24 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned big endian 24 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned little endian 24 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned little endian 24 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned big endian 32 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned big endian 32 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned little endian 32 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned little endian 32 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned big endian 64 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned big endian 64 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned little endian 64 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned little endian 64 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Writes a unsigned 8 bit integer to @writer. #GstByteWriter instance Value to write %TRUE if the value could be written Writes a unsigned 8 bit integer to @writer without checking if there is enough free space available in the byte writer. #GstByteWriter instance Value to write Resets @writer and frees the data if it's owned by @writer. #GstByteWriter instance Resets @writer and returns the current data as buffer. Free-function: gst_buffer_unref #GstByteWriter instance the current data as buffer. gst_buffer_unref() after usage. Resets @writer and returns the current data. Free-function: g_free #GstByteWriter instance the current data. g_free() after usage. Sets the current read/write cursor of @writer. The new position can only be between 0 and the current size. #GstByteWriter instance new position %TRUE if the new position could be set Appends the structures contained in @caps2 to @caps1. The structures in @caps2 are not copied -- they are transferred to @caps1, and then @caps2 is freed. If either caps is ANY, the resulting caps will be ANY. the #GstCaps that will be appended to the #GstCaps to append Appends @structure to @caps. The structure is not copied; @caps becomes the owner of @structure. the #GstCaps that will be appended to the #GstStructure to append Appends @structure with @features to @caps. The structure is not copied; @caps becomes the owner of @structure. the #GstCaps that will be appended to the #GstStructure to append the #GstCapsFeatures to append Tries intersecting @caps1 and @caps2 and reports whether the result would not be empty a #GstCaps to intersect a #GstCaps to intersect %TRUE if intersection would be not empty Creates a new #GstCaps as a copy of the old @caps. The new caps will have a refcount of 1, owned by the caller. The structures are copied as well. Note that this function is the semantic equivalent of a gst_caps_ref() followed by a gst_caps_make_writable(). If you only want to hold on to a reference to the data, you should use gst_caps_ref(). When you are finished with the caps, call gst_caps_unref() on it. a #GstCaps. the new #GstCaps Creates a new #GstCaps and appends a copy of the nth structure contained in @caps. the #GstCaps to copy the nth structure to copy the new #GstCaps Adds @feature to @features. a #GstCapsFeatures. a feature. Adds @feature to @features. a #GstCapsFeatures. a feature. Check if @features contains @feature. a #GstCapsFeatures. a feature %TRUE if @features contains @feature. Check if @features contains @feature. a #GstCapsFeatures. a feature %TRUE if @features contains @feature. Duplicates a #GstCapsFeatures and all its values. Free-function: gst_caps_features_free a #GstCapsFeatures to duplicate a new #GstCapsFeatures. Frees a #GstCapsFeatures and all its values. The caps features must not have a parent when this function is called. the #GstCapsFeatures to free Creates a #GstCapsFeatures from a string representation. Free-function: gst_caps_features_free a string representation of a #GstCapsFeatures. a new #GstCapsFeatures or %NULL when the string could not be parsed. Free with gst_caps_features_free() after use. Returns the @i-th feature of @features. a #GstCapsFeatures. index of the feature The @i-th feature of @features. Returns the @i-th feature of @features. a #GstCapsFeatures. index of the feature The @i-th feature of @features. Returns the number of features in @features. a #GstCapsFeatures. The number of features in @features. Check if @features is %GST_CAPS_FEATURES_ANY. a #GstCapsFeatures. %TRUE if @features is %GST_CAPS_FEATURES_ANY. Check if @features1 and @features2 are equal. a #GstCapsFeatures. a #GstCapsFeatures. %TRUE if @features1 and @features2 are equal. Creates a new #GstCapsFeatures with the given features. The last argument must be %NULL. Free-function: gst_caps_features_free name of first feature to set additional features a new, empty #GstCapsFeatures Creates a new, ANY #GstCapsFeatures. This will be equal to any other #GstCapsFeatures but caps with these are unfixed. Free-function: gst_caps_features_free a new, ANY #GstCapsFeatures Creates a new, empty #GstCapsFeatures. Free-function: gst_caps_features_free a new, empty #GstCapsFeatures Creates a new #GstCapsFeatures with the given features. The last argument must be 0. Free-function: gst_caps_features_free name of first feature to set additional features a new, empty #GstCapsFeatures Creates a new #GstCapsFeatures with the given features. Free-function: gst_caps_features_free name of first feature to set variable argument list a new, empty #GstCapsFeatures Creates a new #GstCapsFeatures with the given features. Free-function: gst_caps_features_free name of first feature to set variable argument list a new, empty #GstCapsFeatures Removes @feature from @features. a #GstCapsFeatures. a feature. Removes @feature from @features. a #GstCapsFeatures. a feature. Sets the parent_refcount field of #GstCapsFeatures. This field is used to determine whether a caps features is mutable or not. This function should only be called by code implementing parent objects of #GstCapsFeatures, as described in the MT Refcounting section of the design documents. a #GstCapsFeatures a pointer to the parent's refcount %TRUE if the parent refcount could be set. Converts @features to a human-readable string representation. For debugging purposes its easier to do something like this: |[<!-- language="C" --> GST_LOG ("features is %" GST_PTR_FORMAT, features); ]| This prints the features in human readable form. Free-function: g_free a #GstCapsFeatures a pointer to string allocated by g_malloc(). g_free() after usage. Calls the provided function once for each structure and caps feature in the #GstCaps. In contrast to gst_caps_foreach(), the function may modify the structure and features. In contrast to gst_caps_filter_and_map_in_place(), the structure and features are removed from the caps if %FALSE is returned from the function. The caps must be mutable. a #GstCaps a function to call for each field private data Modifies the given @caps into a representation with only fixed values. First the caps will be truncated and then the first structure will be fixated with gst_structure_fixate(). This function takes ownership of @caps and will call gst_caps_make_writable() on it so you must not use @caps afterwards unless you keep an additional reference to it with gst_caps_ref(). a #GstCaps to fixate the fixated caps Calls the provided function once for each structure and caps feature in the #GstCaps. The function must not modify the fields. Also see gst_caps_map_in_place() and gst_caps_filter_and_map_in_place(). a #GstCaps a function to call for each field private data %TRUE if the supplied function returns %TRUE for each call, %FALSE otherwise. Converts @caps from a string representation. The current implementation of serialization will lead to unexpected results when there are nested #GstCaps / #GstStructure deeper than one level. a string to convert to #GstCaps a newly allocated #GstCaps Finds the features in @caps that has the index @index, and returns it. WARNING: This function takes a const GstCaps *, but returns a non-const GstCapsFeatures *. This is for programming convenience -- the caller should be aware that structures inside a constant #GstCaps should not be modified. However, if you know the caps are writable, either because you have just copied them or made them writable with gst_caps_make_writable(), you may modify the features returned in the usual way, e.g. with functions like gst_caps_features_add(). You do not need to free or unref the structure returned, it belongs to the #GstCaps. a #GstCaps the index of the structure a pointer to the #GstCapsFeatures corresponding to @index Gets the number of structures contained in @caps. a #GstCaps the number of structures that @caps contains Finds the structure in @caps that has the index @index, and returns it. WARNING: This function takes a const GstCaps *, but returns a non-const GstStructure *. This is for programming convenience -- the caller should be aware that structures inside a constant #GstCaps should not be modified. However, if you know the caps are writable, either because you have just copied them or made them writable with gst_caps_make_writable(), you may modify the structure returned in the usual way, e.g. with functions like gst_structure_set(). You do not need to free or unref the structure returned, it belongs to the #GstCaps. a #GstCaps the index of the structure a pointer to the #GstStructure corresponding to @index Creates a new #GstCaps that contains all the formats that are common to both @caps1 and @caps2. Defaults to %GST_CAPS_INTERSECT_ZIG_ZAG mode. a #GstCaps to intersect a #GstCaps to intersect the new #GstCaps Creates a new #GstCaps that contains all the formats that are common to both @caps1 and @caps2. Unlike @gst_caps_intersect, the returned caps will be ordered in a similar fashion as @caps1. a #GstCaps to intersect a #GstCaps to intersect the new #GstCaps Creates a new #GstCaps that contains all the formats that are common to both @caps1 and @caps2, the order is defined by the #GstCapsIntersectMode used. a #GstCaps to intersect a #GstCaps to intersect The intersection algorithm/mode to use the new #GstCaps A given #GstCaps structure is always compatible with another if every media format that is in the first is also contained in the second. That is, @caps1 is a subset of @caps2. the #GstCaps to test the #GstCaps to test %TRUE if @caps1 is a subset of @caps2. Determines if @caps represents any media format. the #GstCaps to test %TRUE if @caps represents any format. Determines if @caps represents no media formats. the #GstCaps to test %TRUE if @caps represents no formats. Checks if the given caps represent the same set of caps. a #GstCaps another #GstCaps %TRUE if both caps are equal. Tests if two #GstCaps are equal. This function only works on fixed #GstCaps. the #GstCaps to test the #GstCaps to test %TRUE if the arguments represent the same format Fixed #GstCaps describe exactly one format, that is, they have exactly one structure, and each field in the structure describes a fixed type. Examples of non-fixed types are GST_TYPE_INT_RANGE and GST_TYPE_LIST. the #GstCaps to test %TRUE if @caps is fixed Checks if the given caps are exactly the same set of caps. a #GstCaps another #GstCaps %TRUE if both caps are strictly equal. Checks if all caps represented by @subset are also represented by @superset. a #GstCaps a potentially greater #GstCaps %TRUE if @subset is a subset of @superset Checks if @structure is a subset of @caps. See gst_caps_is_subset() for more information. a #GstCaps a potential #GstStructure subset of @caps %TRUE if @structure is a subset of @caps Checks if @structure is a subset of @caps. See gst_caps_is_subset() for more information. a #GstCaps a potential #GstStructure subset of @caps a #GstCapsFeatures for @structure %TRUE if @structure is a subset of @caps Tests if you can safely modify @caps. It is only safe to modify caps when there is only one owner of the caps - ie, the object is writable. a #GstCaps Returns a writable copy of @caps. If there is only one reference count on @caps, the caller must be the owner, and so this function will return the caps object unchanged. If on the other hand there is more than one reference on the object, a new caps object will be returned. The caller's reference on @caps will be removed, and instead the caller will own a reference to the returned object. In short, this function unrefs the caps in the argument and refs the caps that it returns. Don't access the argument after calling this function. See also: gst_caps_ref(). a #GstCaps a writable caps which may or may not be the same as @caps Calls the provided function once for each structure and caps feature in the #GstCaps. In contrast to gst_caps_foreach(), the function may modify but not delete the structures and features. The caps must be mutable. a #GstCaps a function to call for each field private data %TRUE if the supplied function returns %TRUE for each call, %FALSE otherwise. Appends the structures contained in @caps2 to @caps1 if they are not yet expressed by @caps1. The structures in @caps2 are not copied -- they are transferred to a writable copy of @caps1, and then @caps2 is freed. If either caps is ANY, the resulting caps will be ANY. the #GstCaps that will take the new entries the #GstCaps to merge in the merged caps. Appends @structure to @caps if its not already expressed by @caps. the #GstCaps to merge into the #GstStructure to merge the merged caps. Appends @structure with @features to @caps if its not already expressed by @caps. the #GstCaps to merge into the #GstStructure to merge the #GstCapsFeatures to merge the merged caps. Creates a new #GstCaps that indicates that it is compatible with any media format. the new #GstCaps Creates a new #GstCaps that is empty. That is, the returned #GstCaps contains no media formats. The #GstCaps is guaranteed to be writable. Caller is responsible for unreffing the returned caps. the new #GstCaps Creates a new #GstCaps that contains one #GstStructure with name @media_type. Caller is responsible for unreffing the returned caps. the media type of the structure the new #GstCaps Creates a new #GstCaps and adds all the structures listed as arguments. The list must be %NULL-terminated. The structures are not copied; the returned #GstCaps owns the structures. the first structure to add additional structures to add the new #GstCaps Creates a new #GstCaps and adds all the structures listed as arguments. The list must be %NULL-terminated. The structures are not copied; the returned #GstCaps owns the structures. the first structure to add additional structures to add the new #GstCaps Creates a new #GstCaps that contains one #GstStructure. The structure is defined by the arguments, which have the same format as gst_structure_new(). Caller is responsible for unreffing the returned caps. the media type of the structure first field to set additional arguments the new #GstCaps Returns a #GstCaps that represents the same set of formats as @caps, but contains no lists. Each list is expanded into separate @GstStructures. This function takes ownership of @caps and will call gst_caps_make_writable() on it so you must not use @caps afterwards unless you keep an additional reference to it with gst_caps_ref(). a #GstCaps to normalize the normalized #GstCaps Add a reference to a #GstCaps object. From this point on, until the caller calls gst_caps_unref() or gst_caps_make_writable(), it is guaranteed that the caps object will not change. This means its structures won't change, etc. To use a #GstCaps object, you must always have a refcount on it -- either the one made implicitly by e.g. gst_caps_new_simple(), or via taking one explicitly with this function. the #GstCaps to reference the same #GstCaps object. removes the structure with the given index from the list of structures contained in @caps. the #GstCaps to remove from Index of the structure to remove Modifies a pointer to a #GstCaps to point to a different #GstCaps. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old caps is unreffed, the new is reffed). Either @new_caps or the #GstCaps pointed to by @old_caps may be %NULL. pointer to a pointer to a #GstCaps to be replaced. pointer to a #GstCaps that will replace the caps pointed to by @old_caps. %TRUE if @new_caps was different from @old_caps Sets the #GstCapsFeatures @features for the structure at @index. a #GstCaps the index of the structure the #GstCapsFeatures to set Sets fields in a #GstCaps. The arguments must be passed in the same manner as gst_structure_set(), and be %NULL-terminated. the #GstCaps to set first field to set additional parameters Sets fields in a #GstCaps. The arguments must be passed in the same manner as gst_structure_set(), and be %NULL-terminated. the #GstCaps to set first field to set additional parameters Sets the given @field on all structures of @caps to the given @value. This is a convenience function for calling gst_structure_set_value() on all structures of @caps. a writable caps name of the field to set value to set the field to Converts the given @caps into a representation that represents the same set of formats, but in a simpler form. Component structures that are identical are merged. Component structures that have values that can be merged are also merged. This function takes ownership of @caps and will call gst_caps_make_writable() on it if necessary, so you must not use @caps afterwards unless you keep an additional reference to it with gst_caps_ref(). This method does not preserve the original order of @caps. a #GstCaps to simplify The simplified caps. Retrieves the structure with the given index from the list of structures contained in @caps. The caller becomes the owner of the returned structure. the #GstCaps to retrieve from Index of the structure to retrieve a pointer to the #GstStructure corresponding to @index. Subtracts the @subtrahend from the @minuend. <note>This function does not work reliably if optional properties for caps are included on one caps and omitted on the other.</note> #GstCaps to subtract from #GstCaps to subtract the resulting caps Modifies a pointer to a #GstCaps to point to a different #GstCaps. This function is similar to gst_caps_replace() except that it takes ownership of @new_caps. pointer to a pointer to a #GstCaps to be replaced. pointer to a #GstCaps that will replace the caps pointed to by @old_caps. %TRUE if @new_caps was different from @old_caps Converts @caps to a string representation. This string representation can be converted back to a #GstCaps by gst_caps_from_string(). For debugging purposes its easier to do something like this: |[<!-- language="C" --> GST_LOG ("caps are %" GST_PTR_FORMAT, caps); ]| This prints the caps in human readable form. The current implementation of serialization will lead to unexpected results when there are nested #GstCaps / #GstStructure deeper than one level. a #GstCaps a newly allocated string representing @caps. Discard all but the first structure from @caps. Useful when fixating. This function takes ownership of @caps and will call gst_caps_make_writable() on it if necessary, so you must not use @caps afterwards unless you keep an additional reference to it with gst_caps_ref(). the #GstCaps to truncate truncated caps Unref a #GstCaps and and free all its structures and the structures' values when the refcount reaches 0. a #GstCaps. Compare the buffer contents with @data and @size. buffer to compare data to compare to size of data to compare Compare two caps with gst_caps_is_equal and fail unless they are equal. first caps to compare second caps to compare Unref and remove all buffers that are in the global @buffers GList, emptying the list. Create an element using the factory providing the @element_name and push the @buffer_in to this element. The element should create one buffer and this will be compared with @buffer_out. We only check the caps and the data of the buffers. This function unrefs the buffers. name of the element that needs to be created push this buffer to the element the #GstCaps expected of the sinkpad of the element compare the result with this buffer the #GstCaps expected of the srcpad of the element Create an element using the factory providing the @element_name and push the buffers in @buffer_in to this element. The element should create the buffers equal to the buffers in @buffer_out. We only check the size and the data of the buffers. This function unrefs the buffers in the two lists. The last_flow_return parameter indicates the expected flow return value from pushing the final buffer in the list. This can be used to set up a test which pushes some buffers and then an invalid buffer, when the final buffer is expected to fail, for example. name of the element that needs to be created a list of buffers that needs to be pushed to the element the #GstCaps expected of the sinkpad of the element a list of buffers that we expect from the element the #GstCaps expected of the srcpad of the element the last buffer push needs to give this GstFlowReturn Unrefs @object_to_unref and checks that is has properly been destroyed. The #GObject to unref Unrefs @object_to_unref and checks that is has properly been destroyed, also checks that the other objects passed in parametter have been destroyed as a concequence of unrefing @object_to_unref. Last variable argument should be NULL. The #GObject to unref The first object that should be destroyed as a concequence of unrefing @object_to_unref. Additional object that should have been destroyed. setup an element for a filter test with mysrcpad and mysinkpad factory a new element Push stream-start, caps and segment event, which consist of the minimum required events to allow streaming. Caps is optional to allow raw src testing. If @element has more than one src or sink pad, use gst_check_setup_events_with_stream_id() instead. The src #GstPad to push on The #GstElement use to create the stream id #GstCaps in case caps event must be sent The #GstFormat of the default segment to send Push stream-start, caps and segment event, which consist of the minimum required events to allow streaming. Caps is optional to allow raw src testing. The src #GstPad to push on The #GstElement use to create the stream id #GstCaps in case caps event must be sent The #GstFormat of the default segment to send A unique identifier for the stream Does the same as #gst_check_setup_sink_pad_by_name with the <emphasis> name </emphasis> parameter equal to "src". element to setup pad on pad template a new pad that can be used to check the output of @element Creates a new sink pad (based on the given @tmpl) and links it to the given @element src pad (the pad that matches the given @name). You can set event/chain/query functions on this pad to check the output of the @element. element to setup pad on pad template Name of the @element src pad that will be linked to the sink pad that will be setup a new pad that can be used to check the output of @element element to setup pad on pad template name a new pad element to setup pad on pad template a new pad Does the same as #gst_check_setup_src_pad_by_name with the <emphasis> name </emphasis> parameter equal to "sink". element to setup pad on pad template A new pad that can be used to inject data on @element Creates a new src pad (based on the given @tmpl) and links it to the given @element sink pad (the pad that matches the given @name). Before using the src pad to push data on @element you need to call #gst_check_setup_events on the created src pad. Example of how to push a buffer on @element: |[<!-- language="C" --> static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (YOUR_CAPS_TEMPLATE_STRING) ); static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (YOUR_CAPS_TEMPLATE_STRING) ); GstElement * element = gst_check_setup_element ("element"); GstPad * mysrcpad = gst_check_setup_src_pad (element, &srctemplate); GstPad * mysinkpad = gst_check_setup_sink_pad (element, &sinktemplate); gst_pad_set_active (mysrcpad, TRUE); gst_pad_set_active (mysinkpad, TRUE); fail_unless (gst_element_set_state (element, GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing"); GstCaps * caps = gst_caps_from_string (YOUR_DESIRED_SINK_CAPS); gst_check_setup_events (mysrcpad, element, caps, GST_FORMAT_TIME); gst_caps_unref (caps); fail_unless (gst_pad_push (mysrcpad, gst_buffer_new_and_alloc(2)) == GST_FLOW_OK); ]| For very simple input/output test scenarios checkout #gst_check_element_push_buffer_list and #gst_check_element_push_buffer. element to setup src pad on pad template Name of the @element sink pad that will be linked to the src pad that will be setup A new pad that can be used to inject data on @element element to setup pad on pad template name a new pad element to setup pad on pad template a new pad Emits the "child-added" signal. the parent object the newly added child the name of the new child Emits the "child-removed" signal. the parent object the removed child the name of the old child Gets properties of the parent object and its children. the parent object name of the first property to get return location for the first property, followed optionally by more name/return location pairs, followed by %NULL Fetches a child by its number. the parent object to get the child from the child's position in the child list the child object or %NULL if not found (index too high). Unref after usage. MT safe. Looks up a child element by the given name. This virtual method has a default implementation that uses #GstObject together with gst_object_get_name(). If the interface is to be used with #GObjects, this methods needs to be overridden. the parent object to get the child from the child's name the child object or %NULL if not found. Unref after usage. MT safe. Gets the number of child objects this parent contains. the parent object the number of child objects MT safe. Gets a single property using the GstChildProxy mechanism. You are responsible for freeing it by calling g_value_unset() object to query name of the property a #GValue that should take the result. Gets properties of the parent object and its children. the object to query name of the first property to get return location for the first property, followed optionally by more name/return location pairs, followed by %NULL Looks up which object and #GParamSpec would be effected by the given @name. MT safe. child proxy object to lookup the property in name of the property to look up pointer to a #GObject that takes the real object to set property on pointer to take the #GParamSpec describing the property %TRUE if @target and @pspec could be found. %FALSE otherwise. In that case the values for @pspec and @target are not modified. Unref @target after usage. For plain GObjects @target is the same as @object. Sets properties of the parent object and its children. the parent object name of the first property to set value for the first property, followed optionally by more name/value pairs, followed by %NULL Sets a single property using the GstChildProxy mechanism. the parent object name of the property to set new #GValue for the property Sets properties of the parent object and its children. the parent object name of the first property to set value for the first property, followed optionally by more name/value pairs, followed by %NULL The time @master of the master clock and the time @slave of the slave clock are added to the list of observations. If enough observations are available, a linear regression algorithm is run on the observations and @clock is recalibrated. If this functions returns %TRUE, @r_squared will contain the correlation coefficient of the interpolation. A value of 1.0 means a perfect regression was performed. This value can be used to control the sampling frequency of the master and slave clocks. a #GstClock a time on the slave a time on the master a pointer to hold the result %TRUE if enough observations were added to run the regression algorithm. MT safe. Add a clock observation to the internal slaving algorithm the same as gst_clock_add_observation(), and return the result of the master clock estimation, without updating the internal calibration. The caller can then take the results and call gst_clock_set_calibration() with the values, or some modified version of them. a #GstClock a time on the slave a time on the master a pointer to hold the result a location to store the internal time a location to store the external time a location to store the rate numerator a location to store the rate denominator Converts the given @internal clock time to the external time, adjusting for the rate and reference time set with gst_clock_set_calibration() and making sure that the returned time is increasing. This function should be called with the clock's OBJECT_LOCK held and is mainly used by clock subclasses. This function is the reverse of gst_clock_unadjust_unlocked(). a #GstClock to use a clock time the converted time of the clock. Converts the given @internal_target clock time to the external time, using the passed calibration parameters. This function performs the same calculation as gst_clock_adjust_unlocked() when called using the current calibration parameters, but doesn't ensure a monotonically increasing result as gst_clock_adjust_unlocked() does. Note: The @clock parameter is unused and can be NULL a #GstClock to use a clock time a reference internal time a reference external time the numerator of the rate of the clock relative to its internal time the denominator of the rate of the clock the converted time of the clock. Gets the internal rate and reference time of @clock. See gst_clock_set_calibration() for more information. @internal, @external, @rate_num, and @rate_denom can be left %NULL if the caller is not interested in the values. MT safe. a #GstClock a location to store the internal time a location to store the external time a location to store the rate numerator a location to store the rate denominator Gets the current internal time of the given clock. The time is returned unadjusted for the offset and the rate. a #GstClock to query the internal time of the clock. Or GST_CLOCK_TIME_NONE when given invalid input. MT safe. Get the master clock that @clock is slaved to or %NULL when the clock is not slaved to any master clock. a #GstClock a master #GstClock or %NULL when this clock is not slaved to a master clock. Unref after usage. MT safe. Get the accuracy of the clock. The accuracy of the clock is the granularity of the values returned by gst_clock_get_time(). a #GstClock the resolution of the clock in units of #GstClockTime. MT safe. Gets the current time of the given clock. The time is always monotonically increasing and adjusted according to the current offset and rate. a #GstClock to query the time of the clock. Or GST_CLOCK_TIME_NONE when given invalid input. MT safe. Get the amount of time that master and slave clocks are sampled. a #GstClock the interval between samples. Compares the two #GstClockID instances. This function can be used as a GCompareFunc when sorting ids. A #GstClockID A #GstClockID to compare with negative value if a < b; zero if a = b; positive value if a > b MT safe. Get the time of the clock ID The #GstClockID to query the time of the given clock id. MT safe. Increase the refcount of given @id. The #GstClockID to ref The same #GstClockID with increased refcount. MT safe. Unref given @id. When the refcount reaches 0 the #GstClockID will be freed. MT safe. The #GstClockID to unref Cancel an outstanding request with @id. This can either be an outstanding async notification or a pending sync notification. After this call, @id cannot be used anymore to receive sync or async notifications, you need to create a new #GstClockID. MT safe. The id to unschedule Perform a blocking wait on @id. @id should have been created with gst_clock_new_single_shot_id() or gst_clock_new_periodic_id() and should not have been unscheduled with a call to gst_clock_id_unschedule(). If the @jitter argument is not %NULL and this function returns #GST_CLOCK_OK or #GST_CLOCK_EARLY, it will contain the difference against the clock and the time of @id when this method was called. Positive values indicate how late @id was relative to the clock (in which case this function will return #GST_CLOCK_EARLY). Negative values indicate how much time was spent waiting on the clock before this function returned. The #GstClockID to wait on a pointer that will contain the jitter, can be %NULL. the result of the blocking wait. #GST_CLOCK_EARLY will be returned if the current clock time is past the time of @id, #GST_CLOCK_OK if @id was scheduled in time. #GST_CLOCK_UNSCHEDULED if @id was unscheduled with gst_clock_id_unschedule(). MT safe. Register a callback on the given #GstClockID @id with the given function and user_data. When passing a #GstClockID with an invalid time to this function, the callback will be called immediately with a time set to GST_CLOCK_TIME_NONE. The callback will be called when the time of @id has been reached. The callback @func can be invoked from any thread, either provided by the core or from a streaming thread. The application should be prepared for this. a #GstClockID to wait on The callback function User data passed in the callback #GDestroyNotify for user_data the result of the non blocking wait. MT safe. Checks if the clock is currently synced. This returns if GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC is not set on the clock. a GstClock %TRUE if the clock is currently synced Get an ID from @clock to trigger a periodic notification. The periodic notifications will start at time @start_time and will then be fired with the given @interval. @id should be unreffed after usage. Free-function: gst_clock_id_unref The #GstClockID to get a periodic notification id from the requested start time the requested interval a #GstClockID that can be used to request the time notification. MT safe. Get a #GstClockID from @clock to trigger a single shot notification at the requested time. The single shot id should be unreffed after usage. Free-function: gst_clock_id_unref The #GstClockID to get a single shot notification from the requested time a #GstClockID that can be used to request the time notification. MT safe. Reinitializes the provided periodic @id to the provided start time and interval. Does not modify the reference count. a #GstClock a #GstClockID the requested start time the requested interval %TRUE if the GstClockID could be reinitialized to the provided @time, else %FALSE. Adjusts the rate and time of @clock. A rate of 1/1 is the normal speed of the clock. Values bigger than 1/1 make the clock go faster. @internal and @external are calibration parameters that arrange that gst_clock_get_time() should have been @external at internal time @internal. This internal time should not be in the future; that is, it should be less than the value of gst_clock_get_internal_time() when this function is called. Subsequent calls to gst_clock_get_time() will return clock times computed as follows: <programlisting> time = (internal_time - internal) * rate_num / rate_denom + external </programlisting> This formula is implemented in gst_clock_adjust_unlocked(). Of course, it tries to do the integer arithmetic as precisely as possible. Note that gst_clock_get_time() always returns increasing values so when you move the clock backwards, gst_clock_get_time() will report the previous value until the clock catches up. MT safe. a #GstClock to calibrate a reference internal time a reference external time the numerator of the rate of the clock relative to its internal time the denominator of the rate of the clock Set @master as the master clock for @clock. @clock will be automatically calibrated so that gst_clock_get_time() reports the same time as the master clock. A clock provider that slaves its clock to a master can get the current calibration values with gst_clock_get_calibration(). @master can be %NULL in which case @clock will not be slaved anymore. It will however keep reporting its time adjusted with the last configured rate and time offsets. a #GstClock a master #GstClock %TRUE if the clock is capable of being slaved to a master clock. Trying to set a master on a clock without the #GST_CLOCK_FLAG_CAN_SET_MASTER flag will make this function return %FALSE. MT safe. Set the accuracy of the clock. Some clocks have the possibility to operate with different accuracy at the expense of more resource usage. There is normally no need to change the default resolution of a clock. The resolution of a clock can only be changed if the clock has the #GST_CLOCK_FLAG_CAN_SET_RESOLUTION flag set. a #GstClock The resolution to set the new resolution of the clock. Sets @clock to synced and emits the GstClock::synced signal, and wakes up any thread waiting in gst_clock_wait_for_sync(). This function must only be called if GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC is set on the clock, and is intended to be called by subclasses only. a GstClock if the clock is synced Set the amount of time, in nanoseconds, to sample master and slave clocks a #GstClock a timeout Reinitializes the provided single shot @id to the provided time. Does not modify the reference count. a #GstClock a #GstClockID The requested time. %TRUE if the GstClockID could be reinitialized to the provided @time, else %FALSE. Converts the given @external clock time to the internal time of @clock, using the rate and reference time set with gst_clock_set_calibration(). This function should be called with the clock's OBJECT_LOCK held and is mainly used by clock subclasses. This function is the reverse of gst_clock_adjust_unlocked(). a #GstClock to use an external clock time the internal time of the clock corresponding to @external. Converts the given @external_target clock time to the internal time, using the passed calibration parameters. This function performs the same calculation as gst_clock_unadjust_unlocked() when called using the current calibration parameters. Note: The @clock parameter is unused and can be NULL a #GstClock to use a clock time a reference internal time a reference external time the numerator of the rate of the clock relative to its internal time the denominator of the rate of the clock the converted time of the clock. Waits until @clock is synced for reporting the current time. If @timeout is %GST_CLOCK_TIME_NONE it will wait forever, otherwise it will time out after @timeout nanoseconds. For asynchronous waiting, the GstClock::synced signal can be used. This returns immediately with TRUE if GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC is not set on the clock, or if the clock is already synced. a GstClock timeout for waiting or %GST_CLOCK_TIME_NONE %TRUE if waiting was successful, or %FALSE on timeout Sets the level and profile on @caps if it can be determined from @audio_config. See gst_codec_utils_aac_get_level() and gst_codec_utils_aac_get_profile() for more details on the parameters. @caps must be audio/mpeg caps with an "mpegversion" field of either 2 or 4. If mpegversion is 4, the "base-profile" field is also set in @caps. the #GstCaps to which level and profile fields are to be added a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1 (see below for a more details). Length of @audio_config in bytes %TRUE if the level and profile could be set, %FALSE otherwise. Translates the sample rate to the index corresponding to it in AAC spec. Sample rate The AAC index for this sample rate, -1 if the rate is not a valid AAC sample rate. Determines the level of a stream as defined in ISO/IEC 14496-3. For AAC LC streams, the constraints from the AAC audio profile are applied. For AAC Main, LTP, SSR and others, the Main profile is used. The @audio_config parameter follows the following format, starting from the most significant bit of the first byte: <itemizedlist> <listitem><para> Bit 0:4 contains the AudioObjectType </para></listitem> <listitem><para> Bit 5:8 contains the sample frequency index (if this is 0xf, then the next 24 bits define the actual sample frequency, and subsequent fields are appropriately shifted). </para></listitem> <listitem><para> Bit 9:12 contains the channel configuration </para></listitem> </itemizedlist> <note> HE-AAC support has not yet been implemented. </note> a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1. Length of @audio_config in bytes The level as a const string and %NULL if the level could not be determined. Returns the profile of the given AAC stream as a string. The profile is determined using the AudioObjectType field which is in the first 5 bits of @audio_config. <note> HE-AAC support has not yet been implemented. </note> a pointer to the AudioSpecificConfig as specified in the Elementary Stream Descriptor (esds) in ISO/IEC 14496-1 (see gst_codec_utils_aac_get_level() for a more details). Length of @audio_config in bytes The profile as a const string and %NULL if the profile could not be determined. Translates the sample rate index found in AAC headers to the actual sample rate. Sample rate index as from the AudioSpecificConfig (MPEG-4 container) or ADTS frame header The sample rate if @sr_idx is valid, 0 otherwise. Sets the level and profile in @caps if it can be determined from @sps. See gst_codec_utils_h264_get_level() and gst_codec_utils_h264_get_profile() for more details on the parameters. the #GstCaps to which the level and profile are to be added Pointer to the sequence parameter set for the stream. Length of the data available in @sps. %TRUE if the level and profile could be set, %FALSE otherwise. Converts the level indication (level_idc) in the stream's sequence parameter set into a string. The SPS is expected to have the same format as for gst_codec_utils_h264_get_profile(). Pointer to the sequence parameter set for the stream. Length of the data available in @sps. The level as a const string, or %NULL if there is an error. Transform a level string from the caps into the level_idc A level string from caps the level_idc or 0 if the level is unknown Converts the profile indication (profile_idc) in the stream's sequence parameter set into a string. The SPS is expected to have the following format, as defined in the H.264 specification. The SPS is viewed as a bitstream here, with bit 0 being the most significant bit of the first byte. <itemizedlist> <listitem><para>Bit 0:7 - Profile indication</para></listitem> <listitem><para>Bit 8 - constraint_set0_flag</para></listitem> <listitem><para>Bit 9 - constraint_set1_flag</para></listitem> <listitem><para>Bit 10 - constraint_set2_flag</para></listitem> <listitem><para>Bit 11 - constraint_set3_flag</para></listitem> <listitem><para>Bit 12 - constraint_set3_flag</para></listitem> <listitem><para>Bit 13:15 - Reserved</para></listitem> <listitem><para>Bit 16:24 - Level indication</para></listitem> </itemizedlist> Pointer to the sequence parameter set for the stream. Length of the data available in @sps. The profile as a const string, or %NULL if there is an error. Sets the level, tier and profile in @caps if it can be determined from @profile_tier_level. See gst_codec_utils_h265_get_level(), gst_codec_utils_h265_get_tier() and gst_codec_utils_h265_get_profile() for more details on the parameters. the #GstCaps to which the level, tier and profile are to be added Pointer to the profile_tier_level struct Length of the data available in @profile_tier_level. %TRUE if the level, tier, profile could be set, %FALSE otherwise. Converts the level indication (general_level_idc) in the stream's profile_tier_level structure into a string. The profiel_tier_level is expected to have the same format as for gst_codec_utils_h264_get_profile(). Pointer to the profile_tier_level structure for the stream Length of the data available in @profile_tier_level. The level as a const string, or %NULL if there is an error. Transform a level string from the caps into the level_idc A level string from caps the level_idc or 0 if the level is unknown Converts the profile indication (general_profile_idc) in the stream's profile_level_tier structure into a string. The profile_tier_level is expected to have the following format, as defined in the H.265 specification. The profile_tier_level is viewed as a bitstream here, with bit 0 being the most significant bit of the first byte. <itemizedlist> <listitem><para>Bit 0:1 - general_profile_space</para></listitem> <listitem><para>Bit 2 - general_tier_flag</para></listitem> <listitem><para>Bit 3:7 - general_profile_idc</para></listitem> <listitem><para>Bit 8:39 - gernal_profile_compatibility_flags</para></listitem> <listitem><para>Bit 40 - general_progressive_source_flag</para></listitem> <listitem><para>Bit 41 - general_interlaced_source_flag</para></listitem> <listitem><para>Bit 42 - general_non_packed_constraint_flag</para></listitem> <listitem><para>Bit 43 - general_frame_only_constraint_flag</para></listitem> <listitem><para>Bit 44:87 - general_reserved_zero_44bits</para></listitem> <listitem><para>Bit 88:95 - general_level_idc</para></listitem> </itemizedlist> Pointer to the profile_tier_level structure for the stream. Length of the data available in @profile_tier_level The profile as a const string, or %NULL if there is an error. Converts the tier indication (general_tier_flag) in the stream's profile_tier_level structure into a string. The profile_tier_level is expected to have the same format as for gst_codec_utils_h264_get_profile(). Pointer to the profile_tier_level structure for the stream. Length of the data available in @profile_tier_level. The tier as a const string, or %NULL if there is an error. Sets the level and profile in @caps if it can be determined from @vis_obj_seq. See gst_codec_utils_mpeg4video_get_level() and gst_codec_utils_mpeg4video_get_profile() for more details on the parameters. the #GstCaps to which the level and profile are to be added Pointer to the visual object sequence for the stream. Length of the data available in @sps. %TRUE if the level and profile could be set, %FALSE otherwise. Converts the level indication in the stream's visual object sequence into a string. @vis_obj_seq is expected to be the data following the visual object sequence start code. Only the first byte (profile_and_level_indication) is used. Pointer to the visual object sequence for the stream. Length of the data available in @sps. The level as a const string, or NULL if there is an error. Converts the profile indication in the stream's visual object sequence into a string. @vis_obj_seq is expected to be the data following the visual object sequence start code. Only the first byte (profile_and_level_indication) is used. Pointer to the visual object sequence for the stream. Length of the data available in @sps. The profile as a const string, or NULL if there is an error. Creates Opus caps from the given parameters. the sample rate the number of channels the channel mapping family the number of independent streams the number of stereo streams the mapping between the streams The #GstCaps. Creates Opus caps from the given OpusHead @header and comment header @comments. OpusHead header Comment header or NULL The #GstCaps. Creates OpusHead header from the given parameters. the sample rate the number of channels the channel mapping family the number of independent streams the number of stereo streams the mapping between the streams Pre-skip in 48kHz samples or 0 Output gain or 0 The #GstBuffer containing the OpusHead. Parses Opus caps and fills the different fields with defaults if possible. the #GstCaps to which the level and profile are to be added the sample rate the number of channels the channel mapping family the number of independent streams the number of stereo streams the mapping between the streams %TRUE if parsing was successful, %FALSE otherwise. Parses the OpusHead header. the OpusHead #GstBuffer the sample rate the number of channels the channel mapping family the number of independent streams the number of stereo streams the mapping between the streams Pre-skip in 48kHz samples or 0 Output gain or 0 %TRUE if parsing was successful, %FALSE otherwise. Add a pad to the collection of collect pads. The pad has to be a sinkpad. The refcount of the pad is incremented. Use gst_collect_pads_remove_pad() to remove the pad from the collection again. You specify a size for the returned #GstCollectData structure so that you can use it to store additional information. You can also specify a #GstCollectDataDestroyNotify that will be called just before the #GstCollectData structure is freed. It is passed the pointer to the structure and should free any custom memory and resources allocated for it. Keeping a pad locked in waiting state is only relevant when using the default collection algorithm (providing the oldest buffer). It ensures a buffer must be available on this pad for a collection to take place. This is of typical use to a muxer element where non-subtitle streams should always be in waiting state, e.g. to assure that caps information is available on all these streams when initial headers have to be written. The pad will be automatically activated in push mode when @pads is started. MT safe. the collectpads to use the pad to add the size of the returned #GstCollectData structure function to be called before the returned #GstCollectData structure is freed whether to lock this pad in usual waiting state a new #GstCollectData to identify the new pad. Or %NULL if wrong parameters are supplied. Query how much bytes can be read from each queued buffer. This means that the result of this call is the maximum number of bytes that can be read from each of the pads. This function should be called with @pads STREAM_LOCK held, such as in the callback. MT safe. the collectpads to query The maximum number of bytes queued on all pads. This function returns 0 if a pad has no queued buffer. Convenience clipping function that converts incoming buffer's timestamp to running time, or clips the buffer if outside configured segment. Since 1.6, this clipping function also sets the DTS parameter of the GstCollectData structure. This version of the running time DTS can be negative. G_MININT64 is used to indicate invalid value. the collectpads to use collect data of corresponding pad buffer being clipped output buffer with running time, or NULL if clipped user data (unused) Default #GstCollectPads event handling that elements should always chain up to to ensure proper operation. Element might however indicate event should not be forwarded downstream. the collectpads to use collect data of corresponding pad event being processed process but do not send event downstream Find the oldest/best pad, i.e. pad holding the oldest buffer and and return the corresponding #GstCollectData and buffertime. This function should be called with STREAM_LOCK held, such as in the callback. the collectpads to use returns the collectdata for earliest data returns the earliest available buffertime Flush @size bytes from the pad @data. This function should be called with @pads STREAM_LOCK held, such as in the callback. MT safe. the collectpads to query the data to use the number of bytes to flush The number of bytes flushed This can be less than @size and is 0 if the pad was end-of-stream. Create a new instance of #GstCollectPads. MT safe. a new #GstCollectPads, or %NULL in case of an error. Peek at the buffer currently queued in @data. This function should be called with the @pads STREAM_LOCK held, such as in the callback handler. MT safe. the collectpads to peek the data to use The buffer in @data or %NULL if no buffer is queued. should unref the buffer after usage. Pop the buffer currently queued in @data. This function should be called with the @pads STREAM_LOCK held, such as in the callback handler. MT safe. the collectpads to pop the data to use The buffer in @data or %NULL if no buffer was queued. You should unref the buffer after usage. Default #GstCollectPads query handling that elements should always chain up to to ensure proper operation. Element might however indicate query should not be forwarded downstream. the collectpads to use collect data of corresponding pad query being processed process but do not send event downstream Get a subbuffer of @size bytes from the given pad @data. This function should be called with @pads STREAM_LOCK held, such as in the callback. MT safe. the collectpads to query the data to use the number of bytes to read A sub buffer. The size of the buffer can be less that requested. A return of %NULL signals that the pad is end-of-stream. Unref the buffer after use. Remove a pad from the collection of collect pads. This function will also free the #GstCollectData and all the resources that were allocated with gst_collect_pads_add_pad(). The pad will be deactivated automatically when @pads is stopped. MT safe. the collectpads to use the pad to remove %TRUE if the pad could be removed. Set the callback function and user data that will be called with the oldest buffer when all pads have been collected, or %NULL on EOS. If a buffer is passed, the callback owns a reference and must unref it. MT safe. the collectpads to use the function to set user data passed to the function Install a clipping function that is called right after a buffer is received on a pad managed by @pads. See #GstCollectPadsClipFunction for more info. the collectpads to use clip function to install user data to pass to @clip_func Set the timestamp comparison function. MT safe. the pads to use the function to set user data passed to the function Set the event callback function and user data that will be called when collectpads has received an event originating from one of the collected pads. If the event being processed is a serialized one, this callback is called with @pads STREAM_LOCK held, otherwise not. As this lock should be held when calling a number of CollectPads functions, it should be acquired if so (unusually) needed. MT safe. the collectpads to use the function to set user data passed to the function Install a flush function that is called when the internal state of all pads should be flushed as part of flushing seek handling. See #GstCollectPadsFlushFunction for more info. the collectpads to use flush function to install user data to pass to @func Change the flushing state of all the pads in the collection. No pad is able to accept anymore data when @flushing is %TRUE. Calling this function with @flushing %FALSE makes @pads accept data again. Caller must ensure that downstream streaming (thread) is not blocked, e.g. by sending a FLUSH_START downstream. MT safe. the collectpads to use desired state of the pads CollectPads provides a default collection algorithm that will determine the oldest buffer available on all of its pads, and then delegate to a configured callback. However, if circumstances are more complicated and/or more control is desired, this sets a callback that will be invoked instead when all the pads added to the collection have buffers queued. Evidently, this callback is not compatible with gst_collect_pads_set_buffer_function() callback. If this callback is set, the former will be unset. MT safe. the collectpads to use the function to set user data passed to the function Set the query callback function and user data that will be called after collectpads has received a query originating from one of the collected pads. If the query being processed is a serialized one, this callback is called with @pads STREAM_LOCK held, otherwise not. As this lock should be held when calling a number of CollectPads functions, it should be acquired if so (unusually) needed. MT safe. the collectpads to use the function to set user data passed to the function Sets a pad to waiting or non-waiting mode, if at least this pad has not been created with locked waiting state, in which case nothing happens. This function should be called with @pads STREAM_LOCK held, such as in the callback. MT safe. the collectpads the data to use boolean indicating whether this pad should operate in waiting or non-waiting mode Default #GstCollectPads event handling for the src pad of elements. Elements can chain up to this to let flushing seek event handling be done by #GstCollectPads. the #GstCollectPads to use src #GstPad that received the event event being processed Starts the processing of data in the collect_pads. MT safe. the collectpads to use Stops the processing of data in the collect_pads. this function will also unblock any blocking operations. MT safe. the collectpads to use Get a subbuffer of @size bytes from the given pad @data. Flushes the amount of read bytes. This function should be called with @pads STREAM_LOCK held, such as in the callback. MT safe. the collectpads to query the data to use the number of bytes to read A sub buffer. The size of the buffer can be less that requested. A return of %NULL signals that the pad is end-of-stream. Unref the buffer after use. Get the #GstColorBalanceType of this implementation. The #GstColorBalance implementation A the #GstColorBalanceType. Retrieve the current value of the indicated channel, between min_value and max_value. See Also: The #GstColorBalanceChannel.min_value and #GstColorBalanceChannel.max_value members of the #GstColorBalanceChannel object. A #GstColorBalance instance A #GstColorBalanceChannel instance The current value of the channel. Retrieve a list of the available channels. A #GstColorBalance instance A GList containing pointers to #GstColorBalanceChannel objects. The list is owned by the #GstColorBalance instance and must not be freed. Sets the current value of the channel to the passed value, which must be between min_value and max_value. See Also: The #GstColorBalanceChannel.min_value and #GstColorBalanceChannel.max_value members of the #GstColorBalanceChannel object. A #GstColorBalance instance A #GstColorBalanceChannel instance The new value for the channel. A helper function called by implementations of the GstColorBalance interface. It fires the #GstColorBalance::value-changed signal on the instance, and the #GstColorBalanceChannel::value-changed signal on the channel object. A #GstColorBalance instance A #GstColorBalanceChannel whose value has changed The new value of the channel Sets up a data probe on the given pad which will raise assertions if the data flow is inconsistent. The #GstStreamConsistency handle The #GstPad on which the dataflow will be checked. %TRUE if the pad was added Frees the allocated data and probes associated with @consist. The #GstStreamConsistency to free. Sets up a data probe on the given pad which will raise assertions if the data flow is inconsistent. The #GstPad on which the dataflow will be checked. A #GstStreamConsistency structure used to track data flow. Reset the stream checker's internal variables. The #GstStreamConsistency to reset. Creates a copy of the context. Returns a copy of the context. the context to copy a new copy of @context. MT safe Get the type of @context. The #GstContext. The type of the context. Access the structure of the context. The #GstContext. The structure of the context. The structure is still owned by the context, which means that you should not modify it, free it and that the pointer becomes invalid when you free the context. Checks if @context has @context_type. The #GstContext. Context type to check. %TRUE if @context has @context_type. Check if @context is persistent. The #GstContext. %TRUE if the context is persistent. Tests if you can safely write into a context's structure or validly modify the seqnum and timestamp fields. a #GstContext Checks if a context is writable. If not, a writable copy is made and returned. the context to make writable a context (possibly a duplicate) that is writable. MT safe Create a new context. Context type Persistent context The new context. Convenience macro to increase the reference count of the context. the context to ref @context (for convenience when doing assignments) Modifies a pointer to a #GstContext to point to a different #GstContext. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old context is unreffed, the new one is reffed). Either @new_context or the #GstContext pointed to by @old_context may be %NULL. pointer to a pointer to a #GstContext to be replaced. pointer to a #GstContext that will replace the context pointed to by @old_context. %TRUE if @new_context was different from @old_context Convenience macro to decrease the reference count of the context, possibly freeing it. the context to unref Get a writable version of the structure. The #GstContext. The structure of the context. The structure is still owned by the context, which means that you should not free it and that the pointer becomes invalid when you free the context. This function checks if @context is writable. Gets a number of #GValues for the given controlled property starting at the requested time. The array @values need to hold enough space for @n_values of #GValue. This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample. the control binding the time that should be processed the time spacing between subsequent values the number of values array to put control-values in %TRUE if the given array could be filled, %FALSE otherwise Gets the value for the given controlled property at the requested time. the control binding the time the control-change should be read from the GValue of the property at the given time, or %NULL if the property isn't controlled. Gets a number of values for the given controlled property starting at the requested time. The array @values need to hold enough space for @n_values of the same type as the objects property's type. This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample. The values are unboxed and ready to be used. The similar function gst_control_binding_get_g_value_array() returns the array as #GValues and is more suitable for bindings. the control binding the time that should be processed the time spacing between subsequent values the number of values array to put control-values in %TRUE if the given array could be filled, %FALSE otherwise Check if the control binding is disabled. the control binding %TRUE if the binding is inactive This function is used to disable a control binding for some time, i.e. gst_object_sync_values() will do nothing. the control binding boolean that specifies whether to disable the controller or not. Sets the property of the @object, according to the #GstControlSources that handle them and for the given timestamp. If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly. the control binding the object that has controlled properties the time that should be processed the last time this was called %TRUE if the controller value could be applied to the object property, %FALSE otherwise Gets the value for this #GstControlSource at a given timestamp. the #GstControlSource object the time for which the value should be returned the value %FALSE if the value couldn't be returned, %TRUE otherwise. Gets an array of values for for this #GstControlSource. Values that are undefined contain NANs. the #GstControlSource object the first timestamp the time steps the number of values to fetch array to put control-values in %TRUE if the given array could be filled, %FALSE otherwise Pop and unref the head-most #GstMiniObject with the given #GType. The #GstDataQueue to drop an item from. The #GType of the item to drop. %TRUE if an element was removed. Flushes all the contents of the @queue. Any call to #gst_data_queue_push and #gst_data_queue_pop will be released. MT safe. a #GstDataQueue. Get the current level of the queue. The #GstDataQueue the location to store the result Queries if there are any items in the @queue. MT safe. a #GstDataQueue. %TRUE if @queue is empty. Queries if @queue is full. This check will be done using the #GstDataQueueCheckFullFunction registered with @queue. MT safe. a #GstDataQueue. %TRUE if @queue is full. Inform the queue that the limits for the fullness check have changed and that any blocking gst_data_queue_push() should be unblocked to recheck the limits. The #GstDataQueue Creates a new #GstDataQueue. If @fullcallback or @emptycallback are supplied, then the #GstDataQueue will call the respective callback to signal full or empty condition. If the callbacks are NULL the #GstDataQueue will instead emit 'full' and 'empty' signals. the callback used to tell if the element considers the queue full or not. the callback which will be called when the queue is considered full. the callback which will be called when the queue is considered empty. a #gpointer that will be passed to the @checkfull, @fullcallback, and @emptycallback callbacks. a new #GstDataQueue. Retrieves the first @item available on the @queue without removing it. If the queue is currently empty, the call will block until at least one item is available, OR the @queue is set to the flushing state. MT safe. a #GstDataQueue. pointer to store the returned #GstDataQueueItem. %TRUE if an @item was successfully retrieved from the @queue. Retrieves the first @item available on the @queue. If the queue is currently empty, the call will block until at least one item is available, OR the @queue is set to the flushing state. MT safe. a #GstDataQueue. pointer to store the returned #GstDataQueueItem. %TRUE if an @item was successfully retrieved from the @queue. Pushes a #GstDataQueueItem (or a structure that begins with the same fields) on the @queue. If the @queue is full, the call will block until space is available, OR the @queue is set to flushing state. MT safe. Note that this function has slightly different semantics than gst_pad_push() and gst_pad_push_event(): this function only takes ownership of @item and the #GstMiniObject contained in @item if the push was successful. If %FALSE is returned, the caller is responsible for freeing @item and its contents. a #GstDataQueue. a #GstDataQueueItem. %TRUE if the @item was successfully pushed on the @queue. Pushes a #GstDataQueueItem (or a structure that begins with the same fields) on the @queue. It ignores if the @queue is full or not and forces the @item to be pushed anyway. MT safe. Note that this function has slightly different semantics than gst_pad_push() and gst_pad_push_event(): this function only takes ownership of @item and the #GstMiniObject contained in @item if the push was successful. If %FALSE is returned, the caller is responsible for freeing @item and its contents. a #GstDataQueue. a #GstDataQueueItem. %TRUE if the @item was successfully pushed on the @queue. Sets the queue to flushing state if @flushing is %TRUE. If set to flushing state, any incoming data on the @queue will be discarded. Any call currently blocking on #gst_data_queue_push or #gst_data_queue_pop will return straight away with a return value of %FALSE. While the @queue is in flushing state, all calls to those two functions will return %FALSE. MT Safe. a #GstDataQueue. a #gboolean stating if the queue will be flushing or not. Returns the day of the month of this #GstDateTime. Call gst_date_time_has_day before, to avoid warnings. a #GstDateTime The day of this #GstDateTime Retrieves the hour of the day represented by @datetime in the gregorian calendar. The return is in the range of 0 to 23. Call gst_date_time_has_haur before, to avoid warnings. a #GstDateTime the hour of the day Retrieves the fractional part of the seconds in microseconds represented by @datetime in the gregorian calendar. a #GstDateTime the microsecond of the second Retrieves the minute of the hour represented by @datetime in the gregorian calendar. Call gst_date_time_has_minute before, to avoid warnings. a #GstDateTime the minute of the hour Returns the month of this #GstDateTime. January is 1, February is 2, etc.. Call gst_date_time_has_month before, to avoid warnings. a #GstDateTime The month of this #GstDateTime Retrieves the second of the minute represented by @datetime in the gregorian calendar. Call gst_date_time_has_second before, to avoid warnings. a #GstDateTime the second represented by @datetime Retrieves the offset from UTC in hours that the timezone specified by @datetime represents. Timezones ahead (to the east) of UTC have positive values, timezones before (to the west) of UTC have negative values. If @datetime represents UTC time, then the offset is zero. a #GstDateTime the offset from UTC in hours Returns the year of this #GstDateTime Call gst_date_time_has_year before, to avoid warnings. a #GstDateTime The year of this #GstDateTime a #GstDateTime %TRUE if @datetime<!-- -->'s day field is set, otherwise %FALSE a #GstDateTime %TRUE if @datetime<!-- -->'s month field is set, otherwise %FALSE a #GstDateTime %TRUE if @datetime<!-- -->'s second field is set, otherwise %FALSE a #GstDateTime %TRUE if @datetime<!-- -->'s hour and minute fields are set, otherwise %FALSE a #GstDateTime %TRUE if @datetime<!-- -->'s year field is set (which should always be the case), otherwise %FALSE Creates a new #GstDateTime using the date and times in the gregorian calendar in the supplied timezone. @year should be from 1 to 9999, @month should be from 1 to 12, @day from 1 to 31, @hour from 0 to 23, @minutes and @seconds from 0 to 59. Note that @tzoffset is a float and was chosen so for being able to handle some fractional timezones, while it still keeps the readability of representing it in hours for most timezones. If value is -1 then all over value will be ignored. For example if @month == -1, then #GstDateTime will created only for @year. If @day == -1, then #GstDateTime will created for @year and @month and so on. Free-function: gst_date_time_unref Offset from UTC in hours. the gregorian year the gregorian month the day of the gregorian month the hour of the day the minute of the hour the second of the minute the newly created #GstDateTime Creates a new #GstDateTime from a #GDateTime object. Free-function: gst_date_time_unref the #GDateTime. The new #GstDateTime takes ownership. a newly created #GstDateTime, or %NULL on error Tries to parse common variants of ISO-8601 datetime strings into a #GstDateTime. Possible input formats are (for example): 2012-06-30T22:46:43Z, 2012, 2012-06, 2012-06-30, 2012-06-30T22:46:43-0430, 2012-06-30T22:46Z, 2012-06-30T22:46-0430, 2012-06-30 22:46, 2012-06-30 22:46:43, 2012-06-00, 2012-00-00, 2012-00-30, 22:46:43Z, 22:46Z, 22:46:43-0430, 22:46-0430, 22:46:30, 22:46 If no date is provided, it is assumed to be "today" in the timezone provided (if any), otherwise UTC. Free-function: gst_date_time_unref ISO 8601-formatted datetime string. a newly created #GstDateTime, or %NULL on error Creates a new #GstDateTime using the time since Jan 1, 1970 specified by @secs. The #GstDateTime is in the local timezone. Free-function: gst_date_time_unref seconds from the Unix epoch the newly created #GstDateTime Creates a new #GstDateTime using the time since Jan 1, 1970 specified by @secs. The #GstDateTime is in the UTC timezone. Free-function: gst_date_time_unref seconds from the Unix epoch the newly created #GstDateTime Creates a new #GstDateTime using the date and times in the gregorian calendar in the local timezone. @year should be from 1 to 9999, @month should be from 1 to 12, @day from 1 to 31, @hour from 0 to 23, @minutes and @seconds from 0 to 59. If @month is -1, then the #GstDateTime created will only contain @year, and all other fields will be considered not set. If @day is -1, then the #GstDateTime created will only contain @year and @month and all other fields will be considered not set. If @hour is -1, then the #GstDateTime created will only contain @year and @month and @day, and the time fields will be considered not set. In this case @minute and @seconds should also be -1. Free-function: gst_date_time_unref the gregorian year the gregorian month, or -1 the day of the gregorian month, or -1 the hour of the day, or -1 the minute of the hour, or -1 the second of the minute, or -1 the newly created #GstDateTime Creates a new #GstDateTime representing the current date and time. Free-function: gst_date_time_unref the newly created #GstDateTime which should be freed with gst_date_time_unref(). Creates a new #GstDateTime that represents the current instant at Universal coordinated time. Free-function: gst_date_time_unref the newly created #GstDateTime which should be freed with gst_date_time_unref(). Creates a new #GstDateTime using the date and times in the gregorian calendar in the local timezone. @year should be from 1 to 9999. Free-function: gst_date_time_unref the gregorian year the newly created #GstDateTime Creates a new #GstDateTime using the date and times in the gregorian calendar in the local timezone. @year should be from 1 to 9999, @month should be from 1 to 12. If value is -1 then all over value will be ignored. For example if @month == -1, then #GstDateTime will created only for @year. Free-function: gst_date_time_unref the gregorian year the gregorian month the newly created #GstDateTime Creates a new #GstDateTime using the date and times in the gregorian calendar in the local timezone. @year should be from 1 to 9999, @month should be from 1 to 12, @day from 1 to 31. If value is -1 then all over value will be ignored. For example if @month == -1, then #GstDateTime will created only for @year. If @day == -1, then #GstDateTime will created for @year and @month and so on. Free-function: gst_date_time_unref the gregorian year the gregorian month the day of the gregorian month the newly created #GstDateTime Atomically increments the reference count of @datetime by one. a #GstDateTime the reference @datetime Creates a new #GDateTime from a fully defined #GstDateTime object. Free-function: g_date_time_unref GstDateTime. a newly created #GDateTime, or %NULL on error Create a minimal string compatible with ISO-8601. Possible output formats are (for example): 2012, 2012-06, 2012-06-23, 2012-06-23T23:30Z, 2012-06-23T23:30+0100, 2012-06-23T23:30:59Z, 2012-06-23T23:30:59+0100 GstDateTime. a newly allocated string formatted according to ISO 8601 and only including the datetime fields that are valid, or %NULL in case there was an error. The string should be freed with g_free(). Atomically decrements the reference count of @datetime by one. When the reference count reaches zero, the structure is freed. a #GstDateTime Adds the logging function to the list of logging functions. Be sure to use #G_GNUC_NO_INSTRUMENT on that function, it is needed. the function to use user data called when @user_data is not used anymore Removes and frees the category and all associated resources. #GstDebugCategory to free. Returns the color of a debug category used when printing output in this category. a #GstDebugCategory to get the color of. the color of the category. Returns the description of a debug category. a #GstDebugCategory to get the description of. the description of the category. Returns the name of a debug category. a #GstDebugCategory to get name of. the name of the category. Returns the threshold of a #GstDebugCategory. a #GstDebugCategory to get threshold of. the #GstDebugLevel that is used as threshold. Resets the threshold of the category to the default level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message. Use this function to set the threshold back to where it was after using gst_debug_category_set_threshold(). a #GstDebugCategory to reset threshold of. Sets the threshold of the category to the given level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message. <note><para> Do not use this function in production code, because other functions may change the threshold of categories as side effect. It is however a nice function to use when debugging (even from gdb). </para></note> a #GstDebugCategory to set threshold of. the #GstDebugLevel threshold to set. Constructs a string that can be used for getting the desired color in color terminals. You need to free the string after use. the color info a string containing the color definition Constructs an integer that can be used for getting the desired color in windows' terminals (cmd.exe). As there is no mean to underline, we simply ignore this attribute. This function returns 0 on non-windows machines. the color info an integer containing the color definition 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. the list of debug categories Changes the coloring mode for debug output. see @GstDebugColorMode for possible values. Returns the default threshold that is used for new categories. the default threshold level Checks if debugging output is activated. %TRUE, if debugging is activated Checks if the debugging output should be colored. %TRUE, if the debug output should be colored. Get the string representation of a debugging level the level to get the name for the name Logs the given message using the currently registered debugging handlers. category to log level of the message is in the file that emitted the message, usually the __FILE__ identifier the function that emitted the message the line from that the message was emitted, usually __LINE__ the object this message relates to, or %NULL if none a printf style format string optional arguments for the format 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); category to log level of the message the file that emitted the message, usually the __FILE__ identifier the function that emitted the message the line from that the message was emitted, usually __LINE__ the actual message the object this message relates to, or %NULL if none the FILE* to log to Logs the given message using the currently registered debugging handlers. category to log level of the message is in the file that emitted the message, usually the __FILE__ identifier the function that emitted the message the line from that the message was emitted, usually __LINE__ the object this message relates to, or %NULL if none a printf style format string optional arguments for the format Gets the string representation of a #GstDebugMessage. This function is used in debug handlers to extract the message. a debug message the string representation of a #GstDebugMessage. If GST_ENABLE_FUNC_INSTRUMENTATION is defined a stacktrace is available for gstreamer code, which can be printed with this function. Removes all registered instances of the given logging functions. the log function to remove How many instances of the function were removed Removes all registered instances of log functions with the given user data. user data of the log function to remove How many instances of the function were removed If activated, debugging messages are sent to the debugging handlers. It makes sense to deactivate it for speed issues. <note><para>This function is not threadsafe. It makes sense to only call it during initialization.</para></note> Whether to use debugging output or not Changes the coloring mode for debug output. This function may be called before gst_init(). The coloring mode for debug output. See @GstDebugColorMode. Changes the coloring mode for debug output. This function may be called before gst_init(). The coloring mode for debug output. One of the following: "on", "auto", "off", "disable", "unix". 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(). Whether to use colored output or not Sets the default threshold to the given level and updates all categories to use this threshold. This function may be called before gst_init(). level to set Sets all categories which match the given glob style pattern to the given level. name of the categories to set level to set them to 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. comma-separated list of "category:level" pairs to be used as debug logging levels %TRUE to clear all previously-set debug levels before setting new thresholds %FALSE if adding the threshold described by @list to the one already set. Resets all categories with the given name back to the default level. name of the categories to set 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. Creates the element with all of the required paramaters set to use this device. a #GstDevice name of new element, or %NULL to automatically create a unique name. a new #GstElement configured to use this device Getter for the #GstCaps that this device supports. a #GstDevice The #GstCaps supported by this device. Unref with gst_caps_unref() when done. Gets the "class" of a device. This is a "/" separated list of classes that represent this device. They are a subset of the classes of the #GstDeviceProvider that produced this device. a #GstDevice The device class. Free with g_free() after use. Gets the user-friendly name of the device. a #GstDevice The device name. Free with g_free() after use. Gets the extra properties of a device. a #GstDevice The extra properties or %NULL when there are none. Free with gst_structure_free() after use. Check if @device matches all of the given classes a #GstDevice a "/"-separated list of device classes to match, only match if all classes are matched %TRUE if @device matches. Check if @factory matches all of the given classes a #GstDevice a %NULL terminated array of classes to match, only match if all classes are matched %TRUE if @device matches. Adds a filter for which #GstDevice will be monitored, any device that matches all these classes and the #GstCaps will be returned. If this function is called multiple times to add more filters, each will be matched independently. That is, adding more filters will not further restrict what devices are matched. The #GstCaps supported by the device as returned by gst_device_get_caps() are not intersected with caps filters added using this function. Filters must be added before the #GstDeviceMonitor is started. a device monitor device classes to use as filter or %NULL for any class the #GstCaps to filter or %NULL for ANY The id of the new filter or 0 if no provider matched the filter's classes. Gets the #GstBus of this #GstDeviceMonitor a #GstDeviceProvider a #GstBus Gets a list of devices from all of the relevant monitors. This may actually probe the hardware if the monitor is not currently started. A #GstDeviceProvider a #GList of #GstDevice Get a list of the currently selected device provider factories. This a #GstDeviceMonitor A list of device provider factory names that are currently being monitored by @monitor or %NULL when nothing is being monitored. Get if @monitor is curretly showing all devices, even those from hidden providers. a #GstDeviceMonitor %TRUE when all devices will be shown. Create a new #GstDeviceMonitor a new device monitor. Removes a filter from the #GstDeviceMonitor using the id that was returned by gst_device_monitor_add_filter(). a device monitor the id of the filter %TRUE of the filter id was valid, %FALSE otherwise Set if all devices should be visible, even those devices from hidden providers. Setting @show_all to true might show some devices multiple times. a #GstDeviceMonitor show all devices Starts monitoring the devices, one this has succeeded, the %GST_MESSAGE_DEVICE_ADDED and %GST_MESSAGE_DEVICE_REMOVED messages will be emitted on the bus when the list of devices changes. A #GstDeviceMonitor %TRUE if the device monitoring could be started Stops monitoring the devices. A #GstDeviceProvider If this function returns %TRUE, then the device provider can provider if devices are added or removed. Otherwise, it can only do static probing. a #GstDeviceProvider %TRUE if the #GstDeviceProvider support providering, %FALSE otherwise Set @key with @value as metadata in @klass. class to set metadata for the key to set the value to set Set @key with @value as metadata in @klass. Same as gst_device_provider_class_add_metadata(), but @value must be a static string or an inlined string, as it will not be copied. (GStreamer plugins will be made resident once loaded, so this function can be used even from dynamically loaded plugins.) class to set metadata for the key to set the value to set Get metadata with @key in @klass. class to get metadata for the key to get the metadata for @key. Sets the detailed information for a #GstDeviceProviderClass. <note>This function is for use in _class_init functions only.</note> class to set metadata for The long English name of the device provider. E.g. "File Sink" String describing the type of device provider, 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" Sentence describing the purpose of the device provider. E.g: "Write stream to a file" Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>" Sets the detailed information for a #GstDeviceProviderClass. <note>This function is for use in _class_init functions only.</note> Same as gst_device_provider_class_set_metadata(), but @longname, @classification, @description, and @author 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.) class to set metadata for The long English name of the element. E.g. "File Sink" 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" Sentence describing the purpose of the element. E.g: "Write stream to a file" Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>" Posts a message on the provider's #GstBus to inform applications that a new device has been added. This is for use by subclasses. a #GstDeviceProvider a #GstDevice that has been added Posts a message on the provider's #GstBus to inform applications that a device has been removed. This is for use by subclasses. a #GstDeviceProvider a #GstDevice that has been removed Search for an device provider factory of the given name. Refs the returned device provider factory; caller is responsible for unreffing. name of factory to find #GstDeviceProviderFactory if found, %NULL otherwise Returns the device provider of the type defined by the given device providerfactory. factory to instantiate the #GstDeviceProvider or %NULL if the device provider couldn't be created Returns the device provider of the type defined by the given device provider factory. a named factory to instantiate a #GstDeviceProvider or %NULL if unable to create device provider Get the #GType for device providers managed by this factory. The type can only be retrieved if the device provider factory is loaded, which can be assured with gst_plugin_feature_load(). factory to get managed #GType from the #GType for device providers managed by this factory. Get the metadata on @factory with @key. a #GstDeviceProviderFactory a key the metadata with @key on @factory or %NULL when there was no metadata with the given @key. Get the available keys for the metadata on @factory. a #GstDeviceProviderFactory a %NULL-terminated array of key strings, or %NULL when there is no metadata. Free with g_strfreev() when no longer needed. Check if @factory matches all of the given @classes a #GstDeviceProviderFactory a "/" separate list of classes to match, only match if all classes are matched %TRUE if @factory matches or if @classes is %NULL. Check if @factory matches all of the given classes a #GstDeviceProviderFactory a %NULL terminated array of classes to match, only match if all classes are matched %TRUE if @factory matches. Get a list of factories with a rank greater or equal to @minrank. The list of factories is returned by decreasing rank. Minimum rank a #GList of #GstDeviceProviderFactory device providers. Use gst_plugin_feature_list_free() after usage. Gets the #GstBus of this #GstDeviceProvider a #GstDeviceProvider a #GstBus Gets a list of devices that this provider understands. This may actually probe the hardware if the provider is not currently started. A #GstDeviceProvider a #GList of #GstDevice Retrieves the factory that was used to create this device provider. a #GstDeviceProvider to request the device provider factory of. the #GstDeviceProviderFactory used for creating this device provider. no refcounting is needed. Get the provider factory names of the #GstDeviceProvider instances that are hidden by @provider. a #GstDeviceProvider a list of hidden providers factory names or %NULL when nothing is hidden by @provider. Free with g_strfreev. Make @provider hide the devices from the factory with @name. This function is used when @provider will also provide the devices reported by provider factory @name. A monitor should stop monitoring the device provider with @name to avoid duplicate devices. a #GstDeviceProvider a provider factory name Create a new device providerfactory capable of instantiating objects of the @type and add the factory to @plugin. #GstPlugin to register the device provider with, or %NULL for a static device provider. name of device providers of this type rank of device provider (higher rank means more importance when autoplugging) GType of device provider to register %TRUE, if the registering succeeded, %FALSE on error Starts providering the devices. This will cause #GST_MESSAGE_DEVICE_ADDED and #GST_MESSAGE_DEVICE_REMOVED messages to be posted on the provider's bus when devices are added or removed from the system. Since the #GstDeviceProvider is a singleton, gst_device_provider_start() may already have been called by another user of the object, gst_device_provider_stop() needs to be called the same number of times. A #GstDeviceProvider %TRUE if the device providering could be started Decreases the use-count by one. If the use count reaches zero, this #GstDeviceProvider will stop providering the devices. This needs to be called the same number of times that gst_device_provider_start() was called. A #GstDeviceProvider Make @provider unhide the devices from factory @name. This function is used when @provider will no longer provide the devices reported by provider factory @name. A monitor should start monitoring the devices from provider factory @name in order to see all devices again. a #GstDeviceProvider a provider factory name Tries to reconfigure an existing element to use the device. If this function fails, then one must destroy the element and create a new one using gst_device_create_element(). Note: This should only be implemented for elements can change their device in the PLAYING state. a #GstDevice a #GstElement %TRUE if the element could be reconfigured to use this device, %FALSE otherwise. Create a new control-binding that attaches the #GstControlSource to the #GObject property. the object of the property the property-name to attach the control source the control source the new #GstDirectControlBinding Create a new control-binding that attaches the #GstControlSource to the #GObject property. the object of the property the property-name to attach the control source the control source the new #GstDirectControlBinding a #GstDiscovererAudioInfo the average or nominal bitrate of the stream in bits/second. a #GstDiscovererAudioInfo the number of channels in the stream. a #GstDiscovererAudioInfo the number of bits used per sample in each channel. a #GstDiscovererAudioInfo the language of the stream, or NULL if unknown. a #GstDiscovererAudioInfo the maximum bitrate of the stream in bits/second. a #GstDiscovererAudioInfo the sample rate of the stream in Hertz. a #GstDiscovererStreamInfo the list of #GstDiscovererStreamInfo this container stream offers. Free with gst_discoverer_stream_info_list_free() after usage. Synchronously discovers the given @uri. A copy of @uri will be made internally, so the caller can safely g_free() afterwards. A #GstDiscoverer The URI to run on. If an error occurred, this field will be filled in. the result of the scanning. Can be %NULL if an error occurred. Appends the given @uri to the list of URIs to discoverer. The actual discovery of the @uri will only take place if gst_discoverer_start() has been called. A copy of @uri will be made internally, so the caller can safely g_free() afterwards. A #GstDiscoverer the URI to add. %TRUE if the @uri was successfully appended to the list of pending uris, else %FALSE a #GstDiscovererInfo A copy of the #GstDiscovererInfo Parses a #GVariant as produced by gst_discoverer_info_to_variant() back to a #GstDiscovererInfo. A #GVariant to deserialize into a #GstDiscovererInfo. A newly-allocated #GstDiscovererInfo. Finds all the #GstDiscovererAudioInfo contained in @info a #GstDiscovererInfo A #GList of matching #GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free(). Finds all the #GstDiscovererContainerInfo contained in @info a #GstDiscovererInfo A #GList of matching #GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free(). a #GstDiscovererInfo the duration of the URI in #GstClockTime (nanoseconds). Deprecated: This functions is deprecated since version 1.4, use #gst_discoverer_info_get_missing_elements_installer_details a #GstDiscovererInfo Miscellaneous information stored as a #GstStructure (for example: information about missing plugins). If you wish to use the #GstStructure after the life-time of @info, you will need to copy it. Get the installer details for missing elements a #GstDiscovererStreamInfo to retrieve installer detail for the missing element An array of strings containing informations about how to install the various missing elements for @info to be usable. If you wish to use the strings after the life-time of @info, you will need to copy them. a #GstDiscovererInfo the result of the discovery as a #GstDiscovererResult. a #GstDiscovererInfo the whether the URI is seekable. a #GstDiscovererInfo the structure (or topology) of the URI as a #GstDiscovererStreamInfo. This structure can be traversed to see the original hierarchy. Unref with gst_discoverer_stream_info_unref() after usage. a #GstDiscovererInfo the list of all streams contained in the #info. Free after usage with gst_discoverer_stream_info_list_free(). Finds the #GstDiscovererStreamInfo contained in @info that match the given @streamtype. a #GstDiscovererInfo a #GType derived from #GstDiscovererStreamInfo A #GList of matching #GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free(). Finds all the #GstDiscovererSubtitleInfo contained in @info a #GstDiscovererInfo A #GList of matching #GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free(). a #GstDiscovererInfo all tags contained in the URI. If you wish to use the tags after the life-time of @info, you will need to copy them. a #GstDiscovererInfo TOC contained in the URI. If you wish to use the TOC after the life-time of @info, you will need to copy it. a #GstDiscovererInfo the URI to which this information corresponds to. Copy it if you wish to use it after the life-time of @info. Finds all the #GstDiscovererVideoInfo contained in @info a #GstDiscovererInfo A #GList of matching #GstDiscovererStreamInfo. The caller should free it with gst_discoverer_stream_info_list_free(). Increments the reference count of @info. a #GstDiscovererInfo the same #GstDiscovererInfo object Serializes @info to a #GVariant that can be parsed again through gst_discoverer_info_from_variant(). Note that any #GstToc (s) that might have been discovered will not be serialized for now. A #GstDiscovererInfo A combination of #GstDiscovererSerializeFlags to specify what needs to be serialized. A newly-allocated #GVariant representing @info. Decrements the reference count of @info. a #GstDiscovererInfo Creates a new #GstDiscoverer with the provided timeout. timeout per file, in nanoseconds. Allowed are values between one second (#GST_SECOND) and one hour (3600 * #GST_SECOND) a pointer to a #GError. can be %NULL The new #GstDiscoverer. If an error occurred when creating the discoverer, @err will be set accordingly and %NULL will be returned. If @err is set, the caller must free it when no longer needed using g_error_free(). Allow asynchronous discovering of URIs to take place. A #GMainLoop must be available for #GstDiscoverer to properly work in asynchronous mode. A #GstDiscoverer Stop the discovery of any pending URIs and clears the list of pending URIS (if any). A #GstDiscoverer a #GstDiscovererStreamInfo the #GstCaps of the stream. Unref with #gst_caps_unref after usage. Deprecated: This functions is deprecated since version 1.4, use #gst_discoverer_info_get_missing_elements_installer_details a #GstDiscovererStreamInfo additional information regarding the stream (for example codec version, profile, etc..). If you wish to use the #GstStructure after the life-time of @info you will need to copy it. a #GstDiscovererStreamInfo the next #GstDiscovererStreamInfo in a chain. %NULL for final streams. Unref with #gst_discoverer_stream_info_unref after usage. a #GstDiscovererStreamInfo the previous #GstDiscovererStreamInfo in a chain. %NULL for starting points. Unref with #gst_discoverer_stream_info_unref after usage. a #GstDiscovererStreamInfo the stream ID of this stream. If you wish to use the stream ID after the life-time of @info you will need to copy it. a #GstDiscovererStreamInfo a human readable name for the stream type of the given @info (ex : "audio", "container",...). a #GstDiscovererStreamInfo the tags contained in this stream. If you wish to use the tags after the life-time of @info you will need to copy them. a #GstDiscovererStreamInfo the TOC contained in this stream. If you wish to use the TOC after the life-time of @info you will need to copy it. Decrements the reference count of all contained #GstDiscovererStreamInfo and fress the #GList. a #GList of #GstDiscovererStreamInfo Increments the reference count of @info. a #GstDiscovererStreamInfo the same #GstDiscovererStreamInfo object Decrements the reference count of @info. a #GstDiscovererStreamInfo a #GstDiscovererSubtitleInfo the language of the stream, or NULL if unknown. a #GstDiscovererVideoInfo the average or nominal bitrate of the video stream in bits/second. a #GstDiscovererVideoInfo the depth in bits of the video stream. a #GstDiscovererVideoInfo the framerate of the video stream (denominator). a #GstDiscovererVideoInfo the framerate of the video stream (numerator). a #GstDiscovererVideoInfo the height of the video stream in pixels. a #GstDiscovererVideoInfo the maximum bitrate of the video stream in bits/second. a #GstDiscovererVideoInfo the Pixel Aspect Ratio (PAR) of the video stream (denominator). a #GstDiscovererVideoInfo the Pixel Aspect Ratio (PAR) of the video stream (numerator). a #GstDiscovererVideoInfo the width of the video stream in pixels. a #GstDiscovererVideoInfo #TRUE if the video stream corresponds to an image (i.e. only contains one frame). a #GstDiscovererVideoInfo %TRUE if the stream is interlaced, else %FALSE. Return a %GstMemory that wraps a dmabuf file descriptor. allocator to be used for this memory dmabuf file descriptor memory size a GstMemory based on @allocator. When the buffer will be released dmabuf allocator will close the @fd. The memory is only mmapped on gst_buffer_mmap() request. Return a new dmabuf allocator. a new dmabuf allocator, or NULL if the allocator isn't available. Use gst_object_unref() to release the allocator after usage Return the file descriptor associated with @mem. the memory to get the file descriptor the file descriptor associated with the memory, or -1. The file descriptor is still owned by the GstMemory. Use dup to take a copy if you intend to use it beyond the lifetime of this GstMemory. Abort the state change of the element. This function is used by elements that do asynchronous state changes and find out something is wrong. This function should be called with the STATE_LOCK held. MT safe. a #GstElement to abort the state of. Adds a pad (link point) to @element. @pad's parent will be set to @element; see gst_object_set_parent() for refcounting information. Pads are not automatically activated so elements should perform the needed steps to activate the pad in case this pad is added in the PAUSED or PLAYING state. See gst_pad_set_active() for more information about activating pads. The pad and the element should be unlocked when calling this function. This function will emit the #GstElement::pad-added signal on the element. a #GstElement to add the pad to. the #GstPad to add to the element. %TRUE if the pad could be added. This function can fail when a pad with the same name already existed or the pad already had another parent. MT safe. Perform @transition on @element. This function must be called with STATE_LOCK held and is mainly used internally. a #GstElement the requested transition the #GstStateChangeReturn of the state transition. Set @key with @value as metadata in @klass. class to set metadata for the key to set the value to set Adds a padtemplate to an element class. This is mainly used in the _class_init functions of classes. If a pad template with the same name as an already existing one is added the old one is replaced by the new one. the #GstElementClass to add the pad template to. a #GstPadTemplate to add to the element class. Set @key with @value as metadata in @klass. Same as gst_element_class_add_metadata(), but @value must be a static string or an inlined string, as it will not be copied. (GStreamer plugins will be made resident once loaded, so this function can be used even from dynamically loaded plugins.) class to set metadata for the key to set the value to set Adds a pad template to an element class based on the static pad template @templ. This is mainly used in the _class_init functions of element implementations. If a pad template with the same name already exists, the old one is replaced by the new one. the #GstElementClass to add the pad template to. #GstStaticPadTemplate to add as pad template to the element class. Get metadata with @key in @klass. class to get metadata for the key to get the metadata for @key. Retrieves a padtemplate from @element_class with the given name. <note>If you use this function in the #GInstanceInitFunc of an object class that has subclasses, make sure to pass the g_class parameter of the #GInstanceInitFunc here.</note> a #GstElementClass to get the pad template of. the name of the #GstPadTemplate to get. the #GstPadTemplate with the given name, or %NULL if none was found. No unreferencing is necessary. Retrieves a list of the pad templates associated with @element_class. The list must not be modified by the calling code. <note>If you use this function in the #GInstanceInitFunc of an object class that has subclasses, make sure to pass the g_class parameter of the #GInstanceInitFunc here.</note> a #GstElementClass to get pad templates of. the #GList of pad templates. Sets the detailed information for a #GstElementClass. <note>This function is for use in _class_init functions only.</note> class to set metadata for The long English name of the element. E.g. "File Sink" 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" Sentence describing the purpose of the element. E.g: "Write stream to a file" Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>" Sets the detailed information for a #GstElementClass. <note>This function is for use in _class_init functions only.</note> Same as gst_element_class_set_metadata(), but @longname, @classification, @description, and @author 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.) class to set metadata for The long English name of the element. E.g. "File Sink" 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" Sentence describing the purpose of the element. E.g: "Write stream to a file" Name and contact details of the author(s). Use \n to separate multiple author metadata. E.g: "Joe Bloggs <joe.blogs at foo.com>" Commit the state change of the element and proceed to the next pending state if any. This function is used by elements that do asynchronous state changes. The core will normally call this method automatically when an element returned %GST_STATE_CHANGE_SUCCESS from the state change function. If after calling this method the element still has not reached the pending state, the next state change is performed. This method is used internally and should normally not be called by plugins or applications. a #GstElement to continue the state change of. The previous state return value The result of the commit state change. MT safe. Creates a pad for each pad template that is always available. This function is only useful during object initialization of subclasses of #GstElement. a #GstElement to create pads for Checks if the factory can sink all possible capabilities. factory to query the caps to check %TRUE if the caps are fully compatible. Checks if the factory can sink any possible capability. factory to query the caps to check %TRUE if the caps have a common subset. Checks if the factory can src all possible capabilities. factory to query the caps to check %TRUE if the caps are fully compatible. Checks if the factory can src any possible capability. factory to query the caps to check %TRUE if the caps have a common subset. Create a new element of the type defined by the given elementfactory. It will be given the name supplied, since all elements require a name as their first argument. factory to instantiate name of new element, or %NULL to automatically create a unique name new #GstElement or %NULL if the element couldn't be created Search for an element factory of the given name. Refs the returned element factory; caller is responsible for unreffing. name of factory to find #GstElementFactory if found, %NULL otherwise Get the #GType for elements managed by this factory. The type can only be retrieved if the element factory is loaded, which can be assured with gst_plugin_feature_load(). factory to get managed #GType from the #GType for elements managed by this factory or 0 if the factory is not loaded. Get the metadata on @factory with @key. a #GstElementFactory a key the metadata with @key on @factory or %NULL when there was no metadata with the given @key. Get the available keys for the metadata on @factory. a #GstElementFactory a %NULL-terminated array of key strings, or %NULL when there is no metadata. Free with g_strfreev() when no longer needed. Gets the number of pad_templates in this factory. a #GstElementFactory the number of pad_templates Gets the #GList of #GstStaticPadTemplate for this factory. a #GstElementFactory the static pad templates Gets a %NULL-terminated array of protocols this element supports or %NULL if no protocols are supported. You may not change the contents of the returned array, as it is still owned by the element factory. Use g_strdupv() to make a copy of the protocol string array if you need to. a #GstElementFactory the supported protocols or %NULL Gets the type of URIs the element supports or #GST_URI_UNKNOWN if none. a #GstElementFactory type of URIs this element supports Check if @factory implements the interface with name @interfacename. a #GstElementFactory an interface name %TRUE when @factory implement the interface. Filter out all the elementfactories in @list that can handle @caps in the given direction. If @subsetonly is %TRUE, then only the elements whose pads templates are a complete superset of @caps will be returned. Else any element whose pad templates caps can intersect with @caps will be returned. a #GList of #GstElementFactory to filter a #GstCaps a #GstPadDirection to filter on whether to filter on caps subsets or not. a #GList of #GstElementFactory elements that match the given requisites. Use #gst_plugin_feature_list_free after usage. Get a list of factories that match the given @type. Only elements with a rank greater or equal to @minrank will be returned. The list of factories is returned by decreasing rank. a #GstElementFactoryListType Minimum rank a #GList of #GstElementFactory elements. Use gst_plugin_feature_list_free() after usage. Check if @factory is of the given types. a #GstElementFactory a #GstElementFactoryListType %TRUE if @factory is of @type. Create a new element of the type defined by the given element factory. If name is %NULL, then the element will receive a guaranteed unique name, consisting of the element factory name and a number. If name is given, it will be given the name supplied. a named factory to instantiate name of new element, or %NULL to automatically create a unique name new #GstElement or %NULL if unable to create element Returns the base time of the element. The base time is the absolute time of the clock when this element was last put to PLAYING. Subtracting the base time from the clock time gives the running time of the element. a #GstElement. the base time of the element. MT safe. Returns the bus of the element. Note that only a #GstPipeline will provide a bus for the application. a #GstElement to get the bus of. the element's #GstBus. unref after usage. MT safe. Gets the currently configured clock of the element. This is the clock as was last set with gst_element_set_clock(). Elements in a pipeline will only have their clock set when the pipeline is in the PLAYING state. a #GstElement to get the clock of. the #GstClock of the element. unref after usage. MT safe. Looks for an unlinked pad to which the given pad can link. It is not guaranteed that linking the pads will work, though it should work in most cases. This function will first attempt to find a compatible unlinked ALWAYS pad, and if none can be found, it will request a compatible REQUEST pad by looking at the templates of @element. a #GstElement in which the pad should be found. the #GstPad to find a compatible one for. the #GstCaps to use as a filter. the #GstPad to which a link can be made, or %NULL if one cannot be found. gst_object_unref() after usage. Retrieves a pad template from @element that is compatible with @compattempl. Pads from compatible templates can be linked together. a #GstElement to get a compatible pad template for the #GstPadTemplate to find a compatible template for a compatible #GstPadTemplate, or %NULL if none was found. No unreferencing is necessary. Gets the context with @context_type set on the element or NULL. MT safe. a #GstElement to get the context of. a name of a context to retrieve A #GstContext or NULL Gets the context with @context_type set on the element or NULL. a #GstElement to get the context of. a name of a context to retrieve A #GstContext or NULL Gets the contexts set on the element. MT safe. a #GstElement to set the context of. List of #GstContext Retrieves the factory that was used to create this element. a #GstElement to request the element factory of. the #GstElementFactory used for creating this element. no refcounting is needed. Gets the index from the element. a #GstElement. a #GstIndex or %NULL when no index was set on the element. unref after usage. MT safe. Returns a copy of the name of @elem. Caller should g_free() the return value after usage. For a nameless element, this returns %NULL, which you can safely g_free() as well. a #GstElement to get the name of @elem. the name of @elem. g_free() after usage. MT safe. Gets a pad from @element described by @templ. If the presence of @templ is #GST_PAD_REQUEST, requests a new pad. Can return %NULL for #GST_PAD_SOMETIMES templates. a #GstElement. a #GstPadTemplate belonging to @element. the #GstPad, or %NULL if one could not be found or created. Get the parent of an element. a #GstElement to get the parent of. the parent of an element. Retrieves a pad from the element by name (e.g. "src_\%d"). This version only retrieves request pads. The pad should be released with gst_element_release_request_pad(). This method is slower than manually getting the pad template and calling gst_element_request_pad() if the pads should have a specific name (e.g. @name is "src_1" instead of "src_\%u"). a #GstElement to find a request pad of. the name of the request #GstPad to retrieve. requested #GstPad if found, otherwise %NULL. Release after usage. Returns the start time of the element. The start time is the running time of the clock when this element was last put to PAUSED. Usually the start_time is managed by a toplevel element such as #GstPipeline. MT safe. a #GstElement. the start time of the element. Gets the state of the element. For elements that performed an ASYNC state change, as reported by gst_element_set_state(), this function will block up to the specified timeout value for the state change to complete. If the element completes the state change or goes into an error, this function returns immediately with a return value of %GST_STATE_CHANGE_SUCCESS or %GST_STATE_CHANGE_FAILURE respectively. For elements that did not return %GST_STATE_CHANGE_ASYNC, this function returns the current and pending state immediately. This function returns %GST_STATE_CHANGE_NO_PREROLL if the element successfully changed its state but is not able to provide data yet. This mostly happens for live sources that only produce data in %GST_STATE_PLAYING. While the state change return is equivalent to %GST_STATE_CHANGE_SUCCESS, it is returned to the application to signal that some sink elements might not be able to complete their state change because an element is not producing data to complete the preroll. When setting the element to playing, the preroll will complete and playback will start. a #GstElement to get the state of. a pointer to #GstState to hold the state. Can be %NULL. a pointer to #GstState to hold the pending state. Can be %NULL. a #GstClockTime to specify the timeout for an async state change or %GST_CLOCK_TIME_NONE for infinite timeout. %GST_STATE_CHANGE_SUCCESS if the element has no more pending state and the last state change succeeded, %GST_STATE_CHANGE_ASYNC if the element is still performing a state change or %GST_STATE_CHANGE_FAILURE if the last state change failed. MT safe. Retrieves a pad from @element by name. This version only retrieves already-existing (i.e. 'static') pads. a #GstElement to find a static pad of. the name of the static #GstPad to retrieve. the requested #GstPad if found, otherwise %NULL. unref after usage. MT safe. Checks if the state of an element is locked. If the state of an element is locked, state changes of the parent don't affect the element. This way you can leave currently unused elements inside bins. Just lock their state before changing the state from #GST_STATE_NULL. MT safe. a #GstElement. %TRUE, if the element's state is locked. Retrieves an iterator of @element's pads. The iterator should be freed after usage. Also more specialized iterators exists such as gst_element_iterate_src_pads() or gst_element_iterate_sink_pads(). The order of pads returned by the iterator will be the order in which the pads were added to the element. a #GstElement to iterate pads of. the #GstIterator of #GstPad. MT safe. Retrieves an iterator of @element's sink pads. The order of pads returned by the iterator will be the order in which the pads were added to the element. a #GstElement. the #GstIterator of #GstPad. MT safe. Retrieves an iterator of @element's source pads. The order of pads returned by the iterator will be the order in which the pads were added to the element. a #GstElement. the #GstIterator of #GstPad. MT safe. Links @src to @dest. The link must be from source to destination; the other direction will not be tried. The function looks for existing pads that aren't linked yet. It will request new pads if necessary. Such pads need to be released manually when unlinking. If multiple links are possible, only one is established. Make sure you have added your elements to a bin or pipeline with gst_bin_add() before trying to link them. a #GstElement containing the source pad. the #GstElement containing the destination pad. %TRUE if the elements could be linked, %FALSE otherwise. Links @src to @dest using the given caps as filtercaps. The link must be from source to destination; the other direction will not be tried. The function looks for existing pads that aren't linked yet. It will request new pads if necessary. If multiple links are possible, only one is established. Make sure you have added your elements to a bin or pipeline with gst_bin_add() before trying to link them. a #GstElement containing the source pad. the #GstElement containing the destination pad. the #GstCaps to filter the link, or %NULL for no filter. %TRUE if the pads could be linked, %FALSE otherwise. Chain together a series of elements. Uses gst_element_link(). Make sure you have added your elements to a bin or pipeline with gst_bin_add() before trying to link them. the first #GstElement in the link chain. the second #GstElement in the link chain. the %NULL-terminated list of elements to link in order. %TRUE on success, %FALSE otherwise. Links the two named pads of the source and destination elements. Side effect is that if one of the pads has no parent, it becomes a child of the parent of the other element. If they have different parents, the link fails. a #GstElement containing the source pad. the name of the #GstPad in source element or %NULL for any pad. the #GstElement containing the destination pad. the name of the #GstPad in destination element, or %NULL for any pad. %TRUE if the pads could be linked, %FALSE otherwise. Links the two named pads of the source and destination elements. Side effect is that if one of the pads has no parent, it becomes a child of the parent of the other element. If they have different parents, the link fails. If @caps is not %NULL, makes sure that the caps of the link is a subset of @caps. a #GstElement containing the source pad. the name of the #GstPad in source element or %NULL for any pad. the #GstElement containing the destination pad. the name of the #GstPad in destination element or %NULL for any pad. the #GstCaps to filter the link, or %NULL for no filter. %TRUE if the pads could be linked, %FALSE otherwise. Links the two named pads of the source and destination elements. Side effect is that if one of the pads has no parent, it becomes a child of the parent of the other element. If they have different parents, the link fails. Calling gst_element_link_pads_full() with @flags == %GST_PAD_LINK_CHECK_DEFAULT is the same as calling gst_element_link_pads() and the recommended way of linking pads with safety checks applied. This is a convenience function for gst_pad_link_full(). a #GstElement containing the source pad. the name of the #GstPad in source element or %NULL for any pad. the #GstElement containing the destination pad. the name of the #GstPad in destination element, or %NULL for any pad. the #GstPadLinkCheck to be performed when linking pads. %TRUE if the pads could be linked, %FALSE otherwise. Brings the element to the lost state. The current state of the element is copied to the pending state so that any call to gst_element_get_state() will return %GST_STATE_CHANGE_ASYNC. An ASYNC_START message is posted. If the element was PLAYING, it will go to PAUSED. The element will be restored to its PLAYING state by the parent pipeline when it prerolls again. This is mostly used for elements that lost their preroll buffer in the %GST_STATE_PAUSED or %GST_STATE_PLAYING state after a flush, they will go to their pending state again when a new preroll buffer is queued. This function can only be called when the element is currently not in error or an async state change. This function is used internally and should normally not be called from plugins or applications. a #GstElement the state is lost of Creates an element for handling the given URI. Whether to create a source or a sink URI to create an element for Name of created element, can be %NULL. address where to store error information, or %NULL. a new element or %NULL if none could be created Post an error, warning or info message on the bus from inside an element. @type must be of #GST_MESSAGE_ERROR, #GST_MESSAGE_WARNING or #GST_MESSAGE_INFO. MT safe. a #GstElement to send message from the #GstMessageType the GStreamer GError domain this message belongs to the GError code belonging to the domain an allocated text string to be used as a replacement for the default message connected to code, or %NULL an allocated debug message to be used as a replacement for the default debugging information, or %NULL the source code file where the error was generated the source code function where the error was generated the source code line where the error was generated Use this function to signal that the element does not expect any more pads to show up in the current pipeline. This function should be called whenever pads have been added by the element itself. Elements with #GST_PAD_SOMETIMES pad templates use this in combination with autopluggers to figure out that the element is done initializing its pads. This function emits the #GstElement::no-more-pads signal. MT safe. a #GstElement Post a message on the element's #GstBus. This function takes ownership of the message; if you want to access the message after this call, you should add an additional reference before calling. a #GstElement posting the message a #GstMessage to post %TRUE if the message was successfully posted. The function returns %FALSE if the element did not have a bus. MT safe. Get the clock provided by the given element. <note>An element is only required to provide a clock in the PAUSED state. Some elements can provide a clock in other states.</note> a #GstElement to query the GstClock provided by the element or %NULL if no clock could be provided. Unref after usage. MT safe. Performs a query on the given element. For elements that don't implement a query handler, this function forwards the query to a random srcpad or to the peer of a random linked sinkpad of this element. Please note that some queries might need a running pipeline to work. a #GstElement to perform the query on. the #GstQuery. %TRUE if the query could be performed. MT safe. Queries an element to convert @src_val in @src_format to @dest_format. a #GstElement to invoke the convert query on. a #GstFormat to convert from. a value to convert. the #GstFormat to convert to. a pointer to the result. %TRUE if the query could be performed. Queries an element (usually top-level pipeline or playbin element) for the total stream duration in nanoseconds. This query will only work once the pipeline is prerolled (i.e. reached PAUSED or PLAYING state). The application will receive an ASYNC_DONE message on the pipeline bus when that is the case. If the duration changes for some reason, you will get a DURATION_CHANGED message on the pipeline bus, in which case you should re-query the duration using this function. a #GstElement to invoke the duration query on. the #GstFormat requested A location in which to store the total duration, or %NULL. %TRUE if the query could be performed. Queries an element (usually top-level pipeline or playbin element) for the stream position in nanoseconds. This will be a value between 0 and the stream duration (if the stream duration is known). This query will usually only work once the pipeline is prerolled (i.e. reached PAUSED or PLAYING state). The application will receive an ASYNC_DONE message on the pipeline bus when that is the case. If one repeatedly calls this function one can also create a query and reuse it in gst_element_query(). a #GstElement to invoke the position query on. the #GstFormat requested a location in which to store the current position, or %NULL. %TRUE if the query could be performed. Create a new elementfactory capable of instantiating objects of the @type and add the factory to @plugin. #GstPlugin to register the element with, or %NULL for a static element. name of elements of this type rank of element (higher rank means more importance when autoplugging) GType of element to register %TRUE, if the registering succeeded, %FALSE on error Makes the element free the previously requested pad as obtained with gst_element_request_pad(). This does not unref the pad. If the pad was created by using gst_element_request_pad(), gst_element_release_request_pad() needs to be followed by gst_object_unref() to free the @pad. MT safe. a #GstElement to release the request pad of. the #GstPad to release. Removes @pad from @element. @pad will be destroyed if it has not been referenced elsewhere using gst_object_unparent(). This function is used by plugin developers and should not be used by applications. Pads that were dynamically requested from elements with gst_element_request_pad() should be released with the gst_element_release_request_pad() function instead. Pads are not automatically deactivated so elements should perform the needed steps to deactivate the pad in case this pad is removed in the PAUSED or PLAYING state. See gst_pad_set_active() for more information about deactivating pads. The pad and the element should be unlocked when calling this function. This function will emit the #GstElement::pad-removed signal on the element. a #GstElement to remove pad from. the #GstPad to remove from the element. %TRUE if the pad could be removed. Can return %FALSE if the pad does not belong to the provided element. MT safe. Retrieves a request pad from the element according to the provided template. Pad templates can be looked up using gst_element_factory_get_static_pad_templates(). The pad should be released with gst_element_release_request_pad(). a #GstElement to find a request pad of. a #GstPadTemplate of which we want a pad of. the name of the request #GstPad to retrieve. Can be %NULL. the caps of the pad we want to request. Can be %NULL. requested #GstPad if found, otherwise %NULL. Release after usage. Sends a seek event to an element. See gst_event_new_seek() for the details of the parameters. The seek event is sent to the element using gst_element_send_event(). MT safe. a #GstElement to send the event to. The new playback rate The format of the seek values The optional seek flags. The type and flags for the new start position The value of the new start position The type and flags for the new stop position The value of the new stop position %TRUE if the event was handled. Flushing seeks will trigger a preroll, which will emit %GST_MESSAGE_ASYNC_DONE. Simple API to perform a seek on the given element, meaning it just seeks to the given position relative to the start of the stream. For more complex operations like segment seeks (e.g. for looping) or changing the playback rate or seeking relative to the last configured playback segment you should use gst_element_seek(). In a completely prerolled PAUSED or PLAYING pipeline, seeking is always guaranteed to return %TRUE on a seekable media type or %FALSE when the media type is certainly not seekable (such as a live stream). Some elements allow for seeking in the READY state, in this case they will store the seek event and execute it when they are put to PAUSED. If the element supports seek in READY, it will always return %TRUE when it receives the event in the READY state. a #GstElement to seek on a #GstFormat to execute the seek in, such as #GST_FORMAT_TIME seek options; playback applications will usually want to use GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT here position to seek to (relative to the start); if you are doing a seek in #GST_FORMAT_TIME this value is in nanoseconds - multiply with #GST_SECOND to convert seconds to nanoseconds or with #GST_MSECOND to convert milliseconds to nanoseconds. %TRUE if the seek operation succeeded. Flushing seeks will trigger a preroll, which will emit %GST_MESSAGE_ASYNC_DONE. Sends an event to an element. If the element doesn't implement an event handler, the event will be pushed on a random linked sink pad for downstream events or a random linked source pad for upstream events. This function takes ownership of the provided event so you should gst_event_ref() it if you want to reuse the event after this call. MT safe. a #GstElement to send the event to. the #GstEvent to send to the element. %TRUE if the event was handled. Events that trigger a preroll (such as flushing seeks and steps) will emit %GST_MESSAGE_ASYNC_DONE. Set the base time of an element. See gst_element_get_base_time(). MT safe. a #GstElement. the base time to set. Sets the bus of the element. Increases the refcount on the bus. For internal use only, unless you're testing elements. MT safe. a #GstElement to set the bus of. the #GstBus to set. Sets the clock for the element. This function increases the refcount on the clock. Any previously set clock on the object is unreffed. a #GstElement to set the clock for. the #GstClock to set for the element. %TRUE if the element accepted the clock. An element can refuse a clock when it, for example, is not able to slave its internal clock to the @clock or when it requires a specific clock to operate. MT safe. Sets the context of the element. Increases the refcount of the context. MT safe. a #GstElement to set the context of. the #GstContext to set. Set @index on the element. The refcount of the index will be increased, any previously set index is unreffed. MT safe. a #GstElement. a #GstIndex. Locks the state of an element, so state changes of the parent don't affect this element anymore. MT safe. a #GstElement %TRUE to lock the element's state %TRUE if the state was changed, %FALSE if bad parameters were given or the elements state-locking needed no change. Sets the name of the element, getting rid of the old name if there was one. a #GstElement to set the name of. the new name Sets the parent of an element. a #GstElement to set the parent of. the new parent #GstObject of the element. Set the start time of an element. The start time of the element is the running time of the element when it last went to the PAUSED state. In READY or after a flushing seek, it is set to 0. Toplevel elements like #GstPipeline will manage the start_time and base_time on its children. Setting the start_time to #GST_CLOCK_TIME_NONE on such a toplevel element will disable the distribution of the base_time to the children and can be useful if the application manages the base_time itself, for example if you want to synchronize capture from multiple pipelines, and you can also ensure that the pipelines have the same clock. MT safe. a #GstElement. the base time to set. Sets the state of the element. This function will try to set the requested state by going through all the intermediary states and calling the class's state change function for each. This function can return #GST_STATE_CHANGE_ASYNC, in which case the element will perform the remainder of the state change asynchronously in another thread. An application can use gst_element_get_state() to wait for the completion of the state change or it can wait for a %GST_MESSAGE_ASYNC_DONE or %GST_MESSAGE_STATE_CHANGED on the bus. State changes to %GST_STATE_READY or %GST_STATE_NULL never return #GST_STATE_CHANGE_ASYNC. a #GstElement to change state of. the element's new #GstState. Result of the state change using #GstStateChangeReturn. MT safe. Gets a string representing the given state change result. a #GstStateChangeReturn to get the name of. a string with the name of the state result. Gets a string representing the given state. a #GstState to get the name of. a string with the name of the state. Tries to change the state of the element to the same as its parent. If this function returns %FALSE, the state of element is undefined. a #GstElement. %TRUE, if the element's state could be synced to the parent's state. MT safe. Unlinks all source pads of the source element with all sink pads of the sink element to which they are linked. If the link has been made using gst_element_link(), it could have created an requestpad, which has to be released using gst_element_release_request_pad(). the source #GstElement to unlink. the sink #GstElement to unlink. Unlinks a series of elements. Uses gst_element_unlink(). the first #GstElement in the link chain. the second #GstElement in the link chain. the %NULL-terminated list of elements to unlink in order. Unlinks the two named pads of the source and destination elements. This is a convenience function for gst_pad_unlink(). a (transfer none): #GstElement containing the source pad. the name of the #GstPad in source element. a #GstElement containing the destination pad. the name of the #GstPad in destination element. Creates a new #GstEncodingAudioProfile All provided allocatable arguments will be internally copied, so can be safely freed/unreferenced after calling this method. the #GstCaps the preset(s) to use on the encoder, can be #NULL the #GstCaps used to restrict the input to the encoder, can be NULL. See gst_encoding_profile_get_restriction() for more details. the number of time this stream must be used. 0 means any number of times (including never) the newly created #GstEncodingAudioProfile. Add a #GstEncodingProfile to the list of profiles handled by @container. No copy of @profile will be made, if you wish to use it elsewhere after this method you should increment its reference count. the #GstEncodingContainerProfile to use the #GstEncodingProfile to add. %TRUE if the @stream was properly added, else %FALSE. Checks if @container contains a #GstEncodingProfile identical to @profile. a #GstEncodingContainerProfile a #GstEncodingProfile %TRUE if @container contains a #GstEncodingProfile identical to @profile, else %FALSE. a #GstEncodingContainerProfile the list of contained #GstEncodingProfile. Creates a new #GstEncodingContainerProfile. The name of the container profile, can be %NULL The description of the container profile, can be %NULL The format to use for this profile The preset to use for this profile. The newly created #GstEncodingContainerProfile. List all available #GstEncodingTarget for the specified category, or all categories if @categoryname is %NULL. The category, for ex: #GST_ENCODING_CATEGORY_DEVICE. Can be %NULL. The list of #GstEncodingTarget Lists all #GstEncodingTarget categories present on disk. A list of #GstEncodingTarget categories. Find the #GstEncodingProfile with the specified name and category. The name of the target The name of the profile, if %NULL provided, it will default to the encoding profile called `default`. The target category. Can be %NULL The matching #GstEncodingProfile or %NULL. Creates a #GstEncodingProfile matching the formats from the given #GstDiscovererInfo. Streams other than audio or video (eg, subtitles), are currently ignored. The #GstDiscovererInfo to read from The new #GstEncodingProfile or %NULL. Get whether the format that has been negotiated in at some point can be renegotiated later during the encoding. a #GstEncodingProfile a #GstEncodingProfile the description of the profile, can be %NULL. a #GstEncodingProfile Whther @profile is enabled or not a #GstEncodingProfile a suitable file extension for @profile, or NULL. a #GstEncodingProfile the #GstCaps corresponding to the media format used in the profile. Unref after usage. Computes the full output caps that this @profile will be able to consume. a #GstEncodingProfile The full caps the given @profile can consume. Call gst_caps_unref() when you are done with the caps. a #GstEncodingProfile the name of the profile, can be %NULL. a #GstEncodingProfile The number of times the profile is used in its parent container profile. If 0, it is not a mandatory stream. a #GstEncodingProfile the name of the #GstPreset to be used in the profile. This is the name that has been set when saving the preset. a #GstEncodingProfile the name of the #GstPreset factory to be used in the profile. a #GstEncodingProfile The restriction #GstCaps to apply before the encoder that will be used in the profile. The fields present in restriction caps are properties of the raw stream (that is before encoding), such as height and width for video and depth and sampling rate for audio. Does not apply to #GstEncodingContainerProfile (since there is no corresponding raw stream). Can be %NULL. Unref after usage. a #GstEncodingProfile the human-readable name of the type of @profile. Checks whether the two #GstEncodingProfile are equal a #GstEncodingProfile a #GstEncodingProfile %TRUE if @a and @b are equal, else %FALSE. Increases the reference count of the @profile. a #GstEncodingProfile Sets whether the format that has been negotiated in at some point can be renegotiated later during the encoding. a #GstEncodingProfile Whether the format that has been negotiated first can be renegotiated during the encoding Set @description as the given description for the @profile. A copy of @description will be made internally. a #GstEncodingProfile the description to set on the profile Set whether the profile should be used or not. a #GstEncodingProfile %FALSE to disable #profile, %TRUE to enable it Sets the media format used in the profile. a #GstEncodingProfile the media format to use in the profile. Set @name as the given name for the @profile. A copy of @name will be made internally. a #GstEncodingProfile the name to set on the profile Set the number of time the profile is used in its parent container profile. If 0, it is not a mandatory stream a #GstEncodingProfile the number of time the profile can be used Sets the name of the #GstElement that implements the #GstPreset interface to use for the profile. This is the name that has been set when saving the preset. a #GstEncodingProfile the element preset to use Sets the name of the #GstPreset's factory to be used in the profile. a #GstEncodingProfile The name of the preset to use in this @profile. Set the restriction #GstCaps to apply before the encoder that will be used in the profile. See gst_encoding_profile_get_restriction() for more about restrictions. Does not apply to #GstEncodingContainerProfile. a #GstEncodingProfile the restriction to apply Decreases the reference count of the @profile, possibly freeing the @profile. a #GstEncodingProfile Adds the given @profile to the @target. Each added profile must have a unique name within the profile. The @target will steal a reference to the @profile. If you wish to use the profile after calling this method, you should increase its reference count. the #GstEncodingTarget to add a profile to the #GstEncodingProfile to add %TRUE if the profile was added, else %FALSE. a #GstEncodingTarget The category of the @target. For example: #GST_ENCODING_CATEGORY_DEVICE. a #GstEncodingTarget The description of the @target. a #GstEncodingTarget The name of the @target. a #GstEncodingTarget the name of the profile to retrieve The matching #GstEncodingProfile, or %NULL. a #GstEncodingTarget A list of #GstEncodingProfile(s) this @target handles. Searches for the #GstEncodingTarget with the given name, loads it and returns it. If the category name is specified only targets from that category will be searched for. the name of the #GstEncodingTarget to load. the name of the target category, like #GST_ENCODING_CATEGORY_DEVICE. Can be %NULL If an error occured, this field will be filled in. The #GstEncodingTarget if available, else %NULL. Opens the provided file and returns the contained #GstEncodingTarget. The file location to load the #GstEncodingTarget from If an error occured, this field will be filled in. The #GstEncodingTarget contained in the file, else %NULL Creates a new #GstEncodingTarget. The name and category can only consist of lowercase ASCII letters for the first character, followed by either lowercase ASCII letters, digits or hyphens ('-'). The @category <emphasis>should</emphasis> be one of the existing well-defined categories, like #GST_ENCODING_CATEGORY_DEVICE, but it <emphasis>can</emphasis> be a application or user specific category if needed. The name of the target. The name of the category to which this @target belongs. For example: #GST_ENCODING_CATEGORY_DEVICE. A description of #GstEncodingTarget in the current locale. A #GList of #GstEncodingProfile. The newly created #GstEncodingTarget or %NULL if there was an error. Increases the reference count of the @target. a #GstEncodingTarget Saves the @target to a default user-local directory. a #GstEncodingTarget If an error occured, this field will be filled in. %TRUE if the target was correctly saved, else %FALSE. Saves the @target to the provided file location. a #GstEncodingTarget the location to store the @target at. If an error occured, this field will be filled in. %TRUE if the target was correctly saved, else %FALSE. Decreases the reference count of the @target, possibly freeing it. a #GstEncodingTarget Get the pass number if this is part of a multi-pass profile. a #GstEncodingVideoProfile The pass number. Starts at 1 for multi-pass. 0 if this is not a multi-pass profile a #GstEncodingVideoProfile Whether non-constant video framerate is allowed for encoding. Creates a new #GstEncodingVideoProfile All provided allocatable arguments will be internally copied, so can be safely freed/unreferenced after calling this method. If you wish to control the pass number (in case of multi-pass scenarios), please refer to the gst_encoding_video_profile_set_pass() documentation. If you wish to use/force a constant framerate please refer to the gst_encoding_video_profile_set_variableframerate() documentation. the #GstCaps the preset(s) to use on the encoder, can be #NULL the #GstCaps used to restrict the input to the encoder, can be NULL. See gst_encoding_profile_get_restriction() for more details. the number of time this stream must be used. 0 means any number of times (including never) the newly created #GstEncodingVideoProfile. Sets the pass number of this video profile. The first pass profile should have this value set to 1. If this video profile isn't part of a multi-pass profile, you may set it to 0 (the default value). a #GstEncodingVideoProfile the pass number for this profile If set to %TRUE, then the incoming stream will be allowed to have non-constant framerate. If set to %FALSE (default value), then the incoming stream will be normalized by dropping/duplicating frames in order to produce a constance framerate. a #GstEncodingVideoProfile a boolean Get a string describing the error message in the current locale. the GStreamer error domain this error belongs to. the error code belonging to the domain. a newly allocated string describing the error message (in UTF-8 encoding) Copy the event using the event specific copy function. The event to copy the new event Parses a segment @event and copies the #GstSegment into the location given by @segment. The event to parse a pointer to a #GstSegment Retrieve the accumulated running time offset of the event. Events passing through #GstPads that have a running time offset set via gst_pad_set_offset() will get their offset adjusted according to the pad's offset. If the event contains any information that related to the running time, this information will need to be updated before usage with this offset. A #GstEvent. The event's running time offset MT safe. Retrieve the sequence number of a event. Events have ever-incrementing sequence numbers, which may also be set explicitly via gst_event_set_seqnum(). Sequence numbers are typically used to indicate that a event corresponds to some other set of events or messages, for example an EOS event corresponding to a SEEK event. It is considered good practice to make this correspondence when possible, though it is not required. Note that events and messages share the same sequence number incrementor; two events or messages will never have the same sequence number unless that correspondence was made explicitly. A #GstEvent. The event's sequence number. MT safe. Access the structure of the event. The #GstEvent. The structure of the event. The structure is still owned by the event, which means that you should not free it and that the pointer becomes invalid when you free the event. MT safe. Checks if @event has the given @name. This function is usually used to check the name of a custom event. The #GstEvent. name to check %TRUE if @name matches the name of the event structure. Tests if you can safely write data into a event's structure or validly modify the seqnum and timestamp field. a #GstEvent Makes a writable event from the given event. If the source event is already writable, this will simply return the same event. A copy will otherwise be made using gst_event_copy(). a #GstEvent a writable event which may or may not be the same as @ev Create a new buffersize event. The event is sent downstream and notifies elements that they should provide a buffer of the specified dimensions. When the @async flag is set, a thread boundary is preferred. buffer format minimum buffer size maximum buffer size thread behavior a new #GstEvent Create a new CAPS event for @caps. The caps event can only travel downstream synchronized with the buffer flow and contains the format of the buffers that will follow after the event. a #GstCaps the new CAPS event. Create a new custom-typed event. This can be used for anything not handled by other event-specific functions to pass an event to another element. Make sure to allocate an event type with the #GST_EVENT_MAKE_TYPE macro, assigning a free number and filling in the correct direction and serialization flags. New custom events can also be created by subclassing the event type if needed. The type of the new event the structure for the event. The event will take ownership of the structure. the new custom event. Create a new EOS event. The eos event can only travel downstream synchronized with the buffer flow. Elements that receive the EOS event on a pad can return #GST_FLOW_EOS as a #GstFlowReturn when data after the EOS event arrives. The EOS event will travel down to the sink elements in the pipeline which will then post the #GST_MESSAGE_EOS on the bus after they have finished playing any buffered data. When all sinks have posted an EOS message, an EOS message is forwarded to the application. The EOS event itself will not cause any state transitions of the pipeline. the new EOS event. Allocate a new flush start event. The flush start event can be sent upstream and downstream and travels out-of-bounds with the dataflow. It marks pads as being flushing and will make them return #GST_FLOW_FLUSHING when used for data flow with gst_pad_push(), gst_pad_chain(), gst_pad_get_range() and gst_pad_pull_range(). Any event (except a #GST_EVENT_FLUSH_STOP) received on a flushing pad will return %FALSE immediately. Elements should unlock any blocking functions and exit their streaming functions as fast as possible when this event is received. This event is typically generated after a seek to flush out all queued data in the pipeline so that the new media is played as soon as possible. a new flush start event. Allocate a new flush stop event. The flush stop event can be sent upstream and downstream and travels serialized with the dataflow. It is typically sent after sending a FLUSH_START event to make the pads accept data again. Elements can process this event synchronized with the dataflow since the preceding FLUSH_START event stopped the dataflow. This event is typically generated to complete a seek and to resume dataflow. if time should be reset a new flush stop event. Create a new GAP event. A gap event can be thought of as conceptually equivalent to a buffer to signal that there is no data for a certain amount of time. This is useful to signal a gap to downstream elements which may wait for data, such as muxers or mixers or overlays, especially for sparse streams such as subtitle streams. the start time (pts) of the gap the duration of the gap the new GAP event. Create a new latency event. The event is sent upstream from the sinks and notifies elements that they should add an additional @latency to the running time before synchronising against the clock. The latency is mostly used in live sinks and is always expressed in the time format. the new latency value a new #GstEvent Create a new navigation event from the given description. description of the event. The event will take ownership of the structure. a new #GstEvent Creates a new event containing information specific to a particular protection system (uniquely identified by @system_id), by which that protection system can acquire key(s) to decrypt a protected stream. In order for a decryption element to decrypt media protected using a specific system, it first needs all the protection system specific information necessary to acquire the decryption key(s) for that stream. The functions defined here enable this information to be passed in events from elements that extract it (e.g., ISOBMFF demuxers, MPEG DASH demuxers) to protection decrypter elements that use it. Events containing protection system specific information are created using #gst_event_new_protection, and they can be parsed by downstream elements using #gst_event_parse_protection. In Common Encryption, protection system specific information may be located within ISOBMFF files, both in movie (moov) boxes and movie fragment (moof) boxes; it may also be contained in ContentProtection elements within MPEG DASH MPDs. The events created by #gst_event_new_protection contain data identifying from which of these locations the encapsulated protection system specific information originated. This origin information is required as some protection systems use different encodings depending upon where the information originates. The events returned by gst_event_new_protection() are implemented in such a way as to ensure that the most recently-pushed protection info event of a particular @origin and @system_id will be stuck to the output pad of the sending element. a string holding a UUID that uniquely identifies a protection system. a #GstBuffer holding protection system specific information. The reference count of the buffer will be incremented by one. a string indicating where the protection information carried in the event was extracted from. The allowed values of this string will depend upon the protection scheme. a #GST_EVENT_PROTECTION event, if successful; %NULL if unsuccessful. Allocate a new qos event with the given values. The QOS event is generated in an element that wants an upstream element to either reduce or increase its rate because of high/low CPU load or other resource usage such as network performance or throttling. Typically sinks generate these events for each buffer they receive. @type indicates the reason for the QoS event. #GST_QOS_TYPE_OVERFLOW is used when a buffer arrived in time or when the sink cannot keep up with the upstream datarate. #GST_QOS_TYPE_UNDERFLOW is when the sink is not receiving buffers fast enough and thus has to drop late buffers. #GST_QOS_TYPE_THROTTLE is used when the datarate is artificially limited by the application, for example to reduce power consumption. @proportion indicates the real-time performance of the streaming in the element that generated the QoS event (usually the sink). The value is generally computed based on more long term statistics about the streams timestamps compared to the clock. A value < 1.0 indicates that the upstream element is producing data faster than real-time. A value > 1.0 indicates that the upstream element is not producing data fast enough. 1.0 is the ideal @proportion value. The proportion value can safely be used to lower or increase the quality of the element. @diff is the difference against the clock in running time of the last buffer that caused the element to generate the QOS event. A negative value means that the buffer with @timestamp arrived in time. A positive value indicates how late the buffer with @timestamp was. When throttling is enabled, @diff will be set to the requested throttling interval. @timestamp is the timestamp of the last buffer that cause the element to generate the QOS event. It is expressed in running time and thus an ever increasing value. The upstream element can use the @diff and @timestamp values to decide whether to process more buffers. For positive @diff, all buffers with timestamp <= @timestamp + @diff will certainly arrive late in the sink as well. A (negative) @diff value so that @timestamp + @diff would yield a result smaller than 0 is not allowed. The application can use general event probes to intercept the QoS event and implement custom application specific QoS handling. the QoS type the proportion of the qos message The time difference of the last Clock sync The timestamp of the buffer a new QOS event. Create a new reconfigure event. The purpose of the reconfigure event is to travel upstream and make elements renegotiate their caps or reconfigure their buffer pools. This is useful when changing properties on elements or changing the topology of the pipeline. a new #GstEvent Allocate a new seek event with the given parameters. The seek event configures playback of the pipeline between @start to @stop at the speed given in @rate, also called a playback segment. The @start and @stop values are expressed in @format. A @rate of 1.0 means normal playback rate, 2.0 means double speed. Negatives values means backwards playback. A value of 0.0 for the rate is not allowed and should be accomplished instead by PAUSING the pipeline. A pipeline has a default playback segment configured with a start position of 0, a stop position of -1 and a rate of 1.0. The currently configured playback segment can be queried with #GST_QUERY_SEGMENT. @start_type and @stop_type specify how to adjust the currently configured start and stop fields in playback segment. Adjustments can be made relative or absolute to the last configured values. A type of #GST_SEEK_TYPE_NONE means that the position should not be updated. When the rate is positive and @start has been updated, playback will start from the newly configured start position. For negative rates, playback will start from the newly configured stop position (if any). If the stop position is updated, it must be different from -1 (#GST_CLOCK_TIME_NONE) for negative rates. It is not possible to seek relative to the current playback position, to do this, PAUSE the pipeline, query the current playback position with #GST_QUERY_POSITION and update the playback segment current position with a #GST_SEEK_TYPE_SET to the desired position. The new playback rate The format of the seek values The optional seek flags The type and flags for the new start position The value of the new start position The type and flags for the new stop position The value of the new stop position a new seek event. Create a new SEGMENT event for @segment. The segment event can only travel downstream synchronized with the buffer flow and contains timing information and playback properties for the buffers that will follow. The segment event marks the range of buffers to be processed. All data not within the segment range is not to be processed. This can be used intelligently by plugins to apply more efficient methods of skipping unneeded data. The valid range is expressed with the @start and @stop values. The time value of the segment is used in conjunction with the start value to convert the buffer timestamps into the stream time. This is usually done in sinks to report the current stream_time. @time represents the stream_time of a buffer carrying a timestamp of @start. @time cannot be -1. @start cannot be -1, @stop can be -1. If there is a valid @stop given, it must be greater or equal the @start, including when the indicated playback @rate is < 0. The @applied_rate value provides information about any rate adjustment that has already been made to the timestamps and content on the buffers of the stream. (@rate * @applied_rate) should always equal the rate that has been requested for playback. For example, if an element has an input segment with intended playback @rate of 2.0 and applied_rate of 1.0, it can adjust incoming timestamps and buffer content by half and output a segment event with @rate of 1.0 and @applied_rate of 2.0 After a segment event, the buffer stream time is calculated with: time + (TIMESTAMP(buf) - start) * ABS (rate * applied_rate) a #GstSegment the new SEGMENT event. Create a new segment-done event. This event is sent by elements that finish playback of a segment as a result of a segment seek. The format of the position being done The position of the segment being done a new #GstEvent Create a new sink-message event. The purpose of the sink-message event is to instruct a sink to post the message contained in the event synchronized with the stream. @name is used to store multiple sticky events on one pad. a name for the event the #GstMessage to be posted a new #GstEvent Create a new step event. The purpose of the step event is to instruct a sink to skip @amount (expressed in @format) of media. It can be used to implement stepping through the video frame by frame or for doing fast trick modes. A rate of <= 0.0 is not allowed. Pause the pipeline, for the effect of rate = 0.0 or first reverse the direction of playback using a seek event to get the same effect as rate < 0.0. The @flush flag will clear any pending data in the pipeline before starting the step operation. The @intermediate flag instructs the pipeline that this step operation is part of a larger step operation. the format of @amount the amount of data to step the step rate flushing steps intermediate steps a new #GstEvent Create a new STREAM_START event. The stream start event can only travel downstream synchronized with the buffer flow. It is expected to be the first event that is sent for a new stream. Source elements, demuxers and other elements that create new streams are supposed to send this event as the first event of a new stream. It should not be sent after a flushing seek or in similar situations and is used to mark the beginning of a new logical stream. Elements combining multiple streams must ensure that this event is only forwarded downstream once and not for every single input stream. The @stream_id should be a unique string that consists of the upstream stream-id, / as separator and a unique stream-id for this specific stream. A new stream-id should only be created for a stream if the upstream stream is split into (potentially) multiple new streams, e.g. in a demuxer, but not for every single element in the pipeline. gst_pad_create_stream_id() or gst_pad_create_stream_id_printf() can be used to create a stream-id. There are no particular semantics for the stream-id, though it should be deterministic (to support stream matching) and it might be used to order streams (besides any information conveyed by stream flags). Identifier for this stream the new STREAM_START event. Generates a metadata tag event from the given @taglist. The scope of the taglist specifies if the taglist applies to the complete medium or only to this specific stream. As the tag event is a sticky event, elements should merge tags received from upstream with a given scope with their own tags with the same scope and create a new tag event from it. metadata list. The event will take ownership of the taglist. a new #GstEvent Generate a TOC event from the given @toc. The purpose of the TOC event is to inform elements that some kind of the TOC was found. #GstToc structure. whether @toc was updated or not. a new #GstEvent. Generate a TOC select event with the given @uid. The purpose of the TOC select event is to start playback based on the TOC's entry with the given @uid. UID in the TOC to start playback from. a new #GstEvent. Get the format, minsize, maxsize and async-flag in the buffersize event. The event to query A pointer to store the format in A pointer to store the minsize in A pointer to store the maxsize in A pointer to store the async-flag in Get the caps from @event. The caps remains valid as long as @event remains valid. The event to parse A pointer to the caps Parse the FLUSH_STOP event and retrieve the @reset_time member. The event to parse if time should be reset Extract timestamp and duration from a new GAP event. a #GstEvent of type #GST_EVENT_GAP location where to store the start time (pts) of the gap, or %NULL location where to store the duration of the gap, or %NULL a stream-start event address of variable where to store the group id %TRUE if a group id was set on the event and could be parsed, %FALSE otherwise. Get the latency in the latency event. The event to query A pointer to store the latency in. Parses an event containing protection system specific information and stores the results in @system_id, @data and @origin. The data stored in @system_id, @origin and @data are valid until @event is released. a #GST_EVENT_PROTECTION event. pointer to store the UUID string uniquely identifying a content protection system. pointer to store a #GstBuffer holding protection system specific information. pointer to store a value that indicates where the protection information carried by @event was extracted from. Get the type, proportion, diff and timestamp in the qos event. See gst_event_new_qos() for more information about the different QoS values. @timestamp will be adjusted for any pad offsets of pads it was passing through. The event to query A pointer to store the QoS type in A pointer to store the proportion in A pointer to store the diff in A pointer to store the timestamp in Parses a seek @event and stores the results in the given result locations. a seek event result location for the rate result location for the stream format result location for the #GstSeekFlags result location for the #GstSeekType of the start position result location for the start position expressed in @format result location for the #GstSeekType of the stop position result location for the stop position expressed in @format Parses a segment @event and stores the result in the given @segment location. @segment remains valid only until the @event is freed. Don't modify the segment and make a copy if you want to modify it or store it for later use. The event to parse a pointer to a #GstSegment Extracts the position and format from the segment done message. A valid #GstEvent of type GST_EVENT_SEGMENT_DONE. Result location for the format, or %NULL Result location for the position, or %NULL Parse the sink-message event. Unref @msg after usage. The event to query a pointer to store the #GstMessage in. Parse the step event. The event to query a pointer to store the format in a pointer to store the amount in a pointer to store the rate in a pointer to store the flush boolean in a pointer to store the intermediate boolean in a stream-start event address of variable where to store the stream flags Parse a stream-id @event and store the result in the given @stream_id location. The string stored in @stream_id must not be modified and will remain valid only until @event gets freed. Make a copy if you want to modify it or store it for later use. a stream-start event. pointer to store the stream-id Parses a tag @event and stores the results in the given @taglist location. No reference to the taglist will be returned, it remains valid only until the @event is freed. Don't modify or free the taglist, make a copy if you want to modify it or store it for later use. a tag event pointer to metadata list Parse a TOC @event and store the results in the given @toc and @updated locations. a TOC event. pointer to #GstToc structure. pointer to store TOC updated flag. Parse a TOC select @event and store the results in the given @uid location. a TOC select event. storage for the selection UID. Increase the refcount of this event. The event to refcount @event (for convenience when doing assignments) Modifies a pointer to a #GstEvent to point to a different #GstEvent. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old event is unreffed, the new one is reffed). Either @new_event or the #GstEvent pointed to by @old_event may be %NULL. pointer to a pointer to a #GstEvent to be replaced. pointer to a #GstEvent that will replace the event pointed to by @old_event. %TRUE if @new_event was different from @old_event All streams that have the same group id are supposed to be played together, i.e. all streams inside a container file should have the same group id but different stream ids. The group id should change each time the stream is started, resulting in different group ids each time a file is played for example. Use gst_util_group_id_next() to get a new group id. a stream-start event the group id to set Set the running time offset of a event. See gst_event_get_running_time_offset() for more information. MT safe. A #GstEvent. A the new running time offset Set the sequence number of a event. This function might be called by the creator of a event to indicate that the event relates to other events or messages. See gst_event_get_seqnum() for more information. MT safe. A #GstEvent. A sequence number. a stream-start event the stream flags to set Atomically replace the #GstEvent pointed to by @old_event with %NULL and return the original event. pointer to a pointer to a #GstEvent to be stolen. the #GstEvent that was in @old_event Modifies a pointer to a #GstEvent to point to a different #GstEvent. This function is similar to gst_event_replace() except that it takes ownership of @new_event. Either @new_event or the #GstEvent pointed to by @old_event may be %NULL. pointer to a pointer to a #GstEvent to be stolen. pointer to a #GstEvent that will replace the event pointed to by @old_event. %TRUE if @new_event was different from @old_event Gets the #GstEventTypeFlags associated with @type. a #GstEventType a #GstEventTypeFlags. Get a printable name for the given event type. Do not modify or free. the event type a reference to the static name of the event. Get the unique quark for the given event type. the event type the quark associated with the event type Decrease the refcount of an event, freeing it if the refcount reaches 0. the event to refcount Get a writable version of the structure. The #GstEvent. The structure of the event. The structure is still owned by the event, which means that you should not free it and that the pointer becomes invalid when you free the event. This function checks if @event is writable and will never return %NULL. MT safe. Return a %GstMemory that wraps a generic file descriptor. allocator to be used for this memory file descriptor memory size extra #GstFdMemoryFlags a GstMemory based on @allocator. When the buffer will be released the allocator will close the @fd. The memory is only mmapped on gst_buffer_mmap() request. Return a new fd allocator. a new fd allocator, or NULL if the allocator isn't available. Use gst_object_unref() to release the allocator after usage Get the fd from @mem. Call gst_is_fd_memory() to check if @mem has an fd. #GstMemory the fd of @mem or -1 when there is no fd on @mem This performs the FFT on @timedata and puts the result in @freqdata. @timedata must have as many samples as specified with the @len parameter while allocating the #GstFFTF32 instance with gst_fft_f32_new(). @freqdata must be large enough to hold @len/2 + 1 #GstFFTF32Complex frequency domain samples. #GstFFTF32 instance for this call Buffer of the samples in the time domain Target buffer for the samples in the frequency domain This frees the memory allocated for @self. #GstFFTF32 instance for this call This performs the inverse FFT on @freqdata and puts the result in @timedata. @freqdata must have @len/2 + 1 samples, where @len is the parameter specified while allocating the #GstFFTF32 instance with gst_fft_f32_new(). @timedata must be large enough to hold @len time domain samples. #GstFFTF32 instance for this call Buffer of the samples in the frequency domain Target buffer for the samples in the time domain This returns a new #GstFFTF32 instance with the given parameters. It makes sense to keep one instance for several calls for speed reasons. @len must be even and to get the best performance a product of 2, 3 and 5. To get the next number with this characteristics use gst_fft_next_fast_length(). Length of the FFT in the time domain %TRUE if the #GstFFTF32 instance should be used for the inverse FFT a new #GstFFTF32 instance. This calls the window function @window on the @timedata sample buffer. #GstFFTF32 instance for this call Time domain samples Window function to apply This performs the FFT on @timedata and puts the result in @freqdata. @timedata must have as many samples as specified with the @len parameter while allocating the #GstFFTF64 instance with gst_fft_f64_new(). @freqdata must be large enough to hold @len/2 + 1 #GstFFTF64Complex frequency domain samples. #GstFFTF64 instance for this call Buffer of the samples in the time domain Target buffer for the samples in the frequency domain This frees the memory allocated for @self. #GstFFTF64 instance for this call This performs the inverse FFT on @freqdata and puts the result in @timedata. @freqdata must have @len/2 + 1 samples, where @len is the parameter specified while allocating the #GstFFTF64 instance with gst_fft_f64_new(). @timedata must be large enough to hold @len time domain samples. #GstFFTF64 instance for this call Buffer of the samples in the frequency domain Target buffer for the samples in the time domain This returns a new #GstFFTF64 instance with the given parameters. It makes sense to keep one instance for several calls for speed reasons. @len must be even and to get the best performance a product of 2, 3 and 5. To get the next number with this characteristics use gst_fft_next_fast_length(). Length of the FFT in the time domain %TRUE if the #GstFFTF64 instance should be used for the inverse FFT a new #GstFFTF64 instance. This calls the window function @window on the @timedata sample buffer. #GstFFTF64 instance for this call Time domain samples Window function to apply Returns the next number to @n that is entirely a product of 2, 3 and 5. Using this as the @len parameter for the different GstFFT types will provide the best performance. Number for which the next fast length should be returned the next fast FFT length. This performs the FFT on @timedata and puts the result in @freqdata. @timedata must have as many samples as specified with the @len parameter while allocating the #GstFFTS16 instance with gst_fft_s16_new(). @freqdata must be large enough to hold @len/2 + 1 #GstFFTS16Complex frequency domain samples. #GstFFTS16 instance for this call Buffer of the samples in the time domain Target buffer for the samples in the frequency domain This frees the memory allocated for @self. #GstFFTS16 instance for this call This performs the inverse FFT on @freqdata and puts the result in @timedata. @freqdata must have @len/2 + 1 samples, where @len is the parameter specified while allocating the #GstFFTS16 instance with gst_fft_s16_new(). @timedata must be large enough to hold @len time domain samples. #GstFFTS16 instance for this call Buffer of the samples in the frequency domain Target buffer for the samples in the time domain This returns a new #GstFFTS16 instance with the given parameters. It makes sense to keep one instance for several calls for speed reasons. @len must be even and to get the best performance a product of 2, 3 and 5. To get the next number with this characteristics use gst_fft_next_fast_length(). Length of the FFT in the time domain %TRUE if the #GstFFTS16 instance should be used for the inverse FFT a new #GstFFTS16 instance. This calls the window function @window on the @timedata sample buffer. #GstFFTS16 instance for this call Time domain samples Window function to apply This performs the FFT on @timedata and puts the result in @freqdata. @timedata must have as many samples as specified with the @len parameter while allocating the #GstFFTS32 instance with gst_fft_s32_new(). @freqdata must be large enough to hold @len/2 + 1 #GstFFTS32Complex frequency domain samples. #GstFFTS32 instance for this call Buffer of the samples in the time domain Target buffer for the samples in the frequency domain This frees the memory allocated for @self. #GstFFTS32 instance for this call This performs the inverse FFT on @freqdata and puts the result in @timedata. @freqdata must have @len/2 + 1 samples, where @len is the parameter specified while allocating the #GstFFTS32 instance with gst_fft_s32_new(). @timedata must be large enough to hold @len time domain samples. #GstFFTS32 instance for this call Buffer of the samples in the frequency domain Target buffer for the samples in the time domain This returns a new #GstFFTS32 instance with the given parameters. It makes sense to keep one instance for several calls for speed reasons. @len must be even and to get the best performance a product of 2, 3 and 5. To get the next number with this characteristics use gst_fft_next_fast_length(). Length of the FFT in the time domain %TRUE if the #GstFFTS32 instance should be used for the inverse FFT a new #GstFFTS32 instance. This calls the window function @window on the @timedata sample buffer. #GstFFTS32 instance for this call Time domain samples Window function to apply 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. absolute or relative file name path pointer to error, or %NULL newly-allocated URI string, or NULL on error. The caller must free the URI string with g_free() when no longer needed. Create a new sub-class of #GST_TYPE_FLAG_SET which will pretty-print the human-readable flags when serializing, for easier debugging. a #GType of a #G_TYPE_FLAGS type. Adds a new #GstPad to the #GstFlowCombiner. the #GstFlowCombiner the #GstPad that is being added Removes all pads from a #GstFlowCombiner and resets it to its initial state. the #GstFlowCombiner to clear Frees a #GstFlowCombiner struct and all its internal data. the #GstFlowCombiner to free Creates a new #GstFlowCombiner, use gst_flow_combiner_free() to free it. A new #GstFlowCombiner Removes a #GstPad from the #GstFlowCombiner. the #GstFlowCombiner the #GstPad to remove Removes all pads from a #GstFlowCombiner and resets it to its initial state. the #GstFlowCombiner to clear Computes the combined flow return for the pads in it. The #GstFlowReturn parameter should be the last flow return update for a pad in this #GstFlowCombiner. It will use this value to be able to shortcut some combinations and avoid looking over all pads again. e.g. The last combined return is the same as the latest obtained #GstFlowReturn. the #GstFlowCombiner the latest #GstFlowReturn received for a pad in this #GstFlowCombiner The combined #GstFlowReturn Sets the provided pad's last flow return to provided value and computes the combined flow return for the pads in it. The #GstFlowReturn parameter should be the last flow return update for a pad in this #GstFlowCombiner. It will use this value to be able to shortcut some combinations and avoid looking over all pads again. e.g. The last combined return is the same as the latest obtained #GstFlowReturn. the #GstFlowCombiner the #GstPad whose #GstFlowReturn to update the latest #GstFlowReturn received for a pad in this #GstFlowCombiner The combined #GstFlowReturn Gets a string representing the given flow return. a #GstFlowReturn to get the name of. a static string with the name of the flow return. Get the unique quark for the given GstFlowReturn. a #GstFlowReturn to get the quark of. the quark associated with the flow return or 0 if an invalid return was specified. Return the format registered with the given nick. The nick of the format The format with @nick or GST_FORMAT_UNDEFINED if the format was not registered. Get details about the given format. The format to get details of The #GstFormatDefinition for @format or %NULL on failure. MT safe. Get a printable name for the given format. Do not modify or free. a #GstFormat a reference to the static name of the format or %NULL if the format is unknown. Iterate all the registered formats. The format definition is read only. a GstIterator of #GstFormatDefinition. Create a new GstFormat based on the nick or return an already registered format with that nick. The nick of the new format The description of the new format A new GstFormat or an already registered format with the same nick. MT safe. Get the unique quark for the given format. a #GstFormat the quark associated with the format or 0 if the format is unknown. See if the given format is inside the format array. The format array to search the format to find %TRUE if the format is found inside the array Convert @value to a guint64. the #gdouble value to convert @value converted to a #guint64. Invoke the default activate mode function of a ghost pad. the #GstPad to activate or deactivate. the parent of @pad or %NULL the requested activation mode whether the pad should be active or not. %TRUE if the operation was successful. Finish initialization of a newly allocated ghost pad. This function is most useful in language bindings and when subclassing #GstGhostPad; plugin and application developers normally will not call this function. Call this function directly after a call to g_object_new (GST_TYPE_GHOST_PAD, "direction", @dir, ..., NULL). the newly allocated ghost pad %TRUE if the construction succeeds, %FALSE otherwise. Get the target pad of @gpad. Unref target pad after usage. the #GstGhostPad the target #GstPad, can be %NULL if the ghostpad has no target set. Unref target pad after usage. Invoke the default activate mode function of a proxy pad that is owned by a ghost pad. the #GstPad to activate or deactivate. the parent of @pad or %NULL the requested activation mode whether the pad should be active or not. %TRUE if the operation was successful. Create a new ghostpad with @target as the target. The direction will be taken from the target pad. @target must be unlinked. Will ref the target. the name of the new pad, or %NULL to assign a default name the pad to ghost. a new #GstPad, or %NULL in case of an error. Create a new ghostpad with @target as the target. The direction will be taken from the target pad. The template used on the ghostpad will be @template. Will ref the target. the name of the new pad, or %NULL to assign a default name. the pad to ghost. the #GstPadTemplate to use on the ghostpad. a new #GstPad, or %NULL in case of an error. Create a new ghostpad without a target with the given direction. A target can be set on the ghostpad later with the gst_ghost_pad_set_target() function. The created ghostpad will not have a padtemplate. the name of the new pad, or %NULL to assign a default name. the direction of the ghostpad a new #GstPad, or %NULL in case of an error. Create a new ghostpad based on @templ, without setting a target. The direction will be taken from the @templ. the name of the new pad, or %NULL to assign a default name the #GstPadTemplate to create the ghostpad from. a new #GstPad, or %NULL in case of an error. Set the new target of the ghostpad @gpad. Any existing target is unlinked and links to the new target are established. if @newtarget is %NULL the target will be cleared. the #GstGhostPad the new pad target %TRUE if the new target could be set. This function can return %FALSE when the internal pads could not be linked. Convert @value to a gdouble. the #guint64 value to convert @value converted to a #gdouble. Adds a #GstElement to an empty #GstHarness MT safe. a #GstHarness a #GstElement to add to the harness (transfer none) a #GstStaticPadTemplate describing the harness srcpad. %NULL will not create a harness srcpad. a #gchar with the name of the element sinkpad that is then linked to the harness srcpad. Can be a static or request or a sometimes pad that has been added. %NULL will not get/request a sinkpad from the element. (Like if the element is a src.) a #GstStaticPadTemplate describing the harness sinkpad. %NULL will not create a harness sinkpad. a #gchar with the name of the element srcpad that is then linked to the harness sinkpad, similar to the @element_sinkpad_name. Links the specifed #GstPad the @GstHarness srcpad. MT safe. a #GstHarness a #GstPad to link to the harness srcpad Links the specifed #GstPad the @GstHarness sinkpad. This can be useful if perhaps the srcpad did not exist at the time of creating the harness, like a demuxer that provides a sometimes-pad after receiving data. MT safe. a #GstHarness a #GstPad to link to the harness sinkpad Parses the @launchline and puts that in a #GstBin, and then attches the supplied #GstHarness to the bin. MT safe. a #GstHarness a #gchar describing a gst-launch type line A convenience function to allows you to call gst_pad_add_probe on a #GstPad of a #GstElement that are residing inside the #GstHarness, by using normal gst_pad_add_probe syntax MT safe. a #GstHarness a #gchar with a #GstElementFactory name a #gchar with the name of the pad to attach the probe to a #GstPadProbeType (see gst_pad_add_probe) a #GstPadProbeCallback (see gst_pad_add_probe) a #gpointer (see gst_pad_add_probe) a #GDestroyNotify (see gst_pad_add_probe) Similar to gst_harness_add_sink_harness, this is a convenience to directly create a sink-harness using the @sink_element_name name specified. MT safe. a #GstHarness a #gchar with the name of a #GstElement Similar to gst_harness_add_src, this allows you to send the data coming out of your harnessed #GstElement to a sink-element, allowing to test different responses the element output might create in sink elements. An example might be an existing sink providing some analytical data on the input it receives that can be useful to your testing. If the goal is to test a sink-element itself, this is better acheived using gst_harness_new directly on the sink. If a sink-harness already exists it will be replaced. MT safe. a #GstHarness a #GstHarness to be added as a sink-harness. Similar to gst_harness_add_sink, this allows you to specify a launch-line instead of just an element name. See gst_harness_add_src_parse for details. MT safe. a #GstHarness a #gchar with the name of a #GstElement Similar to gst_harness_add_src_harness, this is a convenience to directly create a src-harness using the @src_element_name name specified. MT safe. a #GstHarness a #gchar with the name of a #GstElement a #gboolean specifying if the #GstElement uses gst_clock_wait_id internally. A src-harness is a great way of providing the #GstHarness with data. By adding a src-type #GstElement, it is then easy to use functions like gst_harness_push_from_src or gst_harness_src_crank_and_push_many to provide your harnessed element with input. The @has_clock_wait variable is a greate way to control you src-element with, in that you can have it produce a buffer for you by simply cranking the clock, and not have it spin out of control producing buffers as fast as possible. If a src-harness already exists it will be replaced. MT safe. a #GstHarness a #GstHarness to be added as a src-harness. a #gboolean specifying if the #GstElement uses gst_clock_wait_id internally. Similar to gst_harness_add_src, this allows you to specify a launch-line, which can be useful for both having more then one #GstElement acting as your src (Like a src producing raw buffers, and then an encoder, providing encoded data), but also by allowing you to set properties like "is-live" directly on the elements. MT safe. a #GstHarness a #gchar describing a gst-launch type line a #gboolean specifying if the #GstElement uses gst_clock_wait_id internally. The number of #GstBuffers currently in the #GstHarness sinkpad #GAsyncQueue MT safe. a #GstHarness a #guint number of buffers in the queue The total number of #GstBuffers that has arrived on the #GstHarness sinkpad. This number includes buffers that have been dropped as well as buffers that have already been pulled out. MT safe. a #GstHarness a #guint number of buffers received Similar to gst_harness_crank_single_clock_wait(), this is the function to use if your harnessed element(s) are using more then one gst_clock_id_wait. Failing to do so can (and will) make it racy which #GstClockID you actually are releasing, where as this function will process all the waits at the same time, ensuring that one thread can't register another wait before both are released. MT safe. a #GstHarness a #guint describing the number of #GstClockIDs to crank a @gboolean %TRUE if the "crank" was successful, %FALSE if not. A "crank" consists of three steps: 1: Wait for a #GstClockID to be registered with the #GstTestClock. 2: Advance the #GstTestClock to the time the #GstClockID is waiting for. 3: Release the #GstClockID wait. Together, this provides an easy way to not have to think about the details around clocks and time, but still being able to write deterministic tests that are dependant on this. A "crank" can be though of as the notion of manually driving the clock forward to its next logical step. MT safe. a #GstHarness a @gboolean %TRUE if the "crank" was successful, %FALSE if not. Allocates a buffer using a #GstBufferPool if present, or else using the configured #GstAllocator and #GstAllocationParams MT safe. a #GstHarness a #gsize specifying the size of the buffer a #GstBuffer of size @size Allows you to dump the #GstBuffers the #GstHarness sinkpad #GAsyncQueue to a file. MT safe. a #GstHarness a #gchar with a the name of a file The number of #GstEvents currently in the #GstHarness sinkpad #GAsyncQueue MT safe. a #GstHarness a #guint number of events in the queue The total number of #GstEvents that has arrived on the #GstHarness sinkpad This number includes events handled by the harness as well as events that have already been pulled out. MT safe. a #GstHarness a #guint number of events received Most useful in conjunction with gst_harness_new_parse, this will scan the #GstElements inside the #GstHarness, and check if any of them matches @element_name. Typical usecase being that you need to access one of the harnessed elements for properties and/or signals. MT safe. a #GstHarness a #gchar with a #GstElementFactory name a #GstElement or %NULL if not found A convenience function to allows you to call g_object_get on a #GstElement that are residing inside the #GstHarness, by using normal g_object_get syntax. MT safe. a #GstHarness a #gchar with a #GstElementFactory name a #gchar with the first property name return location for the first property, followed optionally by more name/return location pairs, followed by %NULL Gets the @allocator and its @params that has been decided to use after an allocation query. MT safe. a #GstHarness the #GstAllocator used the #GstAllocationParams of @allocator Get the timestamp of the last #GstBuffer pushed on the #GstHarness srcpad, typically with gst_harness_push or gst_harness_push_from_src. MT safe. a #GstHarness a #GstClockTime with the timestamp or %GST_CLOCK_TIME_NONE if no #GstBuffer has been pushed on the #GstHarness srcpad Get the #GstTestClock. Useful if specific operations on the testclock is needed. MT safe. a #GstHarness a #GstTestClock, or %NULL if the testclock is not present. Creates a new harness. Works like gst_harness_new_with_padnames(), except it assumes the #GstElement sinkpad is named "sink" and srcpad is named "src" MT safe. a #gchar describing the #GstElement name a #GstHarness, or %NULL if the harness could not be created Creates a new empty harness. Use gst_harness_add_element_full() to add an #GstElement to it. MT safe. a #GstHarness, or %NULL if the harness could not be created Creates a new harness. MT safe. a #GstElement to attach the harness to (transfer none) a #GstStaticPadTemplate describing the harness srcpad. %NULL will not create a harness srcpad. a #gchar with the name of the element sinkpad that is then linked to the harness srcpad. Can be a static or request or a sometimes pad that has been added. %NULL will not get/request a sinkpad from the element. (Like if the element is a src.) a #GstStaticPadTemplate describing the harness sinkpad. %NULL will not create a harness sinkpad. a #gchar with the name of the element srcpad that is then linked to the harness sinkpad, similar to the @element_sinkpad_name. a #GstHarness, or %NULL if the harness could not be created Creates a new harness, parsing the @launchline and putting that in a #GstBin, and then attches the harness to the bin. MT safe. a #gchar describing a gst-launch type line a #GstHarness, or %NULL if the harness could not be created Creates a new harness. Works in the same way as gst_harness_new_full(), only that generic padtemplates are used for the harness src and sinkpads, which will be sufficient in most usecases. MT safe. a #GstElement to attach the harness to (transfer none) a #gchar with the name of the element sinkpad that is then linked to the harness srcpad. %NULL does not attach a sinkpad a #gchar with the name of the element srcpad that is then linked to the harness sinkpad. %NULL does not attach a srcpad a #GstHarness, or %NULL if the harness could not be created Creates a new harness. Works like gst_harness_new_with_element(), except you specify the factoryname of the #GstElement MT safe. a #gchar describing the #GstElement name a #gchar with the name of the element sinkpad that is then linked to the harness srcpad. %NULL does not attach a sinkpad a #gchar with the name of the element srcpad that is then linked to the harness sinkpad. %NULL does not attach a srcpad a #GstHarness, or %NULL if the harness could not be created Creates a new harness, like gst_harness_new_full(), except it assumes the #GstElement sinkpad is named "sink" and srcpad is named "src" MT safe. a #gchar describing the #GstElement name a #GstStaticPadTemplate describing the harness srcpad. %NULL will not create a harness srcpad. a #GstStaticPadTemplate describing the harness sinkpad. %NULL will not create a harness sinkpad. a #GstHarness, or %NULL if the harness could not be created This will set the harnessed #GstElement to %GST_STATE_PLAYING. #GstElements without a sink-#GstPad and with the %GST_ELEMENT_FLAG_SOURCE flag set is concidered a src #GstElement Non-src #GstElements (like sinks and filters) are automatically set to playing by the #GstHarness, but src #GstElements are not to avoid them starting to produce buffers. Hence, for src #GstElement you must call gst_harness_play() explicitly. MT safe. a #GstHarness Pulls a #GstBuffer from the #GAsyncQueue on the #GstHarness sinkpad. The pull will timeout in 60 seconds. This is the standard way of getting a buffer from a harnessed #GstElement. MT safe. a #GstHarness a #GstBuffer or %NULL if timed out. Pulls an #GstEvent from the #GAsyncQueue on the #GstHarness sinkpad. Timeouts after 60 seconds similar to gst_harness_pull. MT safe. a #GstHarness a #GstEvent or %NULL if timed out. Pulls an #GstEvent from the #GAsyncQueue on the #GstHarness srcpad. Timeouts after 60 seconds similar to gst_harness_pull. MT safe. a #GstHarness a #GstEvent or %NULL if timed out. Pushes a #GstBuffer on the #GstHarness srcpad. The standard way of interacting with an harnessed element. MT safe. a #GstHarness a #GstBuffer to push a #GstFlowReturn with the result from the push Basically a gst_harness_push and a gst_harness_pull in one line. Reflects the fact that you often want to do exactly this in your test: Push one buffer in, and inspect the outcome. MT safe. a #GstHarness a #GstBuffer to push a #GstBuffer or %NULL if timed out. Pushes an #GstEvent on the #GstHarness srcpad. MT safe. a #GstHarness a #GstEvent to push a #gboolean with the result from the push Transfer data from the src-#GstHarness to the main-#GstHarness. It consists of 4 steps: 1: Make sure the src is started. (see: gst_harness_play) 2: Crank the clock (see: gst_harness_crank_single_clock_wait) 3: Pull a #GstBuffer from the src-#GstHarness (see: gst_harness_pull) 4: Push the same #GstBuffer into the main-#GstHarness (see: gst_harness_push) MT safe. a #GstHarness a #GstFlowReturn with the result of the push Transfer one #GstBuffer from the main-#GstHarness to the sink-#GstHarness. See gst_harness_push_from_src for details. MT safe. a #GstHarness a #GstFlowReturn with the result of the push Pushes an #GstEvent on the #GstHarness sinkpad. MT safe. a #GstHarness a #GstEvent to push a #gboolean with the result from the push Get the min latency reported by any harnessed #GstElement. MT safe. a #GstHarness a #GstClockTime with min latency A convenience function to allows you to call g_object_set on a #GstElement that are residing inside the #GstHarness, by using normal g_object_set syntax. MT safe. a #GstHarness a #gchar with a #GstElementFactory name a #gchar with the first property name value for the first property, followed optionally by more name/value pairs, followed by %NULL Setting this will make the harness block in the chain-function, and then release when gst_harness_pull() or gst_harness_try_pull() is called. Can be useful when wanting to control a src-element that is not implementing gst_clock_id_wait() so it can't be controlled by the #GstTestClock, since it otherwise would produce buffers as fast as possible. MT safe. a #GstHarness Sets the @GstHarness srcpad and sinkpad caps. MT safe. a #GstHarness a #GstCaps to set on the harness srcpad a #GstCaps to set on the harness sinkpad Sets the @GstHarness srcpad and sinkpad caps using strings. MT safe. a #GstHarness a @gchar describing a #GstCaps to set on the harness srcpad a @gchar describing a #GstCaps to set on the harness sinkpad When set to %TRUE, instead of placing the buffers arriving from the harnessed #GstElement inside the sinkpads #GAsyncQueue, they are instead unreffed. MT safe. a #GstHarness a #gboolean specifying to drop outgoing buffers or not As a convenience, a src-harness will forward %GST_EVENT_STREAM_START, %GST_EVENT_CAPS and %GST_EVENT_SEGMENT to the main-harness if forwarding is enabled, and forward any sticky-events from the main-harness to the sink-harness. It will also forward the %GST_QUERY_ALLOCATION. If forwarding is disabled, the user will have to either manually push these events from the src-harness using gst_harness_src_push_event(), or create and push them manually. While this will allow full control and inspection of these events, for the most cases having forwarding enabled will be sufficient when writing a test where the src-harness' main function is providing data for the main-harness. Forwarding is enabled by default. MT safe. a #GstHarness a #gboolean to enable/disable forwarding Sets the @allocator and @params to propose when receiving an allocation query. MT safe. a #GstHarness a #GstAllocator a #GstAllocationParams Sets the @GstHarness sinkpad caps. MT safe. a #GstHarness a #GstCaps to set on the harness sinkpad Sets the @GstHarness sinkpad caps using a string. MT safe. a #GstHarness a @gchar describing a #GstCaps to set on the harness sinkpad Sets the @GstHarness srcpad caps. This must be done before any buffers can legally be pushed from the harness to the element. MT safe. a #GstHarness a #GstCaps to set on the harness srcpad Sets the @GstHarness srcpad caps using a string. This must be done before any buffers can legally be pushed from the harness to the element. MT safe. a #GstHarness a @gchar describing a #GstCaps to set on the harness srcpad Advance the #GstTestClock to a specific time. MT safe. a #GstHarness a #GstClockTime to advance the clock to a @gboolean %TRUE if the time could be set. %FALSE if not. Sets the min latency reported by #GstHarness when receiving a latency-query MT safe. a #GstHarness a #GstClockTime specifying the latency a #GstClockTime with min latency Convenience that calls gst_harness_push_to_sink @pushes number of times. Will abort the pushing if any one push fails. MT safe. a #GstHarness a #gint with the number of calls to gst_harness_push_to_sink a #GstFlowReturn with the result of the push Transfer data from the src-#GstHarness to the main-#GstHarness. Similar to gst_harness_push_from_src, this variant allows you to specify how many cranks and how many pushes to perform. This can be useful for both moving a lot of data at the same time, as well as cases when one crank does not equal one buffer to push and v.v. MT safe. a #GstHarness a #gint with the number of calls to gst_harness_crank_single_clock_wait a #gint with the number of calls to gst_harness_push a #GstFlowReturn with the result of the push Similar to what gst_harness_src_push does with #GstBuffers, this transfers a #GstEvent from the src-#GstHarness to the main-#GstHarness. Note that some #GstEvents are being transferred automagically. Look at sink_forward_pad for details. MT safe. a #GstHarness a #gboolean with the result of the push Start a custom stress-thread that will call your @callback for every iteration allowing you to do something nasty. MT safe. a #GstHarness a #GFunc that is called initially and only once a #GFunc that is called as often as possible a #gpointer with custom data to pass to the @callback function a #gulong specifying how long to sleep in (microseconds) for each call to the @callback a #GstHarnessThread Call g_object_set with @name and @value in intervals of @sleep microseconds MT safe. a #GstHarness a #gchar specifying a property name a #GValue to set the property to a #gulong specifying how long to sleep in (microseconds) for each g_object_set with @name and @value a #GstHarnessThread Push a #GstBuffer in intervals of @sleep microseconds. MT safe. a #GstHarness a #GstCaps for the #GstBuffer a #GstSegment a #GstBuffer to push a #gulong specifying how long to sleep in (microseconds) for each call to gst_pad_push a #GstHarnessThread Push a #GstBuffer returned by @func in intervals of @sleep microseconds. MT safe. a #GstHarness a #GstCaps for the #GstBuffer a #GstSegment a #GstHarnessPrepareBufferFunc function called before every iteration to prepare / create a #GstBuffer for pushing a #gpointer with data to the #GstHarnessPrepareBufferFunc function a #GDestroyNotify that is called when thread is stopped a #gulong specifying how long to sleep in (microseconds) for each call to gst_pad_push a #GstHarnessThread Push the @event onto the harnessed #GstElement sinkpad in intervals of @sleep microseconds MT safe. a #GstHarness a #GstEvent to push a #gulong specifying how long to sleep in (microseconds) for each gst_event_push with @event a #GstHarnessThread Push a #GstEvent returned by @func onto the harnessed #GstElement sinkpad in intervals of @sleep microseconds. MT safe. a #GstHarness a #GstHarnessPrepareEventFunc function called before every iteration to prepare / create a #GstEvent for pushing a #gpointer with data to the #GstHarnessPrepareEventFunc function a #GDestroyNotify that is called when thread is stopped a #gulong specifying how long to sleep in (microseconds) for each call to gst_pad_push a #GstHarnessThread Push the @event onto the harnessed #GstElement srcpad in intervals of @sleep microseconds. MT safe. a #GstHarness a #GstEvent to push a #gulong specifying how long to sleep in (microseconds) for each gst_event_push with @event a #GstHarnessThread Push a #GstEvent returned by @func onto the harnessed #GstElement srcpad in intervals of @sleep microseconds. MT safe. a #GstHarness a #GstHarnessPrepareEventFunc function called before every iteration to prepare / create a #GstEvent for pushing a #gpointer with data to the #GstHarnessPrepareEventFunc function a #GDestroyNotify that is called when thread is stopped a #gulong specifying how long to sleep in (microseconds) for each call to gst_pad_push a #GstHarnessThread Call gst_element_request_pad in intervals of @sleep microseconds MT safe. a #GstHarness a #GstPadTemplate a #gchar a #GstCaps a #gboolean a #gulong specifying how long to sleep in (microseconds) for each gst_element_request_pad a #GstHarnessThread Change the state of your harnessed #GstElement from NULL to PLAYING and back again, only pausing for @sleep microseconds every time. MT safe. a #GstHarness a #gulong specifying how long to sleep in (microseconds) for each state-change a #GstHarnessThread Stop the running #GstHarnessThread MT safe. a #GstHarnessThread Tears down a @GstHarness, freeing all resources allocated using it. MT safe. a #GstHarness Pulls a #GstBuffer from the #GAsyncQueue on the #GstHarness sinkpad. Unlike gst_harness_pull this will not wait for any buffers if not any are present, and return %NULL straight away. MT safe. a #GstHarness a #GstBuffer or %NULL if no buffers are present in the #GAsyncQueue Pulls an #GstEvent from the #GAsyncQueue on the #GstHarness sinkpad. See gst_harness_try_pull for details. MT safe. a #GstHarness a #GstEvent or %NULL if no buffers are present in the #GAsyncQueue Pulls an #GstEvent from the #GAsyncQueue on the #GstHarness srcpad. See gst_harness_try_pull for details. MT safe. a #GstHarness a #GstEvent or %NULL if no buffers are present in the #GAsyncQueue The number of #GstEvents currently in the #GstHarness srcpad #GAsyncQueue MT safe. a #GstHarness a #guint number of events in the queue The total number of #GstEvents that has arrived on the #GstHarness srcpad This number includes events handled by the harness as well as events that have already been pulled out. MT safe. a #GstHarness a #guint number of events received Sets the system #GstClock on the @GstHarness #GstElement MT safe. a #GstHarness Sets the #GstTestClock on the #GstHarness #GstElement MT safe. a #GstHarness Waits for @timeout seconds until @waits number of #GstClockID waits is registered with the #GstTestClock. Useful for writing deterministic tests, where you want to make sure that an expected number of waits have been reached. MT safe. a #GstHarness a #guint describing the numbers of #GstClockID registered with the #GstTestClock a #guint describing how many seconds to wait for @waits to be true a @gboolean %TRUE if the waits have been registered, %FALSE if not. (Could be that it timed out waiting or that more waits then waits was found) Associate given format/value pairs with each other. Be sure to pass gint64 values to this functions varargs, you might want to use a gint64 cast to be sure. the index to add the entry to the id of the index writer optinal flags for this entry the format of the value the value other format/value pairs or 0 to end the list a pointer to the newly added entry in the index. Associate given format/value pairs with each other. the index to add the entry to the id of the index writer optinal flags for this entry number of associations list of associations a pointer to the newly added entry in the index. Adds a format entry into the index. This function is used to map dynamic #GstFormat ids to their original format key. Free-function: gst_index_entry_free the index to add the entry to the id of the index writer the format to add to the index a pointer to the newly added entry in the index. Add an id entry into the index. the index to add the entry to the id of the index writer the description of the index writer a pointer to the newly added entry in the index. Add the given object to the index with the given key. This function is not yet implemented. the index to add the object to the id of the index writer a key for the object the GType of the object a pointer to the object to add a pointer to the newly added entry in the index. Tell the index that the writer with the given id is done with this index and is not going to write any more entries to it. the index to commit the writer that commited the index Gets alternative formats associated with the indexentry. the index to search the format of the value the find a pointer to store the value %TRUE if there was a value associated with the given format. Copies an entry and returns the result. Free-function: gst_index_entry_free the entry to copy a newly allocated #GstIndexEntry. Free the memory used by the given entry. the entry to free Finds the given format/value in the index the index to search the id of the index writer The lookup method to use Flags for the entry the format of the value the value to find the entry associated with the value or %NULL if the value was not found. Finds the given format/value in the index with the given compare function and user_data. the index to search the id of the index writer The lookup method to use Flags for the entry the format of the value the value to find the function used to compare entries user data passed to the compare function the entry associated with the value or %NULL if the value was not found. Get the certainty of the given index. the index to get the certainty of the certainty of the index. Get the id of the current group. the index to get the current group from the id of the current group. Before entries can be added to the index, a writer should obtain a unique id. The methods to add new entries to the index require this id as an argument. The application can implement a custom function to map the writer object to a string. That string will be used to register or look up an id in the index. <note> The caller must not hold @writer's GST_OBJECT_LOCK(), as the default resolver may call functions that take the object lock as well, and the lock is not recursive. </note> the index to get a unique write id for the #GstObject to allocate an id for a pointer to a gint to hold the id %TRUE if the writer would be mapped to an id. Create a new dummy index object. Use gst_element_set_index() to assign that to an element or pipeline. This index is not storing anything, but will still emit e.g. the #GstIndex::entry-added signal. a new index object Create a new group for the given index. It will be set as the current group. the index to create the new group in the id of the newly created group. Set the certainty of the given index. the index to set the certainty on the certainty to set Lets the app register a custom filter function so that it can select what entries should be stored in the index. the index to register the filter on the filter to register data passed to the filter function Lets the app register a custom filter function so that it can select what entries should be stored in the index. the index to register the filter on the filter to register data passed to the filter function function to call when @user_data is unset Set the current groupnumber to the given argument. the index to set the new group in the groupnumber to set %TRUE if the operation succeeded, %FALSE if the group did not exist. Lets the app register a custom function to map index ids to writer descriptions. the index to register the resolver on the resolver to register data passed to the resolver function Lets the app register a custom function to map index ids to writer descriptions. the index to register the resolver on the resolver to register data passed to the resolver function destroy function for @user_data Allocates, fills and returns a null 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(). a printf style format string the printf arguments for @format a newly allocated null terminated string or %NULL on any error 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(). a printf style format string the va_list of printf arguments for @format a newly allocated null terminated string or %NULL on any error 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(). the resulting string a printf style format string the va_list of printf arguments for @format the length of the string allocated into @result or -1 on any error 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 <link linkend="gst-running">Running GStreamer Applications</link> for how to disable automatic registry updates. <note><para> 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. </para></note> WARNING: This function does not work in the same way as corresponding functions in other glib-style libraries, such as gtk_init\(\). In particular, unknown command line options cause this function to abort program execution. pointer to application's argc pointer to application's argv 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. pointer to application's argc pointer to application's argv pointer to a #GError to which a message will be posted on error %TRUE if GStreamer could be initialized. Returns a #GOptionGroup 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). a pointer to GStreamer's option group. Requests plugin installation without blocking. Once the plugins have been installed or installation has failed, @func will be called with the result of the installation and your provided @user_data pointer. This function requires a running GLib/Gtk main loop. If you are not running a GLib/Gtk main loop, make sure to regularly call g_main_context_iteration(NULL,FALSE). The installer strings that make up @detail are typically obtained by calling gst_missing_plugin_message_get_installer_detail() on missing-plugin messages that have been caught on a pipeline's bus or created by the application via the provided API, such as gst_missing_element_message_new(). It is possible to request the installation of multiple missing plugins in one go (as might be required if there is a demuxer for a certain format installed but no suitable video decoder and no suitable audio decoder). NULL-terminated array of installer string details (see below) a #GstInstallPluginsContext, or NULL the function to call when the installer program returns the user data to pass to @func when called, or NULL result code whether an external installer could be started Frees a #GstInstallPluginsContext. a #GstInstallPluginsContext Creates a new #GstInstallPluginsContext. a new #GstInstallPluginsContext. Free with gst_install_plugins_context_free() when no longer needed This function is used to tell the external installer process whether it should ask for confirmation or not before searching for missing plugins. If set, this option will be passed to the installer via a --interaction=[show-confirm-search|hide-confirm-search] command line option. a #GstInstallPluginsContext whether to ask for confirmation before searching for plugins This function is used to pass the calling application's desktop file ID to the external installer process. A desktop file ID is the basename of the desktop file, including the .desktop extension. If set, the desktop file ID will be passed to the installer via a --desktop-id= command line option. a #GstInstallPluginsContext the desktop file ID of the calling application Sets the startup notification ID for the launched process. This is typically used to to pass the current X11 event timestamp to the external installer process. Startup notification IDs are defined in the [FreeDesktop.Org Startup Notifications standard](http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt). If set, the ID will be passed to the installer via a --startup-notification-id= command line option. GTK+/GNOME applications should be able to create a startup notification ID like this: <programlisting> timestamp = gtk_get_current_event_time (); startup_id = g_strdup_printf ("_TIME%u", timestamp); ... </programlisting> a #GstInstallPluginsContext the startup notification ID This function is for X11-based applications (such as most Gtk/Qt applications on linux/unix) only. You can use it to tell the external installer the XID of your main application window. That way the installer can make its own window transient to your application window during the installation. If set, the XID will be passed to the installer via a --transient-for=XID command line option. Gtk+/Gnome application should be able to obtain the XID of the top-level window like this: <programlisting> ##include <gtk/gtk.h> ##ifdef GDK_WINDOWING_X11 ##include <gdk/gdkx.h> ##endif ... ##ifdef GDK_WINDOWING_X11 xid = GDK_WINDOW_XWINDOW (GTK_WIDGET (application_window)->window); ##endif ... </programlisting> a #GstInstallPluginsContext the XWindow ID (XID) of the top-level application Checks whether plugin installation (initiated by this application only) is currently in progress. TRUE if plugin installation is in progress, otherwise FALSE Convenience function to return the descriptive string associated with a status code. This function returns English strings and should not be used for user messages. It is here only to assist in debugging. the return status code a descriptive string for the status code in @ret Checks whether plugin installation is likely to be supported by the current environment. This currently only checks whether the helper script that is to be provided by the distribution or operating system vendor exists. TRUE if plugin installation is likely to be supported. Requests plugin installation and block until the plugins have been installed or installation has failed. This function should almost never be used, it only exists for cases where a non-GLib main loop is running and the user wants to run it in a separate thread and marshal the result back asynchronously into the main thread using the other non-GLib main loop. You should almost always use gst_install_plugins_async() instead of this function. NULL-terminated array of installer string details a #GstInstallPluginsContext, or NULL the result of the installation. This returns a new, unbound #GstInterpolationControlSource. a new, unbound #GstInterpolationControlSource. Check if @mem is dmabuf memory. the memory to be check %TRUE if @mem is dmabuf memory, otherwise %FALSE Check if @mem is memory backed by an fd #GstMemory %TRUE when @mem has an fd that can be retrieved with gst_fd_memory_get_fd(). Use this function to check if GStreamer has been initialized with gst_init() or gst_init_check(). %TRUE if initialization has been done, %FALSE otherwise. Checks whether @msg is a missing plugins message. a #GstMessage %TRUE if @msg is a missing-plugins message, otherwise %FALSE. Convenience function to check if the given message is a "prepare-window-handle" message from a #GstVideoOverlay. a #GstMessage whether @msg is a "prepare-window-handle" message Copy the iterator and its state. a #GstIterator a new copy of @it. Create a new iterator from an existing iterator. The new iterator will only return those elements that match the given compare function @func. The first parameter that is passed to @func is the #GValue of the current iterator element and the second parameter is @user_data. @func should return 0 for elements that should be included in the filtered iterator. When this iterator is freed, @it will also be freed. The #GstIterator to filter the compare function to select elements user data passed to the compare function a new #GstIterator. MT safe. Find the first element in @it that matches the compare function @func. @func should return 0 when the element is found. The first parameter to @func will be the current element of the iterator and the second parameter will be @user_data. The result will be stored in @elem if a result is found. The iterator will not be freed. This function will return %FALSE if an error happened to the iterator or if the element wasn't found. The #GstIterator to iterate the compare function to use pointer to a #GValue where to store the result user data passed to the compare function Returns %TRUE if the element was found, else %FALSE. MT safe. Folds @func over the elements of @iter. That is to say, @func will be called as @func (object, @ret, @user_data) for each object in @it. The normal use of this procedure is to accumulate the results of operating on the objects in @ret. This procedure can be used (and is used internally) to implement the gst_iterator_foreach() and gst_iterator_find_custom() operations. The fold will proceed as long as @func returns %TRUE. When the iterator has no more arguments, %GST_ITERATOR_DONE will be returned. If @func returns %FALSE, the fold will stop, and %GST_ITERATOR_OK will be returned. Errors or resyncs will cause fold to return %GST_ITERATOR_ERROR or %GST_ITERATOR_RESYNC as appropriate. The iterator will not be freed. The #GstIterator to fold over the fold function the seed value passed to the fold function user data passed to the fold function A #GstIteratorResult, as described above. MT safe. Iterate over all element of @it and call the given function @func for each element. The #GstIterator to iterate the function to call for each element. user data passed to the function the result call to gst_iterator_fold(). The iterator will not be freed. MT safe. Free the iterator. MT safe. The #GstIterator to free Create a new iterator. This function is mainly used for objects implementing the next/resync/free function to iterate a data structure. For each item retrieved, the @item function is called with the lock held. The @free function is called when the iterator is freed. the size of the iterator structure #GType of children pointer to a #GMutex. pointer to a guint32 that is changed when the items in the iterator changed. copy function function to get next item function to call on each item retrieved function to resync the iterator function to free the iterator the new #GstIterator. MT safe. Create a new iterator designed for iterating @list. The list you iterate is usually part of a data structure @owner and is protected with @lock. The iterator will use @lock to retrieve the next item of the list and it will then call the @item function before releasing @lock again. When a concurrent update to the list is performed, usually by @owner while holding @lock, @master_cookie will be updated. The iterator implementation will notice the update of the cookie and will return %GST_ITERATOR_RESYNC to the user of the iterator in the next call to gst_iterator_next(). #GType of elements pointer to a #GMutex protecting the list. pointer to a guint32 that is incremented when the list is changed. pointer to the list object owning the list function to call on each item retrieved the new #GstIterator for @list. MT safe. This #GstIterator is a convenient iterator for the common case where a #GstIterator needs to be returned but only a single object has to be considered. This happens often for the #GstPadIterIntLinkFunction. #GType of the passed object object that this iterator should return the new #GstIterator for @object. Get the next item from the iterator in @elem. Only when this function returns %GST_ITERATOR_OK, @elem will contain a valid value. @elem must have been initialized to the type of the iterator or initialized to zeroes with g_value_unset(). The caller is responsible for unsetting or resetting @elem with g_value_unset() or g_value_reset() after usage. When this function returns %GST_ITERATOR_DONE, no more elements can be retrieved from @it. A return value of %GST_ITERATOR_RESYNC indicates that the element list was concurrently updated. The user of @it should call gst_iterator_resync() to get the newly updated list. A return value of %GST_ITERATOR_ERROR indicates an unrecoverable fatal error. The #GstIterator to iterate pointer to hold next element The result of the iteration. Unset @elem after usage. MT safe. Pushes @other iterator onto @it. All calls performed on @it are forwarded to @other. If @other returns %GST_ITERATOR_DONE, it is popped again and calls are handled by @it again. This function is mainly used by objects implementing the iterator next function to recurse into substructures. When gst_iterator_resync() is called on @it, @other will automatically be popped. MT safe. The #GstIterator to use The #GstIterator to push Resync the iterator. this function is mostly called after gst_iterator_next() returned %GST_ITERATOR_RESYNC. When an iterator was pushed on @it, it will automatically be popped again with this function. MT safe. The #GstIterator to resync This returns a new, unbound #GstLFOControlSource. a new, unbound #GstLFOControlSource. The default memory alignment in bytes - 1 an alignment of 7 would be the same as what malloc() guarantees. Return a copy of @size bytes from @mem starting from @offset. This copy is guaranteed to be writable. @size can be set to -1 to return a copy from @offset to the end of the memory region. a #GstMemory offset to copy from size to copy, or -1 to copy to the end of the memory region a new #GstMemory. Get the current @size, @offset and @maxsize of @mem. a #GstMemory pointer to offset pointer to maxsize the current sizes of @mem Initializes a newly allocated @mem with the given parameters. This function will call gst_mini_object_init() with the default memory parameters. a #GstMemory #GstMemoryFlags the #GstAllocator the parent of @mem the total size of the memory the alignment of the memory The offset in the memory the size of valid data in the memory Check if @mem1 and mem2 share the memory with a common parent memory object and that the memory is contiguous. If this is the case, the memory of @mem1 and @mem2 can be merged efficiently by performing gst_memory_share() on the parent object from the returned @offset. a #GstMemory a #GstMemory a pointer to a result offset %TRUE if the memory is contiguous and of a common parent. Check if @mem if allocated with an allocator for @mem_type. a #GstMemory a memory type %TRUE if @mem was allocated from an allocator for @mem_type. Create a #GstMemory object that is mapped with @flags. If @mem is mappable with @flags, this function returns the mapped @mem directly. Otherwise a mapped copy of @mem is returned. This function takes ownership of old @mem and returns a reference to a new #GstMemory. a #GstMemory pointer for info mapping flags a #GstMemory object mapped with @flags or %NULL when a mapping is not possible. Fill @info with the pointer and sizes of the memory in @mem that can be accessed according to @flags. This function can return %FALSE for various reasons: - the memory backed by @mem is not accessible with the given @flags. - the memory was already mapped with a different mapping. @info and its contents remain valid for as long as @mem is valid and until gst_memory_unmap() is called. For each gst_memory_map() call, a corresponding gst_memory_unmap() call should be done. a #GstMemory pointer for info mapping flags %TRUE if the map operation was successful. Allocate a new memory block that wraps the given @data. The prefix/padding must be filled with 0 if @flags contains #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively. #GstMemoryFlags data to wrap allocated size of @data offset in @data size of valid data user_data called with @user_data when the memory is freed a new #GstMemory. Increase the refcount of this memory. The memory to refcount @memory (for convenience when doing assignments) Resize the memory region. @mem should be writable and offset + size should be less than the maxsize of @mem. #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED will be cleared when offset or padding is increased respectively. a #GstMemory a new offset a new size Return a shared copy of @size bytes from @mem starting from @offset. No memory copy is performed and the memory region is simply shared. The result is guaranteed to be non-writable. @size can be set to -1 to return a shared copy from @offset to the end of the memory region. a #GstMemory offset to share from size to share, or -1 to share to the end of the memory region a new #GstMemory. Release the memory obtained with gst_memory_map() a #GstMemory a #GstMapInfo Decrease the refcount of an memory, freeing it if the refcount reaches 0. the memory to refcount Creates a copy of the message. Returns a copy of the message. the message to copy a new copy of @msg. MT safe Retrieve the sequence number of a message. Messages have ever-incrementing sequence numbers, which may also be set explicitly via gst_message_set_seqnum(). Sequence numbers are typically used to indicate that a message corresponds to some other set of messages or events, for example a SEGMENT_DONE message corresponding to a SEEK event. It is considered good practice to make this correspondence when possible, though it is not required. Note that events and messages share the same sequence number incrementor; two events or messages will never have the same sequence number unless that correspondence was made explicitly. A #GstMessage. The message's sequence number. MT safe. Extracts the object managing the streaming thread from @message. A valid #GstMessage of type GST_MESSAGE_STREAM_STATUS. a GValue containing the object that manages the streaming thread. This object is usually of type GstTask but other types can be added in the future. The object remains valid as long as @message is valid. Access the structure of the message. The #GstMessage. The structure of the message. The structure is still owned by the message, which means that you should not free it and that the pointer becomes invalid when you free the message. MT safe. Checks if @message has the given @name. This function is usually used to check the name of a custom message. The #GstMessage. name to check %TRUE if @name matches the name of the message structure. Tests if you can safely write into a message's structure or validly modify the seqnum and timestamp fields. a #GstMessage Checks if a message is writable. If not, a writable copy is made and returned. the message to make writable a message (possibly a duplicate) that is writable. MT safe Create a new application-typed message. GStreamer will never create these messages; they are a gift from us to you. Enjoy. The object originating the message. the structure for the message. The message will take ownership of the structure. The new application message. MT safe. The message is posted when elements completed an ASYNC state change. @running_time contains the time of the desired running_time when this elements goes to PLAYING. A value of #GST_CLOCK_TIME_NONE for @running_time means that the element has no clock interaction and thus doesn't care about the running_time of the pipeline. The object originating the message. the desired running_time The new async_done message. MT safe. This message is posted by elements when they start an ASYNC state change. The object originating the message. The new async_start message. MT safe. Create a new buffering message. This message can be posted by an element that needs to buffer data before it can continue processing. @percent should be a value between 0 and 100. A value of 100 means that the buffering completed. When @percent is < 100 the application should PAUSE a PLAYING pipeline. When @percent is 100, the application can set the pipeline (back) to PLAYING. The application must be prepared to receive BUFFERING messages in the PREROLLING state and may only set the pipeline to PLAYING after receiving a message with @percent set to 100, which can happen after the pipeline completed prerolling. MT safe. The object originating the message. The buffering percent The new buffering message. Create a clock lost message. This message is posted whenever the clock is not valid anymore. If this message is posted by the pipeline, the pipeline will select a new clock again when it goes to PLAYING. It might therefore be needed to set the pipeline to PAUSED and PLAYING again. The object originating the message. the clock that was lost The new clock lost message. MT safe. Create a clock provide message. This message is posted whenever an element is ready to provide a clock or lost its ability to provide a clock (maybe because it paused or became EOS). This message is mainly used internally to manage the clock selection. The object originating the message. the clock it provides %TRUE if the sender can provide a clock the new provide clock message. MT safe. Create a new custom-typed message. This can be used for anything not handled by other message-specific functions to pass a message to the app. The structure field can be %NULL. The #GstMessageType to distinguish messages The object originating the message. the structure for the message. The message will take ownership of the structure. The new message. MT safe. Creates a new device-added message. The device-added message is produced by #GstDeviceProvider or a #GstDeviceMonitor. They announce the appearance of monitored devices. The #GstObject that created the message The new #GstDevice a newly allocated #GstMessage Creates a new device-removed message. The device-removed message is produced by #GstDeviceProvider or a #GstDeviceMonitor. They announce the disappearance of monitored devices. The #GstObject that created the message The removed #GstDevice a newly allocated #GstMessage Create a new duration changed message. This message is posted by elements that know the duration of a stream when the duration changes. This message is received by bins and is used to calculate the total duration of a pipeline. Elements may post a duration message with a duration of GST_CLOCK_TIME_NONE to indicate that the duration has changed and the cached duration should be discarded. The new duration can then be retrieved via a query. The object originating the message. The new duration-changed message. MT safe. Create a new element-specific message. This is meant as a generic way of allowing one-way communication from an element to an application, for example "the firewire cable was unplugged". The format of the message should be documented in the element's documentation. The structure field can be %NULL. The object originating the message. The structure for the message. The message will take ownership of the structure. The new element message. MT safe. Create a new eos message. This message is generated and posted in the sink elements of a GstBin. The bin will only forward the EOS message to the application if all sinks have posted an EOS message. The object originating the message. The new eos message. MT safe. Create a new error message. The message will copy @error and @debug. This message is posted by element when a fatal event occurred. The pipeline will probably (partially) stop. The application receiving this message should stop the pipeline. The object originating the message. The GError for this message. A debugging string. the new error message. MT safe. This message is posted when an element has a new local #GstContext. The object originating the message. the context The new have-context message. MT safe. Create a new info message. The message will make copies of @error and @debug. MT safe. The object originating the message. The GError for this message. A debugging string. the new info message. This message can be posted by elements when their latency requirements have changed. The object originating the message. The new latency message. MT safe. This message is posted when an element needs a specific #GstContext. The object originating the message. The context type that is needed The new need-context message. MT safe. Create a new clock message. This message is posted whenever the pipeline selects a new clock for the pipeline. The object originating the message. the new selected clock The new new clock message. MT safe. Progress messages are posted by elements when they use an asynchronous task to perform actions triggered by a state change. @code contains a well defined string describing the action. @test should contain a user visible string detailing the current action. The object originating the message. a #GstProgressType a progress code free, user visible text describing the progress The new qos message. A QOS message is posted on the bus whenever an element decides to drop a buffer because of QoS reasons or whenever it changes its processing strategy because of QoS reasons (quality adjustments such as processing at lower accuracy). This message can be posted by an element that performs synchronisation against the clock (live) or it could be dropped by an element that performs QoS because of QOS events received from a downstream element (!live). @running_time, @stream_time, @timestamp, @duration should be set to the respective running-time, stream-time, timestamp and duration of the (dropped) buffer that generated the QoS event. Values can be left to GST_CLOCK_TIME_NONE when unknown. The object originating the message. if the message was generated by a live element the running time of the buffer that generated the message the stream time of the buffer that generated the message the timestamps of the buffer that generated the message the duration of the buffer that generated the message The new qos message. MT safe. This message can be posted by elements when they want to have their state changed. A typical use case would be an audio server that wants to pause the pipeline because a higher priority stream is being played. The object originating the message. The new requested state the new request state message. MT safe. This message is posted when the pipeline running-time should be reset to @running_time, like after a flushing seek. The object originating the message. the requested running-time The new reset_time message. MT safe. Create a new segment done message. This message is posted by elements that finish playback of a segment as a result of a segment seek. This message is received by the application after all elements that posted a segment_start have posted the segment_done. The object originating the message. The format of the position being done The position of the segment being done the new segment done message. MT safe. Create a new segment message. This message is posted by elements that start playback of a segment as a result of a segment seek. This message is not received by the application but is used for maintenance reasons in container elements. The object originating the message. The format of the position being played The position of the segment being played the new segment start message. MT safe. Create a state change message. This message is posted whenever an element changed its state. The object originating the message. the previous state the new (current) state the pending (target) state the new state change message. MT safe. Create a state dirty message. This message is posted whenever an element changed its state asynchronously and is used internally to update the states of container objects. The object originating the message the new state dirty message. MT safe. This message is posted by elements when they complete a part, when @intermediate set to %TRUE, or a complete step operation. @duration will contain the amount of time (in GST_FORMAT_TIME) of the stepped @amount of media in format @format. The object originating the message. the format of @amount the amount of stepped data the rate of the stepped amount is this an flushing step is this an intermediate step the duration of the data the step caused EOS the new step_done message. MT safe. This message is posted by elements when they accept or activate a new step event for @amount in @format. @active is set to %FALSE when the element accepted the new step event and has queued it for execution in the streaming threads. @active is set to %TRUE when the element has activated the step operation and is now ready to start executing the step in the streaming thread. After this message is emitted, the application can queue a new step operation in the element. The object originating the message. if the step is active or queued the format of @amount the amount of stepped data the rate of the stepped amount is this an flushing step is this an intermediate step The new step_start message. MT safe. Create a new stream_start message. This message is generated and posted in the sink elements of a GstBin. The bin will only forward the STREAM_START message to the application if all sinks have posted an STREAM_START message. The object originating the message. The new stream_start message. MT safe. Create a new stream status message. This message is posted when a streaming thread is created/destroyed or when the state changed. The object originating the message. The stream status type. the owner element of @src. the new stream status message. MT safe. Create a new structure change message. This message is posted when the structure of a pipeline is in the process of being changed, for example when pads are linked or unlinked. @src should be the sinkpad that unlinked or linked. The object originating the message. The change type. The owner element of @src. Whether the structure change is busy. the new structure change message. MT safe. Create a new tag message. The message will take ownership of the tag list. The message is posted by elements that discovered a new taglist. The object originating the message. the tag list for the message. the new tag message. MT safe. Create a new TOC message. The message is posted by elements that discovered or updated a TOC. the object originating the message. #GstToc structure for the message. whether TOC was updated or not. a new TOC message. MT safe. Create a new warning message. The message will make copies of @error and @debug. The object originating the message. The GError for this message. A debugging string. The new warning message. MT safe. Extract the running_time from the async_done message. MT safe. A valid #GstMessage of type GST_MESSAGE_ASYNC_DONE. Result location for the running_time or %NULL Extracts the buffering percent from the GstMessage. see also gst_message_new_buffering(). MT safe. A valid #GstMessage of type GST_MESSAGE_BUFFERING. Return location for the percent. Extracts the buffering stats values from @message. A valid #GstMessage of type GST_MESSAGE_BUFFERING. a buffering mode, or %NULL the average input rate, or %NULL the average output rate, or %NULL amount of buffering time left in milliseconds, or %NULL Extracts the lost clock from the GstMessage. The clock object returned remains valid until the message is freed. MT safe. A valid #GstMessage of type GST_MESSAGE_CLOCK_LOST. a pointer to hold the lost clock Extracts the clock and ready flag from the GstMessage. The clock object returned remains valid until the message is freed. MT safe. A valid #GstMessage of type GST_MESSAGE_CLOCK_PROVIDE. a pointer to hold a clock object, or %NULL a pointer to hold the ready flag, or %NULL Parse a context type from an existing GST_MESSAGE_NEED_CONTEXT message. a GST_MESSAGE_NEED_CONTEXT type message the context type, or %NULL a #gboolean indicating if the parsing succeeded. Parses a device-added message. The device-added message is produced by #GstDeviceProvider or a #GstDeviceMonitor. It announces the appearance of monitored devices. a #GstMessage of type %GST_MESSAGE_DEVICE_ADDED A location where to store a pointer to the new #GstDevice, or %NULL Parses a device-removed message. The device-removed message is produced by #GstDeviceProvider or a #GstDeviceMonitor. It announces the disappearance of monitored devices. a #GstMessage of type %GST_MESSAGE_DEVICE_REMOVED A location where to store a pointer to the removed #GstDevice, or %NULL Extracts the GError and debug string from the GstMessage. The values returned in the output arguments are copies; the caller must free them when done. Typical usage of this function might be: |[<!-- language="C" --> ... switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_ERROR: { GError *err = NULL; gchar *dbg_info = NULL; gst_message_parse_error (msg, &err, &dbg_info); g_printerr ("ERROR from element %s: %s\n", GST_OBJECT_NAME (msg->src), err->message); g_printerr ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none"); g_error_free (err); g_free (dbg_info); break; } ... } ... ]| MT safe. A valid #GstMessage of type GST_MESSAGE_ERROR. location for the GError location for the debug message, or %NULL Extract the group from the STREAM_START message. A valid #GstMessage of type GST_MESSAGE_STREAM_START. Result location for the group id or %NULL %TRUE if the message had a group id set, %FALSE otherwise MT safe. Extract the context from the HAVE_CONTEXT message. MT safe. A valid #GstMessage of type GST_MESSAGE_HAVE_CONTEXT. Result location for the context or %NULL Extracts the GError and debug string from the GstMessage. The values returned in the output arguments are copies; the caller must free them when done. MT safe. A valid #GstMessage of type GST_MESSAGE_INFO. location for the GError location for the debug message, or %NULL Extracts the new clock from the GstMessage. The clock object returned remains valid until the message is freed. MT safe. A valid #GstMessage of type GST_MESSAGE_NEW_CLOCK. a pointer to hold the selected new clock Parses the progress @type, @code and @text. A valid #GstMessage of type GST_MESSAGE_PROGRESS. location for the type location for the code location for the text Extract the timestamps and live status from the QoS message. The returned values give the running_time, stream_time, timestamp and duration of the dropped buffer. Values of GST_CLOCK_TIME_NONE mean unknown values. MT safe. A valid #GstMessage of type GST_MESSAGE_QOS. if the message was generated by a live element the running time of the buffer that generated the message the stream time of the buffer that generated the message the timestamps of the buffer that generated the message the duration of the buffer that generated the message Extract the QoS stats representing the history of the current continuous pipeline playback period. When @format is @GST_FORMAT_UNDEFINED both @dropped and @processed are invalid. Values of -1 for either @processed or @dropped mean unknown values. MT safe. A valid #GstMessage of type GST_MESSAGE_QOS. Units of the 'processed' and 'dropped' fields. Video sinks and video filters will use GST_FORMAT_BUFFERS (frames). Audio sinks and audio filters will likely use GST_FORMAT_DEFAULT (samples). Total number of units correctly processed since the last state change to READY or a flushing operation. Total number of units dropped since the last state change to READY or a flushing operation. Extract the QoS values that have been calculated/analysed from the QoS data MT safe. A valid #GstMessage of type GST_MESSAGE_QOS. The difference of the running-time against the deadline. Long term prediction of the ideal rate relative to normal rate to get optimal quality. An element dependent integer value that specifies the current quality level of the element. The default maximum quality is 1000000. Extract the requested state from the request_state message. MT safe. A valid #GstMessage of type GST_MESSAGE_REQUEST_STATE. Result location for the requested state or %NULL Extract the running-time from the RESET_TIME message. MT safe. A valid #GstMessage of type GST_MESSAGE_RESET_TIME. Result location for the running_time or %NULL Extracts the position and format from the segment done message. MT safe. A valid #GstMessage of type GST_MESSAGE_SEGMENT_DONE. Result location for the format, or %NULL Result location for the position, or %NULL Extracts the position and format from the segment start message. MT safe. A valid #GstMessage of type GST_MESSAGE_SEGMENT_START. Result location for the format, or %NULL Result location for the position, or %NULL Extracts the old and new states from the GstMessage. Typical usage of this function might be: |[<!-- language="C" --> ... switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_STATE_CHANGED: { GstState old_state, new_state; gst_message_parse_state_changed (msg, &old_state, &new_state, NULL); g_print ("Element %s changed state from %s to %s.\n", GST_OBJECT_NAME (msg->src), gst_element_state_get_name (old_state), gst_element_state_get_name (new_state)); break; } ... } ... ]| MT safe. a valid #GstMessage of type GST_MESSAGE_STATE_CHANGED the previous state, or %NULL the new (current) state, or %NULL the pending (target) state, or %NULL Extract the values the step_done message. MT safe. A valid #GstMessage of type GST_MESSAGE_STEP_DONE. result location for the format result location for the amount result location for the rate result location for the flush flag result location for the intermediate flag result location for the duration result location for the EOS flag Extract the values from step_start message. MT safe. A valid #GstMessage of type GST_MESSAGE_STEP_DONE. result location for the active flag result location for the format result location for the amount result location for the rate result location for the flush flag result location for the intermediate flag Extracts the stream status type and owner the GstMessage. The returned owner remains valid for as long as the reference to @message is valid and should thus not be unreffed. MT safe. A valid #GstMessage of type GST_MESSAGE_STREAM_STATUS. A pointer to hold the status type The owner element of the message source Extracts the change type and completion status from the GstMessage. MT safe. A valid #GstMessage of type GST_MESSAGE_STRUCTURE_CHANGE. A pointer to hold the change type The owner element of the message source a pointer to hold whether the change is in progress or has been completed Extracts the tag list from the GstMessage. The tag list returned in the output argument is a copy; the caller must free it when done. Typical usage of this function might be: |[<!-- language="C" --> ... switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_TAG: { GstTagList *tags = NULL; gst_message_parse_tag (msg, &tags); g_print ("Got tags from element %s\n", GST_OBJECT_NAME (msg->src)); handle_tags (tags); gst_tag_list_unref (tags); break; } ... } ... ]| MT safe. A valid #GstMessage of type GST_MESSAGE_TAG. return location for the tag-list. Extract the TOC from the #GstMessage. The TOC returned in the output argument is a copy; the caller must free it with gst_toc_unref() when done. MT safe. a valid #GstMessage of type GST_MESSAGE_TOC. return location for the TOC. return location for the updated flag. Extracts the GError and debug string from the GstMessage. The values returned in the output arguments are copies; the caller must free them when done. MT safe. A valid #GstMessage of type GST_MESSAGE_WARNING. location for the GError location for the debug message, or %NULL Convenience macro to increase the reference count of the message. the message to ref @msg (for convenience when doing assignments) Modifies a pointer to a #GstMessage to point to a different #GstMessage. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old message is unreffed, the new one is reffed). Either @new_message or the #GstMessage pointed to by @old_message may be %NULL. pointer to a pointer to a #GstMessage to be replaced. pointer to a #GstMessage that will replace the message pointed to by @old_message. %TRUE if @new_message was different from @old_message Configures the buffering stats values in @message. A valid #GstMessage of type GST_MESSAGE_BUFFERING. a buffering mode the average input rate the average output rate amount of buffering time left in milliseconds Sets the group id on the stream-start message. All streams that have the same group id are supposed to be played together, i.e. all streams inside a container file should have the same group id but different stream ids. The group id should change each time the stream is started, resulting in different group ids each time a file is played for example. MT safe. the message the group id Set the QoS stats representing the history of the current continuous pipeline playback period. When @format is @GST_FORMAT_UNDEFINED both @dropped and @processed are invalid. Values of -1 for either @processed or @dropped mean unknown values. MT safe. A valid #GstMessage of type GST_MESSAGE_QOS. Units of the 'processed' and 'dropped' fields. Video sinks and video filters will use GST_FORMAT_BUFFERS (frames). Audio sinks and audio filters will likely use GST_FORMAT_DEFAULT (samples). Total number of units correctly processed since the last state change to READY or a flushing operation. Total number of units dropped since the last state change to READY or a flushing operation. Set the QoS values that have been calculated/analysed from the QoS data MT safe. A valid #GstMessage of type GST_MESSAGE_QOS. The difference of the running-time against the deadline. Long term prediction of the ideal rate relative to normal rate to get optimal quality. An element dependent integer value that specifies the current quality level of the element. The default maximum quality is 1000000. Set the sequence number of a message. This function might be called by the creator of a message to indicate that the message relates to other messages or events. See gst_message_get_seqnum() for more information. MT safe. A #GstMessage. A sequence number. Configures the object handling the streaming thread. This is usually a GstTask object but other objects might be added in the future. A valid #GstMessage of type GST_MESSAGE_STREAM_STATUS. the object controlling the streaming Get a printable name for the given message type. Do not modify or free. the message type a reference to the static name of the message. Get the unique quark for the given message type. the message type the quark associated with the message type Convenience macro to decrease the reference count of the message, possibly freeing it. the message to unref an API an array of tags as strings. Check if @api was registered with @tag. an API the tag to check %TRUE if @api was registered with @tag. Register and return a GType for the @api and associate it with @tags. an API to register tags for @api a unique GType for @api. Lookup a previously registered meta info structure by its implementation name @impl. the name a #GstMetaInfo with @impl, or %NULL when no such metainfo exists. Register a new #GstMeta implementation. The same @info can be retrieved later with gst_meta_get_info() by using @impl as the key. the type of the #GstMeta API the name of the #GstMeta implementation the size of the #GstMeta structure a #GstMetaInitFunction a #GstMetaFreeFunction a #GstMetaTransformFunction a #GstMetaInfo that can be used to access metadata. GQuark for the "gst-copy" transform. Add a Crypto policy for SRTP to @msg. a #GstMIKEYMessage The security policy applied for the stream with @ssrc the SSRC that must be used for the stream current rollover counter %TRUE on success Add a new payload to @msg. a #GstMIKEYMessage a #GstMIKEYPayload %TRUE on success Add a new PKE payload to @msg with the given parameters. a #GstMIKEYMessage envelope key cache indicator the length of @data the encrypted envelope key %TRUE on success Add a new RAND payload to @msg with the given parameters. a #GstMIKEYMessage the length of @rand random data %TRUE on success Add a new RAND payload to @msg with @len random bytes. a #GstMIKEYMessage length %TRUE on success Add a new T payload to @msg with the given parameters. a #GstMIKEYMessage specifies the timestamp type used The timestamp value of the specified @type %TRUE on success Add a new T payload to @msg that contains the current time in NTP-UTC format. a #GstMIKEYMessage %TRUE on success a #GstMIKEYMessage a #gchar, base64-encoded data Create a copy of the given message. a #GstMIKEYMessage. a new copy of @message. Find the @nth occurence of the payload with @type in @msg. a #GstMIKEYMessage a #GstMIKEYPayloadType payload to find the @nth #GstMIKEYPayload of @type. Get the policy information of @msg at @idx. a #GstMIKEYMessage an index a #GstMIKEYMapSRTP Get the number of crypto sessions in @msg. a #GstMIKEYMessage the number of crypto sessions Get the number of payloads in @msg. a #GstMIKEYMessage the number of payloads in @msg Get the #GstMIKEYPayload at @idx in @msg a #GstMIKEYMessage an index the #GstMIKEYPayload at @idx. The payload remains valid for as long as it is part of @msg. Insert a Crypto Session map for SRTP in @msg at @idx When @idx is -1, the policy will be appended. a #GstMIKEYMessage the index to insert at the map info %TRUE on success Insert the @payload at index @idx in @msg. If @idx is -1, the payload will be appended to @msg. a #GstMIKEYMessage an index a #GstMIKEYPayload %TRUE on success Make a new MIKEY message. a new #GstMIKEYMessage on success Make a new #GstMIKEYMessage from @bytes. a #GBytes a #GstMIKEYDecryptInfo a #GError a new #GstMIKEYMessage Makes mikey message including: - Security Policy Payload - Key Data Transport Payload - Key Data Sub-Payload a #GstCaps, including SRTP parameters (srtp/srtcp cipher, authorization, key data) a #GstMIKEYMessage, or %NULL if there is no srtp information in the caps. Parse @size bytes from @data into a #GstMIKEYMessage. @info contains the parameters to decrypt and verify the data. bytes to read length of @data #GstMIKEYDecryptInfo a #GError a #GstMIKEYMessage on success or %NULL when parsing failed and @error will be set. Increase the refcount of this message. The message to refcount @message (for convenience when doing assignments) Remove the SRTP policy at @idx. a #GstMIKEYMessage the index to remove %TRUE on success Remove the payload in @msg at @idx a #GstMIKEYMessage an index %TRUE on success Replace a Crypto Session map for SRTP in @msg at @idx with @map. a #GstMIKEYMessage the index to insert at the map info %TRUE on success Replace the payload at @idx in @msg with @payload. a #GstMIKEYMessage an index a #GstMIKEYPayload %TRUE on success Set the information in @msg. a #GstMIKEYMessage a version a #GstMIKEYType verify flag the #GstMIKEYPRFFunc function to use the Crypto Session Bundle id the #GstMIKEYCSIDMapType %TRUE on success Convert @msg to a #GBytes. a #GstMIKEYMessage a #GstMIKEYEncryptInfo a #GError a new #GBytes for @msg. Decrease the refcount of an message, freeing it if the refcount reaches 0. the message to refcount Create a copy of the given payload. a #GstMIKEYPayload. a new copy of @payload. Add a new sub payload to @payload. a #GstMIKEYPayload a #GstMIKEYPayload to add %TRUE on success. Get the number of sub payloads of @payload. @payload should be of type %GST_MIKEY_PT_KEMAC. a #GstMIKEYPayload the number of sub payloads in @payload Get the sub payload of @payload at @idx. @payload should be of type %GST_MIKEY_PT_KEMAC. a #GstMIKEYPayload an index the #GstMIKEYPayload at @idx. Remove the sub payload at @idx in @payload. a #GstMIKEYPayload the index to remove %TRUE on success. Set the KEMAC parameters. @payload should point to a %GST_MIKEY_PT_KEMAC payload. a #GstMIKEYPayload the #GstMIKEYEncAlg a #GstMIKEYMacAlg %TRUE on success Set the key validity period in the %GST_MIKEY_PT_KEY_DATA @payload. a #GstMIKEYPayload the length of @vf_data the Valid From data the length of @vt_data the Valid To data %TRUE on success Set @key_len bytes of @key_data of type @key_type as the key for the %GST_MIKEY_PT_KEY_DATA @payload. a #GstMIKEYPayload a #GstMIKEYKeyDataType the length of @key_data the key of type @key_type %TRUE on success Set the salt key data. If @salt_len is 0 and @salt_data is %NULL, the salt data will be removed. a #GstMIKEYPayload the length of @salt_data the salt %TRUE on success Set the SPI/MKI validity in the %GST_MIKEY_PT_KEY_DATA @payload. a #GstMIKEYPayload the length of @spi_data the SPI/MKI data %TRUE on success Make a new #GstMIKEYPayload with @type. a #GstMIKEYPayloadType a new #GstMIKEYPayload or %NULL on failure. Set the PKE values in @payload. @payload must be of type %GST_MIKEY_PT_PKE. a #GstMIKEYPayload envelope key cache indicator the length of @data the encrypted envelope key %TRUE on success Set the random values in a %GST_MIKEY_PT_RAND @payload. a #GstMIKEYPayload the length of @rand random values %TRUE on success Increase the refcount of this payload. The payload to refcount @payload (for convenience when doing assignments) Add a new parameter to the %GST_MIKEY_PT_SP @payload with @type, @len and @val. a #GstMIKEYPayload a type a length @len bytes of data %TRUE on success Get the number of security policy parameters in a %GST_MIKEY_PT_SP @payload. a #GstMIKEYPayload the number of parameters in @payload Get the Security Policy parameter in a %GST_MIKEY_PT_SP @payload at @idx. a #GstMIKEYPayload an index the #GstMIKEYPayloadSPParam at @idx in @payload Remove the Security Policy parameters from a %GST_MIKEY_PT_SP @payload at @idx. a #GstMIKEYPayload an index %TRUE on success Set the Security Policy parameters for @payload. a #GstMIKEYPayload the policy number a #GstMIKEYSecProto %TRUE on success Set the timestamp in a %GST_MIKEY_PT_T @payload. a #GstMIKEYPayload the #GstMIKEYTSType the timestamp value %TRUE on success Decrease the refcount of an payload, freeing it if the refcount reaches 0. the payload to refcount Creates a copy of the mini-object. MT safe the mini-object to copy the new mini-object. This function gets back user data pointers stored via gst_mini_object_set_qdata(). The GstMiniObject to get a stored user data pointer from A #GQuark, naming the user data pointer The user data pointer set, or %NULL Initializes a mini-object with the desired type and copy/dispose/free functions. a #GstMiniObject initial #GstMiniObjectFlags the #GType of the mini-object to create the copy function, or %NULL the dispose function, or %NULL the free function or %NULL If @mini_object has the LOCKABLE flag set, check if the current EXCLUSIVE lock on @object is the only one, this means that changes to the object will not be visible to any other object. If the LOCKABLE flag is not set, check if the refcount of @mini_object is exactly 1, meaning that no other reference exists to the object and that the object is therefore writable. Modification of a mini-object should only be done after verifying that it is writable. the mini-object to check %TRUE if the object is writable. Lock the mini-object with the specified access mode in @flags. the mini-object to lock #GstLockFlags %TRUE if @object could be locked. Checks if a mini-object is writable. If not, a writable copy is made and returned. This gives away the reference to the original mini object, and returns a reference to the new object. MT safe the mini-object to make writable a mini-object (possibly the same pointer) that is writable. Increase the reference count of the mini-object. Note that the refcount affects the writability of @mini-object, see gst_mini_object_is_writable(). It is important to note that keeping additional references to GstMiniObject instances can potentially increase the number of memcpy operations in a pipeline, especially if the miniobject is a #GstBuffer. the mini-object the mini-object. 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 %NULL. pointer to a pointer to a mini-object to be replaced pointer to new mini-object %TRUE if @newdata was different from @olddata This sets an opaque, named pointer on a miniobject. The name is specified through a #GQuark (retrieved e.g. via g_quark_from_static_string()), and the pointer can be gotten back from the @object with gst_mini_object_get_qdata() until the @object is disposed. Setting a previously set user data pointer, overrides (frees) the old pointer set, using %NULL as pointer essentially removes the data stored. @destroy may be specified which is called with @data as argument when the @object is disposed, or the data is being overwritten by a call to gst_mini_object_set_qdata() with the same @quark. a #GstMiniObject A #GQuark, naming the user data pointer An opaque user data pointer Function to invoke with @data as argument, when @data needs to be freed Replace the current #GstMiniObject pointer to by @olddata with %NULL and return the old value. pointer to a pointer to a mini-object to be stolen the #GstMiniObject at @oldata This function gets back user data pointers stored via gst_mini_object_set_qdata() and removes the data from @object without invoking its destroy() function (if any was set). The GstMiniObject to get a stored user data pointer from A #GQuark, naming the user data pointer The user data pointer set, or %NULL 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 %NULL. pointer to a pointer to a mini-object to be replaced pointer to new mini-object %TRUE if @newdata was different from @olddata Unlock the mini-object with the specified access mode in @flags. the mini-object to unlock #GstLockFlags Decreases the reference count of the mini-object, possibly freeing the mini-object. the mini-object Adds a weak reference callback to a mini object. Weak references are used for notification when a mini object is finalized. They are called "weak references" because they allow you to safely hold a pointer to the mini object without calling gst_mini_object_ref() (gst_mini_object_ref() adds a strong reference, that is, forces the object to stay alive). #GstMiniObject to reference weakly callback to invoke before the mini object is freed extra data to pass to notify Removes a weak reference callback from a mini object. #GstMiniObject to remove a weak reference from callback to search for data to search for Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync(). This function is mainly for applications that call external plugin installation mechanisms using one of the two above-mentioned functions in the case where the application knows exactly what kind of plugin it is missing. the (fixed) caps for which a decoder element is needed a newly-allocated detail string, or NULL on error. Free string with g_free() when not needed any longer. Creates a missing-plugin message for @element to notify the application that a decoder element for a particular set of (fixed) caps is missing. This function is mainly for use in plugins. the #GstElement posting the message the (fixed) caps for which a decoder element is needed a new #GstMessage, or NULL on error Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync(). This function is mainly for applications that call external plugin installation mechanisms using one of the two above-mentioned functions in the case where the application knows exactly what kind of plugin it is missing. the name of the missing element (element factory), e.g. "videoscale" or "cdparanoiasrc" a newly-allocated detail string, or NULL on error. Free string with g_free() when not needed any longer. Creates a missing-plugin message for @element to notify the application that a certain required element is missing. This function is mainly for use in plugins. the #GstElement posting the message the name of the missing element (element factory), e.g. "videoscale" or "cdparanoiasrc" a new #GstMessage, or NULL on error Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync(). This function is mainly for applications that call external plugin installation mechanisms using one of the two above-mentioned functions in the case where the application knows exactly what kind of plugin it is missing. the (fixed) caps for which an encoder element is needed a newly-allocated detail string, or NULL on error. Free string with g_free() when not needed any longer. Creates a missing-plugin message for @element to notify the application that an encoder element for a particular set of (fixed) caps is missing. This function is mainly for use in plugins. the #GstElement posting the message the (fixed) caps for which an encoder element is needed a new #GstMessage, or NULL on error Returns a localised string describing the missing feature, for use in error dialogs and the like. Should never return NULL unless @msg is not a valid missing-plugin message. This function is mainly for applications that need a human-readable string describing a missing plugin, given a previously collected missing-plugin message a missing-plugin #GstMessage of type #GST_MESSAGE_ELEMENT a newly-allocated description string, or NULL on error. Free string with g_free() when not needed any longer. Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync(). This function is mainly for applications that call external plugin installation mechanisms using one of the two above-mentioned functions. a missing-plugin #GstMessage of type #GST_MESSAGE_ELEMENT a newly-allocated detail string, or NULL on error. Free string with g_free() when not needed any longer. Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync(). This function is mainly for applications that call external plugin installation mechanisms using one of the two above-mentioned functions in the case where the application knows exactly what kind of plugin it is missing. the URI protocol the missing source needs to implement, e.g. "http" or "mms" a newly-allocated detail string, or NULL on error. Free string with g_free() when not needed any longer. Creates a missing-plugin message for @element to notify the application that a sink element for a particular URI protocol is missing. This function is mainly for use in plugins. the #GstElement posting the message the URI protocol the missing sink needs to implement, e.g. "http" or "smb" a new #GstMessage, or NULL on error Returns an opaque string containing all the details about the missing element to be passed to an external installer called via gst_install_plugins_async() or gst_install_plugins_sync(). This function is mainly for applications that call external plugin installation mechanisms using one of the two above-mentioned functions in the case where the application knows exactly what kind of plugin it is missing. the URI protocol the missing source needs to implement, e.g. "http" or "mms" a newly-allocated detail string, or NULL on error. Free string with g_free() when not needed any longer. Creates a missing-plugin message for @element to notify the application that a source element for a particular URI protocol is missing. This function is mainly for use in plugins. the #GstElement posting the message the URI protocol the missing source needs to implement, e.g. "http" or "mms" a new #GstMessage, or NULL on error Inspect a #GstEvent and return the #GstNavigationEventType of the event, or #GST_NAVIGATION_EVENT_INVALID if the event is not a #GstNavigation event. A #GstEvent to inspect. Inspect a #GstNavigation command event and retrieve the enum value of the associated command. A #GstEvent to inspect. Pointer to GstNavigationCommand to receive the type of the navigation event. TRUE if the navigation command could be extracted, otherwise FALSE. A #GstEvent to inspect. A pointer to a location to receive the string identifying the key press. The returned string is owned by the event, and valid only until the event is unreffed. Retrieve the details of either a #GstNavigation mouse button press event or a mouse button release event. Determine which type the event is using gst_navigation_event_get_type() to retrieve the #GstNavigationEventType. A #GstEvent to inspect. Pointer to a gint that will receive the button number associated with the event. Pointer to a gdouble to receive the x coordinate of the mouse button event. Pointer to a gdouble to receive the y coordinate of the mouse button event. TRUE if the button number and both coordinates could be extracted, otherwise FALSE. Inspect a #GstNavigation mouse movement event and extract the coordinates of the event. A #GstEvent to inspect. Pointer to a gdouble to receive the x coordinate of the mouse movement. Pointer to a gdouble to receive the y coordinate of the mouse movement. TRUE if both coordinates could be extracted, otherwise FALSE. Check a bus message to see if it is a #GstNavigation event, and return the #GstNavigationMessageType identifying the type of the message if so. A #GstMessage to inspect. The type of the #GstMessage, or #GST_NAVIGATION_MESSAGE_INVALID if the message is not a #GstNavigation notification. Creates a new #GstNavigation message with type #GST_NAVIGATION_MESSAGE_ANGLES_CHANGED for notifying an application that the current angle, or current number of angles available in a multiangle video has changed. A #GstObject to set as source of the new message. The currently selected angle. The number of viewing angles now available. The new #GstMessage. Creates a new #GstNavigation message with type #GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED A #GstObject to set as source of the new message. The new #GstMessage. Creates a new #GstNavigation message with type #GST_NAVIGATION_MESSAGE_EVENT. A #GstObject to set as source of the new message. A navigation #GstEvent The new #GstMessage. Creates a new #GstNavigation message with type #GST_NAVIGATION_MESSAGE_MOUSE_OVER. A #GstObject to set as source of the new message. %TRUE if the mouse has entered a clickable area of the display. %FALSE if it over a non-clickable area. The new #GstMessage. Parse a #GstNavigation message of type GST_NAVIGATION_MESSAGE_ANGLES_CHANGED and extract the @cur_angle and @n_angles parameters. A #GstMessage to inspect. A pointer to a #guint to receive the new current angle number, or NULL A pointer to a #guint to receive the new angle count, or NULL. %TRUE if the message could be successfully parsed. %FALSE if not. Parse a #GstNavigation message of type #GST_NAVIGATION_MESSAGE_EVENT and extract contained #GstEvent. The caller must unref the @event when done with it. A #GstMessage to inspect. a pointer to a #GstEvent to receive the contained navigation event. %TRUE if the message could be successfully parsed. %FALSE if not. Parse a #GstNavigation message of type #GST_NAVIGATION_MESSAGE_MOUSE_OVER and extract the active/inactive flag. If the mouse over event is marked active, it indicates that the mouse is over a clickable area. A #GstMessage to inspect. A pointer to a gboolean to receive the active/inactive state, or NULL. %TRUE if the message could be successfully parsed. %FALSE if not. Inspect a #GstQuery and return the #GstNavigationQueryType associated with it if it is a #GstNavigation query. The query to inspect The #GstNavigationQueryType of the query, or #GST_NAVIGATION_QUERY_INVALID Create a new #GstNavigation angles query. When executed, it will query the pipeline for the set of currently available angles, which may be greater than one in a multiangle video. The new query. Create a new #GstNavigation commands query. When executed, it will query the pipeline for the set of currently available commands. The new query. Parse the current angle number in the #GstNavigation angles @query into the #guint pointed to by the @cur_angle variable, and the number of available angles into the #guint pointed to by the @n_angles variable. a #GstQuery Pointer to a #guint into which to store the currently selected angle value from the query, or NULL Pointer to a #guint into which to store the number of angles value from the query, or NULL %TRUE if the query could be successfully parsed. %FALSE if not. Parse the number of commands in the #GstNavigation commands @query. a #GstQuery the number of commands in this query. %TRUE if the query could be successfully parsed. %FALSE if not. Parse the #GstNavigation command query and retrieve the @nth command from it into @cmd. If the list contains less elements than @nth, @cmd will be set to #GST_NAVIGATION_COMMAND_INVALID. a #GstQuery the nth command to retrieve. a pointer to store the nth command into. %TRUE if the query could be successfully parsed. %FALSE if not. Set the #GstNavigation angles query result field in @query. a #GstQuery the current viewing angle to set. the number of viewing angles to set. Set the #GstNavigation command query result fields in @query. The number of commands passed must be equal to @n_commands. a #GstQuery the number of commands to set. A list of @GstNavigationCommand values, @n_cmds entries long. Set the #GstNavigation command query result fields in @query. The number of commands passed must be equal to @n_commands. a #GstQuery the number of commands to set. An array containing @n_cmds @GstNavigationCommand values. Sends the indicated command to the navigation interface. The navigation interface instance The command to issue The navigation interface instance The type of the key event. Recognised values are "key-press" and "key-release" Character representation of the key. This is typically as produced by XKeysymToString. Sends a mouse event to the navigation interface. Mouse event coordinates are sent relative to the display space of the related output area. This is usually the size in pixels of the window associated with the element implementing the #GstNavigation interface. The navigation interface instance The type of mouse event, as a text string. Recognised values are "mouse-button-press", "mouse-button-release" and "mouse-move". The button number of the button being pressed or released. Pass 0 for mouse-move events. The x coordinate of the mouse event. The y coordinate of the mouse event. Create a new #GstNetClientInternalClock that will report the time provided by the #GstNetTimeProvider on @remote_address and @remote_port. a name for the clock the address or hostname of the remote clock provider the port of the remote clock provider initial time of the clock a new #GstClock that receives a time from the remote clock. Make a copy of @packet. the #GstNetTimePacket a copy of @packet, free with gst_net_time_packet_free(). Free @packet. the #GstNetTimePacket Creates a new #GstNetTimePacket from a buffer received over the network. The caller is responsible for ensuring that @buffer is at least #GST_NET_TIME_PACKET_SIZE bytes long. If @buffer is #NULL, the local and remote times will be set to #GST_CLOCK_TIME_NONE. MT safe. Caller owns return value (gst_net_time_packet_free to free). a buffer from which to construct the packet, or NULL The new #GstNetTimePacket. Receives a #GstNetTimePacket over a socket. Handles interrupted system calls, but otherwise returns NULL on error. socket to receive the time packet on address of variable to return sender address return address for a #GError, or NULL a new #GstNetTimePacket, or NULL on error. Free with gst_net_time_packet_free() when done. Sends a #GstNetTimePacket over a socket. MT safe. the #GstNetTimePacket to send socket to send the time packet on address to send the time packet to return address for a #GError, or NULL TRUE if successful, FALSE in case an error occurred. Serialized a #GstNetTimePacket into a newly-allocated sequence of #GST_NET_TIME_PACKET_SIZE bytes, in network byte order. The value returned is suitable for passing to write(2) or sendto(2) for communication over the network. MT safe. Caller owns return value (g_free to free). the #GstNetTimePacket A newly allocated sequence of #GST_NET_TIME_PACKET_SIZE bytes. Allows network clients to get the current time of @clock. a #GstClock to export over the network an address to bind on as a dotted quad (xxx.xxx.xxx.xxx), IPv6 address, or NULL to bind to all addresses a port to bind on, or 0 to let the kernel choose the new #GstNetTimeProvider, or NULL on error Create a new #GstNtpClock that will report the time provided by the NTPv4 server on @remote_address and @remote_port. a name for the clock the address or hostname of the remote clock provider the port of the remote clock provider initial time of the clock a new #GstClock that receives a time from the remote clock. Make a copy of @packet. the #GstNtpPacket a copy of @packet, free with gst_ntp_packet_free(). Free @packet. the #GstNtpPacket Creates a new #GstNtpPacket from a buffer received over the network. The caller is responsible for ensuring that @buffer is at least #GST_NTP_PACKET_SIZE bytes long. If @buffer is #NULL, the local and remote times will be set to #GST_CLOCK_TIME_NONE. MT safe. Caller owns return value (gst_ntp_packet_free to free). a buffer from which to construct the packet, or NULL a #GError The new #GstNtpPacket. Receives a #GstNtpPacket over a socket. Handles interrupted system calls, but otherwise returns NULL on error. socket to receive the time packet on address of variable to return sender address return address for a #GError, or NULL a new #GstNtpPacket, or NULL on error. Free with gst_ntp_packet_free() when done. Sends a #GstNtpPacket over a socket. MT safe. the #GstNtpPacket to send socket to send the time packet on address to send the time packet to return address for a #GError, or NULL TRUE if successful, FALSE in case an error occurred. Serialized a #GstNtpPacket into a newly-allocated sequence of #GST_NTP_PACKET_SIZE bytes, in network byte order. The value returned is suitable for passing to write(2) or sendto(2) for communication over the network. MT safe. Caller owns return value (g_free to free). the #GstNtpPacket A newly allocated sequence of #GST_NTP_PACKET_SIZE bytes. Attach the #GstControlBinding to the object. If there already was a #GstControlBinding for this property it will be replaced. The @object will take ownership of the @binding. the controller object the #GstControlBinding that should be used %FALSE if the given @binding has not been setup for this object or has been setup for a non suitable property, %TRUE otherwise. Checks to see if there is any object named @name in @list. This function does not do any locking of any kind. You might want to protect the provided list with the lock of the owner of the list. This function will lock each #GstObject in the list to compare the name, so be careful when passing a list with a locked object. a list of #GstObject to check through the name to search for %TRUE if a #GstObject named @name does not appear in @list, %FALSE if it does. MT safe. Grabs and releases the LOCK of each object in the list. A default deep_notify signal callback for an object. The user data should contain a pointer to an array of strings that should be excluded from the notify. The default handler will print the new value of the property using g_print. MT safe. This function grabs and releases @object's LOCK for getting its path string. the #GObject that signalled the notify. a #GstObject that initiated the notify. a #GParamSpec of the property. a set of user-specified properties to exclude or %NULL to show all changes. A default error function that uses g_printerr() to display the error message and the optional debug sting.. The default handler will simply print the error string using g_print. the #GstObject that initiated the error. the GError. an additional debug information string, or %NULL Gets the corresponding #GstControlBinding for the property. This should be unreferenced again after use. the object name of the property the #GstControlBinding for @property_name or %NULL if the property is not controlled. Obtain the control-rate for this @object. Audio processing #GstElement objects will use this rate to sub-divide their processing loop and call gst_object_sync_values() inbetween. The length of the processing segment should be up to @control-rate nanoseconds. If the @object is not under property control, this will return %GST_CLOCK_TIME_NONE. This allows the element to avoid the sub-dividing. The control-rate is not expected to change if the element is in %GST_STATE_PAUSED or %GST_STATE_PLAYING. the object that has controlled properties the control rate in nanoseconds Gets a number of #GValues for the given controlled property starting at the requested time. The array @values need to hold enough space for @n_values of #GValue. This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample. the object that has controlled properties the name of the property to get the time that should be processed the time spacing between subsequent values the number of values array to put control-values in %TRUE if the given array could be filled, %FALSE otherwise Returns a copy of the name of @object. Caller should g_free() the return value after usage. For a nameless object, this returns %NULL, which you can safely g_free() as well. Free-function: g_free a #GstObject the name of @object. g_free() after usage. MT safe. This function grabs and releases @object's LOCK. Returns the parent of @object. This function increases the refcount of the parent object so you should gst_object_unref() it after usage. a #GstObject parent of @object, this can be %NULL if @object has no parent. unref after usage. MT safe. Grabs and releases @object's LOCK. Generates a string describing the path of @object in the object hierarchy. Only useful (or used) for debugging. Free-function: g_free a #GstObject a string describing the path of @object. You must g_free() the string after usage. MT safe. Grabs and releases the #GstObject's LOCK for all objects in the hierarchy. Gets the value for the given controlled property at the requested time. the object that has controlled properties the name of the property to get the time the control-change should be read from the GValue of the property at the given time, or %NULL if the property isn't controlled. Gets a number of values for the given controlled property starting at the requested time. The array @values need to hold enough space for @n_values of the same type as the objects property's type. This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample. The values are unboxed and ready to be used. The similar function gst_object_get_g_value_array() returns the array as #GValues and is better suites for bindings. the object that has controlled properties the name of the property to get the time that should be processed the time spacing between subsequent values the number of values array to put control-values in %TRUE if the given array could be filled, %FALSE otherwise Check if the @object has an active controlled properties. the object that has controlled properties %TRUE if the object has active controlled properties Check if @object has an ancestor @ancestor somewhere up in the hierarchy. One can e.g. check if a #GstElement is inside a #GstPipeline. Deprecated: Use gst_object_has_as_ancestor() instead. MT safe. Grabs and releases @object's locks. a #GstObject to check a #GstObject to check as ancestor %TRUE if @ancestor is an ancestor of @object. Check if @object has an ancestor @ancestor somewhere up in the hierarchy. One can e.g. check if a #GstElement is inside a #GstPipeline. a #GstObject to check a #GstObject to check as ancestor %TRUE if @ancestor is an ancestor of @object. MT safe. Grabs and releases @object's locks. Check if @parent is the parent of @object. E.g. a #GstElement can check if it owns a given #GstPad. a #GstObject to check a #GstObject to check as parent %FALSE if either @object or @parent is %NULL. %TRUE if @parent is the parent of @object. Otherwise %FALSE. MT safe. Grabs and releases @object's locks. Increments the reference count on @object. This function does not take the lock on @object because it relies on atomic refcounting. This object returns the input parameter to ease writing constructs like : result = gst_object_ref (object->parent); a #GstObject to reference A pointer to @object Increase the reference count of @object, and possibly remove the floating reference, if @object has a floating reference. In other words, if the object is floating, then this call "assumes ownership" of the floating reference, converting it to a normal reference by clearing the floating flag while leaving the reference count unchanged. If the object is not floating, then this call adds a new normal reference increasing the reference count by one. a #GstObject to sink Removes the corresponding #GstControlBinding. If it was the last ref of the binding, it will be disposed. the object the binding %TRUE if the binding could be removed. Atomically modifies a pointer to point to a new object. The reference count of @oldobj is decreased and the reference count of @newobj is increased. Either @newobj and the value pointed to by @oldobj may be %NULL. pointer to a place of a #GstObject to replace a new #GstObject %TRUE if @newobj was different from @oldobj This function is used to disable the control bindings on a property for some time, i.e. gst_object_sync_values() will do nothing for the property. the object that has controlled properties property to disable boolean that specifies whether to disable the controller or not. This function is used to disable all controlled properties of the @object for some time, i.e. gst_object_sync_values() will do nothing. the object that has controlled properties boolean that specifies whether to disable the controller or not. Change the control-rate for this @object. Audio processing #GstElement objects will use this rate to sub-divide their processing loop and call gst_object_sync_values() inbetween. The length of the processing segment should be up to @control-rate nanoseconds. The control-rate should not change if the element is in %GST_STATE_PAUSED or %GST_STATE_PLAYING. the object that has controlled properties the new control-rate in nanoseconds. Sets the name of @object, or gives @object a guaranteed unique name (if @name is %NULL). This function makes a copy of the provided name, so the caller retains ownership of the name it sent. a #GstObject new name of object %TRUE if the name could be set. Since Objects that have a parent cannot be renamed, this function returns %FALSE in those cases. MT safe. This function grabs and releases @object's LOCK. Sets the parent of @object to @parent. The object's reference count will be incremented, and any floating reference will be removed (see gst_object_ref_sink()). a #GstObject new parent of object %TRUE if @parent could be set or %FALSE when @object already had a parent or @object and @parent are the same. MT safe. Grabs and releases @object's LOCK. Returns a suggestion for timestamps where buffers should be split to get best controller results. the object that has controlled properties Returns the suggested timestamp or %GST_CLOCK_TIME_NONE if no control-rate was set. Sets the properties of the object, according to the #GstControlSources that (maybe) handle them and for the given timestamp. If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly. the object that has controlled properties the time that should be processed %TRUE if the controller values could be applied to the object properties, %FALSE otherwise Clear the parent of @object, removing the associated reference. This function decreases the refcount of @object. MT safe. Grabs and releases @object's lock. a #GstObject to unparent Decrements the reference count on @object. If reference count hits zero, destroy @object. This function does not take the lock on @object as it relies on atomic refcounting. The unref method should never be called with the LOCK held since this might deadlock the dispose function. a #GstObject to unreference Activates or deactivates the given pad in @mode via dispatching to the pad's activatemodefunc. For use from within pad activation functions only. If you don't know what this is, you probably don't want to call it. the #GstPad to activate or deactivate. the requested activation mode whether or not the pad should be active. %TRUE if the operation was successful. MT safe. Be notified of different states of pads. The provided callback is called for every state that matches @mask. Probes are called in groups: First GST_PAD_PROBE_TYPE_BLOCK probes are called, then others, then finally GST_PAD_PROBE_TYPE_IDLE. The only exception here are GST_PAD_PROBE_TYPE_IDLE probes that are called immediately if the pad is already idle while calling gst_pad_add_probe(). In each of the groups, probes are called in the order in which they were added. the #GstPad to add the probe to the probe mask #GstPadProbeCallback that will be called with notifications of the pad state user data passed to the callback #GDestroyNotify for user_data an id or 0 if no probe is pending. The id can be used to remove the probe with gst_pad_remove_probe(). When using GST_PAD_PROBE_TYPE_IDLE it can happen that the probe can be run immediately and if the probe returns GST_PAD_PROBE_REMOVE this functions returns 0. MT safe. Checks if the source pad and the sink pad are compatible so they can be linked. the source #GstPad. the sink #GstPad. %TRUE if the pads can be linked. Chain a buffer to @pad. The function returns #GST_FLOW_FLUSHING if the pad was flushing. If the buffer type is not acceptable for @pad (as negotiated with a preceding GST_EVENT_CAPS event), this function returns #GST_FLOW_NOT_NEGOTIATED. The function proceeds calling the chain function installed on @pad (see gst_pad_set_chain_function()) and the return value of that function is returned to the caller. #GST_FLOW_NOT_SUPPORTED is returned if @pad has no chain function. In all cases, success or failure, the caller loses its reference to @buffer after calling this function. a sink #GstPad, returns GST_FLOW_ERROR if not. the #GstBuffer to send, return GST_FLOW_ERROR if not. a #GstFlowReturn from the pad. MT safe. Chain a bufferlist to @pad. The function returns #GST_FLOW_FLUSHING if the pad was flushing. If @pad was not negotiated properly with a CAPS event, this function returns #GST_FLOW_NOT_NEGOTIATED. The function proceeds calling the chainlist function installed on @pad (see gst_pad_set_chain_list_function()) and the return value of that function is returned to the caller. #GST_FLOW_NOT_SUPPORTED is returned if @pad has no chainlist function. In all cases, success or failure, the caller loses its reference to @list after calling this function. MT safe. a sink #GstPad, returns GST_FLOW_ERROR if not. the #GstBufferList to send, return GST_FLOW_ERROR if not. a #GstFlowReturn from the pad. Check and clear the #GST_PAD_FLAG_NEED_RECONFIGURE flag on @pad and return %TRUE if the flag was set. the #GstPad to check %TRUE is the GST_PAD_FLAG_NEED_RECONFIGURE flag was set on @pad. Creates a stream-id for the source #GstPad @pad by combining the upstream information with the optional @stream_id of the stream of @pad. @pad must have a parent #GstElement and which must have zero or one sinkpad. @stream_id can only be %NULL if the parent element of @pad has only a single source pad. This function generates an unique stream-id by getting the upstream stream-start event stream ID and appending @stream_id to it. If the element has no sinkpad it will generate an upstream stream-id by doing an URI query on the element and in the worst case just uses a random number. Source elements that don't implement the URI handler interface should ideally generate a unique, deterministic stream-id manually instead. Since stream IDs are sorted alphabetically, any numbers in the stream ID should be printed with a fixed number of characters, preceded by 0's, such as by using the format \%03u instead of \%u. A source #GstPad Parent #GstElement of @pad The stream-id A stream-id for @pad. g_free() after usage. Creates a stream-id for the source #GstPad @pad by combining the upstream information with the optional @stream_id of the stream of @pad. @pad must have a parent #GstElement and which must have zero or one sinkpad. @stream_id can only be %NULL if the parent element of @pad has only a single source pad. This function generates an unique stream-id by getting the upstream stream-start event stream ID and appending @stream_id to it. If the element has no sinkpad it will generate an upstream stream-id by doing an URI query on the element and in the worst case just uses a random number. Source elements that don't implement the URI handler interface should ideally generate a unique, deterministic stream-id manually instead. A source #GstPad Parent #GstElement of @pad The stream-id parameters for the @stream_id format string A stream-id for @pad. g_free() after usage. Creates a stream-id for the source #GstPad @pad by combining the upstream information with the optional @stream_id of the stream of @pad. @pad must have a parent #GstElement and which must have zero or one sinkpad. @stream_id can only be %NULL if the parent element of @pad has only a single source pad. This function generates an unique stream-id by getting the upstream stream-start event stream ID and appending @stream_id to it. If the element has no sinkpad it will generate an upstream stream-id by doing an URI query on the element and in the worst case just uses a random number. Source elements that don't implement the URI handler interface should ideally generate a unique, deterministic stream-id manually instead. A source #GstPad Parent #GstElement of @pad The stream-id parameters for the @stream_id format string A stream-id for @pad. g_free() after usage. Invokes the default event handler for the given pad. The EOS event will pause the task associated with @pad before it is forwarded to all internally linked pads, The event is sent to all pads internally linked to @pad. This function takes ownership of @event. a #GstPad to call the default event handler on. the parent of @pad or %NULL the #GstEvent to handle. %TRUE if the event was sent successfully. Calls @forward for all internally linked pads of @pad. This function deals with dynamically changing internal pads and will make sure that the @forward function is only called once for each pad. When @forward returns %TRUE, no further pads will be processed. a #GstPad a #GstPadForwardFunction user data passed to @forward %TRUE if one of the dispatcher functions returned %TRUE. Gets the capabilities of the allowed media types that can flow through @pad and its peer. The allowed capabilities is calculated as the intersection of the results of calling gst_pad_query_caps() on @pad and its peer. The caller owns a reference on the resulting caps. a #GstPad. the allowed #GstCaps of the pad link. Unref the caps when you no longer need it. This function returns %NULL when @pad has no peer. MT safe. Gets the capabilities currently configured on @pad with the last #GST_EVENT_CAPS event. a #GstPad to get the current capabilities of. the current caps of the pad with incremented ref-count or %NULL when pad has no caps. Unref after usage. Gets the direction of the pad. The direction of the pad is decided at construction time so this function does not take the LOCK. a #GstPad to get the direction of. the #GstPadDirection of the pad. MT safe. Gets the private data of a pad. No locking is performed in this function. the #GstPad to get the private data of. a #gpointer to the private data. Gets the #GstFlowReturn return from the last data passed by this pad. the #GstPad Get a copy of the name of the pad. g_free() after usage. MT safe. the pad to get the name from Get the offset applied to the running time of @pad. @pad has to be a source pad. a #GstPad the offset. Gets the template for @pad. a #GstPad. the #GstPadTemplate from which this pad was instantiated, or %NULL if this pad has no template. Unref after usage. Gets the capabilities for @pad's template. a #GstPad to get the template capabilities from. the #GstCaps of this pad template. Unref after usage. Get the parent of @pad. This function increases the refcount of the parent object so you should gst_object_unref() it after usage. Can return %NULL if the pad did not have a parent. MT safe. the pad to get the parent of the parent Gets the parent of @pad, cast to a #GstElement. If a @pad has no parent or its parent is not an element, return %NULL. a pad the parent of the pad. The caller has a reference on the parent, so unref when you're finished with it. MT safe. Gets the peer of @pad. This function refs the peer pad so you need to unref it after use. a #GstPad to get the peer of. the peer #GstPad. Unref after usage. MT safe. When @pad is flushing this function returns #GST_FLOW_FLUSHING immediately and @buffer is %NULL. Calls the getrange function of @pad, see #GstPadGetRangeFunction for a description of a getrange function. If @pad has no getrange function installed (see gst_pad_set_getrange_function()) this function returns #GST_FLOW_NOT_SUPPORTED. If @buffer points to a variable holding %NULL, a valid new #GstBuffer will be placed in @buffer when this function returns #GST_FLOW_OK. The new buffer must be freed with gst_buffer_unref() after usage. When @buffer points to a variable that points to a valid #GstBuffer, the buffer will be filled with the result data when this function returns #GST_FLOW_OK. If the provided buffer is larger than @size, only @size bytes will be filled in the result buffer and its size will be updated accordingly. Note that less than @size bytes can be returned in @buffer when, for example, an EOS condition is near or when @buffer is not large enough to hold @size bytes. The caller should check the result buffer size to get the result size. When this function returns any other result value than #GST_FLOW_OK, @buffer will be unchanged. This is a lowlevel function. Usually gst_pad_pull_range() is used. a src #GstPad, returns #GST_FLOW_ERROR if not. The start offset of the buffer The length of the buffer a pointer to hold the #GstBuffer, returns #GST_FLOW_ERROR if %NULL. a #GstFlowReturn from the pad. MT safe. Returns a new reference of the sticky event of type @event_type from the event. the #GstPad to get the event from. the #GstEventType that should be retrieved. the index of the event a #GstEvent of type @event_type or %NULL when no event of @event_type was on @pad. Unref after usage. Returns the current stream-id for the @pad, or %NULL if none has been set yet, i.e. the pad has not received a stream-start event yet. This is a convenience wrapper around gst_pad_get_sticky_event() and gst_event_parse_stream_start(). The returned stream-id string should be treated as an opaque string, its contents should not be interpreted. A source #GstPad a newly-allocated copy of the stream-id for @pad, or %NULL. g_free() the returned string when no longer needed. Check if @pad has caps set on it with a #GST_EVENT_CAPS event. a #GstPad to check %TRUE when @pad has caps associated with it. Query if a pad is active the #GstPad to query %TRUE if the pad is active. MT safe. Checks if the pad is blocked or not. This function returns the last requested state of the pad. It is not certain that the pad is actually blocking at this point (see gst_pad_is_blocking()). the #GstPad to query %TRUE if the pad is blocked. MT safe. Checks if the pad is blocking or not. This is a guaranteed state of whether the pad is actually blocking on a #GstBuffer or a #GstEvent. the #GstPad to query %TRUE if the pad is blocking. MT safe. Checks if a @pad is linked to another pad or not. pad to check %TRUE if the pad is linked, %FALSE otherwise. MT safe. Gets an iterator for the pads to which the given pad is linked to inside of the parent element. Each #GstPad element yielded by the iterator will have its refcount increased, so unref after use. Free-function: gst_iterator_free the GstPad to get the internal links of. a new #GstIterator of #GstPad or %NULL when the pad does not have an iterator function configured. Use gst_iterator_free() after usage. Iterate the list of pads to which the given pad is linked to inside of the parent element. This is the default handler, and thus returns an iterator of all of the pads inside the parent element with opposite direction. The caller must free this iterator after use with gst_iterator_free(). the #GstPad to get the internal links of. the parent of @pad or %NULL a #GstIterator of #GstPad, or %NULL if @pad has no parent. Unref each returned pad with gst_object_unref(). Links the source pad and the sink pad. the source #GstPad to link. the sink #GstPad to link. A result code indicating if the connection worked or what went wrong. MT Safe. Links the source pad and the sink pad. This variant of #gst_pad_link provides a more granular control on the checks being done when linking. While providing some considerable speedups the caller of this method must be aware that wrong usage of those flags can cause severe issues. Refer to the documentation of #GstPadLinkCheck for more information. MT Safe. the source #GstPad to link. the sink #GstPad to link. the checks to validate when linking A result code indicating if the connection worked or what went wrong. Gets a string representing the given pad-link return. a #GstPadLinkReturn to get the name of. a static string with the name of the pad-link return. Mark a pad for needing reconfiguration. The next call to gst_pad_check_reconfigure() will return %TRUE after this call. the #GstPad to mark Return the name of a pad mode, for use in debug messages mostly. the pad mode short mnemonic for pad mode @mode Check the #GST_PAD_FLAG_NEED_RECONFIGURE flag on @pad and return %TRUE if the flag was set. the #GstPad to check %TRUE is the GST_PAD_FLAG_NEED_RECONFIGURE flag is set on @pad. Creates a new pad with the given name in the given direction. If name is %NULL, a guaranteed unique name (across all pads) will be assigned. This function makes a copy of the name so you can safely free the name. the name of the new pad. the #GstPadDirection of the pad. a new #GstPad, or %NULL in case of an error. MT safe. Creates a new pad with the given name from the given static template. If name is %NULL, a guaranteed unique name (across all pads) will be assigned. This function makes a copy of the name so you can safely free the name. the #GstStaticPadTemplate to use the name of the pad a new #GstPad, or %NULL in case of an error. Creates a new pad with the given name from the given template. If name is %NULL, a guaranteed unique name (across all pads) will be assigned. This function makes a copy of the name so you can safely free the name. the pad template to use the name of the pad a new #GstPad, or %NULL in case of an error. Pause the task of @pad. This function will also wait until the function executed by the task is finished if this function is not called from the task function. the #GstPad to pause the task of a %TRUE if the task could be paused or %FALSE when the pad has no task. Performs gst_pad_query() on the peer of @pad. The caller is responsible for both the allocation and deallocation of the query structure. a #GstPad to invoke the peer query on. the #GstQuery to perform. %TRUE if the query could be performed. This function returns %FALSE if @pad has no peer. Check if the peer of @pad accepts @caps. If @pad has no peer, this function returns %TRUE. a #GstPad to check the peer of a #GstCaps to check on the pad %TRUE if the peer of @pad can accept the caps or @pad has no peer. Gets the capabilities of the peer connected to this pad. Similar to gst_pad_query_caps(). When called on srcpads @filter contains the caps that upstream could produce in the order preferred by upstream. When called on sinkpads @filter contains the caps accepted by downstream in the preferred order. @filter might be %NULL but if it is not %NULL the returned caps will be a subset of @filter. a #GstPad to get the capabilities of. a #GstCaps filter, or %NULL. the caps of the peer pad with incremented ref-count. When there is no peer pad, this function returns @filter or, when @filter is %NULL, ANY caps. Queries the peer pad of a given sink pad to convert @src_val in @src_format to @dest_format. a #GstPad, on whose peer pad to invoke the convert query on. Must be a sink pad. a #GstFormat to convert from. a value to convert. the #GstFormat to convert to. a pointer to the result. %TRUE if the query could be performed. Queries the peer pad of a given sink pad for the total stream duration. a #GstPad on whose peer pad to invoke the duration query on. Must be a sink pad. the #GstFormat requested a location in which to store the total duration, or %NULL. %TRUE if the query could be performed. Queries the peer of a given sink pad for the stream position. a #GstPad on whose peer to invoke the position query on. Must be a sink pad. the #GstFormat requested a location in which to store the current position, or %NULL. %TRUE if the query could be performed. a #GstPadProbeInfo The #GstBuffer from the probe a #GstPadProbeInfo The #GstBufferList from the probe a #GstPadProbeInfo The #GstEvent from the probe a #GstPadProbeInfo The #GstQuery from the probe Checks if all internally linked pads of @pad accepts the caps in @query and returns the intersection of the results. This function is useful as a default accept caps query function for an element that can handle any stream format, but requires caps that are acceptable for all opposite pads. a #GstPad to proxy. an ACCEPT_CAPS #GstQuery. %TRUE if @query could be executed Calls gst_pad_query_caps() for all internally linked pads of @pad and returns the intersection of the results. This function is useful as a default caps query function for an element that can handle any stream format, but requires all its pads to have the same caps. Two such elements are tee and adder. a #GstPad to proxy. a CAPS #GstQuery. %TRUE if @query could be executed Pulls a @buffer from the peer pad or fills up a provided buffer. This function will first trigger the pad block signal if it was installed. When @pad is not linked #GST_FLOW_NOT_LINKED is returned else this function returns the result of gst_pad_get_range() on the peer pad. See gst_pad_get_range() for a list of return values and for the semantics of the arguments of this function. If @buffer points to a variable holding %NULL, a valid new #GstBuffer will be placed in @buffer when this function returns #GST_FLOW_OK. The new buffer must be freed with gst_buffer_unref() after usage. When this function returns any other result value, @buffer will still point to %NULL. When @buffer points to a variable that points to a valid #GstBuffer, the buffer will be filled with the result data when this function returns #GST_FLOW_OK. When this function returns any other result value, @buffer will be unchanged. If the provided buffer is larger than @size, only @size bytes will be filled in the result buffer and its size will be updated accordingly. Note that less than @size bytes can be returned in @buffer when, for example, an EOS condition is near or when @buffer is not large enough to hold @size bytes. The caller should check the result buffer size to get the result size. a sink #GstPad, returns GST_FLOW_ERROR if not. The start offset of the buffer The length of the buffer a pointer to hold the #GstBuffer, returns GST_FLOW_ERROR if %NULL. a #GstFlowReturn from the peer pad. MT safe. Pushes a buffer to the peer of @pad. This function will call installed block probes before triggering any installed data probes. The function proceeds calling gst_pad_chain() on the peer pad and returns the value from that function. If @pad has no peer, #GST_FLOW_NOT_LINKED will be returned. In all cases, success or failure, the caller loses its reference to @buffer after calling this function. a source #GstPad, returns #GST_FLOW_ERROR if not. the #GstBuffer to push returns GST_FLOW_ERROR if not. a #GstFlowReturn from the peer pad. MT safe. Sends the event to the peer of the given pad. This function is mainly used by elements to send events to their peer elements. This function takes ownership of the provided event so you should gst_event_ref() it if you want to reuse the event after this call. a #GstPad to push the event to. the #GstEvent to send to the pad. %TRUE if the event was handled. MT safe. Pushes a buffer list to the peer of @pad. This function will call installed block probes before triggering any installed data probes. The function proceeds calling the chain function on the peer pad and returns the value from that function. If @pad has no peer, #GST_FLOW_NOT_LINKED will be returned. If the peer pad does not have any installed chainlist function every group buffer of the list will be merged into a normal #GstBuffer and chained via gst_pad_chain(). In all cases, success or failure, the caller loses its reference to @list after calling this function. a source #GstPad, returns #GST_FLOW_ERROR if not. the #GstBufferList to push returns GST_FLOW_ERROR if not. a #GstFlowReturn from the peer pad. MT safe. Dispatches a query to a pad. The query should have been allocated by the caller via one of the type-specific allocation functions. The element that the pad belongs to is responsible for filling the query with an appropriate response, which should then be parsed with a type-specific query parsing function. Again, the caller is responsible for both the allocation and deallocation of the query structure. Please also note that some queries might need a running pipeline to work. a #GstPad to invoke the default query on. the #GstQuery to perform. %TRUE if the query could be performed. Check if the given pad accepts the caps. a #GstPad to check a #GstCaps to check on the pad %TRUE if the pad can accept the caps. Gets the capabilities this pad can produce or consume. Note that this method doesn't necessarily return the caps set by sending a gst_event_new_caps() - use gst_pad_get_current_caps() for that instead. gst_pad_query_caps returns all possible caps a pad can operate with, using the pad's CAPS query function, If the query fails, this function will return @filter, if not %NULL, otherwise ANY. When called on sinkpads @filter contains the caps that upstream could produce in the order preferred by upstream. When called on srcpads @filter contains the caps accepted by downstream in the preferred order. @filter might be %NULL but if it is not %NULL the returned caps will be a subset of @filter. Note that this function does not return writable #GstCaps, use gst_caps_make_writable() before modifying the caps. a #GstPad to get the capabilities of. suggested #GstCaps, or %NULL the caps of the pad with incremented ref-count. Queries a pad to convert @src_val in @src_format to @dest_format. a #GstPad to invoke the convert query on. a #GstFormat to convert from. a value to convert. the #GstFormat to convert to. a pointer to the result. %TRUE if the query could be performed. Invokes the default query handler for the given pad. The query is sent to all pads internally linked to @pad. Note that if there are many possible sink pads that are internally linked to @pad, only one will be sent the query. Multi-sinkpad elements should implement custom query handlers. a #GstPad to call the default query handler on. the parent of @pad or %NULL the #GstQuery to handle. %TRUE if the query was performed successfully. Queries a pad for the total stream duration. a #GstPad to invoke the duration query on. the #GstFormat requested a location in which to store the total duration, or %NULL. %TRUE if the query could be performed. Queries a pad for the stream position. a #GstPad to invoke the position query on. the #GstFormat requested A location in which to store the current position, or %NULL. %TRUE if the query could be performed. Remove the probe with @id from @pad. MT safe. the #GstPad with the probe the probe id to remove Sends the event to the pad. This function can be used by applications to send events in the pipeline. If @pad is a source pad, @event should be an upstream event. If @pad is a sink pad, @event should be a downstream event. For example, you would not send a #GST_EVENT_EOS on a src pad; EOS events only propagate downstream. Furthermore, some downstream events have to be serialized with data flow, like EOS, while some can travel out-of-band, like #GST_EVENT_FLUSH_START. If the event needs to be serialized with data flow, this function will take the pad's stream lock while calling its event function. To find out whether an event type is upstream, downstream, or downstream and serialized, see #GstEventTypeFlags, gst_event_type_get_flags(), #GST_EVENT_IS_UPSTREAM, #GST_EVENT_IS_DOWNSTREAM, and #GST_EVENT_IS_SERIALIZED. Note that in practice that an application or plugin doesn't need to bother itself with this information; the core handles all necessary locks and checks. This function takes ownership of the provided event so you should gst_event_ref() it if you want to reuse the event after this call. a #GstPad to send the event to. the #GstEvent to send to the pad. %TRUE if the event was handled. Calls gst_pad_set_activate_function_full() with %NULL for the user_data and notify. a #GstPad. the #GstPadActivateFunction to set. Sets the given activate function for @pad. The activate function will dispatch to gst_pad_activate_mode() to perform the actual activation. Only makes sense to set on sink pads. Call this function if your sink pad can start a pull-based task. a #GstPad. the #GstPadActivateFunction to set. user_data passed to @notify notify called when @activate will not be used anymore. Calls gst_pad_set_activatemode_function_full() with %NULL for the user_data and notify. a #GstPad. the #GstPadActivateModeFunction to set. Sets the given activate_mode function for the pad. An activate_mode function prepares the element for data passing. a #GstPad. the #GstPadActivateModeFunction to set. user_data passed to @notify notify called when @activatemode will not be used anymore. Activates or deactivates the given pad. Normally called from within core state change functions. If @active, makes sure the pad is active. If it is already active, either in push or pull mode, just return. Otherwise dispatches to the pad's activate function to perform the actual activation. If not @active, calls gst_pad_activate_mode() with the pad's current mode and a %FALSE argument. the #GstPad to activate or deactivate. whether or not the pad should be active. %TRUE if the operation was successful. MT safe. Calls gst_pad_set_chain_function_full() with %NULL for the user_data and notify. a sink #GstPad. the #GstPadChainFunction to set. Sets the given chain function for the pad. The chain function is called to process a #GstBuffer input buffer. see #GstPadChainFunction for more details. a sink #GstPad. the #GstPadChainFunction to set. user_data passed to @notify notify called when @chain will not be used anymore. Calls gst_pad_set_chain_list_function_full() with %NULL for the user_data and notify. a sink #GstPad. the #GstPadChainListFunction to set. Sets the given chain list function for the pad. The chainlist function is called to process a #GstBufferList input buffer list. See #GstPadChainListFunction for more details. a sink #GstPad. the #GstPadChainListFunction to set. user_data passed to @notify notify called when @chainlist will not be used anymore. Set the given private data gpointer on the pad. This function can only be used by the element that owns the pad. No locking is performed in this function. the #GstPad to set the private data of. The private data to attach to the pad. Calls gst_pad_set_event_full_function_full() with %NULL for the user_data and notify. a #GstPad of either direction. the #GstPadEventFullFunction to set. Sets the given event handler for the pad. a #GstPad of either direction. the #GstPadEventFullFunction to set. user_data passed to @notify notify called when @event will not be used anymore. Calls gst_pad_set_event_function_full() with %NULL for the user_data and notify. a #GstPad of either direction. the #GstPadEventFunction to set. Sets the given event handler for the pad. a #GstPad of either direction. the #GstPadEventFunction to set. user_data passed to @notify notify called when @event will not be used anymore. Calls gst_pad_set_getrange_function_full() with %NULL for the user_data and notify. a source #GstPad. the #GstPadGetRangeFunction to set. Sets the given getrange function for the pad. The getrange function is called to produce a new #GstBuffer to start the processing pipeline. see #GstPadGetRangeFunction for a description of the getrange function. a source #GstPad. the #GstPadGetRangeFunction to set. user_data passed to @notify notify called when @get will not be used anymore. Calls gst_pad_set_iterate_internal_links_function_full() with %NULL for the user_data and notify. a #GstPad of either direction. the #GstPadIterIntLinkFunction to set. Sets the given internal link iterator function for the pad. a #GstPad of either direction. the #GstPadIterIntLinkFunction to set. user_data passed to @notify notify called when @iterintlink will not be used anymore. Calls gst_pad_set_link_function_full() with %NULL for the user_data and notify. a #GstPad. the #GstPadLinkFunction to set. Sets the given link function for the pad. It will be called when the pad is linked with another pad. The return value #GST_PAD_LINK_OK should be used when the connection can be made. The return value #GST_PAD_LINK_REFUSED should be used when the connection cannot be made for some reason. If @link is installed on a source pad, it should call the #GstPadLinkFunction of the peer sink pad, if present. a #GstPad. the #GstPadLinkFunction to set. user_data passed to @notify notify called when @link will not be used anymore. Set the offset that will be applied to the running time of @pad. a #GstPad the offset Calls gst_pad_set_query_function_full() with %NULL for the user_data and notify. a #GstPad of either direction. the #GstPadQueryFunction to set. Set the given query function for the pad. a #GstPad of either direction. the #GstPadQueryFunction to set. user_data passed to @notify notify called when @query will not be used anymore. Calls gst_pad_set_unlink_function_full() with %NULL for the user_data and notify. a #GstPad. the #GstPadUnlinkFunction to set. Sets the given unlink function for the pad. It will be called when the pad is unlinked. a #GstPad. the #GstPadUnlinkFunction to set. user_data passed to @notify notify called when @unlink will not be used anymore. Starts a task that repeatedly calls @func with @user_data. This function is mostly used in pad activation functions to start the dataflow. The #GST_PAD_STREAM_LOCK of @pad will automatically be acquired before @func is called. the #GstPad to start the task of the task function to call user data passed to the task function called when @user_data is no longer referenced a %TRUE if the task could be started. Iterates all sticky events on @pad and calls @foreach_func for every event. If @foreach_func returns %FALSE the iteration is immediately stopped. the #GstPad that should be used for iteration. the #GstPadStickyEventsForeachFunction that should be called for every event. the optional user data. Stop the task of @pad. This function will also make sure that the function executed by the task will effectively stop if not called from the GstTaskFunction. This function will deadlock if called from the GstTaskFunction of the task. Use gst_task_pause() instead. Regardless of whether the pad has a task, the stream lock is acquired and released so as to ensure that streaming through this pad has finished. the #GstPad to stop the task of a %TRUE if the task could be stopped or %FALSE on error. Store the sticky @event on @pad a #GstPad a #GstEvent #GST_FLOW_OK on success, #GST_FLOW_FLUSHING when the pad was flushing or #GST_FLOW_EOS when the pad was EOS. Gets the capabilities of the pad template. a #GstPadTemplate to get capabilities of. the #GstCaps of the pad template. Unref after usage. Creates a new pad template with a name according to the given template and with the given arguments. the name template. the #GstPadDirection of the template. the #GstPadPresence of the pad. a #GstCaps set for the template. a new #GstPadTemplate. Emit the pad-created signal for this template when created by this pad. a #GstPadTemplate that has been created the #GstPad that created it Unlinks the source pad from the sink pad. Will emit the #GstPad::unlinked signal on both pads. the source #GstPad to unlink. the sink #GstPad to unlink. %TRUE if the pads were unlinked. This function returns %FALSE if the pads were not linked together. MT safe. A helper function you can use that sets the FIXED_CAPS flag This way the default CAPS query will always return the negotiated caps or in case the pad is not negotiated, the padtemplate caps. The negotiated caps are the caps of the last CAPS event that passed on the pad. Use this function on a pad that, once it negotiated to a CAPS, cannot be renegotiated to something else. the pad to use 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. canonical name of the property specified nick name for the property specified description of the property specified minimum value (fraction numerator) minimum value (fraction denominator) maximum value (fraction numerator) maximum value (fraction denominator) default value (fraction numerator) default value (fraction denominator) flags for the property specified a newly created parameter specification Get the global #GstMetaInfo describing the #GstParentBufferMeta meta. The #GstMetaInfo This is a convenience wrapper around gst_parse_launch() to create a #GstBin 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). command line describing the bin whether to automatically create ghost pads for unlinked source or sink pads within the bin where to store the error message in case of an error, or %NULL a newly-created bin, or %NULL if an error occurred. This is a convenience wrapper around gst_parse_launch() to create a #GstBin 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). command line describing the bin whether to automatically create ghost pads for unlinked source or sink pads within the bin a parse context allocated with gst_parse_context_new(), or %NULL parsing options, or #GST_PARSE_FLAG_NONE where to store the error message in case of an error, or %NULL a newly-created element, which is guaranteed to be a bin unless GST_FLAG_NO_SINGLE_ELEMENT_BINS was passed, or %NULL if an error occurred. Frees a parse context previously allocated with gst_parse_context_new(). a #GstParseContext Retrieve missing elements from a previous run of gst_parse_launch_full() or gst_parse_launchv_full(). Will only return results if an error code of %GST_PARSE_ERROR_NO_SUCH_ELEMENT was returned. a #GstParseContext a %NULL-terminated array of element factory name strings of missing elements. Free with g_strfreev() when no longer needed. Allocates a parse context for use with gst_parse_launch_full() or gst_parse_launchv_full(). Free-function: gst_parse_context_free a newly-allocated parse context. Free with gst_parse_context_free() when no longer needed. Get the error quark used by the parsing subsystem. the quark of the parse errors. Create a new pipeline based on command line syntax. Please note that you might get a return value that is not %NULL even though the @error is set. In this case there was a recoverable parsing error and you can try to play the pipeline. the command line describing the pipeline the error message in case of an erroneous pipeline. a new element on success, %NULL on failure. If more than one toplevel element is specified by the @pipeline_description, all elements are put into a #GstPipeline, which than is returned. Create a new pipeline based on command line syntax. Please note that you might get a return value that is not %NULL even though the @error is set. In this case there was a recoverable parsing error and you can try to play the pipeline. the command line describing the pipeline a parse context allocated with gst_parse_context_new(), or %NULL parsing options, or #GST_PARSE_FLAG_NONE the error message in case of an erroneous pipeline. a new element on success, %NULL on failure. If more than one toplevel element is specified by the @pipeline_description, all elements are put into a #GstPipeline, which then is returned. 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. null-terminated array of arguments pointer to a #GError a new element on success and %NULL on failure. 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. null-terminated array of arguments a parse context allocated with gst_parse_context_new(), or %NULL parsing options, or #GST_PARSE_FLAG_NONE pointer to a #GError (which must be initialised to %NULL) a new element on success; on failure, either %NULL or a partially-constructed bin or element will be returned and @error will be set (unless you passed #GST_PARSE_FLAG_FATAL_ERRORS in @flags, then %NULL will always be returned on failure) Adds a codec tag describing the format specified by @caps to @taglist. a #GstTagList a GStreamer codec tag such as #GST_TAG_AUDIO_CODEC, #GST_TAG_VIDEO_CODEC or #GST_TAG_CODEC. If none is specified, the function will attempt to detect the appropriate category. the (fixed) #GstCaps for which a codec tag should be added. TRUE if a codec tag was added, FALSE otherwise. Returns a localised (as far as this is possible) string describing the media format specified in @caps, for use in error dialogs or other messages to be seen by the user. Should never return NULL unless @caps is invalid. Also see the convenience function gst_pb_utils_add_codec_description_to_tag_list(). the (fixed) #GstCaps for which an format description is needed a newly-allocated description string, or NULL on error. Free string with g_free() when not needed any longer. Returns a localised string describing an decoder for the format specified in @caps, for use in error dialogs or other messages to be seen by the user. Should never return NULL unless @factory_name or @caps are invalid. This function is mainly for internal use, applications would typically use gst_missing_plugin_message_get_description() to get a description of a missing feature from a missing-plugin message. the (fixed) #GstCaps for which an decoder description is needed a newly-allocated description string, or NULL on error. Free string with g_free() when not needed any longer. Returns a localised string describing the given element, for use in error dialogs or other messages to be seen by the user. Should never return NULL unless @factory_name is invalid. This function is mainly for internal use, applications would typically use gst_missing_plugin_message_get_description() to get a description of a missing feature from a missing-plugin message. the name of the element, e.g. "giosrc" a newly-allocated description string, or NULL on error. Free string with g_free() when not needed any longer. Returns a localised string describing an encoder for the format specified in @caps, for use in error dialogs or other messages to be seen by the user. Should never return NULL unless @factory_name or @caps are invalid. This function is mainly for internal use, applications would typically use gst_missing_plugin_message_get_description() to get a description of a missing feature from a missing-plugin message. the (fixed) #GstCaps for which an encoder description is needed a newly-allocated description string, or NULL on error. Free string with g_free() when not needed any longer. Returns a localised string describing a sink element handling the protocol specified in @protocol, for use in error dialogs or other messages to be seen by the user. Should never return NULL unless @protocol is invalid. This function is mainly for internal use, applications would typically use gst_missing_plugin_message_get_description() to get a description of a missing feature from a missing-plugin message. the protocol the sink element needs to handle, e.g. "http" a newly-allocated description string, or NULL on error. Free string with g_free() when not needed any longer. Returns a localised string describing a source element handling the protocol specified in @protocol, for use in error dialogs or other messages to be seen by the user. Should never return NULL unless @protocol is invalid. This function is mainly for internal use, applications would typically use gst_missing_plugin_message_get_description() to get a description of a missing feature from a missing-plugin message. the protocol the source element needs to handle, e.g. "http" a newly-allocated description string, or NULL on error. Free string with g_free() when not needed any longer. Initialises the base utils support library. This function is not thread-safe. Applications should call it after calling gst_init(), plugins should call it from their plugin_init function. This function may be called multiple times. It will do nothing if the library has already been initialised. Let @pipeline select a clock automatically. This is the default behaviour. Use this function if you previous forced a fixed clock with gst_pipeline_use_clock() and want to restore the default pipeline clock selection algorithm. MT safe. a #GstPipeline Check if @pipeline will automatically flush messages when going to the NULL state. a #GstPipeline whether the pipeline will automatically flush its bus when going from READY to NULL state or not. MT safe. Gets the #GstBus of @pipeline. The bus allows applications to receive #GstMessage packets. a #GstPipeline a #GstBus, unref after usage. MT safe. Gets the current clock used by @pipeline. Users of object oriented languages should use gst_pipeline_get_pipeline_clock() to avoid confusion with gst_element_get_clock() which has a different behavior. Unlike gst_element_get_clock(), this function will always return a clock, even if the pipeline is not in the PLAYING state. a #GstPipeline a #GstClock, unref after usage. Get the configured delay (see gst_pipeline_set_delay()). a #GstPipeline The configured delay. MT safe. Gets the latency that should be configured on the pipeline. See gst_pipeline_set_latency(). a #GstPipeline Latency to configure on the pipeline or GST_CLOCK_TIME_NONE Gets the current clock used by @pipeline. Unlike gst_element_get_clock(), this function will always return a clock, even if the pipeline is not in the PLAYING state. a #GstPipeline a #GstClock, unref after usage. Create a new pipeline with the given name. name of new pipeline newly created GstPipeline MT safe. Usually, when a pipeline goes from READY to NULL state, it automatically flushes all pending messages on the bus, which is done for refcounting purposes, to break circular references. This means that applications that update state using (async) bus messages (e.g. do certain things when a pipeline goes from PAUSED to READY) might not get to see messages when the pipeline is shut down, because they might be flushed before they can be dispatched in the main thread. This behaviour can be disabled using this function. It is important that all messages on the bus are handled when the automatic flushing is disabled else memory leaks will be introduced. MT safe. a #GstPipeline whether or not to automatically flush the bus when the pipeline goes from READY to NULL state Set the clock for @pipeline. The clock will be distributed to all the elements managed by the pipeline. a #GstPipeline the clock to set %TRUE if the clock could be set on the pipeline. %FALSE if some element did not accept the clock. MT safe. Set the expected delay needed for all elements to perform the PAUSED to PLAYING state change. @delay will be added to the base time of the elements so that they wait an additional @delay amount of time before starting to process buffers and cannot be #GST_CLOCK_TIME_NONE. This option is used for tuning purposes and should normally not be used. MT safe. a #GstPipeline the delay Sets the latency that should be configured on the pipeline. Setting GST_CLOCK_TIME_NONE will restore the default behaviour of using the minimum latency from the LATENCY query. Setting this is usually not required and the pipeline will figure out an appropriate latency automatically. Setting a too low latency, especially lower than the minimum latency from the LATENCY query, will most likely cause the pipeline to fail. a #GstPipeline latency to configure Force @pipeline to use the given @clock. The pipeline will always use the given clock even if new clock providers are added to this pipeline. If @clock is %NULL all clocking will be disabled which will make the pipeline run as fast as possible. MT safe. a #GstPipeline the clock to use Make GStreamer aware of external dependencies which affect the feature set of this plugin (ie. the elements or typefinders associated with it). GStreamer will re-inspect plugins with external dependencies whenever any of the external dependencies change. This is useful for plugins which wrap other plugin systems, e.g. a plugin which wraps a plugin-based visualisation library and makes visualisations available as GStreamer elements, or a codec loader which exposes elements and/or caps dependent on what external codec libraries are currently installed. a #GstPlugin %NULL-terminated array of environment variables affecting the feature set of the plugin (e.g. an environment variable containing paths where to look for additional modules/plugins of a library), or %NULL. Environment variable names may be followed by a path component which will be added to the content of the environment variable, e.g. "HOME/.mystuff/plugins". %NULL-terminated array of directories/paths where dependent files may be, or %NULL. %NULL-terminated array of file names (or file name suffixes, depending on @flags) to be used in combination with the paths from @paths and/or the paths extracted from the environment variables in @env_vars, or %NULL. optional flags, or #GST_PLUGIN_DEPENDENCY_FLAG_NONE Make GStreamer aware of external dependencies which affect the feature set of this plugin (ie. the elements or typefinders associated with it). GStreamer will re-inspect plugins with external dependencies whenever any of the external dependencies change. This is useful for plugins which wrap other plugin systems, e.g. a plugin which wraps a plugin-based visualisation library and makes visualisations available as GStreamer elements, or a codec loader which exposes elements and/or caps dependent on what external codec libraries are currently installed. Convenience wrapper function for gst_plugin_add_dependency() which takes simple strings as arguments instead of string arrays, with multiple arguments separated by predefined delimiters (see above). the #GstPlugin one or more environment variables (separated by ':', ';' or ','), or %NULL. Environment variable names may be followed by a path component which will be added to the content of the environment variable, e.g. "HOME/.mystuff/plugins:MYSTUFF_PLUGINS_PATH" one ore more directory paths (separated by ':' or ';' or ','), or %NULL. Example: "/usr/lib/mystuff/plugins" one or more file names or file name suffixes (separated by commas), or %NULL optional flags, or #GST_PLUGIN_DEPENDENCY_FLAG_NONE Get the error quark. The error quark used in GError messages Checks whether the given plugin feature is at least the required version a feature minimum required major version minimum required minor version minimum required micro version %TRUE if the plugin feature has at least the required version, otherwise %FALSE. Returns the name of @feature. For a nameless plugin feature, this returns %NULL. a #GstPluginFeature to get the name of @feature. the name of @feature. MT safe. Get the plugin that provides this feature. a feature the plugin that provides this feature, or %NULL. Unref with gst_object_unref() when no longer needed. Get the name of the plugin that provides this feature. a feature the name of the plugin that provides this feature, or %NULL if the feature is not associated with a plugin. Gets the rank of a plugin feature. a feature The rank of the feature Runs a filter against all plugin features and returns a GList with the results. If the first flag is set, only the first match is returned (as a list with a single object). plugin to query the filter to use only return first match user data passed to the filter function a GList of features, g_list_free after use. Copies the list of features. Caller should call @gst_plugin_feature_list_free when done with the list. list of #GstPluginFeature a copy of @list, with each feature's reference count incremented. Debug the plugin feature names in @list. a #GList of plugin features Unrefs each member of @list, then frees the list. list of #GstPluginFeature Loads the plugin containing @feature if it's not already loaded. @feature is unaffected; use the return value instead. Normally this function is used like this: |[<!-- language="C" --> GstPluginFeature *loaded_feature; loaded_feature = gst_plugin_feature_load (feature); // presumably, we're no longer interested in the potentially-unloaded feature gst_object_unref (feature); feature = loaded_feature; ]| the plugin feature to check a reference to the loaded feature, or %NULL on error Compares the two given #GstPluginFeature instances. This function can be used as a #GCompareFunc when sorting by rank and then by name. a #GstPluginFeature a #GstPluginFeature negative value if the rank of p1 > the rank of p2 or the ranks are equal but the name of p1 comes before the name of p2; zero if the rank and names are equal; positive value if the rank of p1 < the rank of p2 or the ranks are equal but the name of p2 comes before the name of p1 Sets the name of the plugin feature, getting rid of the old name if there was one. a #GstPluginFeature to set the name of. the new name Specifies a rank for a plugin feature, so that autoplugging uses the most appropriate feature. feature to rank rank value - higher number means more priority rank Find a feature of the given name and type in the given plugin. plugin to get the feature from The name of the feature to find The type of the feature to find a GstPluginFeature or %NULL if the feature was not found. Find a feature of the given name in the given plugin. plugin to get the feature from The name of the feature to find a GstPluginFeature or %NULL if the feature was not found. Gets the plugin specific data cache. If it is %NULL there is no cached data stored. This is the case when the registry is getting rebuilt. a plugin The cached data as a #GstStructure or %NULL. Get the long descriptive name of the plugin plugin to get long name of the long name of the plugin get the filename of the plugin plugin to get the filename of the filename of the plugin get the license of the plugin plugin to get the license of the license of the plugin Get the short name of the plugin plugin to get the name of the name of the plugin get the URL where the plugin comes from plugin to get the origin of the origin of the plugin get the package the plugin belongs to. plugin to get the package of the package of the plugin Get the release date (and possibly time) in form of a string, if available. For normal GStreamer plugin releases this will usually just be a date in the form of "YYYY-MM-DD", while pre-releases and builds from git may contain a time component after the date as well, in which case the string will be formatted like "YYYY-MM-DDTHH:MMZ" (e.g. "2012-04-30T09:30Z"). There may be plugins that do not have a valid release date set on them. plugin to get the release date of the date string of the plugin, or %NULL if not available. get the source module the plugin belongs to. plugin to get the source of the source of the plugin get the version of the plugin plugin to get the version of the version of the plugin queries if the plugin is loaded into memory plugin to query %TRUE is loaded, %FALSE otherwise Runs a filter against all plugin features of the plugins in the given list and returns a GList with the results. If the first flag is set, only the first match is returned (as a list with a single object). a #GList of plugins to query the filter function to use only return first match user data passed to the filter function a GList of features, g_list_free after use. Unrefs each member of @list, then frees the list. list of #GstPlugin Loads @plugin. Note that the *return value* is the loaded plugin; @plugin is untouched. The normal use pattern of this function goes like this: <programlisting> GstPlugin *loaded_plugin; loaded_plugin = gst_plugin_load (plugin); // presumably, we're no longer interested in the potentially-unloaded plugin gst_object_unref (plugin); plugin = loaded_plugin; </programlisting> plugin to load a reference to a loaded plugin, or %NULL on error. Load the named plugin. Refs the plugin. name of plugin to load a reference to a loaded plugin, or %NULL on error. Loads the given plugin and refs it. Caller needs to unref after use. the plugin filename to load pointer to a %NULL-valued GError a reference to the existing loaded GstPlugin, a reference to the newly-loaded GstPlugin, or %NULL if an error occurred. Registers a static plugin, ie. a plugin which is private to an application or library and contained within the application or library (as opposed to being shipped as a separate module file). You must make sure that GStreamer has been initialised (with gst_init() or via gst_init_get_option_group()) before calling this function. the major version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MAJOR here the minor version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MINOR here a unique name of the plugin (ideally prefixed with an application- or library-specific namespace prefix in order to avoid name conflicts in case a similar plugin with the same name ever gets added to GStreamer) description of the plugin pointer to the init function of this plugin. version string of the plugin effective license of plugin. Must be one of the approved licenses (see #GstPluginDesc above) or the plugin will not be registered. source module plugin belongs to shipped package plugin belongs to URL to provider of plugin %TRUE if the plugin was registered correctly, otherwise %FALSE. Registers a static plugin, ie. a plugin which is private to an application or library and contained within the application or library (as opposed to being shipped as a separate module file) with a #GstPluginInitFullFunc which allows user data to be passed to the callback function (useful for bindings). You must make sure that GStreamer has been initialised (with gst_init() or via gst_init_get_option_group()) before calling this function. the major version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MAJOR here the minor version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MINOR here a unique name of the plugin (ideally prefixed with an application- or library-specific namespace prefix in order to avoid name conflicts in case a similar plugin with the same name ever gets added to GStreamer) description of the plugin pointer to the init function with user data of this plugin. version string of the plugin effective license of plugin. Must be one of the approved licenses (see #GstPluginDesc above) or the plugin will not be registered. source module plugin belongs to shipped package plugin belongs to URL to provider of plugin gpointer to user data %TRUE if the plugin was registered correctly, otherwise %FALSE. Adds plugin specific data to cache. Passes the ownership of the structure to the @plugin. The cache is flushed every time the registry is rebuilt. a plugin a structure containing the data to cache Gets the version number of the GStreamer Plugins Base libraries. pointer to a guint to store the major version number, or %NULL pointer to a guint to store the minor version number, or %NULL pointer to a guint to store the micro version number, or %NULL pointer to a guint to store the nano version number, or %NULL This function returns a string that is useful for describing this version of GStreamer's gst-plugins-base libraries to the outside world: user agent strings, logging, about dialogs ... a newly allocated string describing this version of gst-plugins-base Add a file descriptor to the file descriptor set. a file descriptor set. a file descriptor. %TRUE if the file descriptor was successfully added to the set. Check if @fd in @set has data to be read. a file descriptor set. a file descriptor. %TRUE if the descriptor has data to be read. Check if @fd in @set can be used for writing. a file descriptor set. a file descriptor. %TRUE if the descriptor can be used for writing. Control whether the descriptor @fd in @set will be monitored for readability. a file descriptor set. a file descriptor. a new status. %TRUE if the descriptor was successfully updated. Control whether the descriptor @fd in @set will be monitored for writability. a file descriptor set. a file descriptor. a new status. %TRUE if the descriptor was successfully updated. Check if @fd in @set has closed the connection. a file descriptor set. a file descriptor. %TRUE if the connection was closed. Check if @fd in @set has an error. a file descriptor set. a file descriptor. %TRUE if the descriptor has an error. Mark @fd as ignored so that the next call to gst_poll_wait() will yield the same result for @fd as last time. This function must be called if no operation (read/write/recv/send/etc.) will be performed on @fd before the next call to gst_poll_wait(). The reason why this is needed is because the underlying implementation might not allow querying the fd more than once between calls to one of the re-enabling operations. a file descriptor set. a file descriptor. Initializes @fd. Alternatively you can initialize it with #GST_POLL_FD_INIT. a #GstPollFD Free a file descriptor set. a file descriptor set. Get a GPollFD for the reading part of the control socket. This is useful when integrating with a GSource and GMainLoop. a #GstPoll a #GPollFD 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 whether it should be possible to control a wait. a new #GstPoll, or %NULL in case of an error. Free with gst_poll_free(). 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 a new #GstPoll, or %NULL in case of an error. Free with gst_poll_free(). Read a byte from the control socket of the controllable @set. This function is mostly useful for timer #GstPoll objects created with gst_poll_new_timer(). a #GstPoll. %TRUE on success. %FALSE when @set is not controllable or when there was no byte to read. Remove a file descriptor from the file descriptor set. a file descriptor set. a file descriptor. %TRUE if the file descriptor was successfully removed from the set. Restart any gst_poll_wait() that is in progress. This function is typically used after adding or removing descriptors to @set. If @set is not controllable, then this call will have no effect. a #GstPoll. When @controllable is %TRUE, this function ensures that future calls to gst_poll_wait() will be affected by gst_poll_restart() and gst_poll_set_flushing(). a #GstPoll. new controllable state. %TRUE if the controllability of @set could be updated. When @flushing is %TRUE, this function ensures that current and future calls to gst_poll_wait() will return -1, with errno set to EBUSY. Unsetting the flushing state will restore normal operation of @set. a #GstPoll. new flushing state. Wait for activity on the file descriptors in @set. This function waits up to the specified @timeout. A timeout of #GST_CLOCK_TIME_NONE waits forever. For #GstPoll objects created with gst_poll_new(), this function can only be called from a single thread at a time. If called from multiple threads, -1 will be returned with errno set to EPERM. This is not true for timer #GstPoll objects created with gst_poll_new_timer(), where it is allowed to have multiple threads waiting simultaneously. a #GstPoll. a timeout in nanoseconds. The number of #GstPollFD in @set that have activity or 0 when no activity was detected after @timeout. If an error occurs, -1 is returned and errno is set. Write a byte to the control socket of the controllable @set. This function is mostly useful for timer #GstPoll objects created with gst_poll_new_timer(). It will make any current and future gst_poll_wait() function return with 1, meaning the control socket is set. After an equal amount of calls to gst_poll_read_control() have been performed, calls to gst_poll_wait() will block again until their timeout expired. a #GstPoll. %TRUE on success. %FALSE when @set is not controllable or when the byte could not be written. Delete the given preset. a #GObject that implements #GstPreset preset name to remove %TRUE for success, %FALSE if e.g. there is no preset with that @name Gets the directory for application specific presets if set by the application. the directory or %NULL, don't free or modify the string Gets the @value for an existing meta data @tag. Meta data @tag names can be something like e.g. "comment". Returned values need to be released when done. a #GObject that implements #GstPreset preset name meta data item name value %TRUE for success, %FALSE if e.g. there is no preset with that @name or no value for the given @tag Get a copy of preset names as a %NULL terminated string array. a #GObject that implements #GstPreset list with names, use g_strfreev() after usage. Get a the names of the GObject properties that can be used for presets. a #GObject that implements #GstPreset an array of property names which should be freed with g_strfreev() after use. Check if one can add new presets, change existing ones and remove presets. a #GObject that implements #GstPreset %TRUE if presets are editable or %FALSE if they are static Load the given preset. a #GObject that implements #GstPreset preset name to load %TRUE for success, %FALSE if e.g. there is no preset with that @name Renames a preset. If there is already a preset by the @new_name it will be overwritten. a #GObject that implements #GstPreset current preset name new preset name %TRUE for success, %FALSE if e.g. there is no preset with @old_name Save the current object settings as a preset under the given name. If there is already a preset by this @name it will be overwritten. a #GObject that implements #GstPreset preset name to save %TRUE for success, %FALSE 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. the application specific preset dir %TRUE for success, %FALSE if the dir already has been set Sets a new @value for an existing meta data item or adds a new item. Meta data @tag names can be something like e.g. "comment". Supplying %NULL for the @value will unset an existing value. a #GObject that implements #GstPreset preset name meta data item name new value %TRUE for success, %FALSE if e.g. there is no preset with that @name 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. A null terminated array of strings that contains the UUID values of each protection system that is to be checked. One of the strings from @system_identifiers that indicates the highest ranked element that implements the protection system indicated by that system ID, or %NULL if no element has been found. Invoke the default chain function of the proxy pad. a sink #GstPad, returns GST_FLOW_ERROR if not. the parent of @pad or %NULL the #GstBuffer to send, return GST_FLOW_ERROR if not. a #GstFlowReturn from the pad. Invoke the default chain list function of the proxy pad. a sink #GstPad, returns GST_FLOW_ERROR if not. the parent of @pad or %NULL the #GstBufferList to send, return GST_FLOW_ERROR if not. a #GstFlowReturn from the pad. Get the internal pad of @pad. Unref target pad after usage. The internal pad of a #GstGhostPad is the internally used pad of opposite direction, which is used to link to the target. the #GstProxyPad the target #GstProxyPad, can be %NULL. Unref target pad after usage. Invoke the default getrange function of the proxy pad. a src #GstPad, returns #GST_FLOW_ERROR if not. the parent of @pad The start offset of the buffer The length of the buffer a pointer to hold the #GstBuffer, returns #GST_FLOW_ERROR if %NULL. a #GstFlowReturn from the pad. Invoke the default iterate internal links function of the proxy pad. the #GstPad to get the internal links of. the parent of @pad or %NULL a #GstIterator of #GstPad, or %NULL if @pad has no parent. Unref each returned pad with gst_object_unref(). Creates a new PTP clock instance that exports the PTP time of the master clock in @domain. This clock can be slaved to other clocks as needed. If gst_ptp_init() was not called before, this will call gst_ptp_init() with default parameters. This clock only returns valid timestamps after it received the first times from the PTP master clock on the network. Once this happens the GstPtpClock::internal-clock property will become non-NULL. You can check this with gst_clock_wait_for_sync(), the GstClock::synced signal and gst_clock_is_synced(). Name of the clock PTP domain Deinitialize the GStreamer PTP subsystem and stop the PTP clock. If there are any remaining GstPtpClock instances, they won't be further synchronized to the PTP network clock. Initialize the GStreamer PTP subsystem and create a PTP ordinary clock in slave-only mode for all domains on the given @interfaces with the given @clock_id. If @clock_id is %GST_PTP_CLOCK_ID_NONE, a clock id is automatically generated from the MAC address of the first network interface. This function is automatically called by gst_ptp_clock_new() with default parameters if it wasn't called before. PTP clock id of this process' clock or %GST_PTP_CLOCK_ID_NONE network interfaces to run the clock on %TRUE if the GStreamer PTP clock subsystem could be initialized. Check if the GStreamer PTP clock subsystem is initialized. %TRUE if the GStreamer PTP clock subsystem is intialized. Check if PTP clocks are generally supported on this system, and if previous initializations did not fail. %TRUE if PTP clocks are generally supported on this system, and previous initializations did not fail. Installs a new statistics callback for gathering PTP statistics. See GstPtpStatisticsCallback for a list of statistics that are provided. GstPtpStatisticsCallback to call Data to pass to the callback GDestroyNotify to destroy the data Id for the callback that can be passed to gst_ptp_statistics_callback_remove() Removes a PTP statistics callback that was previously added with gst_ptp_statistics_callback_add(). Callback id to remove Add @api with @params as one of the supported metadata API to @query. a GST_QUERY_ALLOCATION type query #GstQuery the metadata API API specific parameters Add @allocator and its @params as a supported memory allocator. a GST_QUERY_ALLOCATION type query #GstQuery the memory allocator a #GstAllocationParams Set the pool parameters in @query. A valid #GstQuery of type GST_QUERY_ALLOCATION. the #GstBufferPool the size the min buffers the max buffers Set the buffering-ranges array field in @query. The current last start position of the array should be inferior to @start. a GST_QUERY_BUFFERING type query #GstQuery start position of the range stop position of the range a #gboolean indicating if the range was added or not. Add @mode as one of the supported scheduling modes to @query. a GST_QUERY_SCHEDULING type query #GstQuery a #GstPadMode Copies the given query using the copy function of the parent #GstStructure. Free-function: gst_query_unref a #GstQuery to copy. a new copy of @q. Check if @query has metadata @api set. When this function returns %TRUE, @index will contain the index where the requested API and the parameters can be found. a GST_QUERY_ALLOCATION type query #GstQuery the metadata API the index %TRUE when @api is in the list of metadata. Retrieve the number of values currently stored in the meta API array of the query's structure. a GST_QUERY_ALLOCATION type query #GstQuery the metadata API array size as a #guint. Retrieve the number of values currently stored in the allocator params array of the query's structure. If no memory allocator is specified, the downstream element can handle the default memory allocator. The first memory allocator in the query should be generic and allow mapping to system memory, all following allocators should be ordered by preference with the preferred one first. a GST_QUERY_ALLOCATION type query #GstQuery the allocator array size as a #guint. Retrieve the number of values currently stored in the pool array of the query's structure. a GST_QUERY_ALLOCATION type query #GstQuery the pool array size as a #guint. Retrieve the number of values currently stored in the buffered-ranges array of the query's structure. a GST_QUERY_BUFFERING type query #GstQuery the range array size as a #guint. Retrieve the number of values currently stored in the scheduling mode array of the query's structure. a GST_QUERY_SCHEDULING type query #GstQuery the scheduling mode array size as a #guint. Get the structure of a query. a #GstQuery the #GstStructure of the query. The structure is still owned by the query and will therefore be freed when the query is unreffed. Check if @query has scheduling mode set. <note> <para> When checking if upstream supports pull mode, it is usually not enough to just check for GST_PAD_MODE_PULL with this function, you also want to check whether the scheduling flags returned by gst_query_parse_scheduling() have the seeking flag set (meaning random access is supported, not only sequential pulls). </para> </note> a GST_QUERY_SCHEDULING type query #GstQuery the scheduling mode %TRUE when @mode is in the list of scheduling modes. Check if @query has scheduling mode set and @flags is set in query scheduling flags. a GST_QUERY_SCHEDULING type query #GstQuery the scheduling mode #GstSchedulingFlags %TRUE when @mode is in the list of scheduling modes and @flags are compatible with query flags. Tests if you can safely write data into a query's structure. a #GstQuery Makes a writable query from the given query. a #GstQuery to make writable a new writable query (possibly same as @q) Constructs a new query object for querying if @caps are accepted. Free-function: gst_query_unref a fixed #GstCaps a new #GstQuery Constructs a new query object for querying the allocation properties. Free-function: gst_query_unref the negotiated caps return a pool a new #GstQuery Constructs a new query object for querying the buffering status of a stream. Free-function: gst_query_unref the default #GstFormat for the new query a new #GstQuery Constructs a new query object for querying the caps. The CAPS query should return the allowable caps for a pad in the context of the element's state, its link to other elements, and the devices or files it has opened. These caps must be a subset of the pad template caps. In the NULL state with no links, the CAPS query should ideally return the same caps as the pad template. In rare circumstances, an object property can affect the caps returned by the CAPS query, but this is discouraged. For most filters, the caps returned by CAPS query is directly affected by the allowed caps on other pads. For demuxers and decoders, the caps returned by the srcpad's getcaps function is directly related to the stream data. Again, the CAPS query should return the most specific caps it reasonably can, since this helps with autoplugging. The @filter is used to restrict the result caps, only the caps matching @filter should be returned from the CAPS query. Specifying a filter might greatly reduce the amount of processing an element needs to do. Free-function: gst_query_unref a filter a new #GstQuery Constructs a new query object for querying the pipeline-local context. Free-function: gst_query_unref Context type to query a new #GstQuery Constructs a new convert query object. Use gst_query_unref() when done with it. A convert query is used to ask for a conversion between one format and another. Free-function: gst_query_unref the source #GstFormat for the new query the value to convert the target #GstFormat a #GstQuery Constructs a new custom query object. Use gst_query_unref() when done with it. Free-function: gst_query_unref the query type a structure for the query a new #GstQuery Constructs a new query object for querying the drain state. Free-function: gst_query_unref a new #GstQuery Constructs a new stream duration query object to query in the given format. Use gst_query_unref() when done with it. A duration query will give the total length of the stream. Free-function: gst_query_unref the #GstFormat for this duration query a new #GstQuery Constructs a new query object for querying formats of the stream. Free-function: gst_query_unref a new #GstQuery Constructs a new latency query object. Use gst_query_unref() when done with it. A latency query is usually performed by sinks to compensate for additional latency introduced by elements in the pipeline. Free-function: gst_query_unref a #GstQuery Constructs a new query stream position query object. Use gst_query_unref() when done with it. A position query is used to query the current position of playback in the streams, in some format. Free-function: gst_query_unref the default #GstFormat for the new query a new #GstQuery Constructs a new query object for querying the scheduling properties. Free-function: gst_query_unref a new #GstQuery Constructs a new query object for querying seeking properties of the stream. Free-function: gst_query_unref the default #GstFormat for the new query a new #GstQuery Constructs a new segment query object. Use gst_query_unref() when done with it. A segment query is used to discover information about the currently configured segment for playback. Free-function: gst_query_unref the #GstFormat for the new query a new #GstQuery Constructs a new query URI query object. Use gst_query_unref() when done with it. An URI query is used to query the current URI that is used by the source or sink. Free-function: gst_query_unref a new #GstQuery Get the caps from @query. The caps remains valid as long as @query remains valid. The query to parse A pointer to the caps Parse the result from @query and store in @result. a GST_QUERY_ACCEPT_CAPS type query #GstQuery location for the result Parse an allocation query, writing the requested caps in @caps and whether a pool is needed in @need_pool, if the respective parameters are non-%NULL. a #GstQuery The #GstCaps Whether a #GstBufferPool is needed Get the percentage of buffered data. This is a value between 0 and 100. The @busy indicator is %TRUE when the buffering is in progress. A valid #GstQuery of type GST_QUERY_BUFFERING. if buffering is busy, or %NULL a buffering percent, or %NULL Parse an available query, writing the format into @format, and other results into the passed parameters, if the respective parameters are non-%NULL a GST_QUERY_BUFFERING type query #GstQuery the format to set for the @segment_start and @segment_end values, or %NULL the start to set, or %NULL the stop to set, or %NULL estimated total amount of download time remaining in milliseconds, or %NULL Extracts the buffering stats values from @query. A valid #GstQuery of type GST_QUERY_BUFFERING. a buffering mode, or %NULL the average input rate, or %NULL the average output rat, or %NULL amount of buffering time left in milliseconds, or %NULL Get the filter from the caps @query. The caps remains valid as long as @query remains valid. The query to parse A pointer to the caps filter Get the caps result from @query. The caps remains valid as long as @query remains valid. The query to parse A pointer to the caps Get the context from the context @query. The context remains valid as long as @query remains valid. The query to parse A pointer to store the #GstContext Parse a context type from an existing GST_QUERY_CONTEXT query. a GST_QUERY_CONTEXT type query the context type, or %NULL a #gboolean indicating if the parsing succeeded. Parse a convert query answer. Any of @src_format, @src_value, @dest_format, and @dest_value may be %NULL, in which case that value is omitted. a #GstQuery the storage for the #GstFormat of the source value, or %NULL the storage for the source value, or %NULL the storage for the #GstFormat of the destination value, or %NULL the storage for the destination value, or %NULL Parse a duration query answer. Write the format of the duration into @format, and the value into @duration, if the respective variables are non-%NULL. a #GstQuery the storage for the #GstFormat of the duration value, or %NULL. the storage for the total duration, or %NULL. Parse a latency query answer. a #GstQuery storage for live or %NULL the storage for the min latency or %NULL the storage for the max latency or %NULL Parse the number of formats in the formats @query. a #GstQuery the number of formats in this query. Parse an available query and get the metadata API at @index of the metadata API array. a GST_QUERY_ALLOCATION type query #GstQuery position in the metadata API array to read API specific parameters a #GType of the metadata API at @index. Parse an available query and get the allocator and its params at @index of the allocator array. a GST_QUERY_ALLOCATION type query #GstQuery position in the allocator array to read variable to hold the result parameters for the allocator Get the pool parameters in @query. Unref @pool with gst_object_unref() when it's not needed any more. A valid #GstQuery of type GST_QUERY_ALLOCATION. index to parse the #GstBufferPool the size the min buffers the max buffers Parse an available query and get the start and stop values stored at the @index of the buffered ranges array. a GST_QUERY_BUFFERING type query #GstQuery position in the buffered-ranges array to read the start position to set, or %NULL the stop position to set, or %NULL a #gboolean indicating if the parsing succeeded. Parse the format query and retrieve the @nth format from it into @format. If the list contains less elements than @nth, @format will be set to GST_FORMAT_UNDEFINED. a #GstQuery the nth format to retrieve. a pointer to store the nth format Parse an available query and get the scheduling mode at @index of the scheduling modes array. a GST_QUERY_SCHEDULING type query #GstQuery position in the scheduling modes array to read a #GstPadMode of the scheduling mode at @index. Parse a position query, writing the format into @format, and the position into @cur, if the respective parameters are non-%NULL. a #GstQuery the storage for the #GstFormat of the position values (may be %NULL) the storage for the current position (may be %NULL) Set the scheduling properties. A valid #GstQuery of type GST_QUERY_SCHEDULING. #GstSchedulingFlags the suggested minimum size of pull requests the suggested maximum size of pull requests: the suggested alignment of pull requests Parse a seeking query, writing the format into @format, and other results into the passed parameters, if the respective parameters are non-%NULL a GST_QUERY_SEEKING type query #GstQuery the format to set for the @segment_start and @segment_end values, or %NULL the seekable flag to set, or %NULL the segment_start to set, or %NULL the segment_end to set, or %NULL Parse a segment query answer. Any of @rate, @format, @start_value, and @stop_value may be %NULL, which will cause this value to be omitted. See gst_query_set_segment() for an explanation of the function arguments. a #GstQuery the storage for the rate of the segment, or %NULL the storage for the #GstFormat of the values, or %NULL the storage for the start value, or %NULL the storage for the stop value, or %NULL Parse an URI query, writing the URI into @uri as a newly allocated string, if the respective parameters are non-%NULL. Free the string with g_free() after usage. a #GstQuery the storage for the current URI (may be %NULL) Parse an URI query, writing the URI into @uri as a newly allocated string, if the respective parameters are non-%NULL. Free the string with g_free() after usage. a #GstQuery the storage for the redirect URI (may be %NULL) Parse an URI query, and set @permanent to %TRUE if there is a redirection and it should be considered permanent. If a redirection is permanent, applications should update their internal storage of the URI, otherwise they should make all future requests to the original URI. a #GstQuery if the URI redirection is permanent (may be %NULL) Increases the refcount of the given query by one. a #GstQuery to increase the refcount of. @q Remove the metadata API at @index of the metadata API array. a GST_QUERY_ALLOCATION type query #GstQuery position in the metadata API array to remove Remove the allocation param at @index of the allocation param array. a GST_QUERY_ALLOCATION type query #GstQuery position in the allocation param array to remove Remove the allocation pool at @index of the allocation pool array. a GST_QUERY_ALLOCATION type query #GstQuery position in the allocation pool array to remove Modifies a pointer to a #GstQuery to point to a different #GstQuery. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old query is unreffed, the new one is reffed). Either @new_query or the #GstQuery pointed to by @old_query may be %NULL. pointer to a pointer to a #GstQuery to be replaced. pointer to a #GstQuery that will replace the query pointed to by @old_query. %TRUE if @new_query was different from @old_query Set @result as the result for the @query. a GST_QUERY_ACCEPT_CAPS type query #GstQuery the result to set Set the percentage of buffered data. This is a value between 0 and 100. The @busy indicator is %TRUE when the buffering is in progress. A valid #GstQuery of type GST_QUERY_BUFFERING. if buffering is busy a buffering percent Set the available query result fields in @query. a #GstQuery the format to set for the @start and @stop values the start to set the stop to set estimated total amount of download time remaining in milliseconds Configures the buffering stats values in @query. A valid #GstQuery of type GST_QUERY_BUFFERING. a buffering mode the average input rate the average output rate amount of buffering time left in milliseconds Set the @caps result in @query. The query to use A pointer to the caps Answer a context query by setting the requested context. a #GstQuery with query type GST_QUERY_CONTEXT the requested #GstContext Answer a convert query by setting the requested values. a #GstQuery the source #GstFormat the source value the destination #GstFormat the destination value Answer a duration query by setting the requested value in the given format. a #GstQuery the #GstFormat for the duration the duration of the stream Set the formats query result fields in @query. The number of formats passed must be equal to @n_formats. a #GstQuery the number of formats to set. A number of @GstFormats equal to @n_formats. Set the formats query result fields in @query. The number of formats passed in the @formats array must be equal to @n_formats. a #GstQuery the number of formats to set. an array containing @n_formats @GstFormat values. Answer a latency query by setting the requested values in the given format. a #GstQuery if there is a live element upstream the minimal latency of the upstream elements the maximal latency of the upstream elements Parse an available query and get the allocator and its params at @index of the allocator array. a GST_QUERY_ALLOCATION type query #GstQuery position in the allocator array to set new allocator to set parameters for the allocator Set the pool parameters in @query. index to modify A valid #GstQuery of type GST_QUERY_ALLOCATION. the #GstBufferPool the size the min buffers the max buffers Answer a position query by setting the requested value in the given format. a #GstQuery with query type GST_QUERY_POSITION the requested #GstFormat the position to set Set the scheduling properties. A valid #GstQuery of type GST_QUERY_SCHEDULING. #GstSchedulingFlags the suggested minimum size of pull requests the suggested maximum size of pull requests the suggested alignment of pull requests Set the seeking query result fields in @query. a #GstQuery the format to set for the @segment_start and @segment_end values the seekable flag to set the segment_start to set the segment_end to set Answer a segment query by setting the requested values. The normal playback segment of a pipeline is 0 to duration at the default rate of 1.0. If a seek was performed on the pipeline to play a different segment, this query will return the range specified in the last seek. @start_value and @stop_value will respectively contain the configured playback range start and stop values expressed in @format. The values are always between 0 and the duration of the media and @start_value <= @stop_value. @rate will contain the playback rate. For negative rates, playback will actually happen from @stop_value to @start_value. a #GstQuery the rate of the segment the #GstFormat of the segment values (@start_value and @stop_value) the start value the stop value Answer a URI query by setting the requested URI. a #GstQuery with query type GST_QUERY_URI the URI to set Answer a URI query by setting the requested URI redirection. a #GstQuery with query type GST_QUERY_URI the URI to set Answer a URI query by setting the requested URI redirection to permanent or not. a #GstQuery with query type %GST_QUERY_URI whether the redirect is permanent or not Gets the #GstQueryTypeFlags associated with @type. a #GstQueryType a #GstQueryTypeFlags. Get a printable name for the given query type. Do not modify or free. the query type a reference to the static name of the query. Get the unique quark for the given query type. the query type the quark associated with the query type Decreases the refcount of the query. If the refcount reaches 0, the query will be freed. a #GstQuery to decrease the refcount of. Get the structure of a query. This method should be called with a writable @query so that the returned structure is guaranteed to be writable. a #GstQuery the #GstStructure of the query. The structure is still owned by the query and will therefore be freed when the query is unreffed. Drops the queue element at position @idx from queue @array. a #GstQueueArray object index to drop the dropped element Drops the queue element at position @idx from queue @array and copies the data of the element or structure that was removed into @p_struct if @p_struct is set (not NULL). a #GstQueueArray object index to drop address into which to store the data of the dropped structure, or NULL TRUE on success, or FALSE on error Finds an element in the queue @array, either by comparing every element with @func or by looking up @data if no compare function @func is provided, and returning the index of the found element. Note that the index is not 0-based, but an internal index number with a random offset. The index can be used in connection with gst_queue_array_drop_element(). FIXME: return index 0-based and make gst_queue_array_drop_element() take a 0-based index. a #GstQueueArray object comparison function, or %NULL to find @data by value data for comparison function Index of the found element or -1 if nothing was found. Frees queue @array and all memory associated to it. a #GstQueueArray object Returns the length of the queue @array a #GstQueueArray object the length of the queue @array. Checks if the queue @array is empty. a #GstQueueArray object %TRUE if the queue @array is empty Allocates a new #GstQueueArray object with an initial queue size of @initial_size. Initial size of the new queue a new #GstQueueArray object Allocates a new #GstQueueArray object for elements (e.g. structures) of size @struct_size, with an initial queue size of @initial_size. Size of each element (e.g. structure) in the array Initial size of the new queue a new #GstQueueArray object Returns the head of the queue @array and does not remove it from the queue. a #GstQueueArray object The head of the queue Returns the head of the queue @array without removing it from the queue. a #GstQueueArray object pointer to element or struct, or NULL if @array was empty. The data pointed to by the returned pointer stays valid only as long as the queue array is not modified further! Returns and head of the queue @array and removes it from the queue. a #GstQueueArray object The head of the queue Returns the head of the queue @array and removes it from the queue. a #GstQueueArray object pointer to element or struct, or NULL if @array was empty. The data pointed to by the returned pointer stays valid only as long as the queue array is not modified further! Pushes the element at address @p_struct to the tail of the queue @array (Copies the contents of a structure of the struct_size specified when creating the queue into the array). a #GstQueueArray object address of element or structure to push to the tail of the queue Pushes @data to the tail of the queue @array. a #GstQueueArray object object to push Add the feature to the registry. The feature-added signal will be emitted. This function sinks @feature. the registry to add the plugin to the feature to add %TRUE on success. MT safe. Add the given path to the registry. The syntax of the path is specific to the registry. If the path has already been added, do nothing. the registry to add the path to the path to add to the registry Add the plugin to the registry. The plugin-added signal will be emitted. This function will sink @plugin. the registry to add the plugin to the plugin to add %TRUE on success. MT safe. Read the contents of the binary cache file at @location into @registry. a #GstRegistry a filename %TRUE on success. Write the @registry to a cache to file at given @location. a #GstRegistry a filename %TRUE on success. Checks whether a plugin feature by the given name exists in @registry and whether its version is at least the version required. a #GstRegistry the name of the feature (e.g. "oggdemux") the minimum major version number the minimum minor version number the minimum micro version number %TRUE if the feature could be found and the version is the same as the required version or newer, and %FALSE otherwise. Runs a filter against all features of the plugins in the registry and returns a GList with the results. If the first flag is set, only the first match is returned (as a list with a single object). registry to query the filter to use only return first match user data passed to the filter function a #GList of #GstPluginFeature. Use gst_plugin_feature_list_free() after usage. MT safe. Find the pluginfeature with the given name and type in the registry. the registry to search the pluginfeature name to find the pluginfeature type to find the pluginfeature with the given name and type or %NULL if the plugin was not found. gst_object_unref() after usage. MT safe. Find the plugin with the given name in the registry. The plugin will be reffed; caller is responsible for unreffing. the registry to search the plugin name to find the plugin with the given name or %NULL if the plugin was not found. gst_object_unref() after usage. MT safe. By default GStreamer will perform scanning and rebuilding of the registry file using a helper child process. Applications might want to disable this behaviour with the gst_registry_fork_set_enabled() function, in which case new plugins are scanned (and loaded) into the application process. %TRUE if GStreamer will use the child helper process when rebuilding the registry. Applications might want to disable/enable spawning of a child helper process when rebuilding the registry. See gst_registry_fork_is_enabled() for more information. whether rebuilding the registry can use a temporary child helper process. Retrieves the singleton plugin registry. The caller does not own a reference on the registry, as it is alive as long as GStreamer is initialized. the #GstRegistry. Retrieves a #GList of #GstPluginFeature of @type. a #GstRegistry a #GType. a #GList of #GstPluginFeature of @type. Use gst_plugin_feature_list_free() after use MT safe. Retrieves a #GList of features of the plugin with name @name. a #GstRegistry. a plugin name. a #GList of #GstPluginFeature. Use gst_plugin_feature_list_free() after usage. Returns the registry's feature list cookie. This changes every time a feature is added or removed from the registry. the registry the feature list cookie. Get the list of paths for the given registry. the registry to get the pathlist of A #GList of paths as strings. g_list_free after use. MT safe. Get a copy of all plugins registered in the given registry. The refcount of each element in the list in incremented. the registry to search a #GList of #GstPlugin. Use gst_plugin_list_free() after usage. MT safe. Look up a plugin in the given registry with the given filename. If found, plugin is reffed. the registry to look up in the name of the file to look up the #GstPlugin if found, or %NULL if not. gst_object_unref() after usage. Find a #GstPluginFeature with @name in @registry. a #GstRegistry a #GstPluginFeature name a #GstPluginFeature with its refcount incremented, use gst_object_unref() after usage. MT safe. Runs a filter against all plugins in the registry and returns a #GList with the results. If the first flag is set, only the first match is returned (as a list with a single object). Every plugin is reffed; use gst_plugin_list_free() after use, which will unref again. registry to query the filter to use only return first match user data passed to the filter function a #GList of #GstPlugin. Use gst_plugin_list_free() after usage. MT safe. Remove the feature from the registry. MT safe. the registry to remove the feature from the feature to remove Remove the plugin from the registry. MT safe. the registry to remove the plugin from the plugin to remove Scan the given path for plugins to add to the registry. The syntax of the path is specific to the registry. the registry to add found plugins to the path to scan %TRUE if registry changed fourCC codec for this codec. pointer to the strh stream header structure. pointer to the strf stream header structure, including any data that is within the range of strf.size, but excluding any additional data withint this chunk but outside strf.size. a #GstBuffer containing the additional data in the strf chunk outside reach of strf.size. Ususally a palette. a #GstBuffer containing the data in the strd stream header chunk. Usually codec initialization data. if given, will be filled with a human-readable codec name. Initialize riff library. Reads a single chunk. caller element (used for debugging). input buffer. offset in the buffer in the caller. Is incremented by the read size by this function. fourcc (returned by this function0 of the chunk. buffer (returned by the function) containing the chunk data, which may be NULL if chunksize == 0 FALSE on error, TRUE otherwise Reads the first few bytes from the provided buffer, checks if this stream is a RIFF stream, and determines document type. This function takes ownership of @buf so it should not be used anymore after calling this function. caller element (used for debugging/error). input buffer from which the file header will be parsed, should be at least 12 bytes long. a fourcc (returned by this function) to indicate the type of document (according to the header). FALSE if this is not a RIFF stream (in which case the caller should error out; we already throw an error), or TRUE if it is. Parses stream metadata from input data. caller element (used for debugging/error). input data to be used for parsing, stripped from header. a pointer to a taglist (returned by this function) containing information about this stream. May be NULL if no supported tags were found. Parses an audio stream´s strf structure plus optionally some extradata from input data. This function takes ownership of @buf. use. caller element (used for debugging/error). input data to be used for parsing, stripped from header. a pointer (returned by this function) to a filled-in strf/auds structure. Caller should free it. a pointer (returned by this function) to a buffer containing extradata for this particular stream (e.g. codec initialization data). TRUE if parsing succeeded, otherwise FALSE. The stream should be skipped on error, but it is not fatal. Parses a interleaved (also known as "complex") stream´s strf structure plus optionally some extradata from input data. This function takes ownership of @buf. caller element (used for debugging/error). input data to be used for parsing, stripped from header. a pointer (returned by this function) to a filled-in strf/iavs structure. Caller should free it. a pointer (returned by this function) to a buffer containing extradata for this particular stream (e.g. codec initialization data). TRUE if parsing succeeded, otherwise FALSE. Parses a video stream´s strf structure plus optionally some extradata from input data. This function takes ownership of @buf. caller element (used for debugging/error). input data to be used for parsing, stripped from header. a pointer (returned by this function) to a filled-in strf/vids structure. Caller should free it. a pointer (returned by this function) to a buffer containing extradata for this particular stream (e.g. palette, codec initialization data). TRUE if parsing succeeded, otherwise FALSE. The stream should be skipped on error, but it is not fatal. Parses a strh structure from input data. Takes ownership of @buf. caller element (used for debugging/error). input data to be used for parsing, stripped from header. a pointer (returned by this function) to a filled-in strh structure. Caller should free it. TRUE if parsing succeeded, otherwise FALSE. The stream should be skipped on error, but it is not fatal. Reads a single chunk of data. 'JUNK' chunks are skipped automatically. caller element (used for debugging). pad to pull data from. offset to pull from, incremented by this function. fourcc of the chunk (returned by this function). buffer (returned by this function). flow status. Set a new timestamp on the buffer. MT safe. the #GstRingBuffer the current data segment The new timestamp of the buffer. Add a new packet of @type to @rtcp. @packet will point to the newly created packet. a valid RTCP buffer the #GstRTCPType of the new packet pointer to new packet %TRUE if the packet could be created. This function returns %FALSE if the max mtu is exceeded for the buffer. Initialize a new #GstRTCPPacket pointer that points to the first packet in @rtcp. a valid RTCP buffer a #GstRTCPPacket TRUE if the packet existed in @rtcp. Get the number of RTCP packets in @rtcp. a valid RTCP buffer the number of RTCP packets in @rtcp. Open @buffer for reading or writing, depending on @flags. The resulting RTCP buffer state is stored in @rtcp. a buffer with an RTCP packet flags for the mapping resulting #GstRTCPBuffer Create a new buffer for constructing RTCP packets. The packet will have a maximum size of @mtu. the maximum mtu size. A newly allocated buffer. Create a new buffer and set the data to a copy of @len bytes of @data and the size to @len. The data will be freed when the buffer is freed. data for the new buffer the length of data A newly allocated buffer with a copy of @data and of size @len. Create a new buffer and set the data and size of the buffer to @data and @len respectively. @data will be freed when the buffer is unreffed, so this function transfers ownership of @data to the new buffer. data for the new buffer the length of data A newly allocated buffer with @data and of size @len. Finish @rtcp after being constructed. This function is usually called after gst_rtcp_buffer_map() and after adding the RTCP items to the new buffer. The function adjusts the size of @rtcp with the total length of all the added packets. a buffer with an RTCP packet Check if the data pointed to by @buffer is a valid RTCP packet using gst_rtcp_buffer_validate_data(). the buffer to validate TRUE if @buffer is a valid RTCP packet. Check if the @data and @size point to the data of a valid compound, non-reduced size RTCP packet. Use this function to validate a packet before using the other functions in this module. the data to validate the length of @data to validate TRUE if the data points to a valid RTCP packet. Check if the @data and @size point to the data of a valid RTCP packet. Use this function to validate a packet before using the other functions in this module. This function is updated to support reduced size rtcp packets according to RFC 5506 and will validate full compound RTCP packets as well as reduced size RTCP packets. the data to validate the length of @data to validate TRUE if the data points to a valid RTCP packet. Check if the data pointed to by @buffer is a valid RTCP packet using gst_rtcp_buffer_validate_reduced(). the buffer to validate TRUE if @buffer is a valid RTCP packet. Converts an NTP time to UNIX nanoseconds. @ntptime can typically be the NTP time of an SR RTCP message and contains, in the upper 32 bits, the number of seconds since 1900 and, in the lower 32 bits, the fractional seconds. The resulting value will be the number of nanoseconds since 1970. an NTP timestamp the UNIX time for @ntptime in nanoseconds. Add a new report block to @packet with the given values. a valid SR or RR #GstRTCPPacket data source being reported fraction lost since last SR/RR the cumululative number of packets lost the extended last sequence number received the interarrival jitter the last SR packet from this source the delay since last SR packet %TRUE if the packet was created. This function can return %FALSE if the max MTU is exceeded or the number of report blocks is greater than #GST_RTCP_MAX_RB_COUNT. Add @ssrc to the BYE @packet. a valid BYE #GstRTCPPacket an SSRC to add %TRUE if the ssrc was added. This function can return %FALSE if the max MTU is exceeded or the number of sources blocks is greater than #GST_RTCP_MAX_BYE_SSRC_COUNT. Adds @len SSRCs in @ssrc to BYE @packet. a valid BYE #GstRTCPPacket an array of SSRCs to add number of elements in @ssrc %TRUE if the all the SSRCs were added. This function can return %FALSE if the max MTU is exceeded or the number of sources blocks is greater than #GST_RTCP_MAX_BYE_SSRC_COUNT. Get the @nth SSRC of the BYE @packet. a valid BYE #GstRTCPPacket the nth SSRC to get The @nth SSRC of @packet. Get the reason in @packet. a valid BYE #GstRTCPPacket The reason for the BYE @packet or NULL if the packet did not contain a reason string. The string must be freed with g_free() after usage. Get the length of the reason string. a valid BYE #GstRTCPPacket The length of the reason string or 0 when there is no reason string present. Get the number of SSRC fields in @packet. a valid BYE #GstRTCPPacket The number of SSRC fields in @packet. Set the reason string to @reason in @packet. a valid BYE #GstRTCPPacket a reason string TRUE if the string could be set. Get the Feedback Control Information attached to a RTPFB or PSFB @packet. a valid RTPFB or PSFB #GstRTCPPacket a pointer to the FCI Get the length of the Feedback Control Information attached to a RTPFB or PSFB @packet. a valid RTPFB or PSFB #GstRTCPPacket The length of the FCI in 32-bit words. Get the media SSRC field of the RTPFB or PSFB @packet. a valid RTPFB or PSFB #GstRTCPPacket the media SSRC. Get the sender SSRC field of the RTPFB or PSFB @packet. a valid RTPFB or PSFB #GstRTCPPacket the sender SSRC. Get the feedback message type of the FB @packet. a valid RTPFB or PSFB #GstRTCPPacket The feedback message type. Set the length of the Feedback Control Information attached to a RTPFB or PSFB @packet. a valid RTPFB or PSFB #GstRTCPPacket Length of the FCI in 32-bit words %TRUE if there was enough space in the packet to add this much FCI Set the media SSRC field of the RTPFB or PSFB @packet. a valid RTPFB or PSFB #GstRTCPPacket a media SSRC Set the sender SSRC field of the RTPFB or PSFB @packet. a valid RTPFB or PSFB #GstRTCPPacket a sender SSRC Set the feedback message type of the FB @packet. a valid RTPFB or PSFB #GstRTCPPacket the #GstRTCPFBType to set Get the count field in @packet. a valid #GstRTCPPacket The count field in @packet or -1 if @packet does not point to a valid packet. Get the length field of @packet. This is the length of the packet in 32-bit words minus one. a valid #GstRTCPPacket The length field of @packet. Get the packet padding of the packet pointed to by @packet. a valid #GstRTCPPacket If the packet has the padding bit set. Parse the values of the @nth report block in @packet and store the result in the values. a valid SR or RR #GstRTCPPacket the nth report block in @packet result for data source being reported result for fraction lost since last SR/RR result for the cumululative number of packets lost result for the extended last sequence number received result for the interarrival jitter result for the last SR packet from this source result for the delay since last SR packet Get the number of report blocks in @packet. a valid SR or RR #GstRTCPPacket The number of report blocks in @packet. Get the packet type of the packet pointed to by @packet. a valid #GstRTCPPacket The packet type or GST_RTCP_TYPE_INVALID when @packet is not pointing to a valid packet. Move the packet pointer @packet to the next packet in the payload. Use gst_rtcp_buffer_get_first_packet() to initialize @packet. a #GstRTCPPacket TRUE if @packet is pointing to a valid packet after calling this function. Removes the packet pointed to by @packet and moves pointer to the next one a #GstRTCPPacket TRUE if @packet is pointing to a valid packet after calling this function. Get the ssrc field of the RR @packet. a valid RR #GstRTCPPacket the ssrc. Set the ssrc field of the RR @packet. a valid RR #GstRTCPPacket the SSRC to set Add a new SDES entry to the current item in @packet. a valid SDES #GstRTCPPacket the #GstRTCPSDESType of the SDES entry the data length the data %TRUE if the item could be added, %FALSE if the MTU has been reached. Add a new SDES item for @ssrc to @packet. a valid SDES #GstRTCPPacket the SSRC of the new item to add %TRUE if the item could be added, %FALSE if the maximum amount of items has been exceeded for the SDES packet or the MTU has been reached. This function is like gst_rtcp_packet_sdes_get_entry() but it returns a null-terminated copy of the data instead. use g_free() after usage. a valid SDES #GstRTCPPacket result of the entry type result length of the entry data result entry data %TRUE if there was valid data. Move to the first SDES entry in the current item. a valid SDES #GstRTCPPacket %TRUE if there was a first entry. Move to the first SDES item in @packet. a valid SDES #GstRTCPPacket TRUE if there was a first item. Get the data of the current SDES item entry. @type (when not NULL) will contain the type of the entry. @data (when not NULL) will point to @len bytes. When @type refers to a text item, @data will point to a UTF8 string. Note that this UTF8 string is NOT null-terminated. Use gst_rtcp_packet_sdes_copy_entry() to get a null-terminated copy of the entry. a valid SDES #GstRTCPPacket result of the entry type result length of the entry data result entry data %TRUE if there was valid data. Get the number of items in the SDES packet @packet. a valid SDES #GstRTCPPacket The number of items in @packet. Get the SSRC of the current SDES item. a valid SDES #GstRTCPPacket the SSRC of the current item. Move to the next SDES entry in the current item. a valid SDES #GstRTCPPacket %TRUE if there was a next entry. Move to the next SDES item in @packet. a valid SDES #GstRTCPPacket TRUE if there was a next item. Set the @nth new report block in @packet with the given values. Note: Not implemented. a valid SR or RR #GstRTCPPacket the nth report block to set data source being reported fraction lost since last SR/RR the cumululative number of packets lost the extended last sequence number received the interarrival jitter the last SR packet from this source the delay since last SR packet Parse the SR sender info and store the values. a valid SR #GstRTCPPacket result SSRC result NTP time result RTP time result packet count result octet count Set the given values in the SR packet @packet. a valid SR #GstRTCPPacket the SSRC the NTP time the RTP time the packet count the octet count Convert @name into a @GstRTCPSDESType. @name is typically a key in a #GstStructure containing SDES items. a SDES name the #GstRTCPSDESType for @name or #GST_RTCP_SDES_PRIV when @name is a private sdes item. Converts @type to the string equivalent. The string is typically used as a key in a #GstStructure containing SDES items. a #GstRTCPSDESType the string equivalent of @type Converts a UNIX timestamp in nanoseconds to an NTP time. The caller should pass a value with nanoseconds since 1970. The NTP time will, in the upper 32 bits, contain the number of seconds since 1900 and, in the lower 32 bits, the fractional seconds. The resulting value can be used as an ntptime for constructing SR RTCP packets. an UNIX timestamp in nanoseconds the NTP time for @unixtime. Create an RTP buffer and store @payload_len bytes of the adapter as the payload. Set the timestamp on the new buffer to @timestamp before pushing the buffer downstream. If @payload_len is -1, all pending bytes will be flushed. If @timestamp is -1, the timestamp will be calculated automatically. a #GstRTPBasePayload length of payload a #GstClockTime a #GstFlowReturn Gets the internal adapter used by the depayloader. a #GstRTPBaseAudioPayload a #GstAdapter. Create an RTP buffer and store @payload_len bytes of @data as the payload. Set the timestamp on the new buffer to @timestamp before pushing the buffer downstream. a #GstRTPBasePayload data to set as payload length of payload a #GstClockTime a #GstFlowReturn Tells #GstRTPBaseAudioPayload that the child element is for a frame based audio codec a pointer to the element. Sets the options for frame based audio codecs. a pointer to the element. The duraction of an audio frame in milliseconds. The size of an audio frame in bytes. Tells #GstRTPBaseAudioPayload that the child element is for a sample based audio codec a pointer to the element. Sets the options for sample based audio codecs. a pointer to the element. Size per sample in bytes. Sets the options for sample based audio codecs. a pointer to the element. Size per sample in bits. Push @out_buf to the peer of @filter. This function takes ownership of @out_buf. This function will by default apply the last incomming timestamp on the outgoing buffer when it didn't have a timestamp already. a #GstRTPBaseDepayload a #GstBuffer a #GstFlowReturn. Push @out_list to the peer of @filter. This function takes ownership of @out_list. a #GstRTPBaseDepayload a #GstBufferList a #GstFlowReturn. Check if the packet with @size and @duration would exceed the configured maximum size. a #GstRTPBasePayload the size of the packet the duration of the packet %TRUE if the packet of @size and @duration would exceed the configured MTU or max_ptime. Push @buffer to the peer element of the payloader. The SSRC, payload type, seqnum and timestamp of the RTP buffer will be updated first. This function takes ownership of @buffer. a #GstRTPBasePayload a #GstBuffer a #GstFlowReturn. Push @list to the peer element of the payloader. The SSRC, payload type, seqnum and timestamp of the RTP buffer will be updated first. This function takes ownership of @list. a #GstRTPBasePayload a #GstBufferList a #GstFlowReturn. Set the rtp options of the payloader. These options will be set in the caps of the payloader. Subclasses must call this method before calling gst_rtp_base_payload_push() or gst_rtp_base_payload_set_outcaps(). a #GstRTPBasePayload the media type (typically "audio" or "video") if the payload type is dynamic the encoding name the clock rate of the media Configure the output caps with the optional parameters. Variable arguments should be in the form field name, field type (as a GType), value(s). The last variable argument should be NULL. a #GstRTPBasePayload the first field name or %NULL field values %TRUE if the caps could be set. Adds a RFC 5285 header extension with a one byte header to the end of the RTP header. If there is already a RFC 5285 header extension with a one byte header, the new extension will be appended. It will not work if there is already a header extension that does not follow the mecanism described in RFC 5285 or if there is a header extension with a two bytes header as described in RFC 5285. In that case, use gst_rtp_buffer_add_extension_twobytes_header() the RTP packet The ID of the header extension (between 1 and 14). location for data the size of the data in bytes %TRUE if header extension could be added Adds a RFC 5285 header extension with a two bytes header to the end of the RTP header. If there is already a RFC 5285 header extension with a two bytes header, the new extension will be appended. It will not work if there is already a header extension that does not follow the mecanism described in RFC 5285 or if there is a header extension with a one byte header as described in RFC 5285. In that case, use gst_rtp_buffer_add_extension_onebyte_header() the RTP packet Application specific bits The ID of the header extension location for data the size of the data in bytes %TRUE if header extension could be added Allocate enough data in @buffer to hold an RTP packet with @csrc_count CSRCs, a payload length of @payload_len and padding of @pad_len. @buffer must be writable and all previous memory in @buffer will be freed. If @pad_len is >0, the padding bit will be set. All other RTP header fields will be set to 0/FALSE. a #GstBuffer the length of the payload the amount of padding the number of CSRC entries Calculate the header length of an RTP packet with @csrc_count CSRC entries. An RTP packet can have at most 15 CSRC entries. the number of CSRC entries The length of an RTP header with @csrc_count CSRC entries. Calculate the total length of an RTP packet with a payload size of @payload_len, a padding of @pad_len and a @csrc_count CSRC entries. the length of the payload the amount of padding the number of CSRC entries The total length of an RTP header with given parameters. Calculate the length of the payload of an RTP packet with size @packet_len, a padding of @pad_len and a @csrc_count CSRC entries. the length of the total RTP packet the amount of padding the number of CSRC entries The length of the payload of an RTP packet with given parameters. Compare two sequence numbers, taking care of wraparounds. This function returns the difference between @seqnum1 and @seqnum2. a sequence number a sequence number a negative value if @seqnum1 is bigger than @seqnum2, 0 if they are equal or a positive value if @seqnum1 is smaller than @segnum2. Get the default clock-rate for the static payload type @payload_type. the static payload type the default clock rate or -1 if the payload type is not static or the clock-rate is undefined. Update the @exttimestamp field with @timestamp. For the first call of the method, @exttimestamp should point to a location with a value of -1. This function makes sure that the returned value is a constantly increasing value even in the case where there is a timestamp wraparound. a previous extended timestamp a new timestamp The extended timestamp of @timestamp. Get the CSRC at index @idx in @buffer. the RTP packet the index of the CSRC to get the CSRC at index @idx in host order. Get the CSRC count of the RTP packet in @buffer. the RTP packet the CSRC count of @buffer. Check if the extension bit is set on the RTP packet in @buffer. the RTP packet TRUE if @buffer has the extension bit set. Similar to gst_rtp_buffer_get_extension_data, but more suitable for language bindings usage. @bits will contain the extension 16 bits of custom data and the extension data (not including the extension header) is placed in a new #GBytes structure. If @rtp did not contain an extension, this function will return %NULL, with @bits unchanged. If there is an extension header but no extension data then an empty #GBytes will be returned. the RTP packet location for header bits A new #GBytes if an extension header was present and %NULL otherwise. Get the extension data. @bits will contain the extension 16 bits of custom data. @data will point to the data in the extension and @wordlen will contain the length of @data in 32 bits words. If @buffer did not contain an extension, this function will return %FALSE with @bits, @data and @wordlen unchanged. the RTP packet location for result bits location for data location for length of @data in 32 bits words TRUE if @buffer had the extension bit set. Parses RFC 5285 style header extensions with a one byte header. It will return the nth extension with the requested id. the RTP packet The ID of the header extension to be read (between 1 and 14). Read the nth extension packet with the requested ID location for data the size of the data in bytes TRUE if @buffer had the requested header extension Parses RFC 5285 style header extensions with a two bytes header. It will return the nth extension with the requested id. the RTP packet Application specific bits The ID of the header extension to be read (between 1 and 14). Read the nth extension packet with the requested ID location for data the size of the data in bytes TRUE if @buffer had the requested header extension Return the total length of the header in @buffer. This include the length of the fixed header, the CSRC list and the extension header. the RTP packet The total length of the header in @buffer. Check if the marker bit is set on the RTP packet in @buffer. the RTP packet TRUE if @buffer has the marker bit set. Return the total length of the packet in @buffer. the RTP packet The total length of the packet in @buffer. Check if the padding bit is set on the RTP packet in @buffer. the RTP packet TRUE if @buffer has the padding bit set. Get a pointer to the payload data in @buffer. This pointer is valid as long as a reference to @buffer is held. the RTP packet A pointer to the payload data in @buffer. Create a buffer of the payload of the RTP packet in @buffer. This function will internally create a subbuffer of @buffer so that a memcpy can be avoided. the RTP packet A new buffer with the data of the payload. Similar to gst_rtp_buffer_get_payload, but more suitable for language bindings usage. The return value is a pointer to a #GBytes structure containing the payload data in @rtp. the RTP packet A new #GBytes containing the payload data in @rtp. Get the length of the payload of the RTP packet in @buffer. the RTP packet The length of the payload in @buffer. Create a subbuffer of the payload of the RTP packet in @buffer. @offset bytes are skipped in the payload and the subbuffer will be of size @len. If @len is -1 the total payload starting from @offset is subbuffered. the RTP packet the offset in the payload the length in the payload A new buffer with the specified data of the payload. Get the payload type of the RTP packet in @buffer. the RTP packet The payload type. Get the sequence number of the RTP packet in @buffer. the RTP packet The sequence number in host order. Get the SSRC of the RTP packet in @buffer. the RTP packet the SSRC of @buffer in host order. Get the timestamp of the RTP packet in @buffer. the RTP packet The timestamp in host order. Get the version number of the RTP packet in @buffer. the RTP packet The version of @buffer. Map the contents of @buffer into @rtp. a #GstBuffer #GstMapFlags a #GstRTPBuffer %TRUE if @buffer could be mapped. Allocate a new #GstBuffer with enough data to hold an RTP packet with @csrc_count CSRCs, a payload length of @payload_len and padding of @pad_len. All other RTP header fields will be set to 0/FALSE. the length of the payload the amount of padding the number of CSRC entries A newly allocated buffer that can hold an RTP packet with given parameters. Create a new #GstBuffer that can hold an RTP packet that is exactly @packet_len long. The length of the payload depends on @pad_len and @csrc_count and can be calculated with gst_rtp_buffer_calc_payload_len(). All RTP header fields will be set to 0/FALSE. the total length of the packet the amount of padding the number of CSRC entries A newly allocated buffer that can hold an RTP packet of @packet_len. Create a new buffer and set the data to a copy of @len bytes of @data and the size to @len. The data will be freed when the buffer is freed. data for the new buffer the length of data A newly allocated buffer with a copy of @data and of size @len. Create a new buffer and set the data and size of the buffer to @data and @len respectively. @data will be freed when the buffer is unreffed, so this function transfers ownership of @data to the new buffer. data for the new buffer the length of data A newly allocated buffer with @data and of size @len. Set the amount of padding in the RTP packet in @buffer to @len. If @len is 0, the padding is removed. NOTE: This function does not work correctly. the RTP packet the new amount of padding Modify the CSRC at index @idx in @buffer to @csrc. the RTP packet the CSRC index to set the CSRC in host order to set at @idx Set the extension bit on the RTP packet in @buffer to @extension. the RTP packet the new extension Set the extension bit of the rtp buffer and fill in the @bits and @length of the extension header. If the existing extension data is not large enough, it will be made larger. the RTP packet the bits specific for the extension the length that counts the number of 32-bit words in the extension, excluding the extension header ( therefore zero is a valid length) True if done. Set the marker bit on the RTP packet in @buffer to @marker. the RTP packet the new marker Set the total @rtp size to @len. The data in the buffer will be made larger if needed. Any padding will be removed from the packet. the RTP packet the new packet length Set the padding bit on the RTP packet in @buffer to @padding. the buffer the new padding Set the payload type of the RTP packet in @buffer to @payload_type. the RTP packet the new type Set the sequence number of the RTP packet in @buffer to @seq. the RTP packet the new sequence number Set the SSRC on the RTP packet in @buffer to @ssrc. the RTP packet the new SSRC Set the timestamp of the RTP packet in @buffer to @timestamp. the RTP packet the new timestamp Set the version of the RTP packet in @buffer to @version. the RTP packet the new version Unmap @rtp previously mapped with gst_rtp_buffer_map(). a #GstRTPBuffer Reads the NTP time from the @size NTP-56 extension bytes in @data and store the result in @ntptime. the data to read from the size of @data the result NTP time %TRUE on success. Reads the NTP time from the @size NTP-64 extension bytes in @data and store the result in @ntptime. the data to read from the size of @data the result NTP time %TRUE on success. Writes the NTP time in @ntptime to the format required for the NTP-56 header extension. @data must hold at least #GST_RTP_HDREXT_NTP_56_SIZE bytes. the data to write to the size of @data the NTP time %TRUE on success. Writes the NTP time in @ntptime to the format required for the NTP-64 header extension. @data must hold at least #GST_RTP_HDREXT_NTP_64_SIZE bytes. the data to write to the size of @data the NTP time %TRUE on success. Get the #GstRTPPayloadInfo for @media and @encoding_name. This function is mostly used to get the default clock-rate and bandwidth for dynamic payload types specified with @media and @encoding name. The search for @encoding_name will be performed in a case insensitve way. the media to find the encoding name to find a #GstRTPPayloadInfo or NULL when no info could be found. Get the #GstRTPPayloadInfo for @payload_type. This function is mostly used to get the default clock-rate and bandwidth for static payload types specified with @payload_type. the payload_type to find a #GstRTPPayloadInfo or NULL when no info could be found. Accept a new connection on @socket and create a new #GstRTSPConnection for handling communication on new socket. a socket storage for a #GstRTSPConnection a #GCancellable to cancel the operation #GST_RTSP_OK when @conn contains a valid connection. Clear the list of authentication directives stored in @conn. a #GstRTSPConnection Close the connected @conn. After this call, the connection is in the same state as when it was first created. a #GstRTSPConnection #GST_RTSP_OK on success. Attempt to connect to the url of @conn made with gst_rtsp_connection_create(). If @timeout is #NULL this function can block forever. If @timeout contains a valid timeout, this function will return #GST_RTSP_ETIMEOUT after the timeout expired. This function can be cancelled with gst_rtsp_connection_flush(). a #GstRTSPConnection a #GTimeVal timeout #GST_RTSP_OK when a connection could be made. Attempt to connect to the url of @conn made with gst_rtsp_connection_create(). If @timeout is #NULL this function can block forever. If @timeout contains a valid timeout, this function will return #GST_RTSP_ETIMEOUT after the timeout expired. If @conn is set to tunneled, @response will contain a response to the tunneling request messages. This function can be cancelled with gst_rtsp_connection_flush(). a #GstRTSPConnection a #GTimeVal timeout a #GstRTSPMessage #GST_RTSP_OK when a connection could be made. Create a newly allocated #GstRTSPConnection from @url and store it in @conn. The connection will not yet attempt to connect to @url, use gst_rtsp_connection_connect(). A copy of @url will be made. a #GstRTSPUrl storage for a #GstRTSPConnection #GST_RTSP_OK when @conn contains a valid connection. Create a new #GstRTSPConnection for handling communication on the existing socket @socket. The @initial_buffer contains zero terminated data already read from @socket which should be used before starting to read new data. a #GSocket the IP address of the other end the port used by the other end data already read from @fd storage for a #GstRTSPConnection #GST_RTSP_OK when @conn contains a valid connection. If @conn received the first tunnel connection and @conn2 received the second tunnel connection, link the two connections together so that @conn manages the tunneled connection. After this call, @conn2 cannot be used anymore and must be freed with gst_rtsp_connection_free(). If @conn2 is %NULL then only the base64 decoding context will be setup for @conn. a #GstRTSPConnection a #GstRTSPConnection or %NULL return GST_RTSP_OK on success. Start or stop the flushing action on @conn. When flushing, all current and future actions on @conn will return #GST_RTSP_EINTR until the connection is set to non-flushing mode again. a #GstRTSPConnection start or stop the flush #GST_RTSP_OK. Close and free @conn. a #GstRTSPConnection #GST_RTSP_OK on success. Retrieve the IP address of the other end of @conn. a #GstRTSPConnection The IP address as a string. this value remains valid until the connection is closed. Get the file descriptor for reading. a #GstRTSPConnection the file descriptor used for reading or %NULL on error. The file descriptor remains valid until the connection is closed. a #GstRTSPConnection %TRUE if the #GstRTSPConnection remembers the session id in the last response to set it on any further request. Get the TLS connection of @conn. For client side this will return the #GTlsClientConnection when connected over TLS. For server side connections, this function will create a GTlsServerConnection when called the first time and will return that same connection on subsequent calls. The server is then responsible for configuring the TLS connection. a #GstRTSPConnection #GError for error reporting, or NULL to ignore. the TLS connection for @conn. Gets the anchor certificate authorities database that will be used after a server certificate can't be verified with the default certificate database. a #GstRTSPConnection the anchor certificate authorities database, or NULL if no database has been previously set. Use g_object_unref() to release the certificate database. Gets a #GTlsInteraction object to be used when the connection or certificate database need to interact with the user. This will be used to prompt the user for passwords where necessary. a #GstRTSPConnection a reference on the #GTlsInteraction. Use g_object_unref() to release. Gets the TLS validation flags used to verify the peer certificate when a TLS connection is established. a #GstRTSPConnection the validationg flags. Get the tunnel session id the connection. a #GstRTSPConnection returns a non-empty string if @conn is being tunneled over HTTP. Retrieve the URL of the other end of @conn. a #GstRTSPConnection The URL. This value remains valid until the connection is freed. Get the file descriptor for writing. a #GstRTSPConnection the file descriptor used for writing or NULL on error. The file descriptor remains valid until the connection is closed. Get the tunneling state of the connection. a #GstRTSPConnection if @conn is using HTTP tunneling. Calculate the next timeout for @conn, storing the result in @timeout. a #GstRTSPConnection a timeout #GST_RTSP_OK. Wait up to the specified @timeout for the connection to become available for at least one of the operations specified in @events. When the function returns with #GST_RTSP_OK, @revents will contain a bitmask of available operations on @conn. @timeout can be #NULL, in which case this function might block forever. This function can be cancelled with gst_rtsp_connection_flush(). a #GstRTSPConnection a bitmask of #GstRTSPEvent flags to check location for result flags a timeout #GST_RTSP_OK on success. Attempt to read @size bytes into @data from the connected @conn, blocking up to the specified @timeout. @timeout can be #NULL, in which case this function might block forever. This function can be cancelled with gst_rtsp_connection_flush(). a #GstRTSPConnection the data to read the size of @data a timeout value or #NULL #GST_RTSP_OK on success. Attempt to read into @message from the connected @conn, blocking up to the specified @timeout. @timeout can be #NULL, in which case this function might block forever. This function can be cancelled with gst_rtsp_connection_flush(). a #GstRTSPConnection the message to read a timeout value or #NULL #GST_RTSP_OK on success. Reset the timeout of @conn. a #GstRTSPConnection #GST_RTSP_OK. Attempt to send @message to the connected @conn, blocking up to the specified @timeout. @timeout can be #NULL, in which case this function might block forever. This function can be cancelled with gst_rtsp_connection_flush(). a #GstRTSPConnection the message to send a timeout value or #NULL #GST_RTSP_OK on success. Configure @conn for authentication mode @method with @user and @pass as the user and password respectively. a #GstRTSPConnection authentication method the user the password #GST_RTSP_OK. Setup @conn with authentication directives. This is not necesary for methods #GST_RTSP_AUTH_NONE and #GST_RTSP_AUTH_BASIC. For #GST_RTSP_AUTH_DIGEST, directives should be taken from the digest challenge in the WWW-Authenticate response header and can include realm, domain, nonce, opaque, stale, algorithm, qop as per RFC2617. a #GstRTSPConnection authentication directive value By setting the HTTP mode to %TRUE the message parsing will support HTTP messages in addition to the RTSP messages. It will also disable the automatic handling of setting up an HTTP tunnel. a #GstRTSPConnection %TRUE to enable manual HTTP mode Set the IP address of the server. a #GstRTSPConnection an ip address Set the proxy host and port. a #GstRTSPConnection the proxy host the proxy port #GST_RTSP_OK. Configure @conn to use the specified DSCP value. a #GstRTSPConnection DSCP value #GST_RTSP_OK on success. Sets if the #GstRTSPConnection should remember the session id from the last response received and force it onto any further requests. The default value is %TRUE a #GstRTSPConnection %TRUE if the connection should remember the session id Sets the anchor certificate authorities database. This certificate database will be used to verify the server's certificate in case it can't be verified with the default certificate database first. a #GstRTSPConnection a #GTlsDatabase Sets a #GTlsInteraction object to be used when the connection or certificate database need to interact with the user. This will be used to prompt the user for passwords where necessary. a #GstRTSPConnection a #GTlsInteraction Sets the TLS validation flags to be used to verify the peer certificate when a TLS connection is established. a #GstRTSPConnection the validation flags. TRUE if the validation flags are set correctly, or FALSE if @conn is NULL or is not a TLS connection. Set the HTTP tunneling state of the connection. This must be configured before the @conn is connected. a #GstRTSPConnection the new state Attempt to write @size bytes of @data to the connected @conn, blocking up to the specified @timeout. @timeout can be #NULL, in which case this function might block forever. This function can be cancelled with gst_rtsp_connection_flush(). a #GstRTSPConnection the data to write the size of @data a timeout value or #NULL #GST_RTSP_OK on success. Convert @header to a #GstRTSPHeaderField. a header string a #GstRTSPHeaderField for @header or #GST_RTSP_HDR_INVALID if the header field is unknown. Convert @method to a #GstRTSPMethod. a method a #GstRTSPMethod for @method or #GST_RTSP_INVALID if the method is unknown. Check whether @field may appear multiple times in a message. a #GstRTSPHeaderField %TRUE if multiple headers are allowed. Convert @field to a string. a #GstRTSPHeaderField a string representation of @field. Add a header with key @field and @value to @msg. This function takes a copy of @value. a #GstRTSPMessage a #GstRTSPHeaderField the value of the header a #GstRTSPResult. Add a header with key @header and @value to @msg. This function takes a copy of @value. a #GstRTSPMessage header string the value of the header a #GstRTSPResult. Append the currently configured headers in @msg to the #GString @str suitable for transmission. a #GstRTSPMessage a string #GST_RTSP_OK. Dump the contents of @msg to stdout. a #GstRTSPMessage #GST_RTSP_OK. Free the memory used by @msg. a #GstRTSPMessage a #GstRTSPResult. Get the body of @msg. @data remains valid for as long as @msg is valid and unchanged. a #GstRTSPMessage location for the data location for the size of @data #GST_RTSP_OK. Get the @indx header value with key @field from @msg. The result in @value stays valid as long as it remains present in @msg. a #GstRTSPMessage a #GstRTSPHeaderField pointer to hold the result the index of the header #GST_RTSP_OK when @field was found, #GST_RTSP_ENOTIMPL if the key was not found. Get the @index header value with key @header from @msg. The result in @value stays valid as long as it remains present in @msg. a #GstRTSPMessage a #GstRTSPHeaderField pointer to hold the result the index of the header #GST_RTSP_OK when @field was found, #GST_RTSP_ENOTIMPL if the key was not found. Get the message type of @msg. a #GstRTSPMessage the message type. Initialize @msg. This function is mostly used when @msg is allocated on the stack. The reverse operation of this is gst_rtsp_message_unset(). a #GstRTSPMessage a #GstRTSPResult. Initialize a new data #GstRTSPMessage for @channel. a #GstRTSPMessage a channel a #GstRTSPResult. Initialize @msg as a request message with @method and @uri. To clear @msg again, use gst_rtsp_message_unset(). a #GstRTSPMessage the request method to use the uri of the request a #GstRTSPResult. Initialize @msg with @code and @reason. When @reason is #NULL, the default reason for @code will be used. When @request is not #NULL, the relevant headers will be copied to the new response message. a #GstRTSPMessage the status code the status reason or %NULL the request that triggered the response or %NULL a #GstRTSPResult. Create a new initialized #GstRTSPMessage. Free with gst_rtsp_message_free(). a location for the new #GstRTSPMessage a #GstRTSPResult. Create a new data #GstRTSPMessage with @channel and store the result message in @msg. Free with gst_rtsp_message_free(). a location for the new #GstRTSPMessage the channel a #GstRTSPResult. Create a new #GstRTSPMessage with @method and @uri and store the result request message in @msg. Free with gst_rtsp_message_free(). a location for the new #GstRTSPMessage the request method to use the uri of the request a #GstRTSPResult. Create a new response #GstRTSPMessage with @code and @reason and store the result message in @msg. Free with gst_rtsp_message_free(). When @reason is #NULL, the default reason for @code will be used. When @request is not #NULL, the relevant headers will be copied to the new response message. a location for the new #GstRTSPMessage the status code the status reason or %NULL the request that triggered the response or %NULL a #GstRTSPResult. Parse the data message @msg and store the channel in @channel. a #GstRTSPMessage location to hold the channel a #GstRTSPResult. Parse the request message @msg and store the values @method, @uri and @version. The result locations can be #NULL if one is not interested in its value. @uri remains valid for as long as @msg is valid and unchanged. a #GstRTSPMessage location to hold the method location to hold the uri location to hold the version a #GstRTSPResult. Parse the response message @msg and store the values @code, @reason and @version. The result locations can be #NULL if one is not interested in its value. @reason remains valid for as long as @msg is valid and unchanged. a #GstRTSPMessage location to hold the status code location to hold the status reason location to hold the version a #GstRTSPResult. Remove the @indx header with key @field from @msg. If @indx equals -1, all headers will be removed. a #GstRTSPMessage a #GstRTSPHeaderField the index of the header a #GstRTSPResult. Remove the @index header with key @header from @msg. If @index equals -1, all matching headers will be removed. a #GstRTSPMessage the header string the index of the header a #GstRTSPResult Set the body of @msg to a copy of @data. a #GstRTSPMessage the data the size of @data #GST_RTSP_OK. Take the body of @msg and store it in @data and @size. After this method, the body and size of @msg will be set to #NULL and 0 respectively. a #GstRTSPMessage location for the data location for the size of @data #GST_RTSP_OK. Set the body of @msg to @data and @size. This method takes ownership of @data. a #GstRTSPMessage the data the size of @data #GST_RTSP_OK. Add a header with key @field and @value to @msg. This function takes ownership of @value. a #GstRTSPMessage a #GstRTSPHeaderField the value of the header a #GstRTSPResult. Add a header with key @header and @value to @msg. This function takes ownership of @value, but not of @header. a #GstRTSPMessage a header string the value of the header a #GstRTSPResult. Unset the contents of @msg so that it becomes an uninitialized #GstRTSPMessage again. This function is mostly used in combination with gst_rtsp_message_init_request(), gst_rtsp_message_init_response() and gst_rtsp_message_init_data() on stack allocated #GstRTSPMessage structures. a #GstRTSPMessage #GST_RTSP_OK. Convert @method to a string. a #GstRTSPMethod a string representation of @method. Convert @options to a string. one or more #GstRTSPMethod a new string of @options. g_free() after usage. Convert the comma separated list @options to a #GstRTSPMethod bitwise or of methods. This functions is the reverse of gst_rtsp_options_as_text(). a comma separated list of options a #GstRTSPMethod Converts the range in-place between different types of units. Ranges containing the special value #GST_RTSP_TIME_NOW can not be converted as these are only valid for #GST_RTSP_RANGE_NPT. a #GstRTSPTimeRange the unit to convert the range into %TRUE if the range could be converted Free the memory allocated by @range. a #GstRTSPTimeRange Retrieve the minimum and maximum values from @range converted to #GstClockTime in @min and @max. A value of %GST_CLOCK_TIME_NONE will be used to signal #GST_RTSP_TIME_NOW and #GST_RTSP_TIME_END for @min and @max respectively. UTC times will be converted to nanoseconds since 1900. a #GstRTSPTimeRange result minimum #GstClockTime result maximum #GstClockTime %TRUE on success. Parse @rangestr to a #GstRTSPTimeRange. a range string to parse location to hold the #GstRTSPTimeRange result #GST_RTSP_OK on success. Convert @range into a string representation. a #GstRTSPTimeRange The string representation of @range. g_free() after usage. Convert @code to a string. a #GstRTSPStatusCode a string representation of @code. Convert @result in a human readable string. a #GstRTSPResult a newly allocated string. g_free() after usage. Convert @transport into a string that can be used to signal the transport in an RTSP SETUP response. a #GstRTSPTransport a string describing the RTSP transport or #NULL when the transport is invalid. Free the memory used by @transport. a #GstRTSPTransport #GST_RTSP_OK. Get the #GstElement that can handle the buffers transported over @trans. It is possible that there are several managers available, use @option to selected one. @manager will contain an element name or #NULL when no manager is needed/available for @trans. a #GstRTSPTransMode location to hold the result option index. #GST_RTSP_OK. Get the media type of @transport. This media type is typically used to generate #GstCaps events. a #GstRTSPTransport media type of @transport #GST_RTSP_OK. Get the mime type of the transport mode @trans. This mime type is typically used to generate #GstCaps events. Deprecated: This functions only deals with the GstRTSPTransMode and only returns the mime type for #GST_RTSP_PROFILE_AVP. Use gst_rtsp_transport_get_media_type() instead. a #GstRTSPTransMode location to hold the result #GST_RTSP_OK. Initialize @transport so that it can be used. a #GstRTSPTransport #GST_RTSP_OK. Allocate a new initialized #GstRTSPTransport. Use gst_rtsp_transport_free() after usage. location to hold the new #GstRTSPTransport a #GstRTSPResult. Parse the RTSP transport string @str into @transport. a transport string a #GstRTSPTransport a #GstRTSPResult. Make a copy of @url. a #GstRTSPUrl a copy of @url. Free with gst_rtsp_url_free () after usage. Splits the path of @url on '/' boundaries, decoding the resulting components, The decoding performed by this routine is "URI decoding", as defined in RFC 3986, commonly known as percent-decoding. For example, a string "foo\%2fbar" will decode to "foo/bar" -- the \%2f being replaced by the corresponding byte with hex value 0x2f. Note that there is no guarantee that the resulting byte sequence is valid in any given encoding. As a special case, \%00 is not unescaped to NUL, as that would prematurely terminate the string. Also note that since paths usually start with a slash, the first component will usually be the empty string. a #GstRTSPUrl %NULL-terminated array of URL components. Free with g_strfreev() when no longer needed. Free the memory used by @url. a #GstRTSPUrl Get the port number of @url. a #GstRTSPUrl location to hold the port #GST_RTSP_OK. Get a newly allocated string describing the request URI for @url. a #GstRTSPUrl a string with the request URI. g_free() after usage. Parse the RTSP @urlstr into a newly allocated #GstRTSPUrl. Free after usage with gst_rtsp_url_free(). the url string to parse location to hold the result. a #GstRTSPResult. Set the port number in @url to @port. a #GstRTSPUrl the port #GST_RTSP_OK. Convert @version to a string. a #GstRTSPVersion a string representation of @version. Adds a #GstRTSPWatch to a context so that it will be executed within that context. a #GstRTSPWatch a GMainContext (if NULL, the default context will be used) the ID (greater than 0) for the watch within the GMainContext. Get the maximum amount of bytes and messages that will be queued in @watch. See gst_rtsp_watch_set_send_backlog(). a #GstRTSPWatch maximum bytes maximum messages Create a watch object for @conn. The functions provided in @funcs will be called with @user_data when activity happened on the watch. The new watch is usually created so that it can be attached to a maincontext with gst_rtsp_watch_attach(). @conn must exist for the entire lifetime of the watch. a #GstRTSPConnection watch functions user data to pass to @funcs notify when @user_data is not referenced anymore a #GstRTSPWatch that can be used for asynchronous RTSP communication. Free with gst_rtsp_watch_unref () after usage. Reset @watch, this is usually called after gst_rtsp_connection_do_tunnel() when the file descriptors of the connection might have changed. a #GstRTSPWatch Send a @message using the connection of the @watch. If it cannot be sent immediately, it will be queued for transmission in @watch. The contents of @message will then be serialized and transmitted when the connection of the @watch becomes writable. In case the @message is queued, the ID returned in @id will be non-zero and used as the ID argument in the message_sent callback. a #GstRTSPWatch a #GstRTSPMessage location for a message ID or %NULL #GST_RTSP_OK on success. When @flushing is %TRUE, abort a call to gst_rtsp_watch_wait_backlog() and make sure gst_rtsp_watch_write_data() returns immediately with #GST_RTSP_EINTR. And empty the queue. a #GstRTSPWatch new flushing state Set the maximum amount of bytes and messages that will be queued in @watch. When the maximum amounts are exceeded, gst_rtsp_watch_write_data() and gst_rtsp_watch_send_message() will return #GST_RTSP_ENOMEM. A value of 0 for @bytes or @messages means no limits. a #GstRTSPWatch maximum bytes maximum messages Decreases the reference count of @watch by one. If the resulting reference count is zero the watch and associated memory will be destroyed. a #GstRTSPWatch Wait until there is place in the backlog queue, @timeout is reached or @watch is set to flushing. If @timeout is %NULL this function can block forever. If @timeout contains a valid timeout, this function will return %GST_RTSP_ETIMEOUT after the timeout expired. The typically use of this function is when gst_rtsp_watch_write_data returns %GST_RTSP_ENOMEM. The caller then calls this function to wait for free space in the backlog queue and try again. a #GstRTSPWatch a #GTimeVal timeout %GST_RTSP_OK when if there is room in queue. %GST_RTSP_ETIMEOUT when @timeout was reached. %GST_RTSP_EINTR when @watch is flushing %GST_RTSP_EINVAL when called with invalid parameters. Write @data using the connection of the @watch. If it cannot be sent immediately, it will be queued for transmission in @watch. The contents of @message will then be serialized and transmitted when the connection of the @watch becomes writable. In case the @message is queued, the ID returned in @id will be non-zero and used as the ID argument in the message_sent callback. This function will take ownership of @data and g_free() it after use. If the amount of queued data exceeds the limits set with gst_rtsp_watch_set_send_backlog(), this function will return #GST_RTSP_ENOMEM. a #GstRTSPWatch the data to queue the size of @data location for a message ID or %NULL #GST_RTSP_OK on success. #GST_RTSP_ENOMEM when the backlog limits are reached. #GST_RTSP_EINTR when @watch was flushing. Create a copy of the given sample. This will also make a newly allocated copy of the data the source sample contains. a #GstSample. a new copy of @buf. Get the buffer associated with @sample a #GstSample the buffer of @sample or %NULL when there is no buffer. The buffer remains valid as long as @sample is valid. If you need to hold on to it for longer than that, take a ref to the buffer with gst_buffer_ref(). Get the buffer list associated with @sample a #GstSample the buffer list of @sample or %NULL when there is no buffer list. The buffer list remains valid as long as @sample is valid. If you need to hold on to it for longer than that, take a ref to the buffer list with gst_mini_object_ref (). Get the caps associated with @sample a #GstSample the caps of @sample or %NULL when there is no caps. The caps remain valid as long as @sample is valid. If you need to hold on to the caps for longer than that, take a ref to the caps with gst_caps_ref(). Get extra information associated with @sample. a #GstSample the extra info of @sample. The info remains valid as long as @sample is valid. Get the segment associated with @sample a #GstSample the segment of @sample. The segment remains valid as long as @sample is valid. Create a new #GstSample with the provided details. Free-function: gst_sample_unref a #GstBuffer, or %NULL a #GstCaps, or %NULL a #GstSegment, or %NULL a #GstStructure, or %NULL the new #GstSample. gst_sample_unref() after usage. Increases the refcount of the given sample by one. a #GstSample @sample Set the buffer list associated with @sample a #GstSample a #GstBufferList Decreases the refcount of the sample. If the refcount reaches 0, the sample will be freed. a #GstSample Check if the given @addr is a multicast address. a network type an address type an address TRUE when @addr is multicast. Clear the attribute. a #GstSDPAttribute @GST_SDP_OK. Set the attribute with @key and @value. a #GstSDPAttribute the key the value @GST_SDP_OK. Reset the bandwidth information in @bw. a #GstSDPBandwidth a #GstSDPResult. Set bandwidth information in @bw. a #GstSDPBandwidth the bandwidth modifier type the bandwidth in kilobits per second a #GstSDPResult. Clear the connection. a #GstSDPConnection @GST_SDP_OK. Set the connection with the given parameters. a #GstSDPConnection the type of network. "IN" is defined to have the meaning "Internet". the type of address. the address the time to live of the address the number of layers @GST_SDP_OK. Makes key management data a #gchar URI a #gchar base64-encoded key data a #gchar key-mgmt data, Add the attribute with @key and @value to @media. a #GstSDPMedia a key a value #GST_SDP_OK. Add the bandwidth information with @bwtype and @bandwidth to @media. a #GstSDPMedia the bandwidth modifier type the bandwidth in kilobits per second #GST_SDP_OK. Add the given connection parameters to @media. a #GstSDPMedia the type of network. "IN" is defined to have the meaning "Internet". the type of address. the address the time to live of the address the number of layers a #GstSDPResult. Add the format information to @media. a #GstSDPMedia the format #GST_SDP_OK. Convert the contents of @media to a text string. a #GstSDPMedia A dynamically allocated string representing the media. Get the number of attribute fields in @media. a #GstSDPMedia the number of attributes in @media. Mapping of attributes of #GstSDPMedia to #GstCaps a #GstSDPMedia a #GstCaps a #GstSDPResult. Get the number of bandwidth fields in @media. a #GstSDPMedia the number of bandwidths in @media. Get the number of connection fields in @media. a #GstSDPMedia the number of connections in @media. Allocate a new copy of @media and store the result in @copy. The value in @copy should be release with gst_sdp_media_free function. a #GstSDPMedia pointer to new #GstSDPMedia a #GstSDPResult Get the number of formats in @media. a #GstSDPMedia the number of formats in @media. Free all resources allocated by @media. @media should not be used anymore after this function. This function should be used when @media was dynamically allocated with gst_sdp_media_new(). a #GstSDPMedia a #GstSDPResult. Get the attribute at position @idx in @media. a #GstSDPMedia an index the #GstSDPAttribute at position @idx. Get the first attribute value for @key in @media. a #GstSDPMedia a key the first attribute value for @key. Get the @nth attribute value for @key in @media. a #GstSDPMedia a key an index the @nth attribute value. Get the bandwidth at position @idx in @media. a #GstSDPMedia an index the #GstSDPBandwidth at position @idx. Mapping of caps from SDP fields: a=rtpmap:(payload) (encoding_name)/(clock_rate)[/(encoding_params)] a=framesize:(payload) (width)-(height) a=fmtp:(payload) (param)[=(value)];... a #GstSDPMedia a payload type a #GstCaps, or %NULL if an error happened Get the connection at position @idx in @media. a #GstSDPMedia an index the #GstSDPConnection at position @idx. Get the format information at position @idx in @media. a #GstSDPMedia an index the format at position @idx. Get the information of @media a #GstSDPMedia the information of @media. Get the encryption information from @media. a #GstSDPMedia a #GstSDPKey. Get the media description of @media. a #GstSDPMedia the media description. Get the number of ports for @media. a #GstSDPMedia the number of ports for @media. Get the port number for @media. a #GstSDPMedia the port number of @media. Get the transport protocol of @media a #GstSDPMedia the transport protocol of @media. Initialize @media so that its contents are as if it was freshly allocated with gst_sdp_media_new(). This function is mostly used to initialize a media allocated on the stack. gst_sdp_media_uninit() undoes this operation. When this function is invoked on newly allocated data (with malloc or on the stack), its contents should be set to 0 before calling this function. a #GstSDPMedia a #GstSDPResult. Insert the attribute to @media at @idx. When @idx is -1, the attribute is appended. a #GstSDPMedia an index a #GstSDPAttribute #GST_SDP_OK. Insert the bandwidth information to @media at @idx. When @idx is -1, the bandwidth is appended. a #GstSDPMedia an index a #GstSDPBandwidth #GST_SDP_OK. Insert the connection information to @media at @idx. When @idx is -1, the connection is appended. a #GstSDPMedia an index a #GstSDPConnection #GST_SDP_OK. Insert the format information to @media at @idx. When @idx is -1, the format is appended. a #GstSDPMedia an index the format #GST_SDP_OK. Allocate a new GstSDPMedia and store the result in @media. pointer to new #GstSDPMedia a #GstSDPResult. Remove the attribute in @media at @idx. a #GstSDPMedia an index #GST_SDP_OK. Remove the bandwidth information in @media at @idx. a #GstSDPMedia an index #GST_SDP_OK. Remove the connection information in @media at @idx. a #GstSDPMedia an index #GST_SDP_OK. Remove the format information in @media at @idx. a #GstSDPMedia an index #GST_SDP_OK. Replace the attribute in @media at @idx with @attr. a #GstSDPMedia an index a #GstSDPAttribute #GST_SDP_OK. Replace the bandwidth information in @media at @idx with @bw. a #GstSDPMedia an index a #GstSDPBandwidth #GST_SDP_OK. Replace the connection information in @media at @idx with @conn. a #GstSDPMedia an index a #GstSDPConnection #GST_SDP_OK. Replace the format information in @media at @idx with @format. a #GstSDPMedia an index the format #GST_SDP_OK. Set the media information of @media to @information. a #GstSDPMedia the media information #GST_SDP_OK. Adds the encryption information to @media. a #GstSDPMedia the encryption type the encryption data a #GstSDPResult. Set the media description of @media to @med. a #GstSDPMedia the media description #GST_SDP_OK. Mapping of caps to SDP fields: a=rtpmap:(payload) (encoding_name) or (clock_rate)[or (encoding_params)] a=framesize:(payload) (width)-(height) a=fmtp:(payload) (param)[=(value)];... a #GstCaps a #GstSDPMedia a #GstSDPResult. Set the port information in @media. a #GstSDPMedia the port number the number of ports #GST_SDP_OK. Set the media transport protocol of @media to @proto. a #GstSDPMedia the media transport protocol #GST_SDP_OK. Free all resources allocated in @media. @media should not be used anymore after this function. This function should be used when @media was allocated on the stack and initialized with gst_sdp_media_init(). a #GstSDPMedia a #GstSDPResult. Add the attribute with @key and @value to @msg. a #GstSDPMessage the key the value @GST_SDP_OK. Add the specified bandwidth information to @msg. a #GstSDPMessage the bandwidth modifier type the bandwidth in kilobits per second a #GstSDPResult. Add @email to the list of emails in @msg. a #GstSDPMessage an email a #GstSDPResult. Adds @media to the array of medias in @msg. This function takes ownership of the contents of @media so that @media will have to be reinitialized with gst_sdp_media_init() before it can be used again. a #GstSDPMessage a #GstSDPMedia to add a #GstSDPResult. Add @phone to the list of phones in @msg. a #GstSDPMessage a phone a #GstSDPResult. Add time information @start and @stop to @msg. a #GstSDPMessage the start time the stop time the repeat times a #GstSDPResult. Add time zone information to @msg. a #GstSDPMessage the NTP time that a time zone adjustment happens the offset from the time when the session was first scheduled a #GstSDPResult. Convert the contents of @msg to a text string. a #GstSDPMessage A dynamically allocated string representing the SDP description. Creates a uri from @msg with the given @scheme. The uri has the format: \@scheme:///[#type=value *[&type=value]] Where each value is url encoded. the uri scheme the #GstSDPMessage a uri for @msg. Get the number of attributes in @msg. a #GstSDPMessage the number of attributes in @msg. Mapping of attributes of #GstSDPMessage to #GstCaps a #GstSDPMessage a #GstCaps a #GstSDPResult. Get the number of bandwidth information in @msg. a #GstSDPMessage the number of bandwidth information in @msg. Allocate a new copy of @msg and store the result in @copy. The value in @copy should be release with gst_sdp_message_free function. a #GstSDPMessage pointer to new #GstSDPMessage a #GstSDPResult Dump the parsed contents of @msg to stdout. a #GstSDPMessage a #GstSDPResult. Get the number of emails in @msg. a #GstSDPMessage the number of emails in @msg. Free all resources allocated by @msg. @msg should not be used anymore after this function. This function should be used when @msg was dynamically allocated with gst_sdp_message_new(). a #GstSDPMessage a #GstSDPResult. Get the attribute at position @idx in @msg. a #GstSDPMessage the index the #GstSDPAttribute at position @idx. Get the first attribute with key @key in @msg. a #GstSDPMessage the key the attribute value of the first attribute with @key. Get the @nth attribute with key @key in @msg. a #GstSDPMessage the key the index the attribute value of the @nth attribute with @key. Get the bandwidth at index @idx from @msg. a #GstSDPMessage the bandwidth index a #GstSDPBandwidth. Get the connection of @msg. a #GstSDPMessage a #GstSDPConnection. The result remains valid as long as @msg is valid. Get the email with number @idx from @msg. a #GstSDPMessage an email index the email at position @idx. Get the information in @msg. a #GstSDPMessage a #GstSDPResult. Get the encryption information from @msg. a #GstSDPMessage a #GstSDPKey. Get the media description at index @idx in @msg. a #GstSDPMessage the index a #GstSDPMedia. Get the origin of @msg. a #GstSDPMessage a #GstSDPOrigin. The result remains valid as long as @msg is valid. Get the phone with number @idx from @msg. a #GstSDPMessage a phone index the phone at position @idx. Get the session name in @msg. a #GstSDPMessage a #GstSDPResult. Get time information with index @idx from @msg. a #GstSDPMessage the time index a #GstSDPTime. Get the URI in @msg. a #GstSDPMessage a #GstSDPResult. Get the version in @msg. a #GstSDPMessage a #GstSDPResult. Get time zone information with index @idx from @msg. a #GstSDPMessage the zone index a #GstSDPZone. Initialize @msg so that its contents are as if it was freshly allocated with gst_sdp_message_new(). This function is mostly used to initialize a message allocated on the stack. gst_sdp_message_uninit() undoes this operation. When this function is invoked on newly allocated data (with malloc or on the stack), its contents should be set to 0 before calling this function. a #GstSDPMessage a #GstSDPResult. Insert attribute into the array of attributes in @msg at index @idx. When -1 is given as @idx, the attribute is inserted at the end. a #GstSDPMessage an index a #GstSDPAttribute a #GstSDPResult. Insert bandwidth parameters into the array of bandwidths in @msg at index @idx. When -1 is given as @idx, the bandwidth is inserted at the end. a #GstSDPMessage an index the bandwidth a #GstSDPResult. Insert @email into the array of emails in @msg at index @idx. When -1 is given as @idx, the email is inserted at the end. a #GstSDPMessage an index an email a #GstSDPResult. Insert @phone into the array of phone numbers in @msg at index @idx. When -1 is given as @idx, the phone is inserted at the end. a #GstSDPMessage a phone index a phone a #GstSDPResult. Insert time parameters into the array of times in @msg at index @idx. When -1 is given as @idx, the times are inserted at the end. a #GstSDPMessage an index a #GstSDPTime a #GstSDPResult. Insert zone parameters into the array of zones in @msg at index @idx. When -1 is given as @idx, the zone is inserted at the end. a #GstSDPMessage an index @zone a #GstSDPZone a #GstSDPResult. Get the number of media descriptions in @msg. a #GstSDPMessage the number of media descriptions in @msg. Allocate a new GstSDPMessage and store the result in @msg. pointer to new #GstSDPMessage a #GstSDPResult. Parse the contents of @size bytes pointed to by @data and store the result in @msg. the start of the buffer the size of the buffer the result #GstSDPMessage #GST_SDP_OK on success. Parse the null-terminated @uri and store the result in @msg. The uri should be of the form: scheme://[address[:ttl=ttl][:noa=noa]]/[sessionname] [#type=value *[&type=value]] where value is url encoded. This looslely resembles http://tools.ietf.org/html/draft-fujikawa-sdp-url-01 the start of the uri the result #GstSDPMessage #GST_SDP_OK on success. Get the number of phones in @msg. a #GstSDPMessage the number of phones in @msg. Remove the attribute in @msg at index @idx. a #GstSDPMessage the index a #GstSDPResult. Remove the bandwidth information in @msg at index @idx. a #GstSDPMessage the bandwidth index a #GstSDPResult. Remove the email in @msg at index @idx. a #GstSDPMessage an email index a #GstSDPResult. Remove the phone number in @msg at index @idx. a #GstSDPMessage a phone index a #GstSDPResult. Remove the time information in @msg at index @idx. a #GstSDPMessage the index a #GstSDPResult. Remove the zone information in @msg at index @idx. a #GstSDPMessage the index a #GstSDPResult. Replace the attribute in @msg at index @idx with @attr. a #GstSDPMessage the index a #GstSDPAttribute a #GstSDPResult. Replace the bandwidth information in @msg at index @idx with @bw. a #GstSDPMessage the bandwidth index the bandwidth a #GstSDPResult. Replace the email in @msg at index @idx with @email. a #GstSDPMessage an email index an email a #GstSDPResult. Replace the phone number in @msg at index @idx with @phone. a #GstSDPMessage a phone index a phone a #GstSDPResult. Replace the time information in @msg at index @idx with @t. a #GstSDPMessage the index a #GstSDPTime a #GstSDPResult. Replace the zone information in @msg at index @idx with @zone. a #GstSDPMessage the index a #GstSDPZone a #GstSDPResult. Configure the SDP connection in @msg with the given parameters. a #GstSDPMessage the type of network. "IN" is defined to have the meaning "Internet". the type of address. the address the time to live of the address the number of layers a #GstSDPResult. Set the information in @msg. a #GstSDPMessage the information a #GstSDPResult. Adds the encryption information to @msg. a #GstSDPMessage the encryption type the encryption data a #GstSDPResult. Configure the SDP origin in @msg with the given parameters. a #GstSDPMessage the user name a session id a session version a network type an address type an address #GST_SDP_OK. Set the session name in @msg. a #GstSDPMessage the session name a #GstSDPResult. Set the URI in @msg. a #GstSDPMessage the URI a #GstSDPResult. Set the version in @msg. a #GstSDPMessage the version a #GstSDPResult. Get the number of time information entries in @msg. a #GstSDPMessage the number of time information entries in @msg. Free all resources allocated in @msg. @msg should not be used anymore after this function. This function should be used when @msg was allocated on the stack and initialized with gst_sdp_message_init(). a #GstSDPMessage a #GstSDPResult. Get the number of time zone information entries in @msg. a #GstSDPMessage the number of time zone information entries in @msg. Reset the time information in @t. a #GstSDPTime a #GstSDPResult. Set time information @start, @stop and @repeat in @t. a #GstSDPTime the start time the stop time the repeat times a #GstSDPResult. Reset the zone information in @zone. a #GstSDPZone a #GstSDPResult. Set zone information in @zone. a #GstSDPZone the NTP time that a time zone adjustment happens the offset from the time when the session was first scheduled a #GstSDPResult. Clip the given @start and @stop values to the segment boundaries given in @segment. @start and @stop are compared and clipped to @segment start and stop values. If the function returns %FALSE, @start and @stop are known to fall outside of @segment and @clip_start and @clip_stop are not updated. When the function returns %TRUE, @clip_start and @clip_stop will be updated. If @clip_start or @clip_stop are different from @start or @stop respectively, the region fell partially in the segment. Note that when @stop is -1, @clip_stop will be set to the end of the segment. Depending on the use case, this may or may not be what you want. a #GstSegment structure. the format of the segment. the start position in the segment the stop position in the segment the clipped start position in the segment the clipped stop position in the segment %TRUE if the given @start and @stop times fall partially or completely in @segment, %FALSE if the values are completely outside of the segment. Create a copy of given @segment. Free-function: gst_segment_free a #GstSegment a new #GstSegment, free with gst_segment_free(). Copy the contents of @src into @dest. a #GstSegment a #GstSegment Update the segment structure with the field values of a seek event (see gst_event_new_seek()). After calling this method, the segment field position and time will contain the requested new position in the segment. The new requested position in the segment depends on @rate and @start_type and @stop_type. For positive @rate, the new position in the segment is the new @segment start field when it was updated with a @start_type different from #GST_SEEK_TYPE_NONE. If no update was performed on @segment start position (#GST_SEEK_TYPE_NONE), @start is ignored and @segment position is unmodified. For negative @rate, the new position in the segment is the new @segment stop field when it was updated with a @stop_type different from #GST_SEEK_TYPE_NONE. If no stop was previously configured in the segment, the duration of the segment will be used to update the stop position. If no update was performed on @segment stop position (#GST_SEEK_TYPE_NONE), @stop is ignored and @segment position is unmodified. The applied rate of the segment will be set to 1.0 by default. If the caller can apply a rate change, it should update @segment rate and applied_rate after calling this function. @update will be set to %TRUE if a seek should be performed to the segment position field. This field can be %FALSE if, for example, only the @rate has been changed but not the playback position. a #GstSegment structure. the rate of the segment. the format of the segment. the segment flags for the segment the seek method the seek start value the seek method the seek stop value boolean holding whether position was updated. %TRUE if the seek could be performed. Free the allocated segment @segment. a #GstSegment The start/position fields are set to 0 and the stop/duration fields are set to -1 (unknown). The default rate of 1.0 and no flags are set. Initialize @segment to its default values. a #GstSegment structure. the format of the segment. Checks for two segments being equal. Equality here is defined as perfect equality, including floating point values. a #GstSegment structure. a #GstSegment structure. %TRUE if the segments are equal, %FALSE otherwise. Allocate a new #GstSegment structure and initialize it using gst_segment_init(). Free-function: gst_segment_free a new #GstSegment, free with gst_segment_free(). Adjust the values in @segment so that @offset is applied to all future running-time calculations. a #GstSegment structure. the format of the segment. the offset to apply in the segment %TRUE if the segment could be updated successfully. If %FALSE is returned, @offset is not in @segment. Convert @running_time into a position in the segment so that gst_segment_to_running_time() with that position returns @running_time. a #GstSegment structure. the format of the segment. the running_time in the segment the position in the segment for @running_time. This function returns -1 when @running_time is -1 or when it is not inside @segment. Translate @running_time to the segment position using the currently configured segment. Compared to gst_segment_position_from_running_time() this function can return negative segment position. This function is typically used by elements that need to synchronize buffers against the clock or each other. @running_time can be any value and the result of this function for values outside of the segment is extrapolated. When 1 is returned, @running_time resulted in a positive position returned in @position. When this function returns -1, the returned @position should be negated to get the real negative segment position. a #GstSegment structure. the format of the segment. the running-time the resulting position in the segment a 1 or -1 on success, 0 on failure. Convert @stream_time into a position in the segment so that gst_segment_to_stream_time() with that position returns @stream_time. a #GstSegment structure. the format of the segment. the stream_time in the segment the position in the segment for @stream_time. This function returns -1 when @stream_time is -1 or when it is not inside @segment. Translate @stream_time to the segment position using the currently configured segment. Compared to gst_segment_position_from_stream_time() this function can return negative segment position. This function is typically used by elements that need to synchronize buffers against the clock or each other. @stream_time can be any value and the result of this function for values outside of the segment is extrapolated. When 1 is returned, @stream_time resulted in a positive position returned in @position. When this function returns -1, the returned @position should be negated to get the real negative segment position. a #GstSegment structure. the format of the segment. the stream-time the resulting position in the segment a 1 or -1 on success, 0 on failure. Adjust the start/stop and base values of @segment such that the next valid buffer will be one with @running_time. a #GstSegment structure. the format of the segment. the running_time in the segment %TRUE if the segment could be updated successfully. If %FALSE is returned, @running_time is -1 or not in @segment. Convert @running_time into a position in the segment so that gst_segment_to_running_time() with that position returns @running_time. a #GstSegment structure. the format of the segment. the running_time in the segment the position in the segment for @running_time. This function returns -1 when @running_time is -1 or when it is not inside @segment. Deprecated. Use gst_segment_position_from_running_time() instead. Translate @position to the total running time using the currently configured segment. Position is a value between @segment start and stop time. This function is typically used by elements that need to synchronize to the global clock in a pipeline. The running time is a constantly increasing value starting from 0. When gst_segment_init() is called, this value will reset to 0. This function returns -1 if the position is outside of @segment start and stop. a #GstSegment structure. the format of the segment. the position in the segment the position as the total running time or -1 when an invalid position was given. Translate @position to the total running time using the currently configured segment. Compared to gst_segment_to_running_time() this function can return negative running-time. This function is typically used by elements that need to synchronize buffers against the clock or eachother. @position can be any value and the result of this function for values outside of the segment is extrapolated. When 1 is returned, @position resulted in a positive running-time returned in @running_time. When this function returns -1, the returned @running_time should be negated to get the real negative running time. a #GstSegment structure. the format of the segment. the position in the segment result running-time a 1 or -1 on success, 0 on failure. Translate @position to stream time using the currently configured segment. The @position value must be between @segment start and stop value. This function is typically used by elements that need to operate on the stream time of the buffers it receives, such as effect plugins. In those use cases, @position is typically the buffer timestamp or clock time that one wants to convert to the stream time. The stream time is always between 0 and the total duration of the media stream. a #GstSegment structure. the format of the segment. the position in the segment the position in stream_time or -1 when an invalid position was given. Translate @position to the total stream time using the currently configured segment. Compared to gst_segment_to_stream_time() this function can return negative stream-time. This function is typically used by elements that need to synchronize buffers against the clock or eachother. @position can be any value and the result of this function for values outside of the segment is extrapolated. When 1 is returned, @position resulted in a positive stream-time returned in @stream_time. When this function returns -1, the returned @stream_time should be negated to get the real negative stream time. a #GstSegment structure. the format of the segment. the position in the segment result stream-time a 1 or -1 on success, 0 on failure. 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. %TRUE if GStreamer is allowed to install a custom SIGSEGV handler. Applications might want to disable/enable the SIGSEGV handling of the GStreamer core. See gst_segtrap_is_enabled() for more information. whether a custom SIGSEGV handler should be installed. Clean up the cached caps contained in @static_caps. the #GstStaticCaps to clean Converts a #GstStaticCaps to a #GstCaps. the #GstStaticCaps to convert a pointer to the #GstCaps. Unref after usage. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it. Converts a #GstStaticPadTemplate into a #GstPadTemplate. the static pad template a new #GstPadTemplate. Gets the capabilities of the static pad template. a #GstStaticPadTemplate to get capabilities of. the #GstCaps of the static pad template. Unref after usage. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it. #GstStreamVolumeFormat to convert from #GstStreamVolumeFormat to convert to Volume in @from format that should be converted the converted volume #GstStreamVolume that should be used Returns %TRUE if the stream is muted #GstStreamVolume that should be used #GstStreamVolumeFormat which should be returned The current stream volume as linear factor #GstStreamVolume that should be used Mute state that should be set #GstStreamVolume that should be used #GstStreamVolumeFormat of @val Linear volume factor that should be set Tries intersecting @struct1 and @struct2 and reports whether the result would not be empty. a #GstStructure a #GstStructure %TRUE if intersection would not be empty Duplicates a #GstStructure and all its fields and values. Free-function: gst_structure_free a #GstStructure to duplicate a new #GstStructure. Calls the provided function once for each field in the #GstStructure. In contrast to gst_structure_foreach(), the function may modify the fields. In contrast to gst_structure_map_in_place(), the field is removed from the structure if %FALSE is returned from the function. The structure must be mutable. a #GstStructure a function to call for each field private data Fixate all values in @structure using gst_value_fixate(). @structure will be modified in-place and should be writable. a #GstStructure Fixates a #GstStructure by changing the given field with its fixated value. a #GstStructure a field in @structure %TRUE if the structure field could be fixated Fixates a #GstStructure by changing the given @field_name field to the given @target boolean if that field is not fixed yet. a #GstStructure a field in @structure the target value of the fixation %TRUE if the structure could be fixated Fixates a #GstStructure by changing the given field to the nearest double to @target that is a subset of the existing field. a #GstStructure a field in @structure the target value of the fixation %TRUE if the structure could be fixated Fixates a #GstStructure by changing the given field to the nearest fraction to @target_numerator/@target_denominator that is a subset of the existing field. a #GstStructure a field in @structure The numerator of the target value of the fixation The denominator of the target value of the fixation %TRUE if the structure could be fixated Fixates a #GstStructure by changing the given field to the nearest integer to @target that is a subset of the existing field. a #GstStructure a field in @structure the target value of the fixation %TRUE if the structure could be fixated Fixates a #GstStructure by changing the given @field_name field to the given @target string if that field is not fixed yet. a #GstStructure a field in @structure the target value of the fixation %TRUE if the structure could be fixated Calls the provided function once for each field in the #GstStructure. The function must not modify the fields. Also see gst_structure_map_in_place() and gst_structure_filter_and_map_in_place(). a #GstStructure a function to call for each field private data %TRUE if the supplied function returns %TRUE For each of the fields, %FALSE otherwise. Frees a #GstStructure and all its fields and values. The structure must not have a parent when this function is called. the #GstStructure to free Creates a #GstStructure from a string representation. If end is not %NULL, a pointer to the place inside the given string where parsing ended will be returned. Free-function: gst_structure_free a string representation of a #GstStructure. pointer to store the end of the string in. a new #GstStructure or %NULL when the string could not be parsed. Free with gst_structure_free() after use. Parses the variable arguments and reads fields from @structure accordingly. Variable arguments should be in the form field name, field type (as a GType), pointer(s) to a variable(s) to hold the return value(s). The last variable argument should be %NULL. For refcounted (mini)objects you will receive a new reference which you must release with a suitable _unref() when no longer needed. For strings and boxed types you will receive a copy which you will need to release with either g_free() or the suitable function for the boxed type. a #GstStructure the name of the first field to read variable arguments %FALSE if there was a problem reading any of the fields (e.g. because the field requested did not exist, or was of a type other than the type specified), otherwise %TRUE. Sets the boolean pointed to by @value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to a #gboolean to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a boolean, this function returns %FALSE. Sets the clock time pointed to by @value corresponding to the clock time of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to a #GstClockTime to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a #GstClockTime, this function returns %FALSE. Sets the date pointed to by @value corresponding to the date of the given field. Caller is responsible for making sure the field exists and has the correct type. On success @value will point to a newly-allocated copy of the date which should be freed with g_date_free() when no longer needed (note: this is inconsistent with e.g. gst_structure_get_string() which doesn't return a copy of the string). a #GstStructure the name of a field a pointer to a #GDate to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a data, this function returns %FALSE. Sets the datetime pointed to by @value corresponding to the datetime of the given field. Caller is responsible for making sure the field exists and has the correct type. On success @value will point to a reference of the datetime which should be unreffed with gst_date_time_unref() when no longer needed (note: this is inconsistent with e.g. gst_structure_get_string() which doesn't return a copy of the string). a #GstStructure the name of a field a pointer to a #GstDateTime to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a data, this function returns %FALSE. Sets the double pointed to by @value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to a gdouble to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a double, this function returns %FALSE. Sets the int pointed to by @value corresponding to the value of the given field. Caller is responsible for making sure the field exists, has the correct type and that the enumtype is correct. a #GstStructure the name of a field the enum type of a field a pointer to an int to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain an enum of the given type, this function returns %FALSE. Finds the field with the given name, and returns the type of the value it contains. If the field is not found, G_TYPE_INVALID is returned. a #GstStructure the name of the field the #GValue of the field Read the GstFlagSet flags and mask out of the structure into the provided pointers. a #GstStructure the name of a field a pointer to a guint for the flags field a pointer to a guint for the mask field %TRUE if the values could be set correctly. If there was no field with @fieldname or the existing field did not contain a GstFlagSet, this function returns %FALSE. Sets the integers pointed to by @value_numerator and @value_denominator corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to an int to set a pointer to an int to set %TRUE if the values could be set correctly. If there was no field with @fieldname or the existing field did not contain a GstFraction, this function returns %FALSE. Sets the int pointed to by @value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to an int to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain an int, this function returns %FALSE. Sets the #gint64 pointed to by @value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to a #gint64 to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a #gint64, this function returns %FALSE. Get the name of @structure as a string. a #GstStructure the name of the structure. Get the name of @structure as a GQuark. a #GstStructure the quark representing the name of the structure. Finds the field corresponding to @fieldname, and returns the string contained in the field's value. Caller is responsible for making sure the field exists and has the correct type. The string should not be modified, and remains valid until the next call to a gst_structure_*() function with the given structure. a #GstStructure the name of a field a pointer to the string or %NULL when the field did not exist or did not contain a string. Sets the uint pointed to by @value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to a uint to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a uint, this function returns %FALSE. Sets the #guint64 pointed to by @value corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type. a #GstStructure the name of a field a pointer to a #guint64 to set %TRUE if the value could be set correctly. If there was no field with @fieldname or the existing field did not contain a #guint64, this function returns %FALSE. Parses the variable arguments and reads fields from @structure accordingly. valist-variant of gst_structure_get(). Look at the documentation of gst_structure_get() for more details. a #GstStructure the name of the first field to read variable arguments %TRUE, or %FALSE if there was a problem reading any of the fields Get the value of the field with name @fieldname. a #GstStructure the name of the field to get the #GValue corresponding to the field with the given name. Check if @structure contains a field named @fieldname. a #GstStructure the name of a field %TRUE if the structure contains a field with the given name Check if @structure contains a field named @fieldname and with GType @type. a #GstStructure the name of a field the type of a value %TRUE if the structure contains a field with the given name and type Checks if the structure has the given name a #GstStructure structure name to check for %TRUE if @name matches the name of the structure. Parses the variable arguments and reads fields from @structure accordingly. Variable arguments should be in the form field id quark, field type (as a GType), pointer(s) to a variable(s) to hold the return value(s). The last variable argument should be %NULL (technically it should be a 0 quark, but we require %NULL so compilers that support it can check for the %NULL terminator and warn if it's not there). This function is just like gst_structure_get() only that it is slightly more efficient since it saves the string-to-quark lookup in the global quark hashtable. For refcounted (mini)objects you will receive a new reference which you must release with a suitable _unref() when no longer needed. For strings and boxed types you will receive a copy which you will need to release with either g_free() or the suitable function for the boxed type. a #GstStructure the quark of the first field to read variable arguments %FALSE if there was a problem reading any of the fields (e.g. because the field requested did not exist, or was of a type other than the type specified), otherwise %TRUE. Parses the variable arguments and reads fields from @structure accordingly. valist-variant of gst_structure_id_get(). Look at the documentation of gst_structure_id_get() for more details. a #GstStructure the quark of the first field to read variable arguments %TRUE, or %FALSE if there was a problem reading any of the fields Get the value of the field with GQuark @field. a #GstStructure the #GQuark of the field to get the #GValue corresponding to the field with the given name identifier. Check if @structure contains a field named @field. a #GstStructure #GQuark of the field name %TRUE if the structure contains a field with the given name Check if @structure contains a field named @field and with GType @type. a #GstStructure #GQuark of the field name the type of a value %TRUE if the structure contains a field with the given name and type Identical to gst_structure_set, except that field names are passed using the GQuark for the field name. This allows more efficient setting of the structure if the caller already knows the associated quark values. The last variable argument must be %NULL. a #GstStructure the GQuark for the name of the field to set variable arguments va_list form of gst_structure_id_set(). a #GstStructure the name of the field to set variable arguments Sets the field with the given GQuark @field to @value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed. a #GstStructure a #GQuark representing a field the new value of the field Sets the field with the given GQuark @field to @value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed. a #GstStructure a #GQuark representing a field the new value of the field Intersects @struct1 and @struct2 and returns the intersection. a #GstStructure a #GstStructure Intersection of @struct1 and @struct2 Tests if the two #GstStructure are equal. a #GstStructure. a #GstStructure. %TRUE if the two structures have the same name and field. Checks if @subset is a subset of @superset, i.e. has the same structure name and for all fields that are existing in @superset, @subset has a value that is a subset of the value in @superset. a #GstStructure a potentially greater #GstStructure %TRUE if @subset is a subset of @superset Calls the provided function once for each field in the #GstStructure. In contrast to gst_structure_foreach(), the function may modify but not delete the fields. The structure must be mutable. a #GstStructure a function to call for each field private data %TRUE if the supplied function returns %TRUE For each of the fields, %FALSE otherwise. Get the number of fields in the structure. a #GstStructure the number of fields in the structure Creates a new #GstStructure with the given name. Parses the list of variable arguments and sets fields to the values listed. Variable arguments should be passed as field name, field type, and value. Last variable argument should be %NULL. Free-function: gst_structure_free name of new structure name of first field to set additional arguments a new #GstStructure Creates a new, empty #GstStructure with the given @name. See gst_structure_set_name() for constraints on the @name parameter. Free-function: gst_structure_free name of new structure a new, empty #GstStructure Creates a #GstStructure from a string representation. If end is not %NULL, a pointer to the place inside the given string where parsing ended will be returned. The current implementation of serialization will lead to unexpected results when there are nested #GstCaps / #GstStructure deeper than one level. Free-function: gst_structure_free a string representation of a #GstStructure a new #GstStructure or %NULL when the string could not be parsed. Free with gst_structure_free() after use. Creates a new #GstStructure with the given name as a GQuark, followed by fieldname quark, GType, argument(s) "triplets" in the same format as gst_structure_id_set(). Basically a convenience wrapper around gst_structure_new_id_empty() and gst_structure_id_set(). The last variable argument must be %NULL (or 0). Free-function: gst_structure_free name of new structure the GQuark for the name of the field to set variable arguments a new #GstStructure Creates a new, empty #GstStructure with the given name as a GQuark. Free-function: gst_structure_free name of new structure a new, empty #GstStructure Creates a new #GstStructure with the given @name. Structure fields are set according to the varargs in a manner similar to gst_structure_new(). See gst_structure_set_name() for constraints on the @name parameter. Free-function: gst_structure_free name of new structure name of first field to set variable argument list a new #GstStructure Get the name of the given field number, counting from 0 onwards. a #GstStructure the index to get the name of the name of the given field number Removes all fields in a GstStructure. a #GstStructure Removes the field with the given name. If the field with the given name does not exist, the structure is unchanged. a #GstStructure the name of the field to remove Removes the fields with the given names. If a field does not exist, the argument is ignored. a #GstStructure the name of the field to remove %NULL-terminated list of more fieldnames to remove va_list form of gst_structure_remove_fields(). a #GstStructure the name of the field to remove %NULL-terminated list of more fieldnames to remove Parses the variable arguments and sets fields accordingly. Fields that weren't already part of the structure are added as needed. Variable arguments should be in the form field name, field type (as a GType), value(s). The last variable argument should be %NULL. a #GstStructure the name of the field to set variable arguments Sets the name of the structure to the given @name. The string provided is copied before being used. It must not be empty, start with a letter and can be followed by letters, numbers and any of "/-_.:". a #GstStructure the new name of the structure Sets the parent_refcount field of #GstStructure. This field is used to determine whether a structure is mutable or not. This function should only be called by code implementing parent objects of #GstStructure, as described in the MT Refcounting section of the design documents. a #GstStructure a pointer to the parent's refcount %TRUE if the parent refcount could be set. va_list form of gst_structure_set(). a #GstStructure the name of the field to set variable arguments Sets the field with the given name @field to @value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed. a #GstStructure the name of the field to set the new value of the field Sets the field with the given name @field to @value. If the field does not exist, it is created. If the field exists, the previous value is replaced and freed. The function will take ownership of @value. a #GstStructure the name of the field to set the new value of the field Converts @structure to a human-readable string representation. For debugging purposes its easier to do something like this: |[<!-- language="C" --> GST_LOG ("structure is %" GST_PTR_FORMAT, structure); ]| This prints the structure in human readable form. The current implementation of serialization will lead to unexpected results when there are nested #GstCaps / #GstStructure deeper than one level. Free-function: g_free a #GstStructure a pointer to string allocated by g_malloc(). g_free() after usage. Get a handle to the default system clock. The refcount of the clock will be increased so you need to unref the clock after usage. the default clock. MT safe. Sets the default system clock that can be obtained with gst_system_clock_obtain(). This is mostly used for testing and debugging purposes when you want to have control over the time reported by the default system clock. MT safe. a #GstClock Check if a given string contains a known ISO 639 language code. This is useful in situations where it's not clear whether a given string is a language code (which should be put into a #GST_TAG_LANGUAGE_CODE tag) or a free-form language name descriptor (which should be put into a #GST_TAG_LANGUAGE_NAME tag instead). ISO-639 language code (e.g. "deu" or "ger" or "de") TRUE if the two- or three-letter language code in @lang_code is a valid ISO-639 language code. Checks if the given type is already registered. name of the tag %TRUE if the type is already registered Convenience function to read a string with unknown character encoding. If the string is already in UTF-8 encoding, it will be returned right away. If not it tries to detect byte-order-mark for UTF-16/32 cases and use that. Otherwise, the environment will be searched for a number of environment variables (whose names are specified in the NULL-terminated string array @env_vars) containing a list of character encodings to try/use. If none are specified, the current locale will be tried. If that also doesn't work, WINDOWS-1252/ISO-8859-1 is assumed (which will almost always succeed). string data length of string data, or -1 if the string is NUL-terminated a NULL-terminated string array of environment variable names, or NULL a newly-allocated string in UTF-8 encoding, or NULL Looks up the GStreamer tag for a ID3v2 tag. ID3v2 tag to convert to GStreamer tag The corresponding GStreamer tag or NULL if none exists. Looks up the GStreamer tag for an ID3v2 user tag (e.g. description in TXXX frame or owner in UFID frame). the type of ID3v2 user tag (e.g. "TXXX" or "UDIF") ID3v2 user tag to convert to GStreamer tag The corresponding GStreamer tag or NULL if none exists. Looks up the GStreamer tag for a vorbiscomment tag. vorbiscomment tag to convert to GStreamer tag The corresponding GStreamer tag or NULL if none exists. Returns the human-readable description of this tag, You must not change or free this string. the tag the human-readable description of this tag Gets the flag of @tag. the tag the flag of this tag. Determines size of an ID3v2 tag on buffer containing at least ID3v2 header, i.e. at least #GST_TAG_ID3V2_HEADER_SIZE (10) bytes; buffer holding ID3v2 tag (or at least the start of one) Size of tag, or 0 if header is invalid or too small. Convenience macro wrapping gst_tag_get_language_code_iso_639_1(). ISO-639 language code (e.g. "deu" or "ger" or "de") Returns two-letter ISO-639-1 language code given a three-letter ISO-639-2 language code or two-letter ISO-639-1 language code (both are accepted for convenience). Language codes are case-sensitive and expected to be lower case. ISO-639 language code (e.g. "deu" or "ger" or "de") two-letter ISO-639-1 language code string that maps to @lang_code, or NULL if no mapping is known. The returned string must not be modified or freed. Returns three-letter ISO-639-2 "bibliographic" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience). The "bibliographic" code is derived from the English name of the language (e.g. "ger" for German instead of "de" or "deu"). In most scenarios, the "terminological" codes are prefered. Language codes are case-sensitive and expected to be lower case. ISO-639 language code (e.g. "deu" or "ger" or "de") three-letter ISO-639-2 language code string that maps to @lang_code, or NULL if no mapping is known. The returned string must not be modified or freed. Returns three-letter ISO-639-2 "terminological" language code given a two-letter ISO-639-1 language code or a three-letter ISO-639-2 language code (both are accepted for convenience). The "terminological" code is derived from the local name of the language (e.g. "deu" for German instead of "ger"). In most scenarios, the "terminological" codes are prefered over the "bibliographic" ones. Language codes are case-sensitive and expected to be lower case. ISO-639 language code (e.g. "deu" or "ger" or "de") three-letter ISO-639-2 language code string that maps to @lang_code, or NULL if no mapping is known. The returned string must not be modified or freed. Returns a list of known language codes (in form of two-letter ISO-639-1 codes). This is useful for UIs to build a list of available languages for tagging purposes (e.g. to tag an audio track appropriately in a video or audio editor). NULL-terminated string array with two-letter language codes. Free with g_strfreev() when no longer needed. Returns the name of the language given an ISO-639 language code as found in a GST_TAG_LANGUAGE_CODE tag. The name will be translated according to the current locale (if the library was built against the iso-codes package, otherwise the English name will be returned). Language codes are case-sensitive and expected to be lower case. two or three-letter ISO-639 language code language name in UTF-8 format, or NULL if @language_code could not be mapped to a language name. The returned string must not be modified and does not need to freed; it will stay valid until the application is terminated. Get the description of a license, which is a translated description of the license's main features. a license reference string in form of a URI, e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/" the description of the license, or NULL if the license is unknown or a description is not available. Get the flags of a license, which describe most of the features of a license in their most general form. a license reference string in form of a URI, e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/" the flags of the license, or 0 if the license is unknown Get the jurisdiction code of a license. This is usually a two-letter ISO 3166-1 alpha-2 code, but there is also the special case of Scotland, for which no code exists and which is thus represented as "scotland". Known jurisdictions: ar, at, au, be, bg, br, ca, ch, cl, cn, co, de, dk, es, fi, fr, hr, hu, il, in, it, jp, kr, mk, mt, mx, my, nl, pe, pl, pt, scotland, se, si, tw, uk, us, za. a license reference string in form of a URI, e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/" the jurisdiction code of the license, or NULL if the license is unknown or is not specific to a particular jurisdiction. Get the nick name of a license, which is a short (untranslated) string such as e.g. "CC BY-NC-ND 2.0 UK". a license reference string in form of a URI, e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/" the nick name of the license, or NULL if the license is unknown Get the title of a license, which is a short translated description of the license's features (generally not very pretty though). a license reference string in form of a URI, e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/" the title of the license, or NULL if the license is unknown or no title is available. Get the version of a license. a license reference string in form of a URI, e.g. "http://creativecommons.org/licenses/by-nc-nd/2.0/" the version of the license, or NULL if the license is not known or has no version Returns a list of known license references (in form of URIs). This is useful for UIs to build a list of available licenses for tagging purposes (e.g. to tag an audio track appropriately in a video or audio editor, or an image in a camera application). NULL-terminated array of license strings. Free with g_strfreev() when no longer needed. Returns the human-readable name of this tag, You must not change or free this string. the tag the human-readable name of this tag Gets the #GType used for this tag. the tag the #GType of this tag Gets the number of ID3v1 genres that can be identified. Winamp genres are included. the number of ID3v1 genres that can be identified Gets the ID3v1 genre name for a given ID. ID of genre to query the genre or NULL if no genre is associated with that ID. Helper function for tag-reading plugins to create a #GstSample suitable to add to a #GstTagList as an image tag (such as #GST_TAG_IMAGE or #GST_TAG_PREVIEW_IMAGE) from the encoded image data and an (optional) image type. Background: cover art and other images in tags are usually stored as a blob of binary image data, often accompanied by a MIME type or some other content type string (e.g. 'png', 'jpeg', 'jpg'). Sometimes there is also an 'image type' to indicate what kind of image this is (e.g. front cover, back cover, artist, etc.). The image data may also be an URI to the image rather than the image itself. In GStreamer, image tags are #GstSample<!-- -->s containing the raw image data, with the sample caps describing the content type of the image (e.g. image/jpeg, image/png, text/uri-list). The sample info may contain an additional 'image-type' field of #GST_TYPE_TAG_IMAGE_TYPE to describe the type of image (front cover, back cover etc.). #GST_TAG_PREVIEW_IMAGE tags should not carry an image type, their type is already indicated via the special tag name. This function will do various checks and typefind the encoded image data (we can't trust the declared mime type). the (encoded) image the length of the encoded image data at @image_data type of the image, or #GST_TAG_IMAGE_TYPE_UNDEFINED. Pass #GST_TAG_IMAGE_TYPE_NONE if no image type should be set at all (e.g. for preview images) a newly-allocated image sample for use in tag lists, or NULL Checks if the given tag is fixed. A fixed tag can only contain one value. Unfixed tags can contain lists of values. tag to check %TRUE, if the given tag is fixed. Sets the values for the given tags using the specified mode. list to set tags in the mode to use tag %NULL-terminated list of values to set Adds an image from an ID3 APIC frame (or similar, such as used in FLAC) to the given tag list. Also see gst_tag_image_data_to_image_sample() for more information on image tags in GStreamer. a tag list the (encoded) image the length of the encoded image data at @image_data picture type as per the ID3 (v2.4.0) specification for the APIC frame (0 = unknown/other) %TRUE if the image was processed, otherwise %FALSE Sets the values for the given tags using the specified mode. list to set tags in the mode to use tag tag / value pairs to set Sets the GValues for the given tags using the specified mode. list to set tags in the mode to use tag tag / GValue pairs to set Sets the GValue for a given tag using the specified mode. list to set tags in the mode to use tag GValue for this tag Sets the GValues for the given tags using the specified mode. list to set tags in the mode to use tag GValues to set Creates a new #GstTagList as a copy of the old @taglist. The new taglist will have a refcount of 1, owned by the caller, and will be writable as a result. Note that this function is the semantic equivalent of a gst_tag_list_ref() followed by a gst_tag_list_make_writable(). If you only want to hold on to a reference to the data, you should use gst_tag_list_ref(). When you are finished with the taglist, call gst_tag_list_unref() on it. a #GstTagList. the new #GstTagList 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. uninitialized #GValue to copy into list to get the tag from tag to read out %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Calls the given function for each tag inside the tag list. Note that if there is no tag, the function won't be called at all. list to iterate over function to be called for each tag user specified data Parses the IFD and IFD tags data contained in the buffer and puts it on a taglist. The base_offset is used to subtract from the offset in the tag entries and be able to get the offset relative to the buffer start The exif buffer byte order of the data Offset from the tiff header to this buffer The parsed taglist Parses the exif tags starting with a tiff header structure. The exif buffer The taglist Creates a new tag list that contains the information parsed out of a ID3 tag. buffer to convert A new #GstTagList with all tags that could be extracted from the given vorbiscomment buffer or NULL on error. Creates a new tag list that contains the information parsed out of a vorbiscomment packet. data to convert size of @data identification data at start of stream length of identification data pointer to a string that should take the vendor string of this vorbis comment or NULL if you don't need it. A new #GstTagList with all tags that could be extracted from the given vorbiscomment buffer or NULL on error. Creates a new tag list that contains the information parsed out of a vorbiscomment packet. buffer to convert identification data at start of stream length of identification data pointer to a string that should take the vendor string of this vorbis comment or NULL if you don't need it. A new #GstTagList with all tags that could be extracted from the given vorbiscomment buffer or NULL on error. Parse a xmp packet into a taglist. buffer new taglist or %NULL, free the list when done Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Copies the first date for the given tag in the taglist into the variable pointed to by @value. Free the date with g_date_free() when it is no longer needed. Free-function: g_date_free a #GstTagList to get the tag from tag to read out address of a GDate pointer variable to store the result into %TRUE, if a date was copied, %FALSE if the tag didn't exist in the given list or if it was %NULL. Gets the date that is at the given index for the given tag in the given list and copies it into the variable pointed to by @value. Free the date with g_date_free() when it is no longer needed. Free-function: g_date_free a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list or if it was %NULL. Copies the first datetime for the given tag in the taglist into the variable pointed to by @value. Unref the date with gst_date_time_unref() when it is no longer needed. Free-function: gst_date_time_unref a #GstTagList to get the tag from tag to read out address of a #GstDateTime pointer variable to store the result into %TRUE, if a datetime was copied, %FALSE if the tag didn't exist in the given list or if it was %NULL. Gets the datetime that is at the given index for the given tag in the given list and copies it into the variable pointed to by @value. Unref the datetime with gst_date_time_unref() when it is no longer needed. Free-function: gst_date_time_unref a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list or if it was %NULL. Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Copies the first sample for the given tag in the taglist into the variable pointed to by @sample. Free the sample with gst_sample_unref() when it is no longer needed. You can retrieve the buffer from the sample using gst_sample_get_buffer() and the associated caps (if any) with gst_sample_get_caps(). Free-function: gst_sample_unref a #GstTagList to get the tag from tag to read out address of a GstSample pointer variable to store the result into %TRUE, if a sample was returned, %FALSE if the tag didn't exist in the given list or if it was %NULL. Gets the sample that is at the given index for the given tag in the given list and copies it into the variable pointed to by @sample. Free the sample with gst_sample_unref() when it is no longer needed. You can retrieve the buffer from the sample using gst_sample_get_buffer() and the associated caps (if any) with gst_sample_get_caps(). Free-function: gst_sample_unref a #GstTagList to get the tag from tag to read out number of entry to read out address of a GstSample pointer variable to store the result into %TRUE, if a sample was copied, %FALSE if the tag didn't exist in the given list or if it was %NULL. Gets the scope of @list. a #GstTagList The scope of @list Copies the contents for the given tag into the value, possibly merging multiple values into one if multiple values are associated with the tag. Use gst_tag_list_get_string_index (list, tag, 0, value) if you want to retrieve the first string associated with this tag unmodified. The resulting string in @value will be in UTF-8 encoding and should be freed by the caller using g_free when no longer needed. The returned string is also guaranteed to be non-%NULL and non-empty. Free-function: g_free a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. The resulting string in @value will be in UTF-8 encoding and should be freed by the caller using g_free when no longer needed. The returned string is also guaranteed to be non-%NULL and non-empty. Free-function: g_free a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Checks how many value are stored in this tag list for the given tag. a taglist the tag to query The number of tags stored Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. a #GstTagList to get the tag from tag to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was copied, %FALSE if the tag didn't exist in the given list. Gets the value that is at the given index for the given tag in the given list. a #GstTagList tag to read out number of entry to read out The GValue for the specified entry or %NULL if the tag wasn't available or the tag doesn't have as many entries Inserts the tags of the @from list into the first list using the given mode. list to merge into list to merge from the mode to use Checks if the given taglist is empty. A #GstTagList. %TRUE if the taglist is empty, otherwise %FALSE. Checks if the two given taglists are equal. a #GstTagList. a #GstTagList. %TRUE if the taglists are equal, otherwise %FALSE Tests if you can safely modify @taglist. It is only safe to modify taglist when there is only one owner of the taglist - ie, the refcount is 1. a #GstTagList Returns a writable copy of @taglist. If there is only one reference count on @taglist, the caller must be the owner, and so this function will return the taglist object unchanged. If on the other hand there is more than one reference on the object, a new taglist object will be returned (which will be a copy of @taglist). The caller's reference on @taglist will be removed, and instead the caller will own a reference to the returned object. In short, this function unrefs the taglist in the argument and refs the taglist that it returns. Don't access the argument after calling this function. See also: gst_tag_list_ref(). a #GstTagList a writable taglist which may or may not be the same as @taglist Merges the two given lists into a new list. If one of the lists is %NULL, a copy of the other is returned. If both lists are %NULL, %NULL is returned. Free-function: gst_tag_list_unref first list to merge second list to merge the mode to use the new list Get the number of tags in @list. A #GstTagList. The number of tags in @list. Creates a new taglist and appends the values for the given tags. It expects tag-value pairs like gst_tag_list_add(), and a %NULL terminator after the last pair. The type of the values is implicit and is documented in the API reference, but can also be queried at runtime with gst_tag_get_type(). It is an error to pass a value of a type not matching the tag type into this function. The tag list will make copies of any arguments passed (e.g. strings, buffers). After creation you might also want to set a #GstTagScope on the returned taglist to signal if the contained tags are global or stream tags. By default stream scope is assumes. See gst_tag_list_set_scope(). Free-function: gst_tag_list_unref tag %NULL-terminated list of values to set a new #GstTagList. Free with gst_tag_list_unref() when no longer needed. Creates a new empty GstTagList. Free-function: gst_tag_list_unref An empty tag list Parses the data containing an ID3v1 tag and returns a #GstTagList from the parsed data. 128 bytes of data containing the ID3v1 tag A new tag list or NULL if the data was not an ID3v1 tag. Deserializes a tag list. a string created with gst_tag_list_to_string() a new #GstTagList, or %NULL in case of an error. Just like gst_tag_list_new(), only that it takes a va_list argument. Useful mostly for language bindings. Free-function: gst_tag_list_unref tag / value pairs to set a new #GstTagList. Free with gst_tag_list_unref() when no longer needed. Get the name of the tag in @list at @index. A #GstTagList. the index The name of the tag at @index. Peeks at the value that is at the given index for the given tag in the given list. The resulting string in @value will be in UTF-8 encoding and doesn't need to be freed by the caller. The returned string is also guaranteed to be non-%NULL and non-empty. a #GstTagList to get the tag from tag to read out number of entry to read out location for the result %TRUE, if a value was set, %FALSE if the tag didn't exist in the given list. Add a reference to a #GstTagList mini object. From this point on, until the caller calls gst_tag_list_unref() or gst_tag_list_make_writable(), it is guaranteed that the taglist object will not change. To use a #GstTagList object, you must always have a refcount on it -- either the one made implicitly by e.g. gst_tag_list_new(), or via taking one explicitly with this function. the #GstTagList to reference the same #GstTagList mini object. Removes the given tag from the taglist. list to remove tag from tag to remove Sets the scope of @list to @scope. By default the scope of a taglist is stream scope. a #GstTagList new scope for @list Formats the tags in taglist on exif format. The resulting buffer contains the tags IFD and is followed by the data pointed by the tag entries. The taglist byte order used in writing (G_LITTLE_ENDIAN or G_BIG_ENDIAN) Offset from the tiff header first byte A GstBuffer containing the tag entries followed by the tag data Formats the tags in taglist into exif structure, a tiff header is put in the beginning of the buffer. The taglist A GstBuffer containing the data Serializes a tag list to a string. a #GstTagList a newly-allocated string, or %NULL in case of an error. The string must be freed with g_free() when no longer needed. Creates a new vorbiscomment buffer from a tag list. tag list to convert identification data at start of stream length of identification data, may be 0 if @id_data is NULL string that describes the vendor string or NULL A new #GstBuffer containing a vorbiscomment buffer with all tags that could be converted from the given tag list. Formats a taglist as a xmp packet using only the selected schemas. An empty list (%NULL) means that all schemas should be used tags does the container forbid inplace editing %NULL terminated array of schemas to be used on serialization new buffer or %NULL, unref the buffer when done Unref a #GstTagList, and and free all its memory when the refcount reaches 0. a #GstTagList. 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. uninitialized GValue to store result in GValue to copy from This is a convenience function for the func argument of gst_tag_register(). It creates a copy of the first value from the list. uninitialized GValue to store result in GValue to copy from Convenience function to parse a GST_TAG_EXTENDED_COMMENT string and separate it into its components. If successful, @key, @lang and/or @value will be set to newly allocated strings that you need to free with g_free() when done. @key and @lang may also be set to NULL by this function if there is no key or no language code in the extended comment string. an extended comment string, see #GST_TAG_EXTENDED_COMMENT return location for the comment description key, or NULL return location for the comment ISO-639 language code, or NULL return location for the actual comment string, or NULL whether to fail if strings are not in key=value form TRUE if the string could be parsed, otherwise FALSE 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(). the name or identifier string a flag describing the type of tag info the type this data is in human-readable name a human-readable description about this tag function for merging multiple values of this tag, or %NULL Registers additional musicbrainz-specific tags with the GStreamer tag system. Plugins and applications that use these tags should call this function before using them. Can be called multiple times. 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.) the name or identifier string (string constant) a flag describing the type of tag info the type this data is in human-readable name or short description (string constant) a human-readable description for this tag (string constant) function for merging multiple values of this tag, or %NULL Adds the given tag / value pairs on the setter using the given merge mode. The list must be terminated with %NULL. a #GstTagSetter the mode to use tag to set tag / value pairs to set Adds the given tag / GValue pairs on the setter using the given merge mode. The list must be terminated with %NULL. a #GstTagSetter the mode to use tag to set tag / GValue pairs to set Adds the given tag / GValue pair on the setter using the given merge mode. a #GstTagSetter the mode to use tag to set GValue to set for the tag Adds the given tag / GValue pairs on the setter using the given merge mode. The list must be terminated with %NULL. a #GstTagSetter the mode to use tag to set more tag / GValue pairs to set Adds the given tag / value pairs on the setter using the given merge mode. The list must be terminated with %NULL. a #GstTagSetter the mode to use tag to set more tag / value pairs to set Returns the current list of tags the setter uses. The list should not be modified or freed. This function is not thread-safe. a #GstTagSetter a current snapshot of the taglist used in the setter or %NULL if none is used. Queries the mode by which tags inside the setter are overwritten by tags from events a #GstTagSetter the merge mode used inside the element. Merges the given list into the setter's list using the given mode. a #GstTagSetter a tag list to merge from the mode to merge with Reset the internal taglist. Elements should call this from within the state-change handler. a #GstTagSetter Sets the given merge mode that is used for adding tags from events to tags specified by this interface. The default is #GST_TAG_MERGE_KEEP, which keeps the tags set with this interface and discards tags from events. a #GstTagSetter The mode with which tags are added Looks up the ID3v2 tag for a GStreamer tag. GStreamer tag to convert to vorbiscomment tag The corresponding ID3v2 tag or NULL if none exists. Creates a new tag list that contains the information parsed out of a vorbiscomment packet. a #GstTagList a GStreamer tag identifier, such as #GST_TAG_ARTIST A #GList of newly-allocated key=value strings. Free with g_list_foreach (list, (GFunc) g_free, NULL) plus g_list_free (list) Looks up the vorbiscomment tag for a GStreamer tag. GStreamer tag to convert to vorbiscomment tag The corresponding vorbiscomment tag or NULL if none exists. Gets the list of supported schemas in the xmp lib a %NULL terminated array of strings with the schema names Adds all available XMP schemas to the configuration. Meaning that all will be used. a #GstTagXmpWriter Adds @schema to the list schemas a #GstTagXmpWriter the schema to be added Checks if @schema is going to be used a #GstTagXmpWriter the schema to test %TRUE if it is going to be used Removes all schemas from the list of schemas to use. Meaning that no XMP will be generated. a #GstTagXmpWriter Removes a schema from the list of schemas to use. Nothing is done if the schema wasn't in the list a #GstTagXmpWriter the schema to remove Wait for all tasks to be stopped. This is mainly used internally to ensure proper cleanup of internal data structures in test suites. MT safe. Get the #GstTaskPool that this task will use for its streaming threads. MT safe. a #GstTask the #GstTaskPool used by @task. gst_object_unref() after usage. Get the current state of the task. The #GstTask to query The #GstTaskState of the task MT safe. Joins @task. After this call, it is safe to unref the task and clean up the lock set with gst_task_set_lock(). The task will automatically be stopped with this call. This function cannot be called from within a task function as this would cause a deadlock. The function will detect this and print a g_warning. The #GstTask to join %TRUE if the task could be joined. MT safe. Create a new Task that will repeatedly call the provided @func with @user_data as a parameter. Typically the task will run in a new thread. The function cannot be changed after the task has been created. You must create a new #GstTask to change the function. This function will not yet create and start a thread. Use gst_task_start() or gst_task_pause() to create and start the GThread. Before the task can be used, a #GRecMutex must be configured using the gst_task_set_lock() function. This lock will always be acquired while @func is called. The #GstTaskFunction to use User data to pass to @func the function to call when @user_data is no longer needed. A new #GstTask. MT safe. Pauses @task. This method can also be called on a task in the stopped state, in which case a thread will be started and will remain in the paused state. This function does not wait for the task to complete the paused state. The #GstTask to pause %TRUE if the task could be paused. MT safe. Wait for all tasks to be stopped. This is mainly used internally to ensure proper cleanup of internal data structures in test suites. MT safe. a #GstTaskPool Join a task and/or return it to the pool. @id is the id obtained from gst_task_pool_push(). a #GstTaskPool the id Create a new default task pool. The default task pool will use a regular GThreadPool for threads. a new #GstTaskPool. gst_object_unref() after usage. Prepare the taskpool for accepting gst_task_pool_push() operations. MT safe. a #GstTaskPool an error return location Start the execution of a new thread from @pool. a #GstTaskPool the function to call data to pass to @func return location for an error a pointer that should be used for the gst_task_pool_join function. This pointer can be %NULL, you must check @error to detect errors. Call @enter_func when the task function of @task is entered. @user_data will be passed to @enter_func and @notify will be called when @user_data is no longer referenced. The #GstTask to use a #GstTaskThreadFunc user data passed to @enter_func called when @user_data is no longer referenced Call @leave_func when the task function of @task is left. @user_data will be passed to @leave_func and @notify will be called when @user_data is no longer referenced. The #GstTask to use a #GstTaskThreadFunc user data passed to @leave_func called when @user_data is no longer referenced Set the mutex used by the task. The mutex will be acquired before calling the #GstTaskFunction. This function has to be called before calling gst_task_pause() or gst_task_start(). MT safe. The #GstTask to use The #GRecMutex to use Set @pool as the new GstTaskPool for @task. Any new streaming threads that will be created by @task will now use @pool. MT safe. a #GstTask a #GstTaskPool Sets the state of @task to @state. The @task must have a lock associated with it using gst_task_set_lock() when going to GST_TASK_STARTED or GST_TASK_PAUSED or this function will return %FALSE. MT safe. a #GstTask the new task state %TRUE if the state could be changed. Starts @task. The @task must have a lock associated with it using gst_task_set_lock() or this function will return %FALSE. The #GstTask to start %TRUE if the task could be started. MT safe. Stops @task. This method merely schedules the task to stop and will not wait for the task to have completely stopped. Use gst_task_join() to stop and wait for completion. The #GstTask to stop %TRUE if the task could be stopped. MT safe. Advances the time of the @test_clock by the amount given by @delta. The time of @test_clock is monotonically increasing, therefore providing a @delta which is negative or zero is a programming error. MT safe. a #GstTestClock for which to increase the time a positive #GstClockTimeDiff to be added to the time of the clock A "crank" consists of three steps: 1: Wait for a #GstClockID to be registered with the #GstTestClock. 2: Advance the #GstTestClock to the time the #GstClockID is waiting for. 3: Release the #GstClockID wait. A "crank" can be though of as the notion of manually driving the clock forward to its next logical step. Return: %TRUE if the crank was successful, %FALSE otherwise. MT safe. #GstTestClock to crank Retrieve the requested time for the next pending clock notification. MT safe. a #GstTestClock to fetch the next clock notification time for a #GstClockTime set to the time of the next pending clock notification. If no clock notifications have been requested %GST_CLOCK_TIME_NONE will be returned. Checks whether @test_clock was requested to provide the clock notification given by @id. MT safe. a #GstTestClock to ask if it provided the notification a #GstClockID clock notification %TRUE if the clock has been asked to provide the given clock notification, %FALSE otherwise. Finds the latest time inside the list. MT safe. List of of pending #GstClockIDs Creates a new test clock with its time set to zero. MT safe. a #GstTestClock cast to #GstClock. Creates a new test clock with its time set to the specified time. MT safe. a #GstClockTime set to the desired start time of the clock. a #GstTestClock cast to #GstClock. Determine the number of pending clock notifications that have been requested from the @test_clock. MT safe. a #GstTestClock for which to count notifications the number of pending clock notifications. Determines if the @pending_id is the next clock notification scheduled to be triggered given the current time of the @test_clock. MT safe. Return: %TRUE if @pending_id is the next clock notification to be triggered, %FALSE otherwise. a #GstTestClock to check the clock notifications for a #GstClockID clock notification to look for Processes and releases the pending IDs in the list. MT safe. #GstTestClock for which to process the pending IDs List of pending #GstClockIDs MT safe. a #GstTestClock for which to retrieve the next pending clock notification a #GstClockID containing the next pending clock notification. Sets the time of @test_clock to the time given by @new_time. The time of @test_clock is monotonically increasing, therefore providing a @new_time which is earlier or equal to the time of the clock as given by gst_clock_get_time() is a programming error. MT safe. a #GstTestClock of which to set the time a #GstClockTime later than that returned by gst_clock_get_time() Blocks until at least @count clock notifications have been requested from @test_clock. There is no timeout for this wait, see the main description of #GstTestClock. MT safe. #GstTestClock for which to await having enough pending clock the number of pending clock notifications to wait for Address of a #GList pointer variable to store the list of pending #GstClockIDs that expired, or %NULL Waits until a clock notification is requested from @test_clock. There is no timeout for this wait, see the main description of #GstTestClock. A reference to the pending clock notification is stored in @pending_id. MT safe. #GstTestClock for which to get the pending clock notification #GstClockID with information about the pending clock notification Blocks until at least @count clock notifications have been requested from @test_clock. There is no timeout for this wait, see the main description of #GstTestClock. Deprecated: use gst_test_clock_wait_for_multiple_pending_ids() instead. #GstTestClock for which to await having enough pending clock the number of pending clock notifications to wait for Reset the controlled value cache. the #GstTimedValueControlSource Find last value before given timestamp in control point list. If all values in the control point list come after the given timestamp or no values exist, %NULL is returned. For use in control source implementations. the control source to search in the search key the found #GSequenceIter or %NULL Returns a read-only copy of the list of #GstTimedValue for the given property. Free the list after done with it. the #GstTimedValueControlSource to get the list from a copy of the list, or %NULL if the property isn't handled by the controller Get the number of control points that are set. the #GstTimedValueControlSource to get the number of values from the number of control points that are set. Set the value of given controller-handled property at a certain time. the #GstTimedValueControlSource object the time the control-change is scheduled for the control-value FALSE if the values couldn't be set, TRUE otherwise. Sets multiple timed values at once. the #GstTimedValueControlSource object a list with #GstTimedValue items FALSE if the values couldn't be set, TRUE otherwise. Used to remove the value of given controller-handled property at a certain time. the #GstTimedValueControlSource object the time the control-change should be removed from FALSE if the value couldn't be unset (i.e. not found, TRUE otherwise. Used to remove all time-stamped values of given controller-handled property the #GstTimedValueControlSource object Appends the #GstTocEntry @entry to @toc. A #GstToc instance A #GstTocEntry Copy #GstToc with all subentries (deep copy). #GstToc to copy. newly allocated #GstToc in case of success, %NULL otherwise; free it when done with gst_toc_unref(). Appends the #GstTocEntry @subentry to @entry. A #GstTocEntry instance A #GstTocEntry Copy #GstTocEntry with all subentries (deep copy). #GstTocEntry to copy. newly allocated #GstTocEntry in case of success, %NULL otherwise; free it when done with gst_toc_entry_unref(). a #GstTocEntry @entry's entry type Get @loop_type and @repeat_count values from the @entry and write them into appropriate storages. Loops are e.g. used by sampled instruments. GStreamer is not automatically applying the loop. The application can process this meta data and use it e.g. to send a seek-event to loop a section. #GstTocEntry to get values from. the storage for the loop_type value, leave %NULL if not need. the storage for the repeat_count value, leave %NULL if not need. %TRUE if all non-%NULL storage pointers were filled with appropriate values, %FALSE otherwise. Gets the parent #GstTocEntry of @entry. A #GstTocEntry instance The parent #GstTocEntry of @entry Get @start and @stop values from the @entry and write them into appropriate storages. #GstTocEntry to get values from. the storage for the start value, leave %NULL if not need. the storage for the stop value, leave %NULL if not need. %TRUE if all non-%NULL storage pointers were filled with appropriate values, %FALSE otherwise. Gets the sub-entries of @entry. A #GstTocEntry instance A #GList of #GstTocEntry of @entry Gets the tags for @entry. A #GstTocEntry instance A #GstTagList for @entry Gets the parent #GstToc of @entry. A #GstTocEntry instance The parent #GstToc of @entry Gets the UID of @entry. A #GstTocEntry instance The UID of @entry a #GstTocEntry %TRUE if @entry's type is an alternative type, otherwise %FALSE a #GstTocEntry %TRUE if @entry's type is a sequence type, otherwise %FALSE Merge @tags into the existing tags of @entry using @mode. A #GstTocEntry instance A #GstTagList or %NULL A #GstTagMergeMode Create new #GstTocEntry structure. entry type. unique ID (UID) in the whole TOC. newly allocated #GstTocEntry structure, free it with gst_toc_entry_unref(). Set @loop_type and @repeat_count values for the @entry. #GstTocEntry to set values. loop_type value to set. repeat_count value to set. Set @start and @stop values for the @entry. #GstTocEntry to set values. start value to set. stop value to set. Set a #GstTagList with tags for the complete @entry. A #GstTocEntry instance A #GstTagList or %NULL Converts @type to a string representation. a #GstTocEntryType. Returns a human-readable string for @type. This string is only for debugging purpose and should not be displayed in a user interface. Find #GstTocEntry with given @uid in the @toc. #GstToc to search in. UID to find #GstTocEntry with. #GstTocEntry with specified @uid from the @toc, or %NULL if not found. Gets the list of #GstTocEntry of @toc. A #GstToc instance A #GList of #GstTocEntry for @entry a #GstToc instance scope of @toc Gets the tags for @toc. A #GstToc instance A #GstTagList for @entry Merge @tags into the existing tags of @toc using @mode. A #GstToc instance A #GstTagList or %NULL A #GstTagMergeMode Create a new #GstToc structure. scope of this TOC newly allocated #GstToc structure, free it with gst_toc_unref(). Set a #GstTagList with tags for the complete @toc. A #GstToc instance A #GstTagList or %NULL Return current TOC the setter uses. The TOC should not be modified without making it writable first. a #GstTocSetter. TOC set, or %NULL. Unref with gst_toc_unref() when no longer needed Reset the internal TOC. Elements should call this from within the state-change handler. a #GstTocSetter. Set the given TOC on the setter. Previously set TOC will be unreffed before setting a new one. a #GstTocSetter. a #GstToc to set. Gets the list of all registered tracer factories. You must free the list using gst_plugin_feature_list_free(). The returned factories are sorted by factory name. Free-function: gst_plugin_feature_list_free the list of all registered #GstTracerFactory. Serialzes the trace event into the log. Right now this is using the gstreamer debug log with the level TRACE (7) and the category "GST_TRACER". <note><para> Please note that this is still under discussion and subject to change. </para></note> the tracer-record the args as described in the spec- Create a new tracer record. The record instance can be used to efficiently log entries using gst_tracer_record_log(). The @name without the ".class" suffix will be used for the log records. There must be fields for each value that gets logged where the field name is the value name. The field must be a #GstStructure describing the value. The sub structure must contain a field called 'type' of %G_TYPE_GTYPE that contains the GType of the value. The resulting #GstTracerRecord will take ownership of the field structures. The way to deal with optional values is to log an additional boolean before the optional field, that if %TRUE signals that the optional field is valid and %FALSE signals that the optional field should be ignored. One must still log a placeholder value for the optional field though. Please also note, that pointer type values must not be NULL - the underlying serialisation can not handle that right now. <note><para> Please note that this is still under discussion and subject to change. </para></note> name of new record, must end on ".class". name of first field to set additional arguments a new #GstTracerRecord Create a new tracer-factory capable of instantiating objects of the @type and add the factory to @plugin. A #GstPlugin, or %NULL for a static typefind function The name for registering GType of tracer to register %TRUE, if the registering succeeded, %FALSE on error Register @func to be called when the trace hook @detail is getting invoked. Use %NULL for @detail to register to all hooks. the tracer the detailed hook the callback This returns a new, unbound #GstTriggerControlSource. a new, unbound #GstTriggerControlSource. Calls the #GstTypeFindFunction associated with this factory. A #GstTypeFindFactory a properly setup #GstTypeFind entry. The get_data and suggest_type members must be set. Gets the #GstCaps associated with a typefind factory. A #GstTypeFindFactory the #GstCaps associated with this factory Gets the extensions associated with a #GstTypeFindFactory. The returned array should not be changed. If you need to change stuff in it, you should copy it using g_strdupv(). This function may return %NULL to indicate a 0-length list. A #GstTypeFindFactory a %NULL-terminated array of extensions associated with this factory Gets the list of all registered typefind factories. You must free the list using gst_plugin_feature_list_free(). The returned factories are sorted by highest rank first, and then by factory name. Free-function: gst_plugin_feature_list_free the list of all registered #GstTypeFindFactory. Check whether the factory has a typefind function. Typefind factories without typefind functions are a last-effort fallback mechanism to e.g. assume a certain media type based on the file extension. A #GstTypeFindFactory %TRUE if the factory has a typefind functions set, otherwise %FALSE Get the length of the data stream. The #GstTypeFind the function was called with The length of the data stream, or 0 if it is not available. Tries to find what type of data is flowing from the given source #GstPad. Free-function: gst_caps_unref A source #GstPad The length in bytes the #GstCaps corresponding to the data stream. Returns %NULL if no #GstCaps matches the data stream. Tries to find what type of data is contained in the given #GstBuffer, the assumption being that the buffer represents the beginning of the stream or file. All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or %NULL if the content of the buffer could not be identified. Free-function: gst_caps_unref object doing the typefinding, or %NULL (used for logging) a #GstBuffer with data to typefind location to store the probability of the found caps, or %NULL the #GstCaps corresponding to the data, or %NULL if no type could be found. The caller should free the caps returned with gst_caps_unref(). Tries to find what type of data is contained in the given @data, the assumption being that the data represents the beginning of the stream or file. All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or %NULL if the content of @data could not be identified. Free-function: gst_caps_unref object doing the typefinding, or %NULL (used for logging) a pointer with data to typefind the size of @data location to store the probability of the found caps, or %NULL the #GstCaps corresponding to the data, or %NULL if no type could be found. The caller should free the caps returned with gst_caps_unref(). Tries to find the best #GstCaps associated with @extension. All available typefinders will be checked against the extension in order of rank. The caps of the first typefinder that can handle @extension will be returned. Free-function: gst_caps_unref object doing the typefinding, or %NULL (used for logging) an extension the #GstCaps corresponding to @extension, or %NULL if no type could be found. The caller should free the caps returned with gst_caps_unref(). Utility function to do pull-based typefinding. Unlike gst_type_find_helper() however, this function will use the specified function @func to obtain the data needed by the typefind functions, rather than operating on a given source pad. This is useful mostly for elements like tag demuxers which strip off data at the beginning and/or end of a file and want to typefind the stripped data stream before adding their own source pad (the specified callback can then call the upstream peer pad with offsets adjusted for the tag size, for example). When @extension is not %NULL, this function will first try the typefind functions for the given extension, which might speed up the typefinding in many cases. Free-function: gst_caps_unref A #GstObject that will be passed as first argument to @func the parent of @obj or %NULL A generic #GstTypeFindHelperGetRangeFunction that will be used to access data at random offsets when doing the typefinding The length in bytes extension of the media location to store the probability of the found caps, or %NULL the #GstCaps corresponding to the data stream. Returns %NULL if no #GstCaps matches the data stream. Returns the @size bytes of the stream to identify beginning at offset. If offset is a positive number, the offset is relative to the beginning of the stream, if offset is a negative number the offset is relative to the end of the stream. The returned memory is valid until the typefinding function returns and must not be freed. The #GstTypeFind object the function was called with The offset The number of bytes to return the requested data, or %NULL if that data is not available. 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. A #GstPlugin, or %NULL for a static typefind function The name for registering The rank (or importance) of this typefind function The #GstTypeFindFunction to use Optional comma-separated list of extensions that could belong to this type Optionally the caps that could be returned when typefinding succeeds Optional user data. This user data must be available until the plugin is unloaded. a #GDestroyNotify that will be called on @data when the plugin is unloaded. %TRUE on success, %FALSE otherwise If a #GstTypeFindFunction calls this function it suggests the caps with the given probability. A #GstTypeFindFunction may supply different suggestions in one call. It is up to the caller of the #GstTypeFindFunction to interpret these values. The #GstTypeFind object the function was called with The probability in percent that the suggestion is right The fixed #GstCaps to suggest If a #GstTypeFindFunction calls this function it suggests the caps with the given probability. A #GstTypeFindFunction may supply different suggestions in one call. It is up to the caller of the #GstTypeFindFunction to interpret these values. This function is similar to gst_type_find_suggest(), only that instead of passing a #GstCaps argument you can create the caps on the fly in the same way as you can with gst_caps_new_simple(). Make sure you terminate the list of arguments with a %NULL argument and that the values passed have the correct type (in terms of width in bytes when passed to the vararg function - this applies particularly to gdouble and guint64 arguments). The #GstTypeFind object the function was called with The probability in percent that the suggestion is right the media type of the suggested caps first field of the suggested caps, or %NULL additional arguments to the suggested caps in the same format as the arguments passed to gst_structure_new() (ie. triplets of field name, field GType and field value) 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. %TRUE if the registry has been updated successfully (does not imply that there were changes), otherwise %FALSE. Append a path onto the end of the path in the URI. The path is not normalized, call #gst_uri_normalize() to normalize the path. The #GstUri to modify. Relative path to append to the end of the current path. %TRUE if the path was appended successfully. Append a single path segment onto the end of the URI path. The #GstUri to modify. The path segment string to append to the URI path. %TRUE if the path was appended successfully. Constructs a URI for a given valid protocol and location. Free-function: g_free Protocol for URI Location for URI a new string for this URI. Returns %NULL if the given URI protocol is not valid, or the given location is %NULL. Create a new #GstUri object with the same data as this #GstUri object. If @uri is %NULL then returns %NULL. This #GstUri object. A new #GstUri object which is a copy of this #GstUri or %NULL. Compares two #GstUri objects to see if they represent the same normalized URI. First #GstUri to compare. Second #GstUri to compare. %TRUE if the normalized versions of the two URI's would be equal. Parses a URI string into a new #GstUri object. Will return NULL if the URI cannot be parsed. The URI string to parse. A new #GstUri object, or NULL. Like gst_uri_from_string() but also joins with a base URI. The base URI to join the new URI with. The URI string to parse. A new #GstUri object. Get the fragment name from the URI or %NULL if it doesn't exist. If @uri is %NULL then returns %NULL. This #GstUri object. The host name from the #GstUri object or %NULL. Get the host name from the URI or %NULL if it doesn't exist. If @uri is %NULL then returns %NULL. This #GstUri object. The host name from the #GstUri object or %NULL. 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 A URI string the location for this URI. Returns %NULL if the URI isn't valid. If the URI does not contain a location, an empty string is returned. Extract the path string from the URI object. The #GstUri to get the path from. The path from the URI. Once finished with the string should be g_free()'d. Get a list of path segments from the URI. The #GstUri to get the path from. A #GList of path segment strings or %NULL if no path segments are available. Free the list when no longer needed with g_list_free_full(list, g_free). Extract the path string from the URI object as a percent encoded URI path. The #GstUri to get the path from. The path from the URI. Once finished with the string should be g_free()'d. Get the port number from the URI or %GST_URI_NO_PORT if it doesn't exist. If @uri is %NULL then returns %GST_URI_NO_PORT. This #GstUri object. The port number from the #GstUri object or %GST_URI_NO_PORT. Extracts the protocol out of a given valid URI. The returned string must be freed using g_free(). A URI string The protocol for this URI. Get a list of the query keys from the URI. The #GstUri to examine. A list of keys from the URI query. Free the list with g_list_free(). Get a percent encoded URI query string from the @uri. The #GstUri to get the query string from. A percent encoded query string. Use g_free() when no longer needed. Get the query table from the URI. Keys and values in the table are freed with g_free when they are deleted. A value may be %NULL to indicate that the key should appear in the query string in the URI, but does not have a value. Free the returned #GHashTable with #g_hash_table_unref() when it is no longer required. Modifying this hash table will modify the query in the URI. The #GstUri to get the query table from. The query hash table from the URI. Get the value associated with the @query_key key. Will return %NULL if the key has no value or if the key does not exist in the URI query table. Because %NULL is returned for both missing keys and keys with no value, you should use gst_uri_query_has_key() to determine if a key is present in the URI query. The #GstUri to examine. The key to lookup. The value for the given key, or %NULL if not found. Get the scheme name from the URI or %NULL if it doesn't exist. If @uri is %NULL then returns %NULL. This #GstUri object. The scheme from the #GstUri object or %NULL. Get the userinfo (usually in the form "username:password") from the URI or %NULL if it doesn't exist. If @uri is %NULL then returns %NULL. This #GstUri object. The userinfo from the #GstUri object or %NULL. Gets the list of protocols supported by @handler. This list may not be modified. A #GstURIHandler. the supported protocols. Returns %NULL if the @handler isn't implemented properly, or the @handler doesn't support any protocols. Gets the currently handled URI. A #GstURIHandler the URI currently handled by the @handler. Returns %NULL if there are no URI currently handled. The returned string must be freed with g_free() when no longer needed. Gets the type of the given URI handler A #GstURIHandler. the #GstURIType of the URI handler. Returns #GST_URI_UNKNOWN if the @handler isn't implemented correctly. Tries to set the URI of the given handler. A #GstURIHandler URI to set address where to store a #GError in case of an error, or %NULL %TRUE if the URI was set successfully, else %FALSE. Checks if the protocol of a given valid URI matches @protocol. a URI string a protocol string (e.g. "http") %TRUE if the protocol matches. Tests the @uri to see if it is normalized. A %NULL @uri is considered to be normalized. The #GstUri to test to see if it is normalized. TRUE if the URI is normalized or is %NULL. 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. A URI string %TRUE if the string is a valid URI Check if it is safe to write to this #GstUri. Check if the refcount of @uri is exactly 1, meaning that no other reference exists to the #GstUri and that the #GstUri is therefore writable. Modification of a #GstUri should only be done after verifying that it is writable. The #GstUri object to test. %TRUE if it is safe to write to the object. Join a reference URI onto a base URI using the method from RFC 3986. If either URI is %NULL then the other URI will be returned with the ref count increased. The base URI to join another to. The reference URI to join onto the base URI. A #GstUri which represents the base with the reference URI joined on. This is a convenience function to join two URI strings and return the result. The returned string should be g_free()'d after use. The percent-encoded base URI. The percent-encoded reference URI to join to the @base_uri. A string representing the percent-encoded join of the two URIs. Make the #GstUri writable. Checks if @uri is writable, and if so the original object is returned. If not, then a writable copy is made and returned. This gives away the reference to @uri and returns a reference to the new #GstUri. If @uri is %NULL then %NULL is returned. The #GstUri object to make writable. A writable version of @uri. Creates a new #GstUri object with the given URI parts. The path and query strings will be broken down into their elements. All strings should not be escaped except where indicated. The scheme for the new URI. The user-info for the new URI. The host name for the new URI. The port number for the new URI or %GST_URI_NO_PORT. The path for the new URI with '/' separating path elements. The query string for the new URI with '&' separating query elements. Elements containing '&' characters should encode them as "%26". The fragment name for the new URI. A new #GstUri object. Like gst_uri_new(), but joins the new URI onto a base URI. The base URI to join the new URI to. The scheme for the new URI. The user-info for the new URI. The host name for the new URI. The port number for the new URI or %GST_URI_NO_PORT. The path for the new URI with '/' separating path elements. The query string for the new URI with '&' separating query elements. Elements containing '&' characters should encode them as "%26". The fragment name for the new URI. The new URI joined onto @base. Normalization will remove extra path segments ("." and "..") from the URI. It will also convert the scheme and host name to lower case and any percent-encoded values to uppercase. The #GstUri object must be writable. Check with gst_uri_is_writable() or use gst_uri_make_writable() first. The #GstUri to normalize. TRUE if the URI was modified. 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. Whether to check for a source or a sink Protocol that should be checked for (e.g. "http" or "smb") %TRUE 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. A string %TRUE if the string is a valid protocol identifier, %FALSE otherwise. Check if there is a query table entry for the @query_key key. The #GstUri to examine. The key to lookup. %TRUE if @query_key exists in the URI query table. Add a reference to this #GstUri object. See gst_mini_object_ref() for further info. This #GstUri object. This object with the reference count incremented. Remove an entry from the query table by key. The #GstUri to modify. The key to remove. %TRUE if the key existed in the table and was removed. Sets the fragment string in the URI. Use a value of %NULL in @fragment to unset the fragment string. The #GstUri to modify. The fragment string to set. %TRUE if the fragment was set/unset successfully. Set or unset the host for the URI. The #GstUri to modify. The new host string to set or %NULL to unset. %TRUE if the host was set/unset successfully. Sets or unsets the path in the URI. The #GstUri to modify. The new path to set with path segments separated by '/', or use %NULL to unset the path. %TRUE if the path was set successfully. Replace the path segments list in the URI. The #GstUri to modify. The new path list to set. %TRUE if the path segments were set successfully. Sets or unsets the path in the URI. The #GstUri to modify. The new percent encoded path to set with path segments separated by '/', or use %NULL to unset the path. %TRUE if the path was set successfully. Set or unset the port number for the URI. The #GstUri to modify. The new port number to set or %GST_URI_NO_PORT to unset. %TRUE if the port number was set/unset successfully. Sets or unsets the query table in the URI. The #GstUri to modify. The new percent encoded query string to use to populate the query table, or use %NULL to unset the query table. %TRUE if the query table was set successfully. Set the query table to use in the URI. The old table is unreferenced and a reference to the new one is used instead. A value if %NULL for @query_table will remove the query string from the URI. The #GstUri to modify. The new query table to use. %TRUE if the new table was sucessfully used for the query table. This inserts or replaces a key in the query table. A @query_value of %NULL indicates that the key has no associated value, but will still be present in the query string. The #GstUri to modify. The key for the query entry. The value for the key. %TRUE if the query table was sucessfully updated. Set or unset the scheme for the URI. The #GstUri to modify. The new scheme to set or %NULL to unset the scheme. %TRUE if the scheme was set/unset successfully. Set or unset the user information for the URI. The #GstUri to modify. The new user-information string to set or %NULL to unset. %TRUE if the user information was set/unset successfully. Convert the URI to a string. This #GstUri to convert to a string. The string version of the URI. Decrement the reference count to this #GstUri object. If the reference count drops to 0 then finalize this object. See gst_mini_object_unref() for further info. This #GstUri object. 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)). the sorted input array number of elements in the array size of every element in bytes function to compare two elements, @search_data will always be passed as second argument search mode that should be used element that should be found data to pass to @search_func The address of the found element or %NULL if nothing was found Transforms a #gdouble to a fraction and simplifies the result. #gdouble to transform pointer to a #gint to hold the result numerator pointer to a #gint to hold the result denominator Dumps the memory block into a hex representation. Useful for debugging. a pointer to the memory to dump the size of the memory block to dump Adds the fractions @a_n/@a_d and @b_n/@b_d and stores the result in @res_n and @res_d. Numerator of first value Denominator of first value Numerator of second value Denominator of second value Pointer to #gint to hold the result numerator Pointer to #gint to hold the result denominator %FALSE on overflow, %TRUE otherwise. 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. Numerator of first value Denominator of first value Numerator of second value Denominator of second value -1 if a < b; 0 if a = b; 1 if a > b. Multiplies the fractions @a_n/@a_d and @b_n/@b_d and stores the result in @res_n and @res_d. Numerator of first value Denominator of first value Numerator of second value Denominator of second value Pointer to #gint to hold the result numerator Pointer to #gint to hold the result denominator %FALSE on overflow, %TRUE otherwise. Transforms a fraction to a #gdouble. Fraction numerator as #gint Fraction denominator #gint pointer to a #gdouble for the result Get a timestamp as GstClockTime to be used for interval measurements. The timestamp should not be interpreted in any other way. the timestamp Calculates the greatest common divisor of @a and @b. First value as #gint Second value as #gint Greatest common divisor of @a and @b Calculates the greatest common divisor of @a and @b. First value as #gint64 Second value as #gint64 Greatest common divisor of @a and @b Return a constantly incrementing group id. This function is used to generate a new group-id for the stream-start event. A constantly incrementing unsigned integer, which might overflow back to 0 at some point. Compare two sequence numbers, handling wraparound. The current implementation just returns (gint32)(@s1 - @s2). A sequence number. Another sequence number. A negative number if @s1 is before @s2, 0 if they are equal, or a positive number if @s1 is after @s2. 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. A constantly incrementing 32-bit unsigned integer, which might overflow back to 0 at some point. Use gst_util_seqnum_compare() to make sure you handle wraparound correctly. 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. the object to set the argument of the name of the argument to set the string value to set 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. the value to set the string to get the value from 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. the number to scale the numerator of the scale ratio the denominator of the scale ratio @val * @num / @denom. In the case of an overflow, this 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(). 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. the number to scale the numerator of the scale ratio the denominator of the scale ratio @val * @num / @denom. In the case of an overflow, this 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(). 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. guint64 (such as a #GstClockTime) to scale. numerator of the scale factor. denominator of the scale factor. @val * @num / @denom. In the case of an overflow, this 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(). 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. guint64 (such as a #GstClockTime) to scale. numerator of the scale factor. denominator of the scale factor. @val * @num / @denom. In the case of an overflow, this 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(). 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. guint64 (such as a #GstClockTime) to scale. numerator of the scale factor. denominator of the scale factor. @val * @num / @denom. In the case of an overflow, this 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(). 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. the number to scale the numerator of the scale ratio the denominator of the scale ratio @val * @num / @denom. In the case of an overflow, this 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(). Appends @append_value to the GstValueArray in @value. a #GValue of type #GST_TYPE_ARRAY the value to append Appends @append_value to the GstValueArray in @value. a #GValue of type #GST_TYPE_ARRAY the value to append Gets the number of values contained in @value. a #GValue of type #GST_TYPE_ARRAY the number of values Gets the value that is a member of the array contained in @value and has the index @index. a #GValue of type #GST_TYPE_ARRAY index of value to get from the array the value at the given index Prepends @prepend_value to the GstValueArray in @value. a #GValue of type #GST_TYPE_ARRAY the value to prepend Determines if @value1 and @value2 can be compared. a value to compare another value to compare %TRUE if the values can be compared Determines if intersecting two values will produce a valid result. Two values will produce a valid intersection if they have the same type. a value to intersect another value to intersect %TRUE if the values can intersect Checks if it's possible to subtract @subtrahend from @minuend. the value to subtract from the value to subtract %TRUE if a subtraction is possible 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. a value to union another value to union %TRUE if there is a function allowing the two values to be unioned. 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. a value to compare another value to compare comparison result Tries to deserialize a string into the type specified by the given GValue. If the operation succeeds, %TRUE is returned, %FALSE otherwise. #GValue to fill with contents of deserialization string to deserialize %TRUE on success 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. the #GValue destination the #GValue to fixate %TRUE if @dest contains a fixated version of @src. Multiplies the two #GValue items containing a #GST_TYPE_FRACTION and sets @product to the product of the two fractions. a GValue initialized to #GST_TYPE_FRACTION a GValue initialized to #GST_TYPE_FRACTION a GValue initialized to #GST_TYPE_FRACTION %FALSE in case of an error (like integer overflow), %TRUE otherwise. Subtracts the @subtrahend from the @minuend and sets @dest to the result. a GValue initialized to #GST_TYPE_FRACTION a GValue initialized to #GST_TYPE_FRACTION a GValue initialized to #GST_TYPE_FRACTION %FALSE in case of an error (like integer overflow), %TRUE otherwise. Gets the bitmask specified by @value. a GValue initialized to #GST_TYPE_BITMASK the bitmask. Receives a #GstBuffer as the value of @v. Does not return a reference to the buffer, so the pointer is only valid for as long as the caller owns a reference to @v. a #GValue to query buffer Gets the contents of @value. The reference count of the returned #GstCaps will not be modified, therefore the caller must take one before getting rid of the @value. a GValue initialized to GST_TYPE_CAPS the contents of @value Gets the contents of @value. a GValue initialized to GST_TYPE_CAPS_FEATURES the contents of @value Gets the maximum of the range specified by @value. a GValue initialized to GST_TYPE_DOUBLE_RANGE the maximum of the range Gets the minimum of the range specified by @value. a GValue initialized to GST_TYPE_DOUBLE_RANGE the minimum of the range Retrieve the flags field of a GstFlagSet @value. a GValue initialized to #GST_TYPE_FLAG_SET the flags field of the flagset instance. Retrieve the mask field of a GstFlagSet @value. a GValue initialized to #GST_TYPE_FLAG_SET the mask field of the flagset instance. Gets the denominator of the fraction specified by @value. a GValue initialized to #GST_TYPE_FRACTION the denominator of the fraction. Gets the numerator of the fraction specified by @value. a GValue initialized to #GST_TYPE_FRACTION the numerator of the fraction. Gets the maximum of the range specified by @value. a GValue initialized to GST_TYPE_FRACTION_RANGE the maximum of the range Gets the minimum of the range specified by @value. a GValue initialized to GST_TYPE_FRACTION_RANGE the minimum of the range Gets the maximum of the range specified by @value. a GValue initialized to GST_TYPE_INT64_RANGE the maximum of the range Gets the minimum of the range specified by @value. a GValue initialized to GST_TYPE_INT64_RANGE the minimum of the range Gets the step of the range specified by @value. a GValue initialized to GST_TYPE_INT64_RANGE the step of the range Gets the maximum of the range specified by @value. a GValue initialized to GST_TYPE_INT_RANGE the maximum of the range Gets the minimum of the range specified by @value. a GValue initialized to GST_TYPE_INT_RANGE the minimum of the range Gets the step of the range specified by @value. a GValue initialized to GST_TYPE_INT_RANGE the step of the range Receives a #GstSample as the value of @v. Does not return a reference to the sample, so the pointer is only valid for as long as the caller owns a reference to @v. a #GValue to query sample Gets the contents of @value. a GValue initialized to GST_TYPE_STRUCTURE the contents of @value Initialises the target value to be of the same type as source and then copies the contents from source to target. the target value the source value Calculates the intersection of two values. If the values have a non-empty intersection, the value representing the intersection is placed in @dest, unless %NULL. If the intersection is non-empty, @dest is not modified. a uninitialized #GValue that will hold the calculated intersection value. May be %NULL if the resulting set if not needed. a value to intersect another value to intersect %TRUE if the intersection is non-empty 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. the #GValue to check true if the value is "fixed". Check that @value1 is a subset of @value2. Return: %TRUE is @value1 is a subset of @value2 a #GValue a #GValue Appends @append_value to the GstValueList in @value. a #GValue of type #GST_TYPE_LIST the value to append Appends @append_value to the GstValueList in @value. a #GValue of type #GST_TYPE_LIST the value to append Concatenates copies of @value1 and @value2 into a list. Values that are not of type #GST_TYPE_LIST are treated as if they were lists of length 1. @dest will be initialized to the type #GST_TYPE_LIST. an uninitialized #GValue to take the result a #GValue a #GValue Gets the number of values contained in @value. a #GValue of type #GST_TYPE_LIST the number of values Gets the value that is a member of the list contained in @value and has the index @index. a #GValue of type #GST_TYPE_LIST index of value to get from the list the value at the given index Merges copies of @value1 and @value2. Values that are not of type #GST_TYPE_LIST are treated as if they were lists of length 1. The result will be put into @dest and will either be a list that will not contain any duplicates, or a non-list type (if @value1 and @value2 were equal). an uninitialized #GValue to take the result a #GValue a #GValue Prepends @prepend_value to the GstValueList in @value. a #GValue of type #GST_TYPE_LIST the value to prepend Registers functions to perform calculations on #GValue items of a given type. Each type can only be added once. structure containing functions to register 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 a #GValue to serialize the serialization for @value or %NULL if none exists Sets @value to the bitmask specified by @bitmask. a GValue initialized to #GST_TYPE_BITMASK the bitmask Sets @b as the value of @v. Caller retains reference to buffer. a #GValue to receive the data a #GstBuffer to assign to the GstValue Sets the contents of @value to @caps. A reference to the provided @caps will be taken by the @value. a GValue initialized to GST_TYPE_CAPS the caps to set the value to Sets the contents of @value to @features. a GValue initialized to GST_TYPE_CAPS_FEATURES the features to set the value to Sets @value to the range specified by @start and @end. a GValue initialized to GST_TYPE_DOUBLE_RANGE the start of the range the end of the range 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" a GValue initialized to %GST_TYPE_FLAG_SET The value of the flags set or unset The mask indicate which flags bits must match for comparisons 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. a GValue initialized to #GST_TYPE_FRACTION the numerator of the fraction the denominator of the fraction Sets @value to the range specified by @start and @end. a GValue initialized to GST_TYPE_FRACTION_RANGE the start of the range (a GST_TYPE_FRACTION GValue) the end of the range (a GST_TYPE_FRACTION GValue) Sets @value to the range specified by @numerator_start/@denominator_start and @numerator_end/@denominator_end. a GValue initialized to GST_TYPE_FRACTION_RANGE the numerator start of the range the denominator start of the range the numerator end of the range the denominator end of the range Sets @value to the range specified by @start and @end. a GValue initialized to GST_TYPE_INT64_RANGE the start of the range the end of the range Sets @value to the range specified by @start, @end and @step. a GValue initialized to GST_TYPE_INT64_RANGE the start of the range the end of the range the step of the range Sets @value to the range specified by @start and @end. a GValue initialized to GST_TYPE_INT_RANGE the start of the range the end of the range Sets @value to the range specified by @start, @end and @step. a GValue initialized to GST_TYPE_INT_RANGE the start of the range the end of the range the step of the range Sets @b as the value of @v. Caller retains reference to sample. a #GValue to receive the data a #GstSample to assign to the GstValue Sets the contents of @value to @structure. a GValue initialized to GST_TYPE_STRUCTURE the structure to set the value to Subtracts @subtrahend from @minuend and stores the result in @dest. Note that this means subtraction as in sets, not as in mathematics. the destination value for the result if the subtraction is not empty. May be %NULL, in which case the resulting set will not be computed, which can give a fair speedup. the value to subtract from the value to subtract %TRUE if the subtraction is not empty Sets @b as the value of @v. Caller gives away reference to buffer. a #GValue to receive the data a #GstBuffer to assign to the GstValue Sets @b as the value of @v. Caller gives away reference to sample. a #GValue to receive the data a #GstSample to assign to the GstValue Creates a GValue corresponding to the union of @value1 and @value2. the destination value a value to union another value to union %TRUE if the union succeeded. Gets the version number of the GStreamer library. pointer to a guint to store the major version number pointer to a guint to store the minor version number pointer to a guint to store the micro version number pointer to a guint to store the nano version number This function returns a string that is useful for describing this version of GStreamer to the outside world: user agent strings, logging, ... a newly allocated string describing this version of GStreamer. Apply a transformation using the given 4x4 transformation matrix a #GstVideoAffineTransformationMeta a 4x4 transformation matrix to be applied Set @align to its default values with no padding and no alignment. a #GstVideoAlignment Lets you blend the @src image into the @dest image The #GstVideoFrame where to blend @src in the #GstVideoFrame that we want to blend into The x offset in pixel where the @src image should be blended the y offset in pixel where the @src image should be blended the global_alpha each per-pixel alpha value is multiplied with Scales a buffer containing RGBA (or AYUV) video. This is an internal helper function which is used to scale subtitle overlays, and may be deprecated in the near future. Use #GstVideoScaler to scale video buffers instead. the #GstVideoInfo describing the video data in @src_buffer the source buffer containing video pixels to scale the height in pixels to scale the video data in @src_buffer to the width in pixels to scale the video data in @src_buffer to pointer to a #GstVideoInfo structure that will be filled in with the details for @dest_buffer a pointer to a #GstBuffer variable, which will be set to a newly-allocated buffer containing the scaled pixels. Create a new bufferpool that can allocate video frames. This bufferpool supports all the video bufferpool options. a new #GstBufferPool to allocate video frames Given the Pixel Aspect Ratio and size of an input video frame, and the pixel aspect ratio of the intended display device, calculates the actual display ratio the video will be rendered with. Numerator of the calculated display_ratio Denominator of the calculated display_ratio Width of the video frame in pixels Height of the video frame in pixels Numerator of the pixel aspect ratio of the input video. Denominator of the pixel aspect ratio of the input video. Numerator of the pixel aspect ratio of the display device Denominator of the pixel aspect ratio of the display device A boolean indicating success and a calculated Display Ratio in the dar_n and dar_d parameters. The return value is FALSE in the case of integer overflow or other error. Convert @s to a #GstVideoChromaSite a chromasite string a #GstVideoChromaSite or %GST_VIDEO_CHROMA_SITE_UNKNOWN when @s does not contain a valid chroma description. Perform resampling of @width chroma pixels in @lines. a #GstVideoChromaResample pixel lines the number of pixels on one line Free @resample a #GstVideoChromaResample The resampler must be fed @n_lines at a time. The first line should be at @offset. a #GstVideoChromaResample the number of input lines the first line Create a new resampler object for the given parameters. When @h_factor or @v_factor is > 0, upsampling will be used, otherwise subsampling is performed. a #GstVideoChromaMethod a #GstVideoChromaSite #GstVideoChromaFlags the #GstVideoFormat horizontal resampling factor vertical resampling factor a new #GstVideoChromaResample that should be freed with gst_video_chroma_resample_free() after usage. Converts @site to its string representation. a #GstVideoChromaSite a string describing @site. Gets private data set on the frame by the subclass via gst_video_codec_frame_set_user_data() previously. a #GstVideoCodecFrame The previously set user_data Increases the refcount of the given frame by one. a #GstVideoCodecFrame @buf Sets @user_data on the frame and the #GDestroyNotify that will be called when the frame is freed. Allows to attach private data by the subclass to frames. If a @user_data was previously set, then the previous set @notify will be called before the @user_data is replaced. a #GstVideoCodecFrame private data a #GDestroyNotify Decreases the refcount of the frame. If the refcount reaches 0, the frame will be freed. a #GstVideoCodecFrame Increases the refcount of the given state by one. a #GstVideoCodecState @buf Decreases the refcount of the state. If the refcount reaches 0, the state will be freed. a #GstVideoCodecState Get the coefficients used to convert between Y'PbPr and R'G'B' using @matrix. When: |[ 0.0 <= [Y',R',G',B'] <= 1.0) (-0.5 <= [Pb,Pr] <= 0.5) ]| the general conversion is given by: |[ Y' = Kr*R' + (1-Kr-Kb)*G' + Kb*B' Pb = (B'-Y')/(2*(1-Kb)) Pr = (R'-Y')/(2*(1-Kr)) ]| and the other way around: |[ R' = Y' + Cr*2*(1-Kr) G' = Y' - Cb*2*(1-Kb)*Kb/(1-Kr-Kb) - Cr*2*(1-Kr)*Kr/(1-Kr-Kb) B' = Y' + Cb*2*(1-Kb) ]| a #GstVideoColorMatrix result red channel coefficient result blue channel coefficient TRUE if @matrix was a YUV color format and @Kr and @Kb contain valid values. Get information about the chromaticity coordinates of @primaries. a #GstVideoColorPrimaries a #GstVideoColorPrimariesInfo for @primaries. Compute the offset and scale values for each component of @info. For each component, (c[i] - offset[i]) / scale[i] will scale the component c[i] to the range [0.0 .. 1.0]. The reverse operation (c[i] * scale[i]) + offset[i] can be used to convert the component values in range [0.0 .. 1.0] back to their representation in @info and @range. a #GstVideoColorRange a #GstVideoFormatInfo output offsets output scale Convert @val to its gamma decoded value. This is the inverse operation of @gst_video_color_transfer_encode(). For a non-linear value L' in the range [0..1], conversion to the linear L is in general performed with a power function like: |[ L = L' ^ gamma ]| Depending on @func, different formulas might be applied. Some formulas encode a linear segment in the lower range. a #GstVideoTransferFunction a value the gamme decoded value of @val Convert @val to its gamma encoded value. For a linear value L in the range [0..1], conversion to the non-linear (gamma encoded) L' is in general performed with a power function like: |[ L' = L ^ (1 / gamma) ]| Depending on @func, different formulas might be applied. Some formulas encode a linear segment in the lower range. a #GstVideoTransferFunction a value the gamme encoded value of @val Parse the colorimetry string and update @cinfo with the parsed values. a #GstVideoColorimetry a colorimetry string #TRUE if @color points to valid colorimetry info. Compare the 2 colorimetry sets for equality a #GstVideoColorimetry another #GstVideoColorimetry #TRUE if @cinfo and @other are equal. Check if the colorimetry information in @info matches that of the string @color. a #GstVideoInfo a colorimetry string #TRUE if @color conveys the same colorimetry info as the color information in @info. Make a string representation of @cinfo. a #GstVideoColorimetry a string representation of @cinfo. Converts a raw video buffer into the specified output caps. The output caps can be any raw video formats or any image formats (jpeg, png, ...). The width, height and pixel-aspect-ratio can also be specified in the output caps. a #GstSample the #GstCaps to convert to the maximum amount of time allowed for the processing. pointer to a #GError. Can be %NULL. The converted #GstSample, or %NULL if an error happened (in which case @err will point to the #GError). Converts a raw video buffer into the specified output caps. The output caps can be any raw video formats or any image formats (jpeg, png, ...). The width, height and pixel-aspect-ratio can also be specified in the output caps. @callback will be called after conversion, when an error occured or if conversion didn't finish after @timeout. @callback will always be called from the thread default %GMainContext, see g_main_context_get_thread_default(). If GLib before 2.22 is used, this will always be the global default main context. @destroy_notify will be called after the callback was called and @user_data is not needed anymore. a #GstSample the #GstCaps to convert to the maximum amount of time allowed for the processing. %GstVideoConvertSampleCallback that will be called after conversion. extra data that will be passed to the @callback %GDestroyNotify to be called after @user_data is not needed anymore Convert the pixels of @src into @dest using @convert. a #GstVideoConverter a #GstVideoFrame a #GstVideoFrame Free @convert a #GstVideoConverter Get the current configuration of @convert. a #GstVideoConverter a #GstStructure that remains valid for as long as @convert is valid or until gst_video_converter_set_config() is called. Create a new converter object to convert between @in_info and @out_info with @config. a #GstVideoInfo a #GstVideoInfo a #GstStructure with configuration options a #GstVideoConverter or %NULL if conversion is not possible. Set @config as extra configuraion for @convert. If the parameters in @config can not be set exactly, this function returns %FALSE and will try to update as much state as possible. The new state can then be retrieved and refined with gst_video_converter_get_config(). Look at the #GST_VIDEO_CONVERTER_OPT_* fields to check valid configuration option and values. a #GstVideoConverter a #GstStructure %TRUE when @config could be set. Removes next @n_bytes of input data and adds it to currently parsed frame. a #GstVideoDecoder the number of bytes to add Helper function that allocates a buffer to hold a video frame for @decoder's current #GstVideoCodecState. You should use gst_video_decoder_allocate_output_frame() instead of this function, if possible at all. a #GstVideoDecoder allocated buffer, or NULL if no buffer could be allocated (e.g. when downstream is flushing or shutting down) Helper function that allocates a buffer to hold a video frame for @decoder's current #GstVideoCodecState. Subclass should already have configured video state and set src pad caps. The buffer allocated here is owned by the frame and you should only keep references to the frame, not the buffer. a #GstVideoDecoder a #GstVideoCodecFrame %GST_FLOW_OK if an output buffer could be allocated Similar to gst_video_decoder_finish_frame(), but drops @frame in any case and posts a QoS message with the frame's details on the bus. In any case, the frame is considered finished and released. a #GstVideoDecoder the #GstVideoCodecFrame to drop a #GstFlowReturn, usually GST_FLOW_OK. @frame should have a valid decoded data buffer, whose metadata fields are then appropriately set according to frame data and pushed downstream. If no output data is provided, @frame is considered skipped. In any case, the frame is considered finished and released. After calling this function the output buffer of the frame is to be considered read-only. This function will also change the metadata of the buffer. a #GstVideoDecoder a decoded #GstVideoCodecFrame a #GstFlowReturn resulting from sending data downstream Lets #GstVideoDecoder sub-classes to know the memory @allocator used by the base class and its @params. Unref the @allocator after use it. a #GstVideoDecoder the #GstAllocator used the #GstAllocatorParams of @allocator a #GstVideoDecoder the instance of the #GstBufferPool used by the decoder; free it after use it a #GstVideoDecoder currently configured byte to time conversion setting Get a pending unfinished #GstVideoCodecFrame a #GstVideoDecoder system_frame_number of a frame pending unfinished #GstVideoCodecFrame identified by @frame_number. Get all pending unfinished #GstVideoCodecFrame a #GstVideoDecoder pending unfinished #GstVideoCodecFrame. Query the configured decoder latency. Results will be returned via @min_latency and @max_latency. a #GstVideoDecoder address of variable in which to store the configured minimum latency, or %NULL address of variable in which to store the configured mximum latency, or %NULL Determines maximum possible decoding time for @frame that will allow it to decode and arrive in time (as determined by QoS events). In particular, a negative result means decoding in time is no longer possible and should therefore occur as soon/skippy as possible. a #GstVideoDecoder a #GstVideoCodecFrame max decoding time. a #GstVideoDecoder currently configured decoder tolerated error count. Queries decoder required format handling. a #GstVideoDecoder %TRUE if required format handling is enabled. Get the oldest pending unfinished #GstVideoCodecFrame a #GstVideoDecoder oldest pending unfinished #GstVideoCodecFrame. Get the #GstVideoCodecState currently describing the output stream. a #GstVideoDecoder #GstVideoCodecState describing format of video data. Queries whether input data is considered packetized or not by the base class. a #GstVideoDecoder TRUE if input data is considered packetized. Returns the number of bytes previously added to the current frame by calling gst_video_decoder_add_to_frame(). a #GstVideoDecoder The number of bytes pending for the current frame a #GstVideoDecoder current QoS proportion, or %NULL The current QoS proportion. Gathers all data collected for currently parsed frame, gathers corresponding metadata and passes it along for further processing, i.e. @handle_frame. a #GstVideoDecoder a #GstFlowReturn Sets the audio decoder tags and how they should be merged with any upstream stream tags. This will override any tags previously-set with gst_audio_decoder_merge_tags(). Note that this is provided for convenience, and the subclass is not required to use this and can still do tag handling on its own. MT safe. a #GstVideoDecoder a #GstTagList to merge, or NULL to unset previously-set tags the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE Negotiate with downstream elements to currently configured #GstVideoCodecState. Unmark GST_PAD_FLAG_NEED_RECONFIGURE in any case. But mark it again if negotiate fails. a #GstVideoDecoder #TRUE if the negotiation succeeded, else #FALSE. Returns caps that express @caps (or sink template caps if @caps == NULL) restricted to resolution/format/... combinations supported by downstream elements. a #GstVideoDecoder initial caps filter caps a #GstCaps owned by caller Similar to gst_video_decoder_drop_frame(), but simply releases @frame without any processing other than removing it from list of pending frames, after which it is considered finished and released. a #GstVideoDecoder the #GstVideoCodecFrame to release Allows baseclass to perform byte to time estimated conversion. a #GstVideoDecoder whether to enable byte to time conversion Lets #GstVideoDecoder sub-classes tell the baseclass what the decoder latency is. Will also post a LATENCY message on the bus so the pipeline can reconfigure its global latency. a #GstVideoDecoder minimum latency maximum latency Sets numbers of tolerated decoder errors, where a tolerated one is then only warned about, but more than tolerated will lead to fatal error. You can set -1 for never returning fatal errors. Default is set to GST_VIDEO_DECODER_MAX_ERRORS. The '-1' option was added in 1.4 a #GstVideoDecoder max tolerated errors Configures decoder format needs. If enabled, subclass needs to be negotiated with format caps before it can process any data. It will then never be handed any data before it has been configured. Otherwise, it might be handed data without having been configured and is then expected being able to do so either by default or based on the input data. a #GstVideoDecoder new state Creates a new #GstVideoCodecState with the specified @fmt, @width and @height as the output state for the decoder. Any previously set output state on @decoder will be replaced by the newly created one. If the subclass wishes to copy over existing fields (like pixel aspec ratio, or framerate) from an existing #GstVideoCodecState, it can be provided as a @reference. If the subclass wishes to override some fields from the output state (like pixel-aspect-ratio or framerate) it can do so on the returned #GstVideoCodecState. The new output state will only take effect (set on pads and buffers) starting from the next call to #gst_video_decoder_finish_frame(). a #GstVideoDecoder a #GstVideoFormat The width in pixels The height in pixels An optional reference #GstVideoCodecState the newly configured output state. Allows baseclass to consider input data as packetized or not. If the input is packetized, then the @parse method will not be called. a #GstVideoDecoder whether the input data should be considered as packetized. Lets #GstVideoDecoder sub-classes decide if they want the sink pad to use the default pad query handler to reply to accept-caps queries. By setting this to true it is possible to further customize the default handler with %GST_PAD_SET_ACCEPT_INTERSECT and %GST_PAD_SET_ACCEPT_TEMPLATE a #GstVideoDecoder if the default pad accept-caps query handling should be used Free @dither a #GstVideoDither Dither @width pixels starting from offset @x in @line using @dither. @y is the line number of @line in the output image. a #GstVideoDither pointer to the pixels of the line x coordinate y coordinate the width Make a new dither object for dithering lines of @format using the algorithm described by @method. Each component will be quantized to a multiple of @quantizer. Better performance is achived when @quantizer is a power of 2. @width is the width of the lines that this ditherer will handle. a #GstVideoDitherMethod a #GstVideoDitherFlags a #GstVideoFormat quantizer the width of the lines a new #GstVideoDither Helper function that allocates a buffer to hold an encoded video frame for @encoder's current #GstVideoCodecState. a #GstVideoEncoder size of the buffer allocated buffer Helper function that allocates a buffer to hold an encoded video frame for @encoder's current #GstVideoCodecState. Subclass should already have configured video state and set src pad caps. The buffer allocated here is owned by the frame and you should only keep references to the frame, not the buffer. a #GstVideoEncoder a #GstVideoCodecFrame size of the buffer %GST_FLOW_OK if an output buffer could be allocated @frame must have a valid encoded data buffer, whose metadata fields are then appropriately set according to frame data or no buffer at all if the frame should be dropped. It is subsequently pushed downstream or provided to @pre_push. In any case, the frame is considered finished and released. After calling this function the output buffer of the frame is to be considered read-only. This function will also change the metadata of the buffer. a #GstVideoEncoder an encoded #GstVideoCodecFrame a #GstFlowReturn resulting from sending data downstream Lets #GstVideoEncoder sub-classes to know the memory @allocator used by the base class and its @params. Unref the @allocator after use it. a #GstVideoEncoder the #GstAllocator used the #GstAllocatorParams of @allocator Get a pending unfinished #GstVideoCodecFrame a #GstVideoEnccoder system_frame_number of a frame pending unfinished #GstVideoCodecFrame identified by @frame_number. Get all pending unfinished #GstVideoCodecFrame a #GstVideoEncoder pending unfinished #GstVideoCodecFrame. Query the configured encoding latency. Results will be returned via @min_latency and @max_latency. a #GstVideoEncoder address of variable in which to store the configured minimum latency, or %NULL address of variable in which to store the configured maximum latency, or %NULL Get the oldest unfinished pending #GstVideoCodecFrame a #GstVideoEncoder oldest unfinished pending #GstVideoCodecFrame Get the current #GstVideoCodecState a #GstVideoEncoder #GstVideoCodecState describing format of video data. Sets the video encoder tags and how they should be merged with any upstream stream tags. This will override any tags previously-set with gst_video_encoder_merge_tags(). Note that this is provided for convenience, and the subclass is not required to use this and can still do tag handling on its own. MT safe. a #GstVideoEncoder a #GstTagList to merge, or NULL to unset previously-set tags the #GstTagMergeMode to use, usually #GST_TAG_MERGE_REPLACE Negotiate with downstream elements to currently configured #GstVideoCodecState. Unmark GST_PAD_FLAG_NEED_RECONFIGURE in any case. But mark it again if negotiate fails. a #GstVideoEncoder #TRUE if the negotiation succeeded, else #FALSE. Returns caps that express @caps (or sink template caps if @caps == NULL) restricted to resolution/format/... combinations supported by downstream elements (e.g. muxers). a #GstVideoEncoder initial caps filter caps a #GstCaps owned by caller Set the codec headers to be sent downstream whenever requested. a #GstVideoEncoder a list of #GstBuffer containing the codec header Informs baseclass of encoding latency. a #GstVideoEncoder minimum latency maximum latency Request minimal value for PTS passed to handle_frame. For streams with reordered frames this can be used to ensure that there is enough time to accomodate first DTS, which may be less than first PTS a #GstVideoEncoder minimal PTS that will be passed to handle_frame Creates a new #GstVideoCodecState with the specified caps as the output state for the encoder. Any previously set output state on @encoder will be replaced by the newly created one. The specified @caps should not contain any resolution, pixel-aspect-ratio, framerate, codec-data, .... Those should be specified instead in the returned #GstVideoCodecState. If the subclass wishes to copy over existing fields (like pixel aspect ratio, or framerate) from an existing #GstVideoCodecState, it can be provided as a @reference. If the subclass wishes to override some fields from the output state (like pixel-aspect-ratio or framerate) it can do so on the returned #GstVideoCodecState. The new output state will only take effect (set on pads and buffers) starting from the next call to #gst_video_encoder_finish_frame(). a #GstVideoEncoder the #GstCaps to use for the output An optional reference @GstVideoCodecState the newly configured output state. Checks if an event is a force key unit event. Returns true for both upstream and downstream force key unit events. A #GstEvent to check %TRUE if the event is a valid force key unit event Creates a new downstream force key unit event. A downstream force key unit event can be sent down the pipeline to request downstream elements to produce a key unit. A downstream force key unit event must also be sent when handling an upstream force key unit event to notify downstream that the latter has been handled. To parse an event created by gst_video_event_new_downstream_force_key_unit() use gst_video_event_parse_downstream_force_key_unit(). the timestamp of the buffer that starts a new key unit the stream_time of the buffer that starts a new key unit the running_time of the buffer that starts a new key unit %TRUE to produce headers when starting a new key unit integer that can be used to number key units The new GstEvent Creates a new Still Frame event. If @in_still is %TRUE, then the event represents the start of a still frame sequence. If it is %FALSE, then the event ends a still frame sequence. To parse an event created by gst_video_event_new_still_frame() use gst_video_event_parse_still_frame(). boolean value for the still-frame state of the event. The new GstEvent Creates a new upstream force key unit event. An upstream force key unit event can be sent to request upstream elements to produce a key unit. @running_time can be set to request a new key unit at a specific running_time. If set to GST_CLOCK_TIME_NONE, upstream elements will produce a new key unit as soon as possible. To parse an event created by gst_video_event_new_downstream_force_key_unit() use gst_video_event_parse_downstream_force_key_unit(). the running_time at which a new key unit should be produced %TRUE to produce headers when starting a new key unit integer that can be used to number key units The new GstEvent Get timestamp, stream-time, running-time, all-headers and count in the force key unit event. See gst_video_event_new_downstream_force_key_unit() for a full description of the downstream force key unit event. @running_time will be adjusted for any pad offsets of pads it was passing through. A #GstEvent to parse A pointer to the timestamp in the event A pointer to the stream-time in the event A pointer to the running-time in the event A pointer to the all_headers flag in the event A pointer to the count field of the event %TRUE if the event is a valid downstream force key unit event. Parse a #GstEvent, identify if it is a Still Frame event, and return the still-frame state from the event if it is. If the event represents the start of a still frame, the in_still variable will be set to TRUE, otherwise FALSE. It is OK to pass NULL for the in_still variable order to just check whether the event is a valid still-frame event. Create a still frame event using gst_video_event_new_still_frame() A #GstEvent to parse A boolean to receive the still-frame status from the event, or NULL %TRUE if the event is a valid still-frame event. %FALSE if not Get running-time, all-headers and count in the force key unit event. See gst_video_event_new_upstream_force_key_unit() for a full description of the upstream force key unit event. Create an upstream force key unit event using gst_video_event_new_upstream_force_key_unit() @running_time will be adjusted for any pad offsets of pads it was passing through. A #GstEvent to parse A pointer to the running_time in the event A pointer to the all_headers flag in the event A pointer to the count field in the event %TRUE if the event is a valid upstream force-key-unit event. %FALSE if not Converts a FOURCC value into the corresponding #GstVideoFormat. If the FOURCC cannot be represented by #GstVideoFormat, #GST_VIDEO_FORMAT_UNKNOWN is returned. a FOURCC value representing raw YUV video the #GstVideoFormat describing the FOURCC value Find the #GstVideoFormat for the given parameters. the amount of bits used for a pixel the amount of bits used to store a pixel. This value is bigger than @depth the endianness of the masks, #G_LITTLE_ENDIAN or #G_BIG_ENDIAN the red mask the green mask the blue mask the alpha mask, or 0 if no alpha mask a #GstVideoFormat or GST_VIDEO_FORMAT_UNKNOWN when the parameters to not specify a known format. Convert the @format string to its #GstVideoFormat. a format string the #GstVideoFormat for @format or GST_VIDEO_FORMAT_UNKNOWN when the string is not a known format. Get the #GstVideoFormatInfo for @format a #GstVideoFormat The #GstVideoFormatInfo for @format. Get the default palette of @format. This the palette used in the pack function for paletted formats. a #GstVideoFormat size of the palette in bytes the default palette of @format or %NULL when @format does not have a palette. Converts a #GstVideoFormat value into the corresponding FOURCC. Only a few YUV formats have corresponding FOURCC values. If @format has no corresponding FOURCC value, 0 is returned. a #GstVideoFormat video format the FOURCC corresponding to @format Returns a string containing a descriptive name for the #GstVideoFormat if there is one, or NULL otherwise. a #GstVideoFormat video format the name corresponding to @format Copy the contents from @src to @dest. a #GstVideoFrame a #GstVideoFrame TRUE if the contents could be copied. Copy the plane with index @plane from @src to @dest. a #GstVideoFrame a #GstVideoFrame a plane TRUE if the contents could be copied. Use @info and @buffer to fill in the values of @frame. @frame is usually allocated on the stack, and you will pass the address to the #GstVideoFrame structure allocated on the stack; gst_video_frame_map() will then fill in the structures with the various video-specific information you need to access the pixels of the video buffer. You can then use accessor macros such as GST_VIDEO_FRAME_COMP_DATA(), GST_VIDEO_FRAME_PLANE_DATA(), GST_VIDEO_FRAME_COMP_STRIDE(), GST_VIDEO_FRAME_PLANE_STRIDE() etc. to get to the pixels. |[<!-- language="C" --> GstVideoFrame vframe; ... // set RGB pixels to black one at a time if (gst_video_frame_map (&vframe, video_info, video_buffer)) { guint8 *pixels = GST_VIDEO_FRAME_PLANE_DATA (vframe, 0); guint stride = GST_VIDEO_FRAME_PLANE_STRIDE (vframe, 0); guint pixel_stride = GST_VIDEO_FRAME_PLANE_PSTRIDE (vframe, 0); for (h = 0; h < height; ++h) { for (w = 0; w < width; ++w) { guint8 *pixel = pixels + h * stride + w * pixel_stride; memset (pixel, 0, pixel_stride); } } } ... ]| All video planes of @buffer will be mapped and the pointers will be set in @frame->data. The purpose of this function is to make it easy for you to get to the video pixels in a generic way, without you having to worry too much about details such as whether the video data is allocated in one contiguous memory chunk or multiple memory chunks (e.g. one for each plane); or if custom strides and custom plane offsets are used or not (as signalled by GstVideoMeta on each buffer). This function will just fill the #GstVideoFrame structure with the right values and if you use the accessor macros everything will just work and you can access the data easily. It also maps the underlying memory chunks for you. pointer to #GstVideoFrame a #GstVideoInfo the buffer to map #GstMapFlags %TRUE on success. Use @info and @buffer to fill in the values of @frame with the video frame information of frame @id. When @id is -1, the default frame is mapped. When @id != -1, this function will return %FALSE when there is no GstVideoMeta with that id. All video planes of @buffer will be mapped and the pointers will be set in @frame->data. pointer to #GstVideoFrame a #GstVideoInfo the buffer to map the frame id to map #GstMapFlags %TRUE on success. Unmap the memory previously mapped with gst_video_frame_map. a #GstVideoFrame Uploads the buffer which owns the meta to a specific texture ID. a #GstVideoGLTextureUploadMeta the texture IDs to upload to %TRUE if uploading succeeded, %FALSE otherwise. Given the nominal duration of one video frame, this function will check some standard framerates for a close match (within 0.1%) and return one if possible, It will calculate an arbitrary framerate if no close match was found, and return %FALSE. It returns %FALSE if a duration of 0 is passed. Nominal duration of one frame Numerator of the calculated framerate Denominator of the calculated framerate %TRUE if a close "standard" framerate was recognised, and %FALSE otherwise. Adjust the offset and stride fields in @info so that the padding and stride alignment in @align is respected. Extra padding will be added to the right side when stride alignment padding is required and @align will be updated with the new padding values. a #GstVideoInfo alignment parameters Converts among various #GstFormat types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw video, GST_FORMAT_DEFAULT corresponds to video frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT. a #GstVideoInfo #GstFormat of the @src_value value to convert #GstFormat of the @dest_value pointer to destination value TRUE if the conversion was successful. Copy a GstVideoInfo structure. a #GstVideoInfo a new #GstVideoInfo. free with gst_video_info_free. Free a GstVideoInfo structure previously allocated with gst_video_info_new() or gst_video_info_copy(). a #GstVideoInfo Parse @caps and update @info. a #GstVideoInfo a #GstCaps TRUE if @caps could be parsed Initialize @info with default values. a #GstVideoInfo Compares two #GstVideoInfo and returns whether they are equal or not a #GstVideoInfo a #GstVideoInfo %TRUE if @info and @other are equal, else %FALSE. Allocate a new #GstVideoInfo that is also initialized with gst_video_info_init(). a new #GstVideoInfo. free with gst_video_info_free(). Set the default info for a video frame of @format and @width and @height. Note: This initializes @info first, no values are preserved. This function does not set the offsets correctly for interlaced vertically subsampled formats. a #GstVideoInfo the format a width a height Convert the values of @info into a #GstCaps. a #GstVideoInfo a new #GstCaps containing the info of @info. Convert @mode to a #GstVideoInterlaceMode a mode the #GstVideoInterlaceMode of @mode or #GST_VIDEO_INTERLACE_MODE_PROGRESSIVE when @mode is not a valid string representation for a #GstVideoInterlaceMode. Convert @mode to its string representation. a #GstVideoInterlaceMode @mode as a string or NULL if @mode in invalid. Map the video plane with index @plane in @meta and return a pointer to the first byte of the plane and the stride of the plane. a #GstVideoMeta a plane a #GstMapInfo the data of @plane the stride of @plane @GstMapFlags TRUE if the map operation was successful. GQuark for the video "gst-video-scale" transform. Get the #GQuark for the "gst-video-scale" metadata transform operation. a #GQuark Unmap a previously mapped plane with gst_video_meta_map(). a #GstVideoMeta a plane a #GstMapInfo TRUE if the memory was successfully unmapped. A const #GValue containing a list of stereo video modes Utility function that returns a #GValue with a GstList of packed stereo video modes with double the height of a single view for use in caps negotiations. Currently this is top-bottom and row-interleaved. A const #GValue containing a list of stereo video modes Utility function that returns a #GValue with a GstList of packed stereo video modes that have double the width/height of a single view for use in caps negotiation. Currently this is just 'checkerboard' layout. A const #GValue containing a list of stereo video modes Utility function that returns a #GValue with a GstList of packed stereo video modes with double the width of a single view for use in caps negotiations. Currently this is side-by-side, side-by-side-quincunx and column-interleaved. A const #GValue containing a list of mono video modes Utility function that returns a #GValue with a GstList of mono video modes (mono/left/right) for use in caps negotiations. A const #GValue containing a list of 'unpacked' stereo video modes Utility function that returns a #GValue with a GstList of unpacked stereo video modes (separated/frame-by-frame/frame-by-frame-multiview) for use in caps negotiations. A #GstVideoMultiviewMode Video frame width in pixels Video frame height in pixels Numerator of the video pixel-aspect-ratio Denominator of the video pixel-aspect-ratio A boolean indicating whether the #GST_VIDEO_MULTIVIEW_FLAG_HALF_ASPECT flag should be set. Utility function that heuristically guess whether a frame-packed stereoscopic video contains half width/height encoded views, or full-frame views by looking at the overall display aspect ratio. multiview-mode field string from caps The #GstVideoMultiviewMode value Given a string from a caps multiview-mode field, output the corresponding #GstVideoMultiviewMode or #GST_VIDEO_MULTIVIEW_MODE_NONE A #GstVideoMultiviewMode value The caps string representation of the mode, or NULL if invalid. Given a #GstVideoMultiviewMode returns the multiview-mode caps string for insertion into a caps structure Utility function that transforms the width/height/PAR and multiview mode and flags of a #GstVideoInfo into the requested mode. A #GstVideoInfo structure to operate on A #GstVideoMultiviewMode value A set of #GstVideoMultiviewFlags Get the horizontal centering offset from the given object. #GstVideoOrientation interface of a #GstElement return location for the result %TRUE in case the element supports centering Get the horizontal flipping state (%TRUE for flipped) from the given object. #GstVideoOrientation interface of a #GstElement return location for the result %TRUE in case the element supports flipping Get the vertical centering offset from the given object. #GstVideoOrientation interface of a #GstElement return location for the result %TRUE in case the element supports centering Get the vertical flipping state (%TRUE for flipped) from the given object. #GstVideoOrientation interface of a #GstElement return location for the result %TRUE in case the element supports flipping Set the horizontal centering offset for the given object. #GstVideoOrientation interface of a #GstElement centering offset %TRUE in case the element supports centering Set the horizontal flipping state (%TRUE for flipped) for the given object. #GstVideoOrientation interface of a #GstElement use flipping %TRUE in case the element supports flipping Set the vertical centering offset for the given object. #GstVideoOrientation interface of a #GstElement centering offset %TRUE in case the element supports centering Set the vertical flipping state (%TRUE for flipped) for the given object. #GstVideoOrientation interface of a #GstElement use flipping %TRUE in case the element supports flipping Adds an overlay rectangle to an existing overlay composition object. This must be done right after creating the overlay composition. a #GstVideoOverlayComposition a #GstVideoOverlayRectangle to add to the composition Blends the overlay rectangles in @comp on top of the raw video data contained in @video_buf. The data in @video_buf must be writable and mapped appropriately. a #GstVideoOverlayComposition a #GstVideoFrame containing raw video data in a supported format Makes a copy of @comp and all contained rectangles, so that it is possible to modify the composition and contained rectangles (e.g. add additional rectangles or change the render co-ordinates or render dimension). The actual overlay pixel data buffers contained in the rectangles are not copied. a #GstVideoOverlayComposition to copy a new #GstVideoOverlayComposition equivalent to @comp. Returns the @n-th #GstVideoOverlayRectangle contained in @comp. a #GstVideoOverlayComposition number of the rectangle to get the @n-th rectangle, or NULL if @n is out of bounds. Will not return a new reference, the caller will need to obtain her own reference using gst_video_overlay_rectangle_ref() if needed. Returns the sequence number of this composition. Sequence numbers are monotonically increasing and unique for overlay compositions and rectangles (meaning there will never be a rectangle with the same sequence number as a composition). a #GstVideoOverlayComposition the sequence number of @comp Takes ownership of @comp and returns a version of @comp that is writable (i.e. can be modified). Will either return @comp right away, or create a new writable copy of @comp and unref @comp itself. All the contained rectangles will also be copied, but the actual overlay pixel data buffers contained in the rectangles are not copied. a #GstVideoOverlayComposition to copy a writable #GstVideoOverlayComposition equivalent to @comp. Returns the number of #GstVideoOverlayRectangle<!-- -->s contained in @comp. a #GstVideoOverlayComposition the number of rectangles Creates a new video overlay composition object to hold one or more overlay rectangles. a #GstVideoOverlayRectangle to add to the composition a new #GstVideoOverlayComposition. Unref with gst_video_overlay_composition_unref() when no longer needed. Increases the refcount of the given composition by one. Note that the refcount affects the writeability of @comp, use gst_video_overlay_composition_make_writable() to ensure a composition and its rectangles can be modified. a a #GstVideoOverlayComposition. @comp Decreases the refcount of the composition. If the refcount reaches 0, the composition will be freed. a #GstVideoOverlayComposition. Tell an overlay that it has been exposed. This will redraw the current frame in the drawable even if the pipeline is PAUSED. a #GstVideoOverlay to expose. This will post a "have-window-handle" element message on the bus. This function should only be used by video overlay plugin developers. a #GstVideoOverlay which got a window a platform-specific handle referencing the window Tell an overlay that it should handle events from the window system. These events are forwarded upstream as navigation events. In some window system, events are not propagated in the window hierarchy if a client is listening for them. This method allows you to disable events handling completely from the #GstVideoOverlay. a #GstVideoOverlay to expose. a #gboolean indicating if events should be handled or not. This will post a "prepare-window-handle" element message on the bus to give applications an opportunity to call gst_video_overlay_set_window_handle() before a plugin creates its own window. This function should only be used by video overlay plugin developers. a #GstVideoOverlay which does not yet have an Window handle set Makes a copy of @rectangle, so that it is possible to modify it (e.g. to change the render co-ordinates or render dimension). The actual overlay pixel data buffers contained in the rectangle are not copied. a #GstVideoOverlayRectangle to copy a new #GstVideoOverlayRectangle equivalent to @rectangle. Retrieves the flags associated with a #GstVideoOverlayRectangle. This is useful if the caller can handle both premultiplied alpha and non premultiplied alpha, for example. By knowing whether the rectangle uses premultiplied or not, it can request the pixel data in the format it is stored in, to avoid unnecessary conversion. a #GstVideoOverlayRectangle the #GstVideoOverlayFormatFlags associated with the rectangle. Retrieves the global-alpha value associated with a #GstVideoOverlayRectangle. a #GstVideoOverlayRectangle the global-alpha value associated with the rectangle. a #GstVideoOverlayRectangle flags If a global_alpha value != 1 is set for the rectangle, the caller should set the #GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA flag if he wants to apply global-alpha himself. If the flag is not set global_alpha is applied internally before returning the pixel-data. a #GstBuffer holding the ARGB pixel data with width and height of the render dimensions as per gst_video_overlay_rectangle_get_render_rectangle(). This function does not return a reference, the caller should obtain a reference of her own with gst_buffer_ref() if needed. a #GstVideoOverlayRectangle flags If a global_alpha value != 1 is set for the rectangle, the caller should set the #GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA flag if he wants to apply global-alpha himself. If the flag is not set global_alpha is applied internally before returning the pixel-data. a #GstBuffer holding the AYUV pixel data with width and height of the render dimensions as per gst_video_overlay_rectangle_get_render_rectangle(). This function does not return a reference, the caller should obtain a reference of her own with gst_buffer_ref() if needed. a #GstVideoOverlayRectangle flags If a global_alpha value != 1 is set for the rectangle, the caller should set the #GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA flag if he wants to apply global-alpha himself. If the flag is not set global_alpha is applied internally before returning the pixel-data. a #GstBuffer holding the pixel data with format as originally provided and specified in video meta with width and height of the render dimensions as per gst_video_overlay_rectangle_get_render_rectangle(). This function does not return a reference, the caller should obtain a reference of her own with gst_buffer_ref() if needed. Retrieves the pixel data as it is. This is useful if the caller can do the scaling itself when handling the overlaying. The rectangle will need to be scaled to the render dimensions, which can be retrieved using gst_video_overlay_rectangle_get_render_rectangle(). a #GstVideoOverlayRectangle flags. If a global_alpha value != 1 is set for the rectangle, the caller should set the #GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA flag if he wants to apply global-alpha himself. If the flag is not set global_alpha is applied internally before returning the pixel-data. a #GstBuffer holding the ARGB pixel data with #GstVideoMeta set. This function does not return a reference, the caller should obtain a reference of her own with gst_buffer_ref() if needed. Retrieves the pixel data as it is. This is useful if the caller can do the scaling itself when handling the overlaying. The rectangle will need to be scaled to the render dimensions, which can be retrieved using gst_video_overlay_rectangle_get_render_rectangle(). a #GstVideoOverlayRectangle flags. If a global_alpha value != 1 is set for the rectangle, the caller should set the #GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA flag if he wants to apply global-alpha himself. If the flag is not set global_alpha is applied internally before returning the pixel-data. a #GstBuffer holding the AYUV pixel data with #GstVideoMeta set. This function does not return a reference, the caller should obtain a reference of her own with gst_buffer_ref() if needed. Retrieves the pixel data as it is. This is useful if the caller can do the scaling itself when handling the overlaying. The rectangle will need to be scaled to the render dimensions, which can be retrieved using gst_video_overlay_rectangle_get_render_rectangle(). a #GstVideoOverlayRectangle flags. If a global_alpha value != 1 is set for the rectangle, the caller should set the #GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA flag if he wants to apply global-alpha himself. If the flag is not set global_alpha is applied internally before returning the pixel-data. a #GstBuffer holding the pixel data with #GstVideoMeta set. This function does not return a reference, the caller should obtain a reference of her own with gst_buffer_ref() if needed. Retrieves the render position and render dimension of the overlay rectangle on the video. a #GstVideoOverlayRectangle address where to store the X render offset address where to store the Y render offset address where to store the render width address where to store the render height TRUE if valid render dimensions were retrieved. Returns the sequence number of this rectangle. Sequence numbers are monotonically increasing and unique for overlay compositions and rectangles (meaning there will never be a rectangle with the same sequence number as a composition). Using the sequence number of a rectangle as an indicator for changed pixel-data of a rectangle is dangereous. Some API calls, like e.g. gst_video_overlay_rectangle_set_global_alpha(), automatically update the per rectangle sequence number, which is misleading for renderers/ consumers, that handle global-alpha themselves. For them the pixel-data returned by gst_video_overlay_rectangle_get_pixels_*() wont be different for different global-alpha values. In this case a renderer could also use the GstBuffer pointers as a hint for changed pixel-data. a #GstVideoOverlayRectangle the sequence number of @rectangle Creates a new video overlay rectangle with ARGB or AYUV pixel data. The layout in case of ARGB of the components in memory is B-G-R-A on little-endian platforms (corresponding to #GST_VIDEO_FORMAT_BGRA) and A-R-G-B on big-endian platforms (corresponding to #GST_VIDEO_FORMAT_ARGB). In other words, pixels are treated as 32-bit words and the lowest 8 bits then contain the blue component value and the highest 8 bits contain the alpha component value. Unless specified in the flags, the RGB values are non-premultiplied. This is the format that is used by most hardware, and also many rendering libraries such as Cairo, for example. The pixel data buffer must have #GstVideoMeta set. a #GstBuffer pointing to the pixel memory the X co-ordinate on the video where the top-left corner of this overlay rectangle should be rendered to the Y co-ordinate on the video where the top-left corner of this overlay rectangle should be rendered to the render width of this rectangle on the video the render height of this rectangle on the video flags a new #GstVideoOverlayRectangle. Unref with gst_video_overlay_rectangle_unref() when no longer needed. Increases the refcount of the given rectangle by one. Note that the refcount affects the writeability of @comp, use gst_video_overlay_rectangle_copy() to ensure a rectangle can be modified (there is no gst_video_overlay_rectangle_make_writable() because it is unlikely that someone will hold the single reference to the rectangle and not know that that's the case). a a #GstVideoOverlayRectangle. @comp Sets the global alpha value associated with a #GstVideoOverlayRectangle. Per- pixel alpha values are multiplied with this value. Valid values: 0 <= global_alpha <= 1; 1 to deactivate. @rectangle must be writable, meaning its refcount must be 1. You can make the rectangles inside a #GstVideoOverlayComposition writable using gst_video_overlay_composition_make_writable() or gst_video_overlay_composition_copy(). a #GstVideoOverlayRectangle Global alpha value (0 to 1.0) Sets the render position and dimensions of the rectangle on the video. This function is mainly for elements that modify the size of the video in some way (e.g. through scaling or cropping) and need to adjust the details of any overlays to match the operation that changed the size. @rectangle must be writable, meaning its refcount must be 1. You can make the rectangles inside a #GstVideoOverlayComposition writable using gst_video_overlay_composition_make_writable() or gst_video_overlay_composition_copy(). a #GstVideoOverlayRectangle render X position of rectangle on video render Y position of rectangle on video render width of rectangle render height of rectangle Decreases the refcount of the rectangle. If the refcount reaches 0, the rectangle will be freed. a #GstVideoOverlayRectangle. Configure a subregion as a video target within the window set by gst_video_overlay_set_window_handle(). If this is not used or not supported the video will fill the area of the window set as the overlay to 100%. By specifying the rectangle, the video can be overlayed to a specific region of that window only. After setting the new rectangle one should call gst_video_overlay_expose() to force a redraw. To unset the region pass -1 for the @width and @height parameters. This method is needed for non fullscreen video overlay in UI toolkits that do not support subwindows. a #GstVideoOverlay the horizontal offset of the render area inside the window the vertical offset of the render area inside the window the width of the render area inside the window the height of the render area inside the window %FALSE if not supported by the sink. This will call the video overlay's set_window_handle method. You should use this method to tell to an overlay to display video output to a specific window (e.g. an XWindow on X11). Passing 0 as the @handle will tell the overlay to stop using that window and create an internal one. a #GstVideoOverlay to set the window on. a handle referencing the window. Clear a previously initialized #GstVideoResampler @resampler. a #GstVideoResampler Make a new resampler. @in_size source elements will be resampled to @out_size destination elements. @n_taps specifies the amount of elements to use from the source for one output element. If n_taps is 0, this function chooses a good value automatically based on the @method and @in_size/@out_size. a #GstVideoResampler a #GstVideoResamplerMethod #GstVideoResamplerFlags number of phases to use number of taps to use number of source elements number of destination elements extra options %TRUE on success Scale a rectangle of pixels in @src with @src_stride to @dest with @dest_stride using the horizontal scaler @hscaler and the vertical scaler @vscale. One or both of @hscale and @vscale can be NULL to only perform scaling in one dimension or do a copy without scaling. @x and @y are the coordinates in the destination image to process. a horzontal #GstVideoScaler a vertical #GstVideoScaler a #GstVideoFormat for @srcs and @dest source pixels source pixels stride destination pixels destination pixels stride the horizontal destination offset the vertical destination offset the number of output pixels to scale the number of output lines to scale Combine a scaler for Y and UV into one scaler for the packed @format. a scaler for the Y component a scaler for the U and V components the input video format the output video format a new horizontal videoscaler for @format. Free a previously allocated #GstVideoScaler @scale. a #GstVideoScaler For a given pixel at @out_offset, get the first required input pixel at @in_offset and the @n_taps filter coefficients. Note that for interlaced content, @in_offset needs to be incremented with 2 to get the next input line. a #GstVideoScaler an output offset result input offset result n_taps an array of @n_tap gdouble values with filter coefficients. Get the maximum number of taps for @scale. a #GstVideoScaler the maximum number of taps Horizontally scale the pixels in @src to @dest, starting from @dest_offset for @width samples. a #GstVideoScaler a #GstVideoFormat for @src and @dest source pixels destination pixels the horizontal destination offset the number of pixels to scale Make a new @method video scaler. @in_size source lines/pixels will be scaled to @out_size destination lines/pixels. @n_taps specifies the amount of pixels to use from the source for one output pixel. If n_taps is 0, this function chooses a good value automatically based on the @method and @in_size/@out_size. a #GstVideoResamplerMethod #GstVideoScalerFlags number of taps to use number of source elements number of destination elements extra options a #GstVideoResample Vertically combine @width pixels in the lines in @src_lines to @dest. @dest is the location of the target line at @dest_offset and @srcs are the input lines for @dest_offset, as obtained with gst_video_scaler_get_info(). a #GstVideoScaler a #GstVideoFormat for @srcs and @dest source pixels lines destination pixels the vertical destination offset the number of pixels to scale Takes @src rectangle and position it at the center of @dst rectangle with or without @scaling. It handles clipping if the @src rectangle is bigger than the @dst one and @scaling is set to FALSE. the #GstVideoRectangle describing the source area the #GstVideoRectangle describing the destination area a pointer to a #GstVideoRectangle which will receive the result area a #gboolean indicating if scaling should be applied or not Get the tile index of the tile at coordinates @x and @y in the tiled image of @x_tiles by @y_tiles. Use this method when @mode is of type %GST_VIDEO_TILE_MODE_INDEXED. a #GstVideoTileMode x coordinate y coordinate number of horizintal tiles number of vertical tiles the index of the tile at @x and @y in the tiled image of @x_tiles by @y_tiles. Convenience function using gst_tag_from_vorbis_tag(), parsing a vorbis comment string into the right type and adding it to the given taglist @list. Unknown vorbiscomment tags will be added to the tag list in form of a #GST_TAG_EXTENDED_COMMENT. a #GstTagList a vorbiscomment tag string (key in key=value), must be valid UTF-8 a vorbiscomment value string (value in key=value), must be valid UTF-8 a #GKeyFile the parent profile name (including 'profile-' or 'streamprofile-' header) the profile name group to parse the number of top-level groups the top-level groups Read the packet headers for the packet pointed to by @packet. a packet TRUE if @packet pointed to a valid header. Compares @v1 and @v2 in a case-insensitive manner an ASCII string another ASCII string %TRUE if they are equal (modulo case) Hashes @key in a case-insensitive manner. ASCII string to hash the hash code.