To: | Philips Webcam Linux Driver <> |
---|---|
Subject: | Re: [pwc] Using v4l2 gives grey images |
From: | Luc Saillard <> |
Date: | Thu, 30 Jun 2005 13:56:33 +0200 |
On Thu, Jun 30, 2005 at 02:27:11PM +0300, wrote: > > n = width * height; > > > > /* offset in Y plane */ > > pout_planar_y = dst; > > > > /* offsets in U/V planes */ > > pout_planar_u = dst + n; > > pout_planar_v = dst + n + n / 4; > > Why there is "n/4" there, if you also say "to get the pointer to V, you > add the size of the image (x+y) and size of the image/2". > Shouldn't it then be: > pout_planar_v = dst + n + n /2; > /* or rather optimized */ > pout_planar_v = dst + 3 * n / 2; > > (or am I still abit at sleep due waking just up) > No because the half of the square is half of width by half of height. Sorry for no be precise. So it's normal that is / 4. Luc _______________________________________________ pwc mailing list http://lists.saillard.org/mailman/listinfo/pwc |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [pwc] Using v4l2 gives grey images, Jouni.Lohikoski@iki.fi |
---|---|
Previous by Thread: | Re: [pwc] Using v4l2 gives grey images, Jouni.Lohikoski@iki.fi |
Indexes: | [Date] [Thread] [Top] [All Lists] |
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