> I asked because usbvideo module (library for kernel-mode V4L drivers)
> already supports this configuration. If you want you can just write a
> "minidriver" that uses usbvideo to do the grunt work.
>
> Get it at http://www.linux-usb.org/ibmcam/

The trouble is I dont know much about color conversions and kernel drivers.

And I dont understand much of what I read on the page you supplied. Maybe it 
have to sink in before my brain understands it.

> > 320x240 JPEG is what I have now. But the chip seems to support YUV4:2:2
> > Packed/Planar and YUV4:2:0 Packed/Planar. Packed format is JPEG
> > compressed.
>
> The camera compresses it? Interesting. I do not think you should
> uncompress it in the driver. This may pose interesting questions.

Such as?

> > Image sizes that the camera seems to support is sub-QCIF (128x96), QCIF
> > (176x144), CIF (128x96), SIF (352x240), 320x240 and VGA (640x480). In VGA
> > it is only capable of 15 frames/s in the other formats it supports around
> > 30 frames/s.
> >
> > > c) Is decoder ready? What is the output format?
> >
> > My code fetches JPEG compressed image data from the camera. At least i
> > think it is. The registers on the Winbond chip is enabled for JPEG data.
> > I have not written any code to verify it yet.
>
> The issue is that V4L does not offer compressed video formats. The
> file <linux/videodev.h> defines those:
>
> #define VIDEO_PALETTE_GREY      1       /* Linear greyscale */
> #define VIDEO_PALETTE_HI240     2       /* High 240 cube (BT848) */
> #define VIDEO_PALETTE_RGB565    3       /* 565 16 bit RGB */
> #define VIDEO_PALETTE_RGB24     4       /* 24bit RGB */
> #define VIDEO_PALETTE_RGB32     5       /* 32bit RGB */
> #define VIDEO_PALETTE_RGB555    6       /* 555 15bit RGB */
> #define VIDEO_PALETTE_YUV422    7       /* YUV422 capture */
> #define VIDEO_PALETTE_YUYV      8
> #define VIDEO_PALETTE_UYVY      9       /* The great thing about standards
> is .. . */
> #define VIDEO_PALETTE_YUV420    10
> #define VIDEO_PALETTE_YUV411    11      /* YUV411 capture */
> #define VIDEO_PALETTE_RAW       12      /* RAW capture (BT848) */
> #define VIDEO_PALETTE_YUV422P   13      /* YUV 4:2:2 Planar */
> #define VIDEO_PALETTE_YUV411P   14      /* YUV 4:1:1 Planar */
> #define VIDEO_PALETTE_YUV420P   15      /* YUV 4:2:0 Planar */
> #define VIDEO_PALETTE_YUV410P   16      /* YUV 4:1:0 Planar */
>
> Compressed video will not work with existing V4L clients. You'd
> need to decompress it into something.

Because the cam-chip supports type 13 and 15 here, besides JPEG compressed, I 
guess the compression problem is solved.

I will try to decode the JPEG stream into some real images, to verify that I 
get some kind of "real" data on the iso-pipe.

Maybe then I can try to fetch uncompressed data also. Do you have the 
knowledge to decode a frame if I hand you some raw data?

/Stefan

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to