Re: [libdc1394-devel] Re: iSight and grab_color_image or grab_grey_image [solved]
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Tom <to...@ab...> - 2004-12-10 21:28:10
|
Hello, Here is how I solved (worked around) the problem of capturing frames with iSight: I used the code proposed by Nicholas Humfrey on this list. I modified it to add new modes: dump raw YUV 4:2:2 or 4:1:1 data. My modifications to the grab_image_dma are available at: http://www.abracode.com/CleanHands/libdc1394-1.0.0-with-dma-example.tgz I also modified examples/Makefile.am and examples/Makefile.in for compilation of grab_image_dma program when compiling the main libdc1394 library. Then I use "grab_image_dma --422" to dump raw 4:2:2 data. Next I do the conversion from YUV to RGB using a fragment of code found at: http://fourcc.org/fccyvrgb.php I modified this code for 640x480 resolution. The modified code with one example of dump data file and result ppm is available at: http://www.abracode.com/CleanHands/yuv2ppm_for_iSight_with_example.tgz Thanks, Tom Clean Hands http://www.cleanhands.biz |