This patch adds support for the greypoint dragonfly greyscale camera,
(and possible other 1394 greyscale cameras).
Bram
$ diff video.c ~/src/ARToolKit/lib/SRC/VideoLinux1394Cam/video.c
330a331,333
> case VIDEO_MODE_640x480_MONO:
> vid->int_mode = MODE_640x480_MONO;
> break;
604a608,618
> case MODE_640x480_MONO:
> buf = vid->image;
> buf2 = (ARUint8 *)vid->camera.capture_buffer;
> for( i = vid->camera.frame_height * vid->camera.frame_width ; i; i--) {
> *buf++ = *buf2;
> *buf++ = *buf2;
> *buf++ = *buf2;
> buf2++;
> }
> return vid->image;
>
--
Bram Stolk, VR Engineer SARA, Amsterdam. tel +31 20 592 3000
"Windows is a 32-bit extension to a 16-bit graphical shell for an 8-bit
operating system originally coded for a 4-bit microprocessor by a 2-bit
company that can't stand 1 bit of competition."
|