gstreamer/docs/gst/tmpl/gstevent.sgml
Stefan Kost a34f2613f9 more tests (and fixes) for the controller more docs for the controller integrated companies docs for the adapter
Original commit message from CVS:
more tests (and fixes) for the controller
more docs for the controller
integrated companies docs for the adapter
2005-08-05 10:02:44 +00:00

308 lines
4.9 KiB
Text

<!-- ##### SECTION Title ##### -->
GstEvent
<!-- ##### SECTION Short_Description ##### -->
Structure describing events that are passed up and down a pipeline
<!-- ##### SECTION Long_Description ##### -->
<para>
The event classes are used to construct and query events.
</para>
<para>
Events are usually created with gst_event_new() which takes the event type as an argument.
properties specific to the event can be set afterwards with the provided macros.
The event should be unreferenced with gst_event_unref().
</para>
<para>
gst_event_new_seek() is a usually used to create a seek event and it takes the
needed parameters for a seek event.
</para>
<para>
gst_event_new_flush() creates a new flush event.
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
#GstPad, #GstElement
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### STRUCT GstEvent ##### -->
<para>
</para>
@mini_object:
@type:
@timestamp:
@src:
@structure:
<!-- ##### ENUM GstEventType ##### -->
<para>
The different major types of events.
</para>
@GST_EVENT_UNKNOWN: unknown event.
@GST_EVENT_FLUSH_START:
@GST_EVENT_FLUSH_STOP:
@GST_EVENT_EOS: an end-of-stream event.
@GST_EVENT_NEWSEGMENT:
@GST_EVENT_TAG:
@GST_EVENT_FILLER:
@GST_EVENT_QOS: a quality of service event
@GST_EVENT_SEEK: a seek event.
@GST_EVENT_NAVIGATION:
@GST_EVENT_CUSTOM_START:
<!-- ##### MACRO GST_EVENT_TRACE_NAME ##### -->
<para>
The name used for memory allocation tracing
</para>
<!-- ##### MACRO GST_EVENT_TYPE ##### -->
<para>
Get the event type.
</para>
@event: The event to query.
<!-- ##### MACRO GST_EVENT_TIMESTAMP ##### -->
<para>
Get the timestamp of the event.
</para>
@event: The event to query.
<!-- ##### MACRO GST_EVENT_SRC ##### -->
<para>
The source object that generated this event
</para>
@event: The event to query
<!-- ##### ENUM GstSeekType ##### -->
<para>
The different types of seek events. When constructing a seek event a format,
a seek method and optional flags are OR-ed together. The seek event is then
inserted into the graph with #gst_pad_send_event() or #gst_element_send_event().
Following example illustrates how to insert a seek event (1 second in the stream)
in a pipeline.
<example>
<title>Insertion of a seek event into a pipeline</title>
<programlisting>
gboolean res;
GstEvent *event;
event = gst_event_new_seek (
GST_FORMAT_TIME | /* seek on time */
GST_SEEK_METHOD_SET | /* set the absolute position */
GST_SEEK_FLAG_FLUSH, /* flush any pending data */
1 * GST_SECOND); /* the seek offset (1 second) */
res = gst_element_send_event (GST_ELEMENT (osssink), event);
if (!res) {
g_warning ("seek failed");
}
</programlisting>
</example>
</para>
@GST_SEEK_TYPE_NONE:
@GST_SEEK_TYPE_CUR:
@GST_SEEK_TYPE_SET:
@GST_SEEK_TYPE_END:
<!-- ##### MACRO gst_event_ref ##### -->
<para>
Increase the refcount of this event
</para>
@ev: The event to refcount
<!-- ##### MACRO gst_event_unref ##### -->
<para>
Decrease the refcount of an event, freeing it if the refcount reaches 0
</para>
@ev: The event to unref
<!-- ##### MACRO gst_event_copy ##### -->
<para>
Copy the event using the event specific copy function
</para>
@ev: The event to copy
@Returns: A new event that is a copy of the given input event
<!-- ##### FUNCTION gst_event_new_custom ##### -->
<para>
</para>
@type:
@structure:
@Returns:
<!-- ##### FUNCTION gst_event_get_structure ##### -->
<para>
</para>
@event:
@Returns:
<!-- ##### FUNCTION gst_event_new_flush_start ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION gst_event_new_flush_stop ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION gst_event_new_eos ##### -->
<para>
</para>
@Returns:
<!-- ##### FUNCTION gst_event_new_newsegment ##### -->
<para>
</para>
@rate:
@format:
@start_value:
@stop_value:
@base:
@Returns:
<!-- ##### FUNCTION gst_event_parse_newsegment ##### -->
<para>
</para>
@event:
@rate:
@format:
@start_value:
@end_value:
@base:
<!-- ##### FUNCTION gst_event_new_tag ##### -->
<para>
</para>
@taglist:
@Returns:
<!-- ##### FUNCTION gst_event_parse_tag ##### -->
<para>
</para>
@event:
@taglist:
<!-- ##### FUNCTION gst_event_new_filler ##### -->
<para>
Create a new dummy event that should be ignored
</para>
@Returns:
<!-- ##### FUNCTION gst_event_new_qos ##### -->
<para>
</para>
@proportion:
@diff:
@timestamp:
@Returns:
<!-- ##### FUNCTION gst_event_parse_qos ##### -->
<para>
</para>
@event:
@proportion:
@diff:
@timestamp:
<!-- ##### FUNCTION gst_event_new_seek ##### -->
<para>
</para>
@rate:
@format:
@flags:
@cur_type:
@cur:
@stop_type:
@stop:
@Returns:
<!-- # Unused Parameters # -->
@type:
@offset:
<!-- ##### FUNCTION gst_event_parse_seek ##### -->
<para>
</para>
@event:
@rate:
@format:
@flags:
@cur_type:
@cur:
@stop_type:
@stop:
<!-- ##### FUNCTION gst_event_new_navigation ##### -->
<para>
</para>
@structure:
@Returns: