[artoolkit-commits] artoolkit/lib/SRC/VideoMacOSX video.c, 1.22, 1.23
Optical marker tracking and overlay for augmented reality.
Brought to you by:
philip_lamb
From: Philip L. <phi...@us...> - 2006-10-03 21:35:57
|
Update of /cvsroot/artoolkit/artoolkit/lib/SRC/VideoMacOSX In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv17075 Modified Files: video.c Log Message: Added support for AR_PIXEL_FORMAT_MONO. Index: video.c =================================================================== RCS file: /cvsroot/artoolkit/artoolkit/lib/SRC/VideoMacOSX/video.c,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** video.c 19 Sep 2006 03:13:20 -0000 1.22 --- video.c 3 Oct 2006 21:35:52 -0000 1.23 *************** *** 1350,1353 **** --- 1350,1355 ---- #elif (AR_DEFAULT_PIXEL_FORMAT == AR_PIXEL_FORMAT_BGRA) pixFormat = k32BGRAPixelFormat; + #elif (AR_DEFAULT_PIXEL_FORMAT == AR_PIXEL_FORMAT_MONO) + pixFormat = k8IndexedGrayPixelFormat; #else # error Unsupported default pixel format specified in config.h. *************** *** 1370,1373 **** --- 1372,1377 ---- bytesPerPixel = 4l; break; + case k8IndexedGrayPixelFormat: + bytesPerPixel = 1l; default: fprintf(stderr, "ar2VideoOpen(): Unsupported pixel format requested.\n"); |