By the following link
http://groups.google.com/group/micro...er-draft?pli=1
I almost got it work in both i386 hardy and AMD64 hardy.
I compile the source code and insert the module. No problem in i386 and AMD64.
But when I start the camera with the code
Code:
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
fmt.fmt.pix.width = width;
fmt.fmt.pix.height = height;
fmt.fmt.pix.pixelformat = pixelformat; //V4L2_PIX_FMT_MJPEG; //V4L2_PIX_FMT_YUYV;
fmt.fmt.pix.field = V4L2_FIELD_NONE; //V4L2_FIELD_INTERLACED;
I always got an 640x480 picture no matter what the width and height is. And about pixelformat, the driver report the following supported formats
Code:
Bayer 8bit (BGGR)
I420 (YUV 4:2:0)
YUYV (YUV 4:2:0)
JPEG (YUV 4:2:2)
I got the following two formats working
Code:
V4L2_PIX_FMT_JPEG
V4L2_PIX_FMT_YUYV
For V4L2_PIX_FMT_JPEG format, the driver returns a gray JPEG picture with a fixed exposure. So it's impossible to see anything in the night because the exposure is not enough. I guess it's because the driver hasn't be able to adjust the exposure settings yet. And the driver also can't change the camera mode to show colored picture.
For V4L2_PIX_FMT_YUYV format, the driver return an 614400 bytes data for each frame. But the data is definitely not a YUV4:2:2 format. I haven't figure out how to decode it yet. There is no libv4l in hardy repository which may able to decode the frame.
The driver is still in the developing stage. I guess someone will keep improving the driver. These people are so nice.
Bookmarks