Guest User

gfreenect-0.1.vapi

a guest
Mar 27th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 3.95 KB | None | 0 0
  1. /* gfreenect-0.1.vapi generated by vapigen, do not modify. */
  2.  
  3. [CCode (cprefix = "GFreenect", gir_namespace = "GFreenect", gir_version = "0.1", lower_case_cprefix = "gfreenect_")]
  4. namespace GFreenect {
  5.     [CCode (cheader_filename = "gfreenect.h", type_id = "gfreenect_device_get_type ()")]
  6.     public class Device : GLib.Object, GLib.AsyncInitable, GLib.Initable {
  7.         [CCode (cname = "gfreenect_device_new")]
  8.         public async Device (int device_index, uint subdevices, GLib.Cancellable? cancellable);
  9.         [CCode (has_construct_function = false)]
  10.         public Device.finish (GLib.AsyncResult result) throws GLib.Error;
  11.         public async bool get_accel (GLib.Cancellable? cancellable, out double x, out double y, out double z) throws GLib.Error;
  12.         public bool get_accel_sync (out double x, out double y, out double z, GLib.Cancellable? cancellable) throws GLib.Error;
  13.         [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
  14.         public unowned uint8[] get_depth_frame_grayscale (out unowned GFreenect.FrameMode frame_mode);
  15.         [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
  16.         public unowned uint8[] get_depth_frame_raw (out unowned GFreenect.FrameMode frame_mode);
  17.         public async double get_tilt_angle (GLib.Cancellable? cancellable) throws GLib.Error;
  18.         public double get_tilt_angle_sync (GLib.Cancellable? cancellable) throws GLib.Error;
  19.         [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
  20.         public unowned uint8[] get_video_frame_raw (out unowned GFreenect.FrameMode frame_mode);
  21.         [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
  22.         public unowned uint8[] get_video_frame_rgb (out unowned GFreenect.FrameMode frame_mode);
  23.         public async bool set_led (GFreenect.Led led, GLib.Cancellable? cancellable) throws GLib.Error;
  24.         public async bool set_tilt_angle (double tilt_angle, GLib.Cancellable? cancellable) throws GLib.Error;
  25.         public bool start_depth_stream (GFreenect.DepthFormat format) throws GLib.Error;
  26.         public bool start_video_stream (GFreenect.Resolution resolution, GFreenect.VideoFormat format) throws GLib.Error;
  27.         public bool stop_depth_stream () throws GLib.Error;
  28.         public bool stop_video_stream () throws GLib.Error;
  29.         [NoAccessorMethod]
  30.         public int index { get; construct; }
  31.         [NoAccessorMethod]
  32.         public uint led { get; set; }
  33.         [NoAccessorMethod]
  34.         public uint subdevices { get; construct; }
  35.         [NoAccessorMethod]
  36.         public double tilt_angle { get; set; }
  37.         public virtual signal void depth_frame ();
  38.         public virtual signal void video_frame ();
  39.     }
  40.     [CCode (cheader_filename = "gfreenect.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gfreenect_frame_mode_get_type ()")]
  41.     [Compact]
  42.     public class FrameMode {
  43.         public uint bits_per_pixel;
  44.         public uint depth_format;
  45.         public uint frame_rate;
  46.         public size_t height;
  47.         public size_t length;
  48.         public uint padding_bits_per_pixel;
  49.         public GFreenect.Resolution resolution;
  50.         public uint video_format;
  51.         public size_t width;
  52.         public void* copy ();
  53.         public void free ();
  54.         [CCode (has_construct_function = false)]
  55.         public FrameMode.from_native (void* native);
  56.         public void set_from_native (void* native);
  57.     }
  58.     [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_DEPTH_FORMAT_")]
  59.     public enum DepthFormat {
  60.         @11BIT,
  61.         @10BIT,
  62.         @11BIT_PACKED,
  63.         @10BIT_PACKED,
  64.         REGISTERED,
  65.         MM
  66.     }
  67.     [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_LED_")]
  68.     public enum Led {
  69.         OFF,
  70.         GREEN,
  71.         RED,
  72.         YELLOW,
  73.         BLINK_GREEN,
  74.         BLINK_RED_YELLOW
  75.     }
  76.     [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_RESOLUTION_")]
  77.     public enum Resolution {
  78.         LOW,
  79.         MEDIUM,
  80.         HIGH
  81.     }
  82.     [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_SUBDEVICE_")]
  83.     public enum Subdevice {
  84.         MOTOR,
  85.         CAMERA,
  86.         AUDIO,
  87.         ALL
  88.     }
  89.     [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_VIDEO_FORMAT_")]
  90.     public enum VideoFormat {
  91.         RGB,
  92.         BAYER,
  93.         IR_8BIT,
  94.         IR_10BIT,
  95.         IR_10BIT_PACKED,
  96.         YUV_RGB,
  97.         YUV_RAW
  98.     }
  99. }
Add Comment
Please, Sign In to add comment