Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* gfreenect-0.1.vapi generated by vapigen, do not modify. */
- [CCode (cprefix = "GFreenect", gir_namespace = "GFreenect", gir_version = "0.1", lower_case_cprefix = "gfreenect_")]
- namespace GFreenect {
- [CCode (cheader_filename = "gfreenect.h", type_id = "gfreenect_device_get_type ()")]
- public class Device : GLib.Object, GLib.AsyncInitable, GLib.Initable {
- [CCode (cname = "gfreenect_device_new")]
- public async Device (int device_index, uint subdevices, GLib.Cancellable? cancellable);
- [CCode (has_construct_function = false)]
- public Device.finish (GLib.AsyncResult result) throws GLib.Error;
- public async bool get_accel (GLib.Cancellable? cancellable, out double x, out double y, out double z) throws GLib.Error;
- public bool get_accel_sync (out double x, out double y, out double z, GLib.Cancellable? cancellable) throws GLib.Error;
- [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
- public unowned uint8[] get_depth_frame_grayscale (out unowned GFreenect.FrameMode frame_mode);
- [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
- public unowned uint8[] get_depth_frame_raw (out unowned GFreenect.FrameMode frame_mode);
- public async double get_tilt_angle (GLib.Cancellable? cancellable) throws GLib.Error;
- public double get_tilt_angle_sync (GLib.Cancellable? cancellable) throws GLib.Error;
- [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
- public unowned uint8[] get_video_frame_raw (out unowned GFreenect.FrameMode frame_mode);
- [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
- public unowned uint8[] get_video_frame_rgb (out unowned GFreenect.FrameMode frame_mode);
- public async bool set_led (GFreenect.Led led, GLib.Cancellable? cancellable) throws GLib.Error;
- public async bool set_tilt_angle (double tilt_angle, GLib.Cancellable? cancellable) throws GLib.Error;
- public bool start_depth_stream (GFreenect.DepthFormat format) throws GLib.Error;
- public bool start_video_stream (GFreenect.Resolution resolution, GFreenect.VideoFormat format) throws GLib.Error;
- public bool stop_depth_stream () throws GLib.Error;
- public bool stop_video_stream () throws GLib.Error;
- [NoAccessorMethod]
- public int index { get; construct; }
- [NoAccessorMethod]
- public uint led { get; set; }
- [NoAccessorMethod]
- public uint subdevices { get; construct; }
- [NoAccessorMethod]
- public double tilt_angle { get; set; }
- public virtual signal void depth_frame ();
- public virtual signal void video_frame ();
- }
- [CCode (cheader_filename = "gfreenect.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gfreenect_frame_mode_get_type ()")]
- [Compact]
- public class FrameMode {
- public uint bits_per_pixel;
- public uint depth_format;
- public uint frame_rate;
- public size_t height;
- public size_t length;
- public uint padding_bits_per_pixel;
- public GFreenect.Resolution resolution;
- public uint video_format;
- public size_t width;
- public void* copy ();
- public void free ();
- [CCode (has_construct_function = false)]
- public FrameMode.from_native (void* native);
- public void set_from_native (void* native);
- }
- [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_DEPTH_FORMAT_")]
- public enum DepthFormat {
- @11BIT,
- @10BIT,
- @11BIT_PACKED,
- @10BIT_PACKED,
- REGISTERED,
- MM
- }
- [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_LED_")]
- public enum Led {
- OFF,
- GREEN,
- RED,
- YELLOW,
- BLINK_GREEN,
- BLINK_RED_YELLOW
- }
- [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_RESOLUTION_")]
- public enum Resolution {
- LOW,
- MEDIUM,
- HIGH
- }
- [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_SUBDEVICE_")]
- public enum Subdevice {
- MOTOR,
- CAMERA,
- AUDIO,
- ALL
- }
- [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_VIDEO_FORMAT_")]
- public enum VideoFormat {
- RGB,
- BAYER,
- IR_8BIT,
- IR_10BIT,
- IR_10BIT_PACKED,
- YUV_RGB,
- YUV_RAW
- }
- }
Add Comment
Please, Sign In to add comment