pwc
[Top] [All Lists]

[pwc] use of mmap

To:
Subject: [pwc] use of mmap
From: "Nicolas Boulay" <>
Date: Sun, 25 Mar 2007 12:08:58 +0200
Hello,

I just try my software, i add change from a 2.6.17 kernel to a 2.6.20.
My software crash on the new kernel because size given in the mmap
allocation are now tighly check.

Before, i have done a mmap using (h*w*3)/2. h and w are the size
requested to the webcam.

But now in 2.6.20, pwc ask for abs_max size. But this size depend on
the webcam type (640*480 or 352*288). So to be clean we must set the
value according to the webcam type. But v4l is done to avoid such
specific command.

So what is the "right" way of using mmap to avoid testing the webcam
type ? (or beleive that all webcam use 640*480) ?
_______________________________________________
pwc mailing list

http://lists.saillard.org/mailman/listinfo/pwc

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU