> -----Original Message-----
> From: Dmitri [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 17, 2000 1:02 AM
> To: Marcus Meissner
> Cc: Alan Cox; [EMAIL PROTECTED]
> Subject: Re: [linux-usb] OV511 and videodev patches
>
> [SNIP]
>
> I don't mind
> deleting YUV->RGB math, but I am worried that this will render USB
> cameras mostly unusable. Opinions?
If you delete the YUV-RGB math you might as well delete the whole driver
since it will render most applications that might have used the IBM cam
unusable.
I think an incremental approach could be utilized to avoid breaking anything
that works now (at least partially) but eventually get to where you all seem
to want to go:
First, add a format called something like VIDEO_PALETTE_NATIVE to the v4l
interface. This palette would mean that the client is willing to take
whatever (color) format shows up.
Second, have the VIDIOCSYNC ioctl return a value identifying what the native
format happened to be for that frame. It could be different every frame -
no problem.
Third, build a library to handle the conversions from all of the different
native modes to typical client modes. This could be thousands of routines
but the number could be reduced by converting to some intermediate formats.
Then, new clients can use these three things to cause the conversion to be
done in user space. Old clients can allow the driver to convert to BGR (or
YUV or both).
Bret
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]