1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
7 <!-- ##### SECTION Long_Description ##### -->
9 The event classes are used to construct and query events.
13 Events are usually created with gst_event_new() which takes the event type as an argument.
14 properties specific to the event can be set afterwards with the provided macros.
15 The event is freed with gst_event_free().
18 gst_event_new_seek() is a usually used to create a seek event and it takes the
19 needed parameters for a seek event.
22 gst_event_new_flush() creates a new flush event.
25 <!-- ##### SECTION See_Also ##### -->
30 <!-- ##### ENUM GstEventType ##### -->
32 The different major types of events.
35 @GST_EVENT_UNKNOWN: unknown event.
36 @GST_EVENT_EOS: an end-of-stream event.
37 @GST_EVENT_FLUSH: a flush event.
38 @GST_EVENT_EMPTY: an empty event.
39 @GST_EVENT_DISCONTINUOUS: a discontinuous event to indicate the stream has a discontinuity.
40 @GST_EVENT_NEW_MEDIA: a new media stream is started
41 @GST_EVENT_QOS: a quality of service event
42 @GST_EVENT_SEEK: a seek event.
43 @GST_EVENT_FILLER: a dummy element that should be ignored by plugins
45 <!-- ##### MACRO GST_EVENT_TYPE ##### -->
50 @event: The event to query.
53 <!-- ##### MACRO GST_EVENT_SRC ##### -->
55 The source object that generated this event
58 @event: The event to query
61 <!-- ##### MACRO GST_EVENT_TIMESTAMP ##### -->
63 Get the timestamp of the event.
66 @event: The event to query.
69 <!-- ##### ENUM GstSeekType ##### -->
71 The different types of seek events.
74 @GST_SEEK_METHOD_CUR: Seek to an relative position
75 @GST_SEEK_METHOD_SET: Seek to an absolute position
76 @GST_SEEK_METHOD_END: Seek relative to the end of the stream
77 @GST_SEEK_FLAG_FLUSH: Flush any pending data while seeking
78 @GST_SEEK_FLAG_ACCURATE: Seek as accuratly as possible
79 @GST_SEEK_FLAG_KEY_UNIT: Seek to a nearby key unit
81 <!-- ##### ENUM GstSeekAccuracy ##### -->
83 The seekaccuracy gives more information of how the seek was performed,
84 if the seek was accurate or fuzzy.
90 <!-- ##### MACRO GST_EVENT_SEEK_TYPE ##### -->
92 Get the seektype of the GST_EVENT_SEEK.
95 @event: The event to query.
98 <!-- ##### MACRO GST_EVENT_SEEK_FORMAT ##### -->
100 The format of the seek value
103 @event: The event operate on
106 <!-- ##### MACRO GST_EVENT_SEEK_METHOD ##### -->
108 The seek method to use as one of #GstSeekType
111 @event: The event operate on
114 <!-- ##### MACRO GST_EVENT_SEEK_FLAGS ##### -->
116 The optional seek flags
119 @event: The event operate on
122 <!-- ##### MACRO GST_EVENT_SEEK_OFFSET ##### -->
124 Get the offset of the seek event.
127 @event: The event to query.
130 <!-- ##### MACRO GST_EVENT_SEEK_ACCURACY ##### -->
132 Indicates how accurate the event was performed.
135 @event: The event to query
138 <!-- ##### MACRO GST_SEEK_FLAGS_MASK ##### -->
145 <!-- ##### MACRO GST_SEEK_FLAGS_SHIFT ##### -->
152 <!-- ##### MACRO GST_SEEK_FORMAT_MASK ##### -->
159 <!-- ##### MACRO GST_SEEK_FORMAT_SHIFT ##### -->
166 <!-- ##### MACRO GST_SEEK_METHOD_MASK ##### -->
173 <!-- ##### MACRO GST_SEEK_METHOD_SHIFT ##### -->
180 <!-- ##### MACRO GST_EVENT_DISCONT_NEW_MEDIA ##### -->
182 Flag that indicates the discont event was because of a new media
186 @event: The event to operate on
189 <!-- ##### MACRO GST_EVENT_DISCONT_OFFSET ##### -->
191 The offset of the discont event. A discont evetn can hold up to 8 different
195 @event: The event to query
196 @i: The offset/value pair.
199 <!-- ##### MACRO GST_EVENT_DISCONT_OFFSET_LEN ##### -->
201 Get the number of offset/value pairs this event has.
204 @event: The event to query.
207 <!-- ##### STRUCT GstEvent ##### -->
209 The event data structure.
212 @data: The parent data type.
213 @type: The event type.
214 @timestamp: The event timestamp.
215 @src: The object that generated the event
217 <!-- ##### FUNCTION gst_event_new ##### -->
226 <!-- ##### FUNCTION gst_event_copy ##### -->
235 <!-- ##### FUNCTION gst_event_free ##### -->
243 <!-- ##### FUNCTION gst_event_new_seek ##### -->
253 <!-- ##### FUNCTION gst_event_new_discontinuous ##### -->
264 <!-- ##### FUNCTION gst_event_discont_get_value ##### -->
275 <!-- ##### MACRO gst_event_new_filler ##### -->
277 Create a new dummy event that should be ignored
282 <!-- ##### MACRO gst_event_new_flush ##### -->
284 Create a new flush event.