summaryrefslogtreecommitdiff
path: root/vapi/metadata/Gst-1.0-custom.vala
blob: 1471ed8c91b8f5785357a11de803d0524f8187d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
namespace Gst {
	namespace Debug {
		[CCode (cheader_filename = "gst/gst.h", cname = "GST_DEBUG_BIN_TO_DOT_FILE")]
		public static void BIN_TO_DOT_FILE (Gst.Bin bin, Gst.DebugGraphDetails details, string file_name);
		[CCode (cheader_filename = "gst/gst.h", cname = "GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS")]
		public static void BIN_TO_DOT_FILE_WITH_TS (Gst.Bin bin, Gst.DebugGraphDetails details, string file_name);
	}

	[Compact, CCode (copy_function = "gst_allocation_params_copy", free_function = "gst_allocation_params_free", type_id = "gst_allocation_params_get_type ()")]
	public class AllocationParams {
	}

	[CCode (type_id = "gst_bin_get_type ()")]
	public class Bin : Gst.Element {
		public void add_many (params Gst.Element[] elements);
		public void remove_many (params Gst.Element[] elements);
  }

	[Compact, CCode (ref_function = "gst_buffer_ref", type_id = "gst_buffer_get_type ()", unref_function = "gst_buffer_unref")]
	public class Buffer {
		[CCode (has_construct_function = false, simple_generics = true)]
		public static Buffer new_wrapped_full<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "maxsize", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, size_t offset, size_t size, owned T user_data);
		[CCode (instance_pos= 1.9)]
		public bool copy_into (Gst.Buffer dst, Gst.BufferCopyFlags flags, size_t offset, size_t size);
	}

	[Compact, CCode (ref_function = "gst_buffer_list_ref", type_id = "gst_buffer_list_get_type ()", unref_function = "gst_buffer_list_unref")]
	public class BufferList {
	}

	[Compact, CCode (ref_function = "gst_caps_ref", type_id = "gst_caps_get_type ()", unref_function = "gst_caps_unref")]
	public class Caps {
		[CCode (has_construct_function = false)]
		public Caps.full (params Gst.Structure[] structure);
	}

	[Compact, CCode (copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gst_caps_features_get_type ()")]
	public class CapsFeatures {
		[CCode (has_construct_function = false)]
		public CapsFeatures.id (params GLib.Quark[] features);
	}

	[CCode (type_id = "gst_control_binding_get_type ()")]
	public abstract class ControlBinding : Gst.Object {
		public virtual bool get_value_array<T> (Gst.ClockTime timestamp, Gst.ClockTime interval, [CCode (array_length_pos = 2.5, array_length_type = "guint")] T[] values);
	}

	[Compact, CCode (ref_function = "gst_date_time_ref", type_id = "gst_date_time_get_type ()", unref_function = "gst_date_time_unref")]
	public class DateTime {
	}

	[CCode (type_id = "gst_element_get_type ()")]
	public abstract class Element : Gst.Object {
		public bool link_many (params Gst.Element[] elements);
		public void unlink_many (params Gst.Element[] elements);
  }

	[Compact, CCode (ref_function = "gst_event_ref", type_id = "gst_event_get_type ()", unref_function = "gst_event_unref")]
	public class Event {
	}

	[Compact, CCode (copy_function = "gst_iterator_copy", free_function = "gst_iterator_free", type_id = "gst_iterator_get_type ()")]
	public class Iterator {
		[CCode (simple_generics = true)]
		public Gst.Iterator filter<T> ([CCode (type = "GCompareFunc")] GLib.SearchFunc<GLib.Value?,T> func, T user_data);
		[CCode (simple_generics = true)]
		public bool find_custom<T> ([CCode (type = "GCompareFunc")] GLib.SearchFunc<GLib.Value?,T> func, out GLib.Value elem, T user_data);
	}

	[Compact, CCode (ref_function = "gst_mini_object_ref", unref_function = "gst_mini_object_unref", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", take_value_function = "g_value_take_boxed", type_id = "G_TYPE_BOXED")]
	public abstract class MiniObject {
		[CCode (simple_generics = true)]
		public T get_qdata<T> (GLib.Quark quark);
		[CCode (simple_generics = true)]
		public void set_qdata<T> (GLib.Quark quark, owned T data);
	}

	[Compact, CCode (ref_function = "gst_memory_ref", type_id = "gst_memory_get_type ()", unref_function = "gst_memory_unref")]
	public class Memory {
		[CCode (has_construct_function = false, simple_generics = true)]
		public static Memory new_wrapped<T> (Gst.MemoryFlags flags, [CCode (array_length_cname = "maxsize", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data, size_t offset, size_t size, owned T user_data);
	}

	[Compact, CCode (ref_function = "gst_message_ref", type_id = "gst_message_get_type ()", unref_function = "gst_message_unref")]
	public class Message {
	}

	[Compact, CCode (free_function = "gst_parse_context_free", type_id = "gst_parse_context_get_type ()")]
	public class ParseContext {
	}

	[Compact, CCode (ref_function = "gst_promise_ref", type_id = "gst_promise_get_type ()", unref_function = "gst_promise_unref")]
	public class Promise {
	}

	[Compact, CCode (ref_function = "gst_query_ref", type_id = "gst_query_get_type ()", unref_function = "gst_query_unref")]
	public class Query {
    [CCode (sentinel = "")]
    public void set_formats (int n_formats, params Gst.Format[] formats);
	}

	[Compact, CCode (ref_function = "gst_sample_ref", type_id = "gst_sample_get_type ()", unref_function = "gst_sample_unref")]
	public class Sample {
	}

	[Compact, CCode (copy_function = "gst_segment_copy", free_function = "gst_segment_free", type_id = "gst_segment_get_type ()")]
	public class Segment {
	}

	[Compact, CCode (copy_function = "gst_structure_copy", free_function = "gst_structure_free", type_id = "gst_structure_get_type ()")]
	public class Structure {
		public void remove_fields (params string[] field_names);
	}

	[Compact, CCode (ref_function = "gst_tag_list_ref", type_id = "gst_tag_list_get_type ()", unref_function = "gst_tag_list_unref")]
	public class TagList {
	}

	[Compact, CCode (ref_function = "gst_toc_ref", type_id = "gst_toc_get_type ()", unref_function = "gst_toc_unref")]
	public class Toc {
	}

	[Compact, CCode (ref_function = "gst_toc_entry_ref", type_id = "gst_toc_entry_get_type ()", unref_function = "gst_toc_entry_unref")]
	public class TocEntry {
	}

	[Compact, CCode (ref_function = "gst_atomic_queue_ref", type_id = "gst_atomic_queue_get_type ()", unref_function = "gst_atomic_queue_unref")]
	public class AtomicQueue<T> {
		public unowned T? peek<T> ();
		public T pop ();
		public void push (owned T data);
	}

	[CCode (cheader_filename = "gst/gst.h", cname = "GST_TIME_ARGS", use_inplace = true)]
	public static uint TIME_ARGS (Gst.ClockTime t);
	[CCode (cheader_filename = "gst/gst.h", cname = "GST_STIME_ARGS", use_inplace = true)]
	public static uint STIME_ARGS (Gst.ClockTimeDiff t);
}