Re: Linux 2.6.9-ac3

Luca Risolia
2004-10-22T12:22:30Z

On Fri, 22 Oct 2004 11:21:02 +0200
Luc Saillard <luc@saillard.org> wrote:

> On Fri, Oct 22, 2004 at 10:13:35AM +0200, Luca Risolia wrote:
> > > o Restore PWC driver (Luc Saillard)
> >
> > This driver does decompression in kernel space, which is not
> > allowed. That part has to be removed from the driver before
> > asking for the inclusion in the mainline kernel.
>
> I know this problem, but without a user API like ALSA, each driver need to
> implement the decompression module. When the driver will support v4l2, we can
> return the compressed stream to the user land. I want a v4l3, which is
> designed as ALSA does for soundcard, with a API for userland and kernelland.
> In the meantime, i can put a module option, if the user want the
> decompression in the kernel mode.

Either port the driver to V4L2, which handles decompression stuff well,
or provide a separate downloadble GPL'ed module. Other drivers in the
mainline kernel observe this rule; the pwc case is not an exception.
Also, this matter has been already discussed many times in the v4l
mailing list: no video decompression at all in kernel space, even if
*optional* through an *indipendent* module. I doubt Morton or Linus will
ever accept this version of pwc driver, since they did accept a patch disabling
colorspace conversion from a driver recently.

> Just for your information, many other part in the kernel use
> decompression/compression like PPP, video, ... Have you look about the
> algorithm use in decompression ?, it's just a lookup table with some
> pre-calculated values. Ok you lost ~60Kbytes of kernel memory. I you look into
> the logitech windows drivers, you will a see a big fat library name openvc
> (apt-cache search opencv). I don't want to include all operations but if we
> haven't a good userland library, our webcam is useless on Linux.
> Please, if you can provide some help to put this in userland (provides
> patches for mplayer, xawtv, kame, gnomeeting, ...), i'll be glad to remove
> the offending code.

It sounds logic that none would help to fix user applications, if
we kept including things like decompression in each module in the kernel.

If it ever happens that this driver is accepted, be also prepared to
accept patches adding decompression and colorspace conversions for
every video driver I am aware of, starting from the ones I have already
written to the ones I'll submit in the future.

Regards,
Luca Risolia

>
> Luc
>
> opencv:
> The Open Computer Vision Library is a collection of algorithms and sample
> code for various computer vision problems. The library is compatible with
> IPL (Intel's Image Processing Library) and, if available, can use IPP
> (Intel's Integrated Performance Primitives) for better performance.
> .
> OpenCV provides low level portable data types and operators, and a set
> of high level functionalities for video acquisition, image processing and
> analysis, structural analysis, motion analysis and object tracking, object
> recognition, camera calibration and 3D reconstruction.
> (taken from apt-cache show libopencv-doc)
>