Hi,

The UVC driver returns the size of the currently set format. So if you do  
a S_FMT with 640x480 first, CROPCAP should indeed return 640x480.

The problem with CROPCAP is that for the most part it doesn't apply to  
digital devices. For a while, the call wasn't supported at all but it  
seems that it is mandatory, so we just tried to return _something_ that  
makes sense. If you have any suggestions as to the interpretation of the  
V4L2 spec, I'd be happy to hear your view.

What are you trying to do in this particular case?

Cheers,
Martin


On Thu, 07 Sep 2006 05:07:36 -0700, Parag N(पराग़) <[EMAIL PROTECTED]>  
wrote:

> 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


_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to