start of ivac (webcam tests)
[my-code/ivac.git] / ivac.h
diff --git a/ivac.h b/ivac.h
new file mode 100644 (file)
index 0000000..beb9b82
--- /dev/null
+++ b/ivac.h
@@ -0,0 +1,41 @@
+/* internet video/audio conferencing
+ *
+ * author: hackbard@hackdaworld.dyndns.org
+ *
+ */
+
+#ifndef IVAC_H
+#define IVAC_H
+
+#define MAX_CHAR_VIDEO_DEV 64
+#define MAX_CHAR_AUDIO_DEV 64
+
+#define VIDEO_DEV "/dev/v4l/video0"
+#define AUDIO_DEV "/dev/sound/dsp"
+
+#define VERBOSE_FLAG 1
+
+#include <directfb.h>
+
+struct dfb_stuff {
+       IDirectFB *dfb;
+       IDirectFBSurface *p_surface;
+       IDirectFBFont *font;
+       IDirectFBInputDevice *keyboard;
+       IDirectFBEventBuffer *k_buffer;
+       IDirectFBVideoProvider *v_provider;
+       IDirectFBImageProvider *i_provider;
+       int s_width,s_height;
+       DFBRectangle rect;
+       int count;
+};
+
+struct ivac {
+       struct dfb_stuff dfb_stuff;
+       char video_dev[MAX_CHAR_VIDEO_DEV];
+       char audio_dev[MAX_CHAR_AUDIO_DEV];
+       unsigned char flags;
+};
+
+
+#endif /* IVAC_H */