1 /* cheese-common.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Cheese", lower_case_cprefix = "cheese_")]
6 [CCode (cheader_filename = "cheese.h")]
7 public static bool init([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv);
9 [CCode (cheader_filename = "cheese-gtk.h")]
10 public static bool gtk_init([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv);
12 [CCode (cheader_filename = "cheese-effect.h")]
13 public class Effect : GLib.Object
15 [CCode (has_construct_function = false)]
16 public Effect (string name, string pipeline_desc);
17 public unowned string get_name ();
18 public unowned string get_pipeline_desc ();
19 public string name {get;}
20 public string pipeline_desc {get;}
22 public Gst.Element control_valve {get; set;}
24 public void enable_preview();
25 public void disable_preview();
26 public bool is_preview_connected();
28 public static Cheese.Effect load_from_file (string fname);
29 public static GLib.List<Cheese.Effect> load_effects ();
32 [CCode (cheader_filename = "cheese-camera.h")]
33 public class Camera : GLib.Object
35 [CCode (has_construct_function = false)]
36 public Camera (Clutter.Texture video_texture, string camera_device_node, int x_resolution, int y_resolution);
37 public bool get_balance_property_range (string property, double min, double max, double def);
38 public unowned GLib.PtrArray get_camera_devices ();
39 public unowned Cheese.VideoFormat get_current_video_format ();
40 public int get_num_camera_devices ();
41 public unowned Cheese.CameraDevice get_selected_device ();
42 public unowned GLib.List get_video_formats ();
43 public bool has_camera ();
45 public void set_balance_property (string property, double value);
46 public void set_device_by_device_node (string file);
47 public void set_device_by_uuid (string uuid);
48 public void set_effect (Cheese.Effect effect);
49 public void toggle_effects_pipeline (bool active);
50 public void connect_effect_texture (Cheese.Effect effect, Clutter.Texture texture);
51 public void set_video_format (Cheese.VideoFormat format);
52 public void setup (string udi) throws GLib.Error;
53 public void start_video_recording (string filename);
55 public void stop_video_recording ();
56 public bool switch_camera_device ();
57 public bool take_photo (string filename);
58 public bool take_photo_pixbuf ();
59 public string get_recorded_time ();
61 public string device_node {owned get; set;}
63 public Cheese.VideoFormat format {owned get; set;}
65 public void *video_texture {get; set;}
67 public uint num_camera_devices {get;}
68 public virtual signal void photo_saved ();
69 public virtual signal void photo_taken (Gdk.Pixbuf pixbuf);
70 public virtual signal void video_saved ();
71 public virtual signal void state_flags_changed (Gst.State new_state);
73 [CCode (cheader_filename = "cheese-camera-device.h")]
74 public class CameraDevice : GLib.Object, GLib.Initable
76 [CCode (has_construct_function = false)]
77 public CameraDevice (string uuid, string device_node, string name, int v4lapi_version) throws GLib.Error;
78 public unowned Cheese.VideoFormat get_best_format ();
79 public unowned Gst.Caps get_caps_for_format (Cheese.VideoFormat format);
80 public unowned string get_device_node ();
81 public unowned GLib.List get_format_list ();
82 public unowned string get_uuid ();
83 public unowned string get_name ();
84 public unowned string get_src ();
86 public uint v4l_api_version {get; construct;}
87 public string device_node {get; construct;}
89 public string uuid {owned get; construct;}
90 public string name {get; construct;}
93 [CCode (cheader_filename = "cheese-camera-device-monitor.h")]
94 public class CameraDeviceMonitor : GLib.Object
96 [CCode (has_construct_function = false)]
97 public CameraDeviceMonitor ();
98 public void coldplug ();
99 public virtual signal void added (string uuid, string device_file, string product_name, uint api_version);
100 public virtual signal void removed (string id);
104 [CCode (cheader_filename = "cheese-fileutil.h")]
105 public class FileUtil : GLib.Object
107 [CCode (cname = "cheese_fileutil_new", has_construct_function = false)]
109 [CCode (cname = "cheese_fileutil_get_new_media_filename")]
110 public unowned string get_new_media_filename (Cheese.MediaMode mode);
111 [CCode (cname = "cheese_fileutil_get_photo_path")]
112 public unowned string get_photo_path ();
113 [CCode (cname = "cheese_fileutil_get_video_path")]
114 public unowned string get_video_path ();
115 [CCode (cname = "cheese_fileutil_reset_burst")]
116 public void reset_burst ();
119 [CCode (cheader_filename = "cheese-flash.h")]
120 public class Flash : Gtk.Window
122 [CCode (has_construct_function = false)]
123 public Flash (Gtk.Widget parent);
128 [CCode (type_id = "CHEESE_TYPE_VIDEO_FORMAT", cheader_filename = "cheese-camera-device.h")]
129 public class VideoFormat
134 [CCode (cprefix = "CHEESE_CAMERA_EFFECT_", has_type_id = false, cheader_filename = "cheese-camera.h")]
135 public enum CameraEffect
150 [CCode (cprefix = "CHEESE_MEDIA_MODE_", has_type_id = false, cheader_filename = "cheese-fileutil.h")]
151 public enum MediaMode
157 [CCode (cprefix = "CHEESE_WIDGET_STATE_", cheader_filename = "cheese-fileutil.h")]
158 public enum WidgetState
164 [CCode (cheader_filename = "cheese-fileutil.h")]
165 public const string PHOTO_NAME_SUFFIX;
166 [CCode (cheader_filename = "cheese-fileutil.h")]
167 public const string VIDEO_NAME_SUFFIX;