1 /* clutter-gst-3.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "ClutterGst", gir_namespace = "ClutterGst", gir_version = "3.0", lower_case_cprefix = "clutter_gst_")]
6 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cname = "CLUTTER_GST_VERSION_HEX")]
8 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cname = "CLUTTER_GST_MAJOR_VERSION")]
9 public const int MAJOR;
10 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cname = "CLUTTER_GST_MICRO_VERSION")]
11 public const int MICRO;
12 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cname = "CLUTTER_GST_MINOR_VERSION")]
13 public const int MINOR;
14 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cname = "CLUTTER_GST_VERSION_S")]
15 public const string STRING;
16 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cname = "CLUTTER_GST_CHECK_VERSION")]
17 public static bool check (int major, int minor, int micro);
19 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_aspectratio_get_type ()")]
20 public class Aspectratio : ClutterGst.Content, Clutter.Content {
21 [CCode (has_construct_function = false, type = "ClutterContent*")]
22 public Aspectratio ();
24 [Version (since = "3.0")]
25 public bool fill_allocation { get; set; }
27 [Version (since = "3.0")]
28 public bool paint_borders { get; set; }
30 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_gst_box_get_type ()")]
32 [Version (since = "3.0")]
38 public float get_height ();
39 public float get_width ();
41 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_camera_get_type ()")]
42 public class Camera : GLib.Object, ClutterGst.Player {
43 [CCode (has_construct_function = false)]
45 public bool get_brightness (double cur_value);
46 public bool get_brightness_range (double min_value, double max_value, double default_value);
47 public unowned ClutterGst.CameraDevice get_camera_device ();
48 public bool get_color_balance_property (string property, double cur_value);
49 public bool get_color_balance_property_range (string property, double min_value, double max_value, double default_value);
50 public bool get_contrast (double cur_value);
51 public bool get_contrast_range (double min_value, double max_value, double default_value);
52 public unowned Gst.Element get_filter ();
53 public bool get_gamma (double cur_value);
54 public bool get_gamma_range (double min_value, double max_value, double default_value);
55 public bool get_hue (double cur_value);
56 public bool get_hue_range (double min_value, double max_value, double default_value);
57 public bool get_saturation (double cur_value);
58 public bool get_saturation_range (double min_value, double max_value, double default_value);
59 public bool is_ready_for_capture ();
60 public bool is_recording_video ();
61 public bool remove_filter ();
62 public bool set_brightness (double value);
63 public bool set_camera_device (ClutterGst.CameraDevice device);
64 public bool set_color_balance_property (string property, double value);
65 public bool set_contrast (double value);
66 public bool set_filter (Gst.Element filter);
67 public bool set_gamma (double value);
68 public bool set_hue (double value);
69 public void set_photo_profile (Gst.PbUtils.EncodingProfile profile);
70 public bool set_saturation (double value);
71 public void set_video_profile (Gst.PbUtils.EncodingProfile profile);
72 public bool start_video_recording (string filename);
73 public void stop_video_recording ();
74 public bool supports_color_balance ();
75 public bool supports_gamma_correction ();
76 public bool take_photo (string filename);
77 public bool take_photo_pixbuf ();
79 public ClutterGst.CameraDevice device { owned get; set; }
80 public virtual signal void photo_saved ();
81 public virtual signal void photo_taken (Gdk.Pixbuf pixbuf);
82 public virtual signal void ready_for_capture (bool ready);
83 public virtual signal void video_saved ();
85 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_camera_device_get_type ()")]
86 public class CameraDevice : GLib.Object {
87 [CCode (has_construct_function = false)]
88 protected CameraDevice ();
89 public void get_capture_resolution (out int width, out int height);
90 public unowned string get_name ();
91 public unowned string get_node ();
92 public unowned GLib.GenericArray<ClutterGst.VideoResolution?> get_supported_resolutions ();
93 public void set_capture_resolution (int width, int height);
95 public Gst.ElementFactory element_factory { owned get; construct; }
96 public string name { get; construct; }
97 public string node { get; construct; }
98 public virtual signal void capture_resolution_changed (int width, int height);
100 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_camera_manager_get_type ()")]
101 public class CameraManager : GLib.Object {
102 [CCode (has_construct_function = false)]
103 protected CameraManager ();
104 public unowned GLib.GenericArray<ClutterGst.CameraDevice> get_camera_devices ();
105 public static unowned ClutterGst.CameraManager get_default ();
106 public signal void camera_added (ClutterGst.CameraDevice camera_device);
107 public signal void camera_removed (ClutterGst.CameraDevice camera_device);
109 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_content_get_type ()")]
110 [Version (since = "0.0")]
111 public class Content : GLib.Object, Clutter.Content {
112 [CCode (has_construct_function = false, type = "ClutterContent*")]
114 [Version (since = "3.0")]
115 public unowned ClutterGst.Frame get_frame ();
116 [Version (since = "3.0")]
117 public unowned ClutterGst.Overlays get_overlays ();
118 [Version (since = "3.0")]
119 public unowned ClutterGst.Player get_player ();
120 [Version (since = "3.0")]
121 public unowned ClutterGst.VideoSink get_sink ();
123 public virtual bool has_painting_content ();
124 [Version (since = "3.0")]
125 public void set_frame (ClutterGst.Frame frame);
126 [Version (since = "3.0")]
127 public void set_player (ClutterGst.Player player);
128 [Version (since = "3.0")]
129 public void set_sink (ClutterGst.VideoSink sink);
130 [CCode (has_construct_function = false, type = "ClutterContent*")]
131 [Version (since = "3.0")]
132 public Content.with_sink (ClutterGst.VideoSink sink);
133 public ClutterGst.Frame frame { get; set; }
135 public bool paint_frame { get; set; }
137 public bool paint_overlays { get; set; }
138 public GLib.Object player { get; set; }
139 public ClutterGst.VideoSink sink { get; set; }
140 public signal void size_change (int width, int height);
142 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_crop_get_type ()")]
143 public class Crop : ClutterGst.Content, Clutter.Content {
144 [CCode (has_construct_function = false, type = "ClutterActor*")]
147 [Version (since = "3.0")]
148 public bool cull_backface { get; set; }
150 [Version (since = "3.0")]
151 public ClutterGst.Box input_region { owned get; set; }
153 [Version (since = "3.0")]
154 public ClutterGst.Box output_region { owned get; set; }
156 [Version (since = "3.0")]
157 public bool paint_borders { get; set; }
159 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_gst_frame_get_type ()")]
161 [Version (since = "3.0")]
163 public ClutterGst.VideoResolution resolution;
165 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_gst_overlay_get_type ()")]
167 [Version (since = "3.0")]
168 public class Overlay {
169 public weak ClutterGst.Box position;
171 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "clutter_gst_overlays_get_type ()")]
173 [Version (since = "3.0")]
174 public class Overlays {
175 public weak GLib.GenericArray<void*> overlays;
177 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_playback_get_type ()")]
178 public class Playback : GLib.Object, ClutterGst.Player {
179 [CCode (has_construct_function = false)]
181 [Version (since = "1.4")]
182 public int get_audio_stream ();
183 [Version (since = "1.4")]
184 public unowned GLib.List<string> get_audio_streams ();
185 public int64 get_buffer_duration ();
186 public double get_buffer_fill ();
187 public int get_buffer_size ();
188 [Version (since = "1.4")]
189 public ClutterGst.BufferingMode get_buffering_mode ();
190 public double get_duration ();
191 [Version (since = "1.6")]
192 public bool get_in_seek ();
193 public double get_position ();
194 public double get_progress ();
195 [Version (since = "1.4")]
196 public ClutterGst.SeekFlags get_seek_flags ();
197 public string get_subtitle_font_name ();
198 [Version (since = "1.4")]
199 public int get_subtitle_track ();
200 [Version (since = "1.4")]
201 public unowned GLib.List<string> get_subtitle_tracks ();
202 public string get_subtitle_uri ();
203 public string get_uri ();
204 [Version (since = "1.4")]
205 public string get_user_agent ();
206 public bool is_live_media ();
207 [Version (since = "1.4")]
208 public void set_audio_stream (int index_);
209 public void set_buffer_duration (int64 duration);
210 public void set_buffer_size (int size);
211 [Version (since = "1.4")]
212 public void set_buffering_mode (ClutterGst.BufferingMode mode);
213 public void set_filename (string filename);
214 public void set_progress (double progress);
215 [Version (since = "1.4")]
216 public void set_seek_flags (ClutterGst.SeekFlags flags);
217 public void set_subtitle_font_name (string font_name);
218 [Version (since = "1.4")]
219 public void set_subtitle_track (int index_);
220 public void set_subtitle_uri (string uri);
221 public void set_uri (string uri);
222 [Version (since = "1.4")]
223 public void set_user_agent (string user_agent);
224 [Version (since = "1.4")]
225 public int audio_stream { get; set; }
226 [Version (since = "1.4")]
227 public GLib.List<string> audio_streams { get; }
228 public double buffer_fill { get; }
230 public bool can_seek { get; }
231 public double duration { get; }
232 [Version (since = "1.6")]
233 public bool in_seek { get; }
234 public double progress { get; set; }
235 [Version (since = "1.4")]
236 public ClutterGst.SeekFlags seek_flags { get; set; }
237 public string subtitle_font_name { owned get; set; }
238 [Version (since = "1.4")]
239 public int subtitle_track { get; set; }
240 [Version (since = "1.4")]
241 public GLib.List<string> subtitle_tracks { get; }
242 public string subtitle_uri { owned get; set; }
243 public string uri { owned get; set; }
244 [Version (since = "1.4")]
245 public string user_agent { owned get; set; }
246 [Version (since = "1.4")]
247 public virtual signal bool should_buffer (Gst.Query query);
249 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_video_sink_get_type ()")]
250 [Version (since = "3.0")]
251 public class VideoSink : Gst.Video.Sink, Gst.Video.ColorBalance, Gst.Video.Navigation {
252 [CCode (has_construct_function = false)]
254 public unowned ClutterGst.Frame get_frame ();
255 public ClutterGst.Overlays get_overlays ();
256 public bool is_ready ();
258 public int update_priority { get; set; }
259 public virtual signal void new_frame ();
260 public virtual signal void new_overlays ();
261 public virtual signal void pipeline_ready ();
263 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", type_id = "clutter_gst_player_get_type ()")]
264 [Version (since = "1.4")]
265 public interface Player : GLib.Object {
266 [Version (since = "3.0")]
267 public abstract double get_audio_volume ();
268 [Version (since = "3.0")]
269 public abstract unowned ClutterGst.Frame get_frame ();
270 [Version (since = "3.0")]
271 public abstract bool get_idle ();
272 [Version (since = "3.0")]
273 public abstract unowned Gst.Element get_pipeline ();
274 [Version (since = "3.0")]
275 public abstract bool get_playing ();
276 [Version (since = "3.0")]
277 public abstract unowned ClutterGst.VideoSink get_video_sink ();
278 [Version (since = "3.0")]
279 public abstract void set_audio_volume (double volume);
280 [Version (since = "3.0")]
281 public abstract void set_playing (bool playing);
282 public abstract double audio_volume { get; set; }
283 public abstract bool idle { get; }
284 public abstract bool playing { get; set; }
285 public virtual signal void eos ();
286 public virtual signal void error (GLib.Error error);
287 public virtual signal void new_frame (ClutterGst.Frame frame);
288 public virtual signal void ready ();
289 public virtual signal void size_change (int width, int height);
291 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", has_type_id = false)]
292 [Version (since = "3.0")]
293 public struct VideoResolution {
299 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cprefix = "CLUTTER_GST_BUFFERING_MODE_", type_id = "clutter_gst_buffering_mode_get_type ()")]
300 [Version (since = "1.4")]
301 public enum BufferingMode {
305 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cprefix = "CLUTTER_GST_SEEK_FLAG_", type_id = "clutter_gst_seek_flags_get_type ()")]
307 [Version (since = "1.4")]
308 public enum SeekFlags {
312 [CCode (cheader_filename = "clutter-gst/clutter-gst.h", cname = "CLUTTER_GST_VERSION")]
313 public const double VERSION;
314 [CCode (cheader_filename = "clutter-gst/clutter-gst.h")]
315 [Version (since = "3.0")]
316 public static Gst.Element create_video_sink ();
317 [CCode (cheader_filename = "clutter-gst/clutter-gst.h")]
318 public static Clutter.InitError init ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv);
319 [CCode (cheader_filename = "clutter-gst/clutter-gst.h")]
320 [Version (since = "1.0")]
321 public static Clutter.InitError init_with_args ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv, string parameter_string, [CCode (array_length = false, type = "GOptionEntry*")] GLib.OptionEntry[]? entries = null, string? translation_domain = null) throws GLib.Error;