Guest User

gfreenect-0.1.vapi

a guest
Jan 25th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 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. }
  65. [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_LED_")]
  66. public enum Led {
  67. OFF,
  68. GREEN,
  69. RED,
  70. YELLOW,
  71. BLINK_GREEN,
  72. BLINK_RED_YELLOW
  73. }
  74. [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_RESOLUTION_")]
  75. public enum Resolution {
  76. LOW,
  77. MEDIUM,
  78. HIGH
  79. }
  80. [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_SUBDEVICE_")]
  81. public enum Subdevice {
  82. MOTOR,
  83. CAMERA,
  84. AUDIO,
  85. ALL
  86. }
  87. [CCode (cheader_filename = "gfreenect.h", cprefix = "GFREENECT_VIDEO_FORMAT_")]
  88. public enum VideoFormat {
  89. RGB,
  90. BAYER,
  91. IR_8BIT,
  92. IR_10BIT,
  93. IR_10BIT_PACKED,
  94. YUV_RGB,
  95. YUV_RAW
  96. }
  97. }
Add Comment
Please, Sign In to add comment