LDFLAGS+= -L/usr/X11R6/lib
C_INCLUDE_PATH = -I/usr/X11R6/include
GLUT_LIBS = glut GL GLU
-FRSH_LIBS = frshaqcpu frsh qreslib
+FRSH_LIBS = frsh
lib_LOADLIBES+= $(GLUT_LIBS) m pthread rt $(FRSH_LIBS)
bin_PROGRAMS = camera
camera_SOURCES = camera.c show_video_v4l_main.c show_video_v4l_capture.c\
capture_v4l.c extract_skin_color.c
-include_HEADERS = show_video_v4l.h capture_v4l.h extract_skin_color.h camera.h
#include <frsh.h>
-#include <aqcpu_res.h>
#include <error.h>
-#include <camera.h>
+#include "camera.h"
int main(int argc, char *argv[])
{
#ifndef CAMERA_H
#define CAMERA_H
+#define PORT 65111
+#define PROTO FRSH_NETPF_FWP
+
typedef struct video_args{
int argc;
char** argv;
if( ioctl( fd , VIDIOCSYNC , &(vmap->frame) ) == -1 ) {
return -1;
}
-
+ return 0;
}
int CaptureV4LDoubleBufferingInitCapture( int fd , struct video_mmap *vmap )
}
/*=== Set initial frame number ===*/
vmap->frame = 0;
-
+ return 0;
}
int CaptureV4LDoubleBufferingCaptureWait( int fd , struct video_mmap *vmap )
void ShowVideoCaptureImage()
{
- static char image_prefix[1024]=PREFIX_IMAGE_FILE; /* Prefix of output image file */
+ //static char image_prefix[1024]=PREFIX_IMAGE_FILE; /* Prefix of output image file */
static unsigned char image[IMAGE_WIDTH_DS*IMAGE_HEIGHT_DS*RGB]; /* Captured image */
static unsigned char skin_map[IMAGE_WIDTH_DS*IMAGE_HEIGHT_DS]; /* Skin color map */
int extract_skin_color; /* global variable for enabling image processing */
-#include <camera.h>
+#include "camera.h"
//int main( int argc , char *argv[] )
void* video_thread(void* args)
{
capture_v4l.c extract_skin_color.c
camclient_SOURCES = camclient.c show_video_v4l_main.c show_video_v4l_capture.c\
capture_v4l.c extract_skin_color.c
-include_HEADERS = show_video_v4l.h capture_v4l.h extract_skin_color.h camera.h
#include <frsh.h>
#include <error.h>
-#include <camera.h>
-#include <show_video_v4l.h>
+#include "camera.h"
+#include "show_video_v4l.h"
int cpu_negotiated = 0;
int exit_flag = 1;
#include <frsh.h>
#include <error.h>
-#include <camera.h>
-#include <show_video_v4l.h>
+#include "camera.h"
+#include "show_video_v4l.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define MSGBUDGET 1
#define MSGBYTES MSGSIZE*MSGBUDGET
-#define FRAMEDELAY 500
+#define FRAMEDELAY (1000/25)
int cpu_negotiated = 0;
int exit_flag = 1;
int extract_skin_color; /* global variable for enabling image processing */
-#include <camera.h>
+#include "camera.h"
//int main( int argc , char *argv[] )
void* video_thread(void* args)
{