Hi,
   here is code i used to print width and height from Logitech
Quickcam Pro 5000.

      memset(&ccap, 0, sizeof(ccap));
         ccap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;

        res = ioctl(fd,  VIDIOC_CROPCAP, &ccap);
        if (res<0) {
                perror("VIDIOC_CROPCAP");
        }
        else
        {
         printf("       Width=%d\n",ccap.bounds.width);
         printf("       Height=%d\n",ccap.bounds.height);
        }

and this code returned me
 Width=160
 Height=120

why it failed to return 640 x 480 ? I have not used v4l2_enumfrmfmt.h .
Regards,
Parag.
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to