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
46 <!-- ##### MACRO GST_EVENT_TYPE ##### -->
51 @event: The event to query.
54 <!-- ##### MACRO GST_EVENT_SRC ##### -->
56 The source object that generated this event
59 @event: The event to query
62 <!-- ##### MACRO GST_EVENT_TIMESTAMP ##### -->
64 Get the timestamp of the event.
67 @event: The event to query.
70 <!-- ##### ENUM GstSeekType ##### -->
72 The different types of seek events.
75 @GST_SEEK_METHOD_CUR: Seek to an relative position
76 @GST_SEEK_METHOD_SET: Seek to an absolute position
77 @GST_SEEK_METHOD_END: Seek relative to the end of the stream
78 @GST_SEEK_FLAG_FLUSH: Flush any pending data while seeking
79 @GST_SEEK_FLAG_ACCURATE: Seek as accuratly as possible
80 @GST_SEEK_FLAG_KEY_UNIT: Seek to a nearby key unit
82 <!-- ##### ENUM GstSeekAccuracy ##### -->
84 The seekaccuracy gives more information of how the seek was performed,
85 if the seek was accurate or fuzzy.
91 <!-- ##### MACRO GST_EVENT_SEEK_TYPE ##### -->
93 Get the seektype of the GST_EVENT_SEEK.
96 @event: The event to query.
99 <!-- ##### MACRO GST_EVENT_SEEK_FORMAT ##### -->
101 The format of the seek value
104 @event: The event operate on
107 <!-- ##### MACRO GST_EVENT_SEEK_METHOD ##### -->
109 The seek method to use as one of #GstSeekType
112 @event: The event operate on
115 <!-- ##### MACRO GST_EVENT_SEEK_FLAGS ##### -->
117 The optional seek flags
120 @event: The event operate on
123 <!-- ##### MACRO GST_EVENT_SEEK_OFFSET ##### -->
125 Get the offset of the seek event.
128 @event: The event to query.
131 <!-- ##### MACRO GST_EVENT_SEEK_ACCURACY ##### -->
133 Indicates how accurate the event was performed.
136 @event: The event to query
139 <!-- ##### MACRO GST_SEEK_FLAGS_MASK ##### -->
146 <!-- ##### MACRO GST_SEEK_FLAGS_SHIFT ##### -->
153 <!-- ##### MACRO GST_SEEK_FORMAT_MASK ##### -->
160 <!-- ##### MACRO GST_SEEK_FORMAT_SHIFT ##### -->
167 <!-- ##### MACRO GST_SEEK_METHOD_MASK ##### -->
174 <!-- ##### MACRO GST_SEEK_METHOD_SHIFT ##### -->
181 <!-- ##### MACRO GST_EVENT_DISCONT_NEW_MEDIA ##### -->
183 Flag that indicates the discont event was because of a new media
187 @event: The event to operate on
190 <!-- ##### MACRO GST_EVENT_DISCONT_OFFSET ##### -->
192 The offset of the discont event. A discont evetn can hold up to 8 different
196 @event: The event to query
197 @i: The offset/value pair.
200 <!-- ##### MACRO GST_EVENT_DISCONT_OFFSET_LEN ##### -->
202 Get the number of offset/value pairs this event has.
205 @event: The event to query.
208 <!-- ##### STRUCT GstEvent ##### -->
210 The event data structure.
213 @data: The parent data type.
214 @type: The event type.
215 @timestamp: The event timestamp.
216 @src: The object that generated the event
218 <!-- ##### FUNCTION gst_event_new ##### -->
227 <!-- ##### MACRO gst_event_copy ##### -->
234 <!-- # Unused Parameters # -->
238 <!-- ##### FUNCTION gst_event_new_seek ##### -->
248 <!-- ##### FUNCTION gst_event_new_discontinuous ##### -->
259 <!-- ##### FUNCTION gst_event_discont_get_value ##### -->
270 <!-- ##### MACRO gst_event_new_filler ##### -->
272 Create a new dummy event that should be ignored
277 <!-- ##### MACRO gst_event_new_flush ##### -->
279 Create a new flush event.