Release 0.7.8
[vala-lang.git] / vapi / gstreamer-interfaces-0.10.vapi
blobc8c97a5eefda2197cc78425c4fb3e4d91c97dc8b
1 /* gstreamer-interfaces-0.10.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gst", lower_case_cprefix = "gst_")]
4 namespace Gst {
5         [CCode (cheader_filename = "gst/interfaces/colorbalance.h")]
6         public class ColorBalanceChannel : GLib.Object {
7                 public weak string label;
8                 public int max_value;
9                 public int min_value;
10                 public virtual signal void value_changed (int value);
11         }
12         [CCode (cheader_filename = "gst/interfaces/mixer.h")]
13         public class MixerOptions : Gst.MixerTrack {
14                 public unowned GLib.List<string> get_values ();
15                 public static void list_changed (Gst.Mixer mixer, Gst.MixerOptions opts);
16         }
17         [CCode (cheader_filename = "gst/interfaces/mixer.h")]
18         public class MixerTrack : GLib.Object {
19                 [NoAccessorMethod]
20                 public uint flags { get; }
21                 [NoAccessorMethod]
22                 public uint index { get; construct; }
23                 [NoAccessorMethod]
24                 public string label { owned get; }
25                 [NoAccessorMethod]
26                 public int max_volume { get; }
27                 [NoAccessorMethod]
28                 public int min_volume { get; }
29                 [NoAccessorMethod]
30                 public int num_channels { get; }
31                 [NoAccessorMethod]
32                 public string untranslated_label { owned get; construct; }
33         }
34         [Compact]
35         [CCode (cheader_filename = "gst/gst.h")]
36         public class PhotoSettings {
37                 public uint aperture;
38                 public float ev_compensation;
39                 public uint32 exposure;
40                 public Gst.FlashMode flash_mode;
41                 public uint iso_speed;
42                 public Gst.SceneMode scene_mode;
43                 public Gst.ColourToneMode tone_mode;
44                 public Gst.WhiteBalanceMode wb_mode;
45                 public float zoom;
46         }
47         [Compact]
48         [CCode (cheader_filename = "gst/gst.h")]
49         public class Photography {
50                 public bool get_aperture (uint aperture);
51                 public Gst.PhotoCaps get_capabilities ();
52                 public bool get_colour_tone_mode (Gst.ColourToneMode tone_mode);
53                 public bool get_config (Gst.PhotoSettings config);
54                 public bool get_ev_compensation (float ev_comp);
55                 public bool get_exposure (uint32 exposure);
56                 public bool get_flash_mode (Gst.FlashMode flash_mode);
57                 public bool get_iso_speed (uint iso_speed);
58                 public bool get_scene_mode (Gst.SceneMode scene_mode);
59                 public bool get_white_balance_mode (Gst.WhiteBalanceMode wb_mode);
60                 public bool get_zoom (float zoom);
61                 public bool prepare_for_capture (Gst.PhotoCapturePrepared func, Gst.Caps capture_caps);
62                 public bool set_aperture (uint aperture);
63                 public void set_autofocus (bool on);
64                 public bool set_colour_tone_mode (Gst.ColourToneMode tone_mode);
65                 public bool set_config (Gst.PhotoSettings config);
66                 public bool set_ev_compensation (float ev_comp);
67                 public bool set_exposure (uint exposure);
68                 public bool set_flash_mode (Gst.FlashMode flash_mode);
69                 public bool set_iso_speed (uint iso_speed);
70                 public bool set_scene_mode (Gst.SceneMode scene_mode);
71                 public bool set_white_balance_mode (Gst.WhiteBalanceMode wb_mode);
72                 public bool set_zoom (float zoom);
73         }
74         [CCode (cheader_filename = "gst/interfaces/tuner.h")]
75         public class TunerChannel : GLib.Object {
76                 public Gst.TunerChannelFlags flags;
77                 public float freq_multiplicator;
78                 public weak string label;
79                 public ulong max_frequency;
80                 public int max_signal;
81                 public ulong min_frequency;
82                 public int min_signal;
83                 public static void changed (Gst.Tuner tuner, Gst.TunerChannel channel);
84                 public virtual signal void frequency_changed (ulong frequency);
85                 public virtual signal void signal_changed (int @signal);
86         }
87         [CCode (cheader_filename = "gst/interfaces/tuner.h")]
88         public class TunerNorm : GLib.Object {
89                 public Gst.Value framerate;
90                 public weak string label;
91                 public static void changed (Gst.Tuner tuner, Gst.TunerNorm norm);
92         }
93         [CCode (cheader_filename = "gst/interfaces/colorbalance.h")]
94         public interface ColorBalance : Gst.ImplementsInterface, Gst.Element {
95                 public Gst.ColorBalanceType get_balance_type ();
96                 public abstract int get_value (Gst.ColorBalanceChannel channel);
97                 public abstract unowned GLib.List<Gst.ColorBalanceChannel> list_channels ();
98                 public abstract void set_value (Gst.ColorBalanceChannel channel, int value);
99                 [HasEmitter]
100                 public signal void value_changed (Gst.ColorBalanceChannel channel, int value);
101         }
102         [CCode (cheader_filename = "gst/interfaces/mixer.h")]
103         public interface Mixer : Gst.ImplementsInterface, Gst.Element {
104                 public abstract Gst.MixerFlags get_mixer_flags ();
105                 public Gst.MixerType get_mixer_type ();
106                 public abstract unowned string get_option (Gst.MixerOptions opts);
107                 public abstract void get_volume (Gst.MixerTrack track, int volumes);
108                 public abstract unowned GLib.List<Gst.MixerTrack> list_tracks ();
109                 public static Gst.MixerMessageType message_get_type (Gst.Message message);
110                 public static void message_parse_mute_toggled (Gst.Message message, out unowned Gst.MixerTrack track, bool mute);
111                 public static void message_parse_option_changed (Gst.Message message, out unowned Gst.MixerOptions options, string value);
112                 public static void message_parse_options_list_changed (Gst.Message message, out unowned Gst.MixerOptions options);
113                 public static void message_parse_record_toggled (Gst.Message message, out unowned Gst.MixerTrack track, bool record);
114                 public static void message_parse_volume_changed (Gst.Message message, out unowned Gst.MixerTrack track, int volumes, int num_channels);
115                 public void mixer_changed ();
116                 public abstract void set_mute (Gst.MixerTrack track, bool mute);
117                 public abstract void set_option (Gst.MixerOptions opts, string value);
118                 public abstract void set_record (Gst.MixerTrack track, bool record);
119                 public abstract void set_volume (Gst.MixerTrack track, int volumes);
120                 [HasEmitter]
121                 public signal void mute_toggled (Gst.MixerTrack channel, bool mute);
122                 [HasEmitter]
123                 public signal void option_changed (Gst.MixerOptions opts, string option);
124                 [HasEmitter]
125                 public signal void record_toggled (Gst.MixerTrack channel, bool record);
126                 [HasEmitter]
127                 public signal void volume_changed (Gst.MixerTrack channel, void* volumes);
128         }
129         [CCode (cheader_filename = "gst/interfaces/navigation.h")]
130         public interface Navigation : Gst.Element {
131                 public static Gst.NavigationEventType event_get_type (Gst.Event event);
132                 public static bool event_parse_command (Gst.Event event, Gst.NavigationCommand command);
133                 public static bool event_parse_key_event (Gst.Event event, string key);
134                 public static bool event_parse_mouse_button_event (Gst.Event event, int button, double x, double y);
135                 public static bool event_parse_mouse_move_event (Gst.Event event, double x, double y);
136                 public static Gst.NavigationMessageType message_get_type (Gst.Message message);
137                 public static unowned Gst.Message message_new_angles_changed (Gst.Object src, uint cur_angle, uint n_angles);
138                 public static unowned Gst.Message message_new_commands_changed (Gst.Object src);
139                 public static unowned Gst.Message message_new_mouse_over (Gst.Object src, bool active);
140                 public static bool message_parse_angles_changed (Gst.Message message, uint cur_angle, uint n_angles);
141                 public static bool message_parse_mouse_over (Gst.Message message, bool active);
142                 public static Gst.NavigationQueryType query_get_type (Gst.Query query);
143                 public static unowned Gst.Query query_new_angles ();
144                 public static unowned Gst.Query query_new_commands ();
145                 public static bool query_parse_angles (Gst.Query query, uint cur_angle, uint n_angles);
146                 public static bool query_parse_commands_length (Gst.Query query, uint n_cmds);
147                 public static bool query_parse_commands_nth (Gst.Query query, uint nth, Gst.NavigationCommand cmd);
148                 public static void query_set_angles (Gst.Query query, uint cur_angle, uint n_angles);
149                 public static void query_set_commands (Gst.Query query, int n_cmds);
150                 public static void query_set_commandsv (Gst.Query query, int n_cmds, Gst.NavigationCommand cmds);
151                 public void send_command (Gst.NavigationCommand command);
152                 public abstract void send_event (Gst.Structure structure);
153                 public void send_key_event (string event, string key);
154                 public void send_mouse_event (string event, int button, double x, double y);
155         }
156         [CCode (cheader_filename = "gst/interfaces/propertyprobe.h")]
157         public interface PropertyProbe {
158                 public abstract unowned GLib.List<string> get_properties ();
159                 public unowned GLib.ParamSpec get_property (string name);
160                 public abstract unowned GLib.ValueArray get_values (GLib.ParamSpec pspec);
161                 public unowned GLib.ValueArray get_values_name (string name);
162                 public abstract bool needs_probe (GLib.ParamSpec pspec);
163                 public bool needs_probe_name (string name);
164                 public unowned GLib.ValueArray probe_and_get_values (GLib.ParamSpec pspec);
165                 public unowned GLib.ValueArray probe_and_get_values_name (string name);
166                 public abstract void probe_property (GLib.ParamSpec pspec);
167                 public void probe_property_name (string name);
168                 public signal void probe_needed (void* pspec);
169         }
170         [CCode (cheader_filename = "gst/interfaces/tuner.h")]
171         public interface Tuner : Gst.ImplementsInterface, Gst.Element {
172                 public unowned Gst.TunerChannel find_channel_by_name (string channel);
173                 public unowned Gst.TunerNorm find_norm_by_name (string norm);
174                 public abstract unowned Gst.TunerChannel get_channel ();
175                 public abstract ulong get_frequency (Gst.TunerChannel channel);
176                 public abstract unowned Gst.TunerNorm get_norm ();
177                 public abstract unowned GLib.List<Gst.TunerChannel> list_channels ();
178                 public abstract unowned GLib.List<Gst.TunerNorm> list_norms ();
179                 public abstract void set_channel (Gst.TunerChannel channel);
180                 public abstract void set_frequency (Gst.TunerChannel channel, ulong frequency);
181                 public abstract void set_norm (Gst.TunerNorm norm);
182                 public abstract int signal_strength (Gst.TunerChannel channel);
183                 public signal void channel_changed (Gst.TunerChannel channel);
184                 [HasEmitter]
185                 public signal void frequency_changed (Gst.TunerChannel channel, ulong frequency);
186                 public signal void norm_changed (Gst.TunerNorm norm);
187                 [HasEmitter]
188                 public signal void signal_changed (Gst.TunerChannel channel, int @signal);
189         }
190         [CCode (cheader_filename = "gst/interfaces/videoorientation.h")]
191         public interface VideoOrientation : Gst.ImplementsInterface, Gst.Element {
192                 public abstract bool get_hcenter (int center);
193                 public abstract bool get_hflip (bool flip);
194                 public abstract bool get_vcenter (int center);
195                 public abstract bool get_vflip (bool flip);
196                 public abstract bool set_hcenter (int center);
197                 public abstract bool set_hflip (bool flip);
198                 public abstract bool set_vcenter (int center);
199                 public abstract bool set_vflip (bool flip);
200         }
201         [CCode (cheader_filename = "gst/interfaces/xoverlay.h", lower_case_csuffix = "x_overlay")]
202         public interface XOverlay : Gst.ImplementsInterface, Gst.Element {
203                 public abstract void expose ();
204                 public void got_xwindow_id (ulong xwindow_id);
205                 public abstract void handle_events (bool handle_events);
206                 public void prepare_xwindow_id ();
207                 public abstract void set_xwindow_id (ulong xwindow_id);
208         }
209         [CCode (cprefix = "GST_COLOR_BALANCE_", cheader_filename = "gst/interfaces/colorbalance.h")]
210         public enum ColorBalanceType {
211                 HARDWARE,
212                 SOFTWARE
213         }
214         [CCode (cprefix = "GST_PHOTOGRAPHY_COLOUR_TONE_MODE_", has_type_id = "0", cheader_filename = "gst/gst.h")]
215         public enum ColourToneMode {
216                 NORMAL,
217                 SEPIA,
218                 NEGATIVE,
219                 GRAYSCALE,
220                 NATURAL,
221                 VIVID,
222                 COLORSWAP,
223                 SOLARIZE,
224                 OUT_OF_FOCUS
225         }
226         [CCode (cprefix = "GST_PHOTOGRAPHY_FLASH_MODE_", has_type_id = "0", cheader_filename = "gst/gst.h")]
227         public enum FlashMode {
228                 AUTO,
229                 OFF,
230                 ON,
231                 FILL_IN,
232                 RED_EYE
233         }
234         [CCode (cprefix = "GST_PHOTOGRAPHY_FOCUS_STATUS_", has_type_id = "0", cheader_filename = "gst/gst.h")]
235         public enum FocusStatus {
236                 NONE,
237                 RUNNING,
238                 FAIL,
239                 SUCCESS
240         }
241         [CCode (cprefix = "GST_MIXER_FLAG_", cheader_filename = "gst/interfaces/mixer.h")]
242         [Flags]
243         public enum MixerFlags {
244                 NONE,
245                 AUTO_NOTIFICATIONS,
246                 HAS_WHITELIST,
247                 GROUPING
248         }
249         [CCode (cprefix = "GST_MIXER_MESSAGE_", cheader_filename = "gst/interfaces/mixer.h")]
250         public enum MixerMessageType {
251                 INVALID,
252                 MUTE_TOGGLED,
253                 RECORD_TOGGLED,
254                 VOLUME_CHANGED,
255                 OPTION_CHANGED,
256                 OPTIONS_LIST_CHANGED,
257                 MIXER_CHANGED
258         }
259         [CCode (cprefix = "GST_MIXER_TRACK_", cheader_filename = "gst/interfaces/mixertrack.h")]
260         [Flags]
261         public enum MixerTrackFlags {
262                 INPUT,
263                 OUTPUT,
264                 MUTE,
265                 RECORD,
266                 MASTER,
267                 SOFTWARE,
268                 NO_RECORD,
269                 NO_MUTE,
270                 WHITELIST
271         }
272         [CCode (cprefix = "GST_MIXER_", cheader_filename = "gst/interfaces/mixer.h")]
273         public enum MixerType {
274                 HARDWARE,
275                 SOFTWARE
276         }
277         [CCode (cprefix = "GST_NAVIGATION_COMMAND_", cheader_filename = "gst/gst.h")]
278         public enum NavigationCommand {
279                 INVALID,
280                 MENU1,
281                 MENU2,
282                 MENU3,
283                 MENU4,
284                 MENU5,
285                 MENU6,
286                 MENU7,
287                 LEFT,
288                 RIGHT,
289                 UP,
290                 DOWN,
291                 ACTIVATE,
292                 PREV_ANGLE,
293                 NEXT_ANGLE
294         }
295         [CCode (cprefix = "GST_NAVIGATION_EVENT_", cheader_filename = "gst/gst.h")]
296         public enum NavigationEventType {
297                 INVALID,
298                 KEY_PRESS,
299                 KEY_RELEASE,
300                 MOUSE_BUTTON_PRESS,
301                 MOUSE_BUTTON_RELEASE,
302                 MOUSE_MOVE,
303                 COMMAND
304         }
305         [CCode (cprefix = "GST_NAVIGATION_MESSAGE_", cheader_filename = "gst/gst.h")]
306         public enum NavigationMessageType {
307                 INVALID,
308                 MOUSE_OVER,
309                 COMMANDS_CHANGED,
310                 ANGLES_CHANGED
311         }
312         [CCode (cprefix = "GST_NAVIGATION_QUERY_", cheader_filename = "gst/gst.h")]
313         public enum NavigationQueryType {
314                 INVALID,
315                 COMMANDS,
316                 ANGLES
317         }
318         [CCode (cprefix = "GST_PHOTOGRAPHY_CAPS_", has_type_id = "0", cheader_filename = "gst/gst.h")]
319         public enum PhotoCaps {
320                 NONE,
321                 EV_COMP,
322                 ISO_SPEED,
323                 WB_MODE,
324                 TONE,
325                 SCENE,
326                 FLASH,
327                 ZOOM,
328                 FOCUS,
329                 APERTURE,
330                 EXPOSURE,
331                 SHAKE
332         }
333         [CCode (cprefix = "GST_PHOTOGRAPHY_SHAKE_RISK_", has_type_id = "0", cheader_filename = "gst/gst.h")]
334         public enum PhotoShakeRisk {
335                 LOW,
336                 MEDIUM,
337                 HIGH
338         }
339         [CCode (cprefix = "GST_PHOTOGRAPHY_SCENE_MODE_", has_type_id = "0", cheader_filename = "gst/gst.h")]
340         public enum SceneMode {
341                 MANUAL,
342                 CLOSEUP,
343                 PORTRAIT,
344                 LANDSCAPE,
345                 SPORT,
346                 NIGHT,
347                 AUTO
348         }
349         [CCode (cprefix = "GST_TUNER_CHANNEL_", cheader_filename = "gst/interfaces/tuner.h")]
350         [Flags]
351         public enum TunerChannelFlags {
352                 INPUT,
353                 OUTPUT,
354                 FREQUENCY,
355                 AUDIO
356         }
357         [CCode (cprefix = "GST_PHOTOGRAPHY_WB_MODE_", has_type_id = "0", cheader_filename = "gst/gst.h")]
358         public enum WhiteBalanceMode {
359                 AUTO,
360                 DAYLIGHT,
361                 CLOUDY,
362                 SUNSET,
363                 TUNGSTEN,
364                 FLUORESCENT
365         }
366         [CCode (cheader_filename = "gst/gst.h", has_target = false)]
367         public delegate void PhotoCapturePrepared (void* data, Gst.Caps configured_caps);
368         [CCode (cheader_filename = "gst/gst.h")]
369         public const string PHOTOGRAPHY_AUTOFOCUS_DONE;
370         [CCode (cheader_filename = "gst/gst.h")]
371         public const string PHOTOGRAPHY_SHAKE_RISK;
372         [CCode (cheader_filename = "gst/gst.h")]
373         public static GLib.Type colour_tone_mode_get_type ();
374         [CCode (cheader_filename = "gst/gst.h")]
375         public static GLib.Type flash_mode_get_type ();
376         [CCode (cheader_filename = "gst/gst.h")]
377         public static GLib.Type focus_status_get_type ();
378         [CCode (cheader_filename = "gst/gst.h")]
379         public static GLib.Type photo_caps_get_type ();
380         [CCode (cheader_filename = "gst/gst.h")]
381         public static GLib.Type photo_shake_risk_get_type ();
382         [CCode (cheader_filename = "gst/gst.h")]
383         public static GLib.Type scene_mode_get_type ();
384         [CCode (cheader_filename = "gst/gst.h")]
385         public static GLib.Type white_balance_mode_get_type ();