Using ioctl to read an image from a webcam into a buffer.
Hello there,
I would like assistance with understanding IO_CTL and how to use it in regards to webcams.
My program will be simple:
I wish to connect a webcam to my computer. I would like to open the device, read a frame from it, store that frame into a buffer and then print the bits.
I would also like to be able to access the cameras settings so I can turn up the gain on the image etc.
My reasons for this are I will be playing with the bits later on.
My issue: I don't know how to do this in C. I understand iocltls are needed but I do not know how to use them.
An assistance on this matter would be most appreciated.
Thanks,
Euden
|