Changing exposure using v4l2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello. This is my first message. Please forgive me if I am making a
mistake since I don't use mailing lists that much.

I am currently writing a program using V4L2 that takes pictures from a
UVC camera. It works fine. I also added some function to set several
camera settings in particular exposure. (Of course I use VIDIOC_S_CTRL
with ioctl for that)

I can see that once I set exposure to manual I can set the exposure
value. However when I take a pic after that the image does not reflect
the settings. For example with a high exposure, the image must be
overexposed but it is not.

Originally I set the settings in the beginning and then I took a number of pics.

But since it was not working I now take one pic and change the setting
and take another pic and set the settings and so on.

Well now, the pics are reflecting the settings it seems correctly. The
problem is that the settings (with VIDIOC_S_CTRL) take effect after 3
additional picture captures.

What I mean is that if I set the exposure to say 4000, and I take an
image the photo is not overexposed (as it should) so I have repeat the
ioctl and take another photo and repeat this three times before I
could get a photo with exposure 4000.

Any idea what could be happening with V4L2 over here? Any help or any
hint will be greatly appreciated.

Thanks a lot
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux