1 /* gstreamer-base-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
5 [CCode (cheader_filename = "gst/base/gstadapter.h")]
6 public class Adapter : GLib.Object {
7 [CCode (has_construct_function = false)]
9 public uint available ();
10 public uint available_fast ();
12 public void copy (uchar dest, uint offset, uint size);
13 public void flush (uint flush);
14 public uint masked_scan_uint32 (uint32 mask, uint32 pattern, uint offset, uint size);
15 [CCode (array_length = false)]
16 public unowned uchar[] peek (uint size);
17 public Gst.ClockTime prev_timestamp (uint64 distance);
18 public void push (owned Gst.Buffer buf);
19 public uchar take (uint nbytes);
20 public Gst.Buffer take_buffer (uint nbytes);
22 [CCode (cheader_filename = "gst/base/gstbasesink.h")]
23 public class BaseSink : Gst.Element {
24 public int buffers_queued;
25 public bool can_activate_pull;
26 public bool can_activate_push;
27 public Gst.ClockID clock_id;
28 public Gst.ClockTime end_time;
30 public bool eos_queued;
31 public int events_queued;
33 public bool have_newsegment;
34 public bool have_preroll;
35 public bool need_preroll;
37 public Gst.ActivateMode pad_mode;
38 public bool playing_async;
39 public GLib.Queue preroll_queue;
40 public int preroll_queue_max_len;
41 public int preroll_queued;
42 public Gst.Segment segment;
43 public Gst.Pad sinkpad;
44 [CCode (has_construct_function = false)]
45 protected BaseSink ();
47 public virtual bool activate_pull (bool active);
49 public virtual Gst.StateChangeReturn async_play ();
51 public virtual Gst.FlowReturn buffer_alloc (uint64 offset, uint size, Gst.Caps caps, out unowned Gst.Buffer buf);
52 public Gst.FlowReturn do_preroll (Gst.MiniObject obj);
54 public virtual bool event (Gst.Event event);
56 public virtual void fixate (Gst.Caps caps);
57 public uint get_blocksize ();
59 public virtual unowned Gst.Caps get_caps ();
60 public unowned Gst.Buffer get_last_buffer ();
61 public Gst.ClockTime get_latency ();
62 public int64 get_max_lateness ();
63 public Gst.ClockTime get_render_delay ();
64 public bool get_sync ();
66 public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
67 public Gst.ClockTimeDiff get_ts_offset ();
68 public bool is_async_enabled ();
69 public bool is_qos_enabled ();
71 public virtual Gst.FlowReturn preroll (Gst.Buffer buffer);
72 public bool query_latency (bool live, bool upstream_live, out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
74 public virtual Gst.FlowReturn render (Gst.Buffer buffer);
76 public virtual Gst.FlowReturn render_list (Gst.BufferList buffer_list);
77 public void set_async_enabled (bool enabled);
78 public void set_blocksize (uint blocksize);
80 public virtual bool set_caps (Gst.Caps caps);
81 public void set_max_lateness (int64 max_lateness);
82 public void set_qos_enabled (bool enabled);
83 public void set_render_delay (Gst.ClockTime delay);
84 public void set_sync (bool sync);
85 public void set_ts_offset (Gst.ClockTimeDiff offset);
87 public virtual bool start ();
89 public virtual bool stop ();
91 public virtual bool unlock ();
93 public virtual bool unlock_stop ();
94 public Gst.ClockReturn wait_clock (Gst.ClockTime time, out Gst.ClockTimeDiff jitter);
95 public Gst.FlowReturn wait_eos (Gst.ClockTime time, out Gst.ClockTimeDiff jitter);
96 public Gst.FlowReturn wait_preroll ();
98 public bool @async { get; set; }
99 public uint blocksize { get; set; }
100 public Gst.Buffer last_buffer { get; }
101 public int64 max_lateness { get; set; }
103 public uint preroll_queue_len { get; set construct; }
105 public bool qos { get; set; }
106 public uint64 render_delay { get; set; }
107 public bool sync { get; set; }
108 public int64 ts_offset { get; set; }
110 [CCode (cheader_filename = "gst/base/gstbasesrc.h")]
111 public class BaseSrc : Gst.Element {
112 public bool can_activate_push;
113 public Gst.ClockID clock_id;
115 public Gst.ClockTime end_time;
116 public GLib.Cond live_cond;
117 public GLib.Mutex live_lock;
118 public bool live_running;
119 public bool need_newsegment;
120 public int num_buffers_left;
121 public uint64 offset;
122 public Gst.ActivateMode pad_mode;
123 public bool random_access;
124 public bool seekable;
125 public Gst.Segment segment;
127 public Gst.Pad srcpad;
128 [CCode (has_construct_function = false)]
129 protected BaseSrc ();
131 public virtual bool check_get_range ();
133 public virtual Gst.FlowReturn create (uint64 offset, uint size, out unowned Gst.Buffer buf);
135 public virtual bool do_seek (Gst.Segment segment);
137 public virtual bool event (Gst.Event event);
139 public virtual void fixate (Gst.Caps caps);
140 public ulong get_blocksize ();
142 public virtual unowned Gst.Caps get_caps ();
143 public bool get_do_timestamp ();
145 public virtual bool get_size (uint64 size);
147 public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
148 public bool is_live ();
150 public virtual bool is_seekable ();
152 public virtual bool negotiate ();
154 public virtual bool newsegment ();
156 public virtual bool prepare_seek_segment (Gst.Event seek, Gst.Segment segment);
158 public virtual bool query (Gst.Query query);
159 public bool query_latency (bool live, out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
160 [CCode (type = "gboolean", has_construct_function = false)]
161 public BaseSrc.seamless_segment (Gst.BaseSrc src, int64 start, int64 stop, int64 position);
162 public void set_blocksize (ulong blocksize);
164 public virtual bool set_caps (Gst.Caps caps);
165 public void set_do_timestamp (bool timestamp);
166 public void set_format (Gst.Format format);
167 public void set_live (bool live);
169 public virtual bool start ();
171 public virtual bool stop ();
173 public virtual bool unlock ();
175 public virtual bool unlock_stop ();
176 public Gst.FlowReturn wait_playing ();
177 public ulong blocksize { get; set; }
178 public bool do_timestamp { get; set; }
180 public int num_buffers { get; set; }
182 public bool typefind { get; set; }
184 [CCode (cheader_filename = "gst/base/gstbasetransform.h")]
185 public class BaseTransform : Gst.Element {
186 public bool always_in_place;
187 public Gst.Caps cache_caps1;
188 public uint cache_caps1_size;
189 public Gst.Caps cache_caps2;
190 public uint cache_caps2_size;
191 public bool delay_configure;
192 public bool have_newsegment;
193 public bool have_same_caps;
194 public bool negotiated;
195 public bool passthrough;
196 public bool pending_configure;
197 public Gst.Segment segment;
198 public Gst.Pad sinkpad;
199 public Gst.Pad srcpad;
200 public GLib.Mutex transform_lock;
201 public const string SINK_NAME;
202 public const string SRC_NAME;
203 [CCode (has_construct_function = false)]
204 protected BaseTransform ();
206 public virtual void before_transform (Gst.Buffer buffer);
208 public virtual bool event (Gst.Event event);
210 public virtual void fixate_caps (Gst.PadDirection direction, Gst.Caps caps, Gst.Caps othercaps);
212 public virtual bool get_unit_size (Gst.Caps caps, out uint size);
213 public bool is_in_place ();
214 public bool is_passthrough ();
215 public bool is_qos_enabled ();
217 public virtual Gst.FlowReturn prepare_output_buffer (Gst.Buffer input, int size, Gst.Caps caps, out unowned Gst.Buffer buf);
218 public void reconfigure ();
220 public virtual bool set_caps (Gst.Caps incaps, Gst.Caps outcaps);
221 public void set_gap_aware (bool gap_aware);
222 public void set_in_place (bool in_place);
223 public void set_passthrough (bool passthrough);
224 public void set_qos_enabled (bool enabled);
226 public virtual bool src_event (Gst.Event event);
228 public virtual bool start ();
230 public virtual bool stop ();
231 public void suggest (Gst.Caps caps, uint size);
233 public virtual Gst.FlowReturn transform (Gst.Buffer inbuf, Gst.Buffer outbuf);
235 public virtual Gst.Caps transform_caps (Gst.PadDirection direction, Gst.Caps caps);
237 public virtual Gst.FlowReturn transform_ip (Gst.Buffer buf);
239 public virtual bool transform_size (Gst.PadDirection direction, Gst.Caps caps, uint size, Gst.Caps othercaps, out uint othersize);
240 public void update_qos (double proportion, Gst.ClockTimeDiff diff, Gst.ClockTime timestamp);
242 public bool qos { get; set; }
245 [CCode (cheader_filename = "gst/base/gstbitreader.h")]
246 public class BitReader {
251 [CCode (has_construct_function = false)]
252 public BitReader (uchar data, uint size);
253 [CCode (has_construct_function = false)]
254 public BitReader.from_buffer (Gst.Buffer buffer);
255 public bool get_bits_uint16 (out uint16 val, uint nbits);
256 public bool get_bits_uint32 (out uint32 val, uint nbits);
257 public bool get_bits_uint64 (out uint64 val, uint nbits);
258 public bool get_bits_uint8 (out uchar val, uint nbits);
259 public uint get_pos ();
260 public uint get_remaining ();
261 public uint get_size ();
262 public void init (uchar data, uint size);
263 public void init_from_buffer (Gst.Buffer buffer);
264 public bool peek_bits_uint16 (out uint16 val, uint nbits);
265 public bool peek_bits_uint32 (out uint32 val, uint nbits);
266 public bool peek_bits_uint64 (out uint64 val, uint nbits);
267 public bool peek_bits_uint8 (out uchar val, uint nbits);
268 public bool set_pos (uint pos);
269 public bool skip (uint nbits);
270 public bool skip_to_byte ();
273 [CCode (cheader_filename = "gst/base/gstbytereader.h")]
274 public class ByteReader {
278 [CCode (has_construct_function = false)]
279 public ByteReader (uchar data, uint size);
280 public bool dup_data (uint size, uchar val);
281 public bool dup_string_utf16 (uint16 str);
282 public bool dup_string_utf32 (uint32 str);
283 public bool dup_string_utf8 (string str);
284 [CCode (has_construct_function = false)]
285 public ByteReader.from_buffer (Gst.Buffer buffer);
286 public bool get_data (uint size, out uchar val);
287 public bool get_float32_be (out float val);
288 public bool get_float32_le (out float val);
289 public bool get_float64_be (out double val);
290 public bool get_float64_le (out double val);
291 public bool get_int16_be (out int16 val);
292 public bool get_int16_le (out int16 val);
293 public bool get_int24_be (out int32 val);
294 public bool get_int24_le (out int32 val);
295 public bool get_int32_be (out int32 val);
296 public bool get_int32_le (out int32 val);
297 public bool get_int64_be (out int64 val);
298 public bool get_int64_le (out int64 val);
299 public bool get_int8 (out char val);
300 public uint get_pos ();
301 public uint get_remaining ();
302 public uint get_size ();
303 public bool get_string_utf8 (string str);
304 public bool get_uint16_be (out uint16 val);
305 public bool get_uint16_le (out uint16 val);
306 public bool get_uint24_be (out uint32 val);
307 public bool get_uint24_le (out uint32 val);
308 public bool get_uint32_be (out uint32 val);
309 public bool get_uint32_le (out uint32 val);
310 public bool get_uint64_be (out uint64 val);
311 public bool get_uint64_le (out uint64 val);
312 public bool get_uint8 (out uchar val);
313 public void init (uchar data, uint size);
314 public void init_from_buffer (Gst.Buffer buffer);
315 public uint masked_scan_uint32 (uint32 mask, uint32 pattern, uint offset, uint size);
316 public bool peek_data (uint size, out uchar val);
317 public bool peek_float32_be (out float val);
318 public bool peek_float32_le (out float val);
319 public bool peek_float64_be (out double val);
320 public bool peek_float64_le (out double val);
321 public bool peek_int16_be (out int16 val);
322 public bool peek_int16_le (out int16 val);
323 public bool peek_int24_be (out int32 val);
324 public bool peek_int24_le (out int32 val);
325 public bool peek_int32_be (out int32 val);
326 public bool peek_int32_le (out int32 val);
327 public bool peek_int64_be (out int64 val);
328 public bool peek_int64_le (out int64 val);
329 public bool peek_int8 (out char val);
330 public bool peek_string_utf8 (string str);
331 public bool peek_uint16_be (out uint16 val);
332 public bool peek_uint16_le (out uint16 val);
333 public bool peek_uint24_be (out uint32 val);
334 public bool peek_uint24_le (out uint32 val);
335 public bool peek_uint32_be (out uint32 val);
336 public bool peek_uint32_le (out uint32 val);
337 public bool peek_uint64_be (out uint64 val);
338 public bool peek_uint64_le (out uint64 val);
339 public bool peek_uint8 (out uchar val);
340 public bool set_pos (uint pos);
341 public bool skip (uint nbytes);
342 public bool skip_string_utf16 ();
343 public bool skip_string_utf32 ();
344 public bool skip_string_utf8 ();
347 [CCode (cheader_filename = "gst/base/gstbytewriter.h")]
348 public class ByteWriter : Gst.ByteReader {
349 public uint alloc_size;
352 [CCode (has_construct_function = false)]
353 public ByteWriter ();
354 public bool ensure_free_space (uint size);
355 public bool fill (uchar value, uint size);
356 public unowned Gst.Buffer free_and_get_buffer ();
357 public uchar free_and_get_data ();
358 public uint get_remaining ();
360 public void init_with_buffer (Gst.Buffer buffer, bool initialized);
361 public void init_with_data (uchar data, uint size, bool initialized);
362 public void init_with_size (uint size, bool fixed);
363 public bool put_data (uchar data, uint size);
364 public bool put_float32_be (float val);
365 public bool put_float32_le (float val);
366 public bool put_float64_be (double val);
367 public bool put_float64_le (double val);
368 public bool put_int16_be (int16 val);
369 public bool put_int16_le (int16 val);
370 public bool put_int24_be (int32 val);
371 public bool put_int24_le (int32 val);
372 public bool put_int32_be (int32 val);
373 public bool put_int32_le (int32 val);
374 public bool put_int64_be (int64 val);
375 public bool put_int64_le (int64 val);
376 public bool put_int8 (char val);
377 public bool put_string_utf16 (uint16 data);
378 public bool put_string_utf32 (uint32 data);
379 public bool put_string_utf8 (string data);
380 public bool put_uint16_be (uint16 val);
381 public bool put_uint16_le (uint16 val);
382 public bool put_uint24_be (uint32 val);
383 public bool put_uint24_le (uint32 val);
384 public bool put_uint32_be (uint32 val);
385 public bool put_uint32_le (uint32 val);
386 public bool put_uint64_be (uint64 val);
387 public bool put_uint64_le (uint64 val);
388 public bool put_uint8 (uchar val);
389 public void reset ();
390 public unowned Gst.Buffer reset_and_get_buffer ();
391 public uchar reset_and_get_data ();
392 [CCode (has_construct_function = false)]
393 public ByteWriter.with_buffer (Gst.Buffer buffer, bool initialized);
394 [CCode (has_construct_function = false)]
395 public ByteWriter.with_data (uchar data, uint size, bool initialized);
396 [CCode (has_construct_function = false)]
397 public ByteWriter.with_size (uint size, bool fixed);
400 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
401 public class CollectData {
402 public Gst.Buffer buffer;
403 public weak Gst.CollectPads collect;
406 public weak Gst.Segment segment;
408 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
409 public class CollectPads : Gst.Object {
410 public weak GLib.Cond cond;
411 public uint32 cookie;
412 public weak GLib.SList<Gst.CollectData> data;
414 public weak Gst.CollectPadsFunction func;
416 public uint queuedpads;
418 public void* user_data;
419 [CCode (has_construct_function = false)]
420 public CollectPads ();
421 public unowned Gst.CollectData add_pad (Gst.Pad pad, uint size);
422 public unowned Gst.CollectData add_pad_full (Gst.Pad pad, uint size, Gst.CollectDataDestroyNotify destroy_notify);
423 public uint available ();
424 public Gst.FlowReturn collect ();
425 public Gst.FlowReturn collect_range (uint64 offset, uint length);
426 public uint flush (Gst.CollectData data, uint size);
427 public bool is_active (Gst.Pad pad);
428 public unowned Gst.Buffer peek (Gst.CollectData data);
429 public unowned Gst.Buffer pop (Gst.CollectData data);
430 public uint read (Gst.CollectData data, uchar bytes, uint size);
431 public unowned Gst.Buffer read_buffer (Gst.CollectData data, uint size);
432 public bool remove_pad (Gst.Pad pad);
433 public void set_clip_function (Gst.CollectPadsClipFunction clipfunc);
434 public void set_flushing (bool flushing);
435 public void set_function (Gst.CollectPadsFunction func);
436 public void start ();
438 public Gst.Buffer take_buffer (Gst.CollectData data, uint size);
440 [CCode (cheader_filename = "gst/base/gstdataqueue.h")]
441 public class DataQueue : GLib.Object {
442 public void* checkdata;
443 public weak Gst.DataQueueCheckFullFunction checkfull;
444 public weak Gst.DataQueueSize cur_level;
445 public weak Gst.DataQueueEmptyCallback emptycallback;
446 public bool flushing;
447 public weak Gst.DataQueueFullCallback fullcallback;
448 public weak GLib.Cond item_add;
449 public weak GLib.Cond item_del;
450 public weak GLib.Mutex qlock;
451 public weak GLib.Queue queue;
452 [CCode (has_construct_function = false)]
453 public DataQueue (Gst.DataQueueCheckFullFunction checkfull, void* checkdata);
454 public bool drop_head (GLib.Type type);
455 public void flush ();
456 public void get_level (Gst.DataQueueSize level);
457 public bool is_empty ();
458 public bool is_full ();
459 public void limits_changed ();
460 [CCode (cname = "gst_data_queue_new_full", has_construct_function = false)]
461 public DataQueue.new_with_callbacks (Gst.DataQueueCheckFullFunction checkfull, Gst.DataQueueFullCallback fullcallback, Gst.DataQueueEmptyCallback emptycallback, void* checkdata);
462 public bool pop (out unowned Gst.DataQueueItem item);
463 public bool push (Gst.DataQueueItem item);
464 public void set_flushing (bool flushing);
466 public uint current_level_bytes { get; }
468 public uint64 current_level_time { get; }
470 public uint current_level_visible { get; }
471 public virtual signal void empty ();
472 public virtual signal void full ();
475 [CCode (cheader_filename = "gst/base/gstdataqueue.h")]
476 public class DataQueueItem {
477 public weak GLib.DestroyNotify destroy;
478 public uint64 duration;
479 public weak Gst.MiniObject object;
484 [CCode (cheader_filename = "gst/base/gstdataqueue.h")]
485 public class DataQueueSize {
490 [CCode (cheader_filename = "gst/base/gstpushsrc.h")]
491 public class PushSrc : Gst.BaseSrc {
492 [CCode (has_construct_function = false)]
493 protected PushSrc ();
495 public virtual Gst.FlowReturn create (out unowned Gst.Buffer buf);
497 [CCode (cprefix = "GST_BASE_SRC_", has_type_id = false, cheader_filename = "gst/base/gstbasesrc.h")]
498 public enum BaseSrcFlags {
502 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
503 public delegate void CollectDataDestroyNotify ();
504 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
505 public delegate unowned Gst.Buffer CollectPadsClipFunction (Gst.CollectPads pads, Gst.CollectData data, Gst.Buffer buffer);
506 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
507 public delegate Gst.FlowReturn CollectPadsFunction (Gst.CollectPads pads);
508 [CCode (cheader_filename = "gst/base/gstdataqueue.h", has_target = false)]
509 public delegate bool DataQueueCheckFullFunction (Gst.DataQueue queue, uint visible, uint bytes, uint64 time, void* checkdata);
510 [CCode (cheader_filename = "gst/base/gstdataqueue.h", has_target = false)]
511 public delegate void DataQueueEmptyCallback (Gst.DataQueue queue, void* checkdata);
512 [CCode (cheader_filename = "gst/base/gstdataqueue.h", has_target = false)]
513 public delegate void DataQueueFullCallback (Gst.DataQueue queue, void* checkdata);
514 [CCode (cheader_filename = "gst/base/gsttypefindhelper.h", has_target = false)]
515 public delegate Gst.FlowReturn TypeFindHelperGetRangeFunction (Gst.Object obj, uint64 offset, uint length, out unowned Gst.Buffer buffer);
516 [CCode (cheader_filename = "gst/base/gsttypefindhelper.h")]
517 public static unowned Gst.Caps type_find_helper (Gst.Pad src, uint64 size);
518 [CCode (cheader_filename = "gst/base/gsttypefindhelper.h")]
519 public static unowned Gst.Caps type_find_helper_for_buffer (Gst.Object obj, Gst.Buffer buf, Gst.TypeFindProbability prob);
520 [CCode (cheader_filename = "gst/base/gsttypefindhelper.h")]
521 public static Gst.Caps type_find_helper_for_extension (Gst.Object obj, string extension);
522 [CCode (cheader_filename = "gst/base/gsttypefindhelper.h")]
523 public static unowned Gst.Caps type_find_helper_get_range (Gst.Object obj, Gst.TypeFindHelperGetRangeFunction func, uint64 size, Gst.TypeFindProbability prob);
524 [CCode (cheader_filename = "gst/base/gsttypefindhelper.h")]
525 public static unowned Gst.Caps type_find_helper_get_range_ext (Gst.Object obj, Gst.TypeFindHelperGetRangeFunction func, uint64 size, string extension, Gst.TypeFindProbability prob);