In case it helps, the errors come from mainloop_v4l2 opencv's function:


  1160 static void mainloop_v4l2(CvCaptureCAM_V4L* capture)
  1161 {
  1162   unsigned int count;
  1163
  1164         count = 1;
  1165
  1166         while (count-- > 0) {
  1167                 for (;;) {
  1168                         fd_set fds;
  1169                         struct timeval tv;
  1170                         int r;
  1171
  1172                         FD_ZERO (&fds);
  1173                         FD_SET (capture->deviceHandle, &fds);
  1174
  1175                         /* Timeout. */
  1176                         tv.tv_sec = 2;
  1177                         tv.tv_usec = 0;
  1178
  1179                         r = select (capture->deviceHandle+1, &fds,
NULL, NULL, &tv);
  1180
  1181                         if (-1 == r) {
  1182                                 if (EINTR == errno)
  1183                                         continue;
  1184
  1185                                 errno_exit ("select");
  1186                         }
  1187
  1188                         if (0 == r) {
  1189                                 fprintf (stderr, "select
timeout\n");
  1190 //                                exit (EXIT_FAILURE);
  1191                         }
  1192
  1193       if (read_frame_v4l2 (capture))
  1194                                 break;
  1195
  1196       /* EAGAIN - continue select loop. */
  1197                 }
  1198         }
  1199 }

On 1/9/07, Jose Luis Landabaso <[EMAIL PROTECTED]> wrote:

Laurent, Martin, others,

I have arrived to a point in which I'm very confused.
I have learnt that you can only turn off the color processing when the
camera is not capturing.
So, I stop the capture program, and then run bayer.
If I disable color processing I cannot run my capture program again
since.  I always get:

select timeout
VIDIOC_DQBUF error 11, Resource temporarily unavailable

When I turn again the video processing on then the program works fine
again.

Any ideas?


On 1/8/07, Laurent Pinchart <[EMAIL PROTECTED]> wrote:
>
> Hi Jose,
>
> > Hi Martin Rubli and others!
> >
> > First, let me thank you for the work done so far in the driver!
>
> As the project leader, let me thank you :-)
>
> > The thing is that I am trying to disable the camera auto gain.
> > I have read some previous threads that treated this same topic, but
> haven't
> > succeeded so far. I applied the patch that Martin Rubli made
> available. I
> > then compliled and installed. Later, I compiled the " bayer.c" file.
> >
> > I am using a Logitech Ultra Vision camera and opencv and works pretty
> ok,
> > but when I run the bayer program I get:
> >
> > sudo ./bayer /dev/video0 0
> > Device /dev/video0 opened: USB Video Class device.
> > Enabling color pipeline ...
> > ERROR: Unable to set device control: -1
> >
> > From what I understand, the idea is to change the camera behaviour in
> > run-time, isn't it? I mean, I can tell the camera to stop doing
> > auto-adjustments (gain, shutter, whatever) anytime. Can this be
> achieved?
>
> That's right. The Quickcam Ultra Vision might have slightly different
> controls. I have no such model here, so I can't test the patch. Maybe
> Martin
> could have a look.
>
> Martin, by the way, is it necessary to put the webcam in bayer mode to
> disable
> the auto-exposure ? Or would the auto-exposure mode control do the job
> alone ?
>
> Cheers,
>
> Laurent Pinchart
>


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

Reply via email to