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;
45 public virtual bool activate_pull (bool active);
47 public virtual Gst.StateChangeReturn async_play ();
49 public virtual Gst.FlowReturn buffer_alloc (uint64 offset, uint size, Gst.Caps caps, out unowned Gst.Buffer buf);
50 public Gst.FlowReturn do_preroll (Gst.MiniObject obj);
52 public virtual bool event (Gst.Event event);
54 public virtual void fixate (Gst.Caps caps);
55 public uint get_blocksize ();
57 public virtual unowned Gst.Caps get_caps ();
58 public unowned Gst.Buffer get_last_buffer ();
59 public Gst.ClockTime get_latency ();
60 public int64 get_max_lateness ();
61 public Gst.ClockTime get_render_delay ();
62 public bool get_sync ();
64 public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
65 public Gst.ClockTimeDiff get_ts_offset ();
66 public bool is_async_enabled ();
67 public bool is_qos_enabled ();
69 public virtual Gst.FlowReturn preroll (Gst.Buffer buffer);
70 public bool query_latency (bool live, bool upstream_live, out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
72 public virtual Gst.FlowReturn render (Gst.Buffer buffer);
74 public virtual Gst.FlowReturn render_list (Gst.BufferList buffer_list);
75 public void set_async_enabled (bool enabled);
76 public void set_blocksize (uint blocksize);
78 public virtual bool set_caps (Gst.Caps caps);
79 public void set_max_lateness (int64 max_lateness);
80 public void set_qos_enabled (bool enabled);
81 public void set_render_delay (Gst.ClockTime delay);
82 public void set_sync (bool sync);
83 public void set_ts_offset (Gst.ClockTimeDiff offset);
85 public virtual bool start ();
87 public virtual bool stop ();
89 public virtual bool unlock ();
91 public virtual bool unlock_stop ();
92 public Gst.ClockReturn wait_clock (Gst.ClockTime time, out Gst.ClockTimeDiff jitter);
93 public Gst.FlowReturn wait_eos (Gst.ClockTime time, out Gst.ClockTimeDiff jitter);
94 public Gst.FlowReturn wait_preroll ();
96 public bool @async { get; set; }
97 public uint blocksize { get; set; }
98 public Gst.Buffer last_buffer { get; }
99 public int64 max_lateness { get; set; }
101 public uint preroll_queue_len { get; set construct; }
103 public bool qos { get; set; }
104 public uint64 render_delay { get; set; }
105 public bool sync { get; set; }
106 public int64 ts_offset { get; set; }
108 [CCode (cheader_filename = "gst/base/gstbasesrc.h")]
109 public class BaseSrc : Gst.Element {
110 public bool can_activate_push;
111 public Gst.ClockID clock_id;
113 public Gst.ClockTime end_time;
114 public GLib.Cond live_cond;
115 public GLib.Mutex live_lock;
116 public bool live_running;
117 public bool need_newsegment;
118 public int num_buffers_left;
119 public uint64 offset;
120 public Gst.ActivateMode pad_mode;
121 public bool random_access;
122 public bool seekable;
123 public Gst.Segment segment;
125 public Gst.Pad srcpad;
127 public virtual bool check_get_range ();
129 public virtual Gst.FlowReturn create (uint64 offset, uint size, out unowned Gst.Buffer buf);
131 public virtual bool do_seek (Gst.Segment segment);
133 public virtual bool event (Gst.Event event);
135 public virtual void fixate (Gst.Caps caps);
136 public ulong get_blocksize ();
138 public virtual unowned Gst.Caps get_caps ();
139 public bool get_do_timestamp ();
141 public virtual bool get_size (uint64 size);
143 public virtual void get_times (Gst.Buffer buffer, out Gst.ClockTime start, out Gst.ClockTime end);
144 public bool is_live ();
146 public virtual bool is_seekable ();
148 public virtual bool negotiate ();
150 public virtual bool newsegment ();
152 public virtual bool prepare_seek_segment (Gst.Event seek, Gst.Segment segment);
154 public virtual bool query (Gst.Query query);
155 public bool query_latency (bool live, out Gst.ClockTime min_latency, out Gst.ClockTime max_latency);
156 public void set_blocksize (ulong blocksize);
158 public virtual bool set_caps (Gst.Caps caps);
159 public void set_do_timestamp (bool timestamp);
160 public void set_format (Gst.Format format);
161 public void set_live (bool live);
163 public virtual bool start ();
165 public virtual bool stop ();
167 public virtual bool unlock ();
169 public virtual bool unlock_stop ();
170 public Gst.FlowReturn wait_playing ();
171 public ulong blocksize { get; set; }
172 public bool do_timestamp { get; set; }
174 public int num_buffers { get; set; }
176 public bool typefind { get; set; }
178 [CCode (cheader_filename = "gst/base/gstbasetransform.h")]
179 public class BaseTransform : Gst.Element {
180 public bool always_in_place;
181 public Gst.Caps cache_caps1;
182 public uint cache_caps1_size;
183 public Gst.Caps cache_caps2;
184 public uint cache_caps2_size;
185 public bool delay_configure;
186 public bool have_newsegment;
187 public bool have_same_caps;
188 public bool negotiated;
189 public bool passthrough;
190 public bool pending_configure;
191 public Gst.Segment segment;
192 public Gst.Pad sinkpad;
193 public Gst.Pad srcpad;
194 public GLib.Mutex transform_lock;
195 public const string SINK_NAME;
196 public const string SRC_NAME;
198 public virtual void before_transform (Gst.Buffer buffer);
200 public virtual bool event (Gst.Event event);
202 public virtual void fixate_caps (Gst.PadDirection direction, Gst.Caps caps, Gst.Caps othercaps);
204 public virtual bool get_unit_size (Gst.Caps caps, out uint size);
205 public bool is_in_place ();
206 public bool is_passthrough ();
207 public bool is_qos_enabled ();
209 public virtual Gst.FlowReturn prepare_output_buffer (Gst.Buffer input, int size, Gst.Caps caps, out unowned Gst.Buffer buf);
210 public void reconfigure ();
212 public virtual bool set_caps (Gst.Caps incaps, Gst.Caps outcaps);
213 public void set_gap_aware (bool gap_aware);
214 public void set_in_place (bool in_place);
215 public void set_passthrough (bool passthrough);
216 public void set_qos_enabled (bool enabled);
218 public virtual bool src_event (Gst.Event event);
220 public virtual bool start ();
222 public virtual bool stop ();
223 public void suggest (Gst.Caps caps, uint size);
225 public virtual Gst.FlowReturn transform (Gst.Buffer inbuf, Gst.Buffer outbuf);
227 public virtual unowned Gst.Caps transform_caps (Gst.PadDirection direction, Gst.Caps caps);
229 public virtual Gst.FlowReturn transform_ip (Gst.Buffer buf);
231 public virtual bool transform_size (Gst.PadDirection direction, Gst.Caps caps, uint size, Gst.Caps othercaps, out uint othersize);
232 public void update_qos (double proportion, Gst.ClockTimeDiff diff, Gst.ClockTime timestamp);
234 public bool qos { get; set; }
237 [CCode (cheader_filename = "gst/gst.h")]
238 public class BitReader {
243 [CCode (has_construct_function = false)]
244 public BitReader (uchar data, uint size);
245 [CCode (has_construct_function = false)]
246 public BitReader.from_buffer (Gst.Buffer buffer);
247 public bool get_bits_uint16 (out uint16 val, uint nbits);
248 public bool get_bits_uint32 (out uint32 val, uint nbits);
249 public bool get_bits_uint64 (out uint64 val, uint nbits);
250 public bool get_bits_uint8 (out uchar val, uint nbits);
251 public uint get_pos ();
252 public uint get_remaining ();
253 public void init (uchar data, uint size);
254 public void init_from_buffer (Gst.Buffer buffer);
255 public bool peek_bits_uint16 (out uint16 val, uint nbits);
256 public bool peek_bits_uint32 (out uint32 val, uint nbits);
257 public bool peek_bits_uint64 (out uint64 val, uint nbits);
258 public bool peek_bits_uint8 (out uchar val, uint nbits);
259 public bool set_pos (uint pos);
260 public bool skip (uint nbits);
261 public bool skip_to_byte ();
264 [CCode (cheader_filename = "gst/gst.h")]
265 public class ByteReader {
269 [CCode (has_construct_function = false)]
270 public ByteReader (uchar data, uint size);
271 public bool dup_data (uint size, uchar val);
272 public bool dup_string_utf16 (uint16 str);
273 public bool dup_string_utf32 (uint32 str);
274 public bool dup_string_utf8 (string str);
275 [CCode (has_construct_function = false)]
276 public ByteReader.from_buffer (Gst.Buffer buffer);
277 public bool get_data (uint size, out uchar val);
278 public bool get_float32_be (out float val);
279 public bool get_float32_le (out float val);
280 public bool get_float64_be (out double val);
281 public bool get_float64_le (out double val);
282 public bool get_int16_be (out int16 val);
283 public bool get_int16_le (out int16 val);
284 public bool get_int24_be (out int32 val);
285 public bool get_int24_le (out int32 val);
286 public bool get_int32_be (out int32 val);
287 public bool get_int32_le (out int32 val);
288 public bool get_int64_be (out int64 val);
289 public bool get_int64_le (out int64 val);
290 public bool get_int8 (out char val);
291 public uint get_pos ();
292 public uint get_remaining ();
293 public bool get_string_utf8 (string str);
294 public bool get_uint16_be (out uint16 val);
295 public bool get_uint16_le (out uint16 val);
296 public bool get_uint24_be (out uint32 val);
297 public bool get_uint24_le (out uint32 val);
298 public bool get_uint32_be (out uint32 val);
299 public bool get_uint32_le (out uint32 val);
300 public bool get_uint64_be (out uint64 val);
301 public bool get_uint64_le (out uint64 val);
302 public bool get_uint8 (out uchar val);
303 public void init (uchar data, uint size);
304 public void init_from_buffer (Gst.Buffer buffer);
305 public uint masked_scan_uint32 (uint32 mask, uint32 pattern, uint offset, uint size);
306 public bool peek_data (uint size, out uchar val);
307 public bool peek_float32_be (out float val);
308 public bool peek_float32_le (out float val);
309 public bool peek_float64_be (out double val);
310 public bool peek_float64_le (out double val);
311 public bool peek_int16_be (out int16 val);
312 public bool peek_int16_le (out int16 val);
313 public bool peek_int24_be (out int32 val);
314 public bool peek_int24_le (out int32 val);
315 public bool peek_int32_be (out int32 val);
316 public bool peek_int32_le (out int32 val);
317 public bool peek_int64_be (out int64 val);
318 public bool peek_int64_le (out int64 val);
319 public bool peek_int8 (out char val);
320 public bool peek_string_utf8 (string str);
321 public bool peek_uint16_be (out uint16 val);
322 public bool peek_uint16_le (out uint16 val);
323 public bool peek_uint24_be (out uint32 val);
324 public bool peek_uint24_le (out uint32 val);
325 public bool peek_uint32_be (out uint32 val);
326 public bool peek_uint32_le (out uint32 val);
327 public bool peek_uint64_be (out uint64 val);
328 public bool peek_uint64_le (out uint64 val);
329 public bool peek_uint8 (out uchar val);
330 public bool set_pos (uint pos);
331 public bool skip (uint nbytes);
332 public bool skip_string_utf16 ();
333 public bool skip_string_utf32 ();
334 public bool skip_string_utf8 ();
337 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
338 public class CollectData {
339 public Gst.Buffer buffer;
340 public weak Gst.CollectPads collect;
343 public weak Gst.Segment segment;
345 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
346 public class CollectPads : Gst.Object {
347 public weak GLib.Cond cond;
348 public uint32 cookie;
349 public weak GLib.SList<Gst.CollectData> data;
351 public weak Gst.CollectPadsFunction func;
353 public uint queuedpads;
355 public void* user_data;
356 [CCode (has_construct_function = false)]
357 public CollectPads ();
358 public unowned Gst.CollectData add_pad (Gst.Pad pad, uint size);
359 public unowned Gst.CollectData add_pad_full (Gst.Pad pad, uint size, Gst.CollectDataDestroyNotify destroy_notify);
360 public uint available ();
361 public Gst.FlowReturn collect ();
362 public Gst.FlowReturn collect_range (uint64 offset, uint length);
363 public uint flush (Gst.CollectData data, uint size);
364 public bool is_active (Gst.Pad pad);
365 public unowned Gst.Buffer peek (Gst.CollectData data);
366 public unowned Gst.Buffer pop (Gst.CollectData data);
367 public uint read (Gst.CollectData data, uchar bytes, uint size);
368 public unowned Gst.Buffer read_buffer (Gst.CollectData data, uint size);
369 public bool remove_pad (Gst.Pad pad);
370 public void set_flushing (bool flushing);
371 public void set_function (Gst.CollectPadsFunction func);
372 public void start ();
374 public Gst.Buffer take_buffer (Gst.CollectData data, uint size);
376 [CCode (cheader_filename = "gst/base/gstdataqueue.h")]
377 public class DataQueue : GLib.Object {
378 public void* checkdata;
379 public weak Gst.DataQueueCheckFullFunction checkfull;
380 public weak Gst.DataQueueSize cur_level;
381 public bool flushing;
382 public weak GLib.Cond item_add;
383 public weak GLib.Cond item_del;
384 public weak GLib.Mutex qlock;
385 public weak GLib.Queue queue;
386 [CCode (has_construct_function = false)]
387 public DataQueue (Gst.DataQueueCheckFullFunction checkfull, void* checkdata);
388 public bool drop_head (GLib.Type type);
389 public void flush ();
390 public void get_level (Gst.DataQueueSize level);
391 public bool is_empty ();
392 public bool is_full ();
393 public void limits_changed ();
394 public bool pop (out unowned Gst.DataQueueItem item);
395 public bool push (Gst.DataQueueItem item);
396 public void set_flushing (bool flushing);
398 public uint current_level_bytes { get; }
400 public uint64 current_level_time { get; }
402 public uint current_level_visible { get; }
403 public virtual signal void empty ();
404 public virtual signal void full ();
407 [CCode (cheader_filename = "gst/base/gstdataqueue.h")]
408 public class DataQueueItem {
409 public weak GLib.DestroyNotify destroy;
410 public uint64 duration;
411 public weak Gst.MiniObject object;
416 [CCode (cheader_filename = "gst/base/gstdataqueue.h")]
417 public class DataQueueSize {
422 [CCode (cheader_filename = "gst/base/gstpushsrc.h")]
423 public class PushSrc : Gst.BaseSrc {
425 public virtual Gst.FlowReturn create (out unowned Gst.Buffer buf);
427 [CCode (cprefix = "GST_BASE_SRC_", has_type_id = "0", cheader_filename = "gst/gst.h")]
428 public enum BaseSrcFlags {
432 [CCode (cheader_filename = "gst/base/gstcollectpads.h")]
433 public delegate void CollectDataDestroyNotify ();
434 [CCode (cheader_filename = "gst/gst.h")]
435 public delegate Gst.FlowReturn CollectPadsFunction (Gst.CollectPads pads);
436 [CCode (cheader_filename = "gst/base/gstdataqueue.h", has_target = false)]
437 public delegate bool DataQueueCheckFullFunction (Gst.DataQueue queue, uint visible, uint bytes, uint64 time, void* checkdata);
438 [CCode (cheader_filename = "gst/base/gsttypefindhelper.h", has_target = false)]
439 public delegate Gst.FlowReturn TypeFindHelperGetRangeFunction (Gst.Object obj, uint64 offset, uint length, out unowned Gst.Buffer buffer);
440 [CCode (cheader_filename = "gst/gst.h")]
441 public static unowned Gst.Caps type_find_helper (Gst.Pad src, uint64 size);
442 [CCode (cheader_filename = "gst/gst.h")]
443 public static unowned Gst.Caps type_find_helper_for_buffer (Gst.Object obj, Gst.Buffer buf, Gst.TypeFindProbability prob);
444 [CCode (cheader_filename = "gst/gst.h")]
445 public static Gst.Caps type_find_helper_for_extension (Gst.Object obj, string extension);
446 [CCode (cheader_filename = "gst/gst.h")]
447 public static unowned Gst.Caps type_find_helper_get_range (Gst.Object obj, Gst.TypeFindHelperGetRangeFunction func, uint64 size, Gst.TypeFindProbability prob);