Hi,
I'm trying to write a driver and V4l2 ioctl support for a Micron camera
(CMOS sensor) that outputs Bayer RGB color pattern as output. This is on
a TI Davinci DM6446 based platform.
So far, I have been able to support a few basic V4L2 ioctls() so that I
can write a user program which opens a video device and finally calls a
VIDIOC_STREAMON ioctl(). In the user program, the raw data received is
dumped into a file. I can see that the raw data (hex values) changes
upon putting different colors in front of the micron sensor.
The problem is to make sense of this data. I guess the data needs to be
passed through the previewer and resizer module since the raw data is in
bayer format. Is there a reference (code/document/pointers) on how to go
about writing this driver to output sensible data and also calling the
video modules (Previewer) of DM6446 for conversion from bayer to an appropriate
format ?
Also, if anyone has prior experience with a similar sensor and
would like to share some thoughts/pitfalls on writing a camera driver,
would really appreciate.
thanks,
-sid