Re: [libdc1394-devel] format 7 ROI size problem
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Damien D. <da...@do...> - 2006-12-18 12:59:08
|
On Thu, 2006-12-14 at 19:29 -0800, Andrew Straw wrote: > Damien Douxchamps wrote: > > On Mon, 2006-12-11 at 11:40 -0800, Andrew Straw wrote: > > > >> Hi, > >> > >> I recently updated to the latest svn version (rev 335) and have been > >> testing my programs. Overall, I'm very impressed with the work for v2 of > >> the library -- thanks to all involved. One issue, though: > >> > >> On my cameras dc1394_format7_set_image_size(...) initially appears to > >> work (no error returned, a later call to dc1394_format7_get_image_size() > >> returns the value set). However, frames received later still have the > >> full image size (after receiving from dc1394_capture_dequeue(), > >> frame->size is the full sensor size), and, moreover, the full frame has > >> been updated with new image data. Is this a bug with dc1394 or am I > >> doing something wrong? I don't think this is a bug with my cameras > >> because they work fine with earlier versions of libdc1394. > >> > > > > You have to stop capture before resizing the image and set up capture > > again after. Is it what you are doing? > > > Yes. I'm calling dc1394_video_set_transmission(camera,DC1394_OFF) then > dc1394_capture_stop(...) before attempting to change the ROI and > dc1394_capture_setup(...) then > dc1394_video_set_transmission(camera,DC1394_ON) afterward. Need I do more? > > I just checked at it appears that the commands to > SetCameraFormat7Register(...) in format7.c 's > _dc1394_format7_set_image_size(...) appear to get through, as judged by > 1) lack of error return (I'm checking) and 2) a subsequent call to > GetCameraFormat7Register(...) returns the just-set value. > > Can anyone confirm that the ROI set commands _are_ working with current > SVN? In other words, do we know if this is a bug with the library or > with my use of it? (By the way, I upgraded to the latest svn rev. 339 > and still no difference to this.) Format7 does have a problem indeed. I'm trying to fix it at the moment... -- _ Damien 高原 Douxchamps, PhD ('- Post-doctoral investigator //\ Image Processing Group, NAIST V_/_ http://damien.douxchamps.net/ |