From: linux@horizon.com
To: linux-kernel@vger.kernel.org, linux-usb-devel@vger.kernel.org
Cc: paul@clubi.ie
Subject: Re: Summarizing the PWC driver questions/answers
Date: 28 Aug 2004 21:07:51 -0000 [thread overview]
Message-ID: <20040828210751.24380.qmail@science.horizon.com> (raw)
Paul Jakma wrote:
> http://linux.slashdot.org/comments.pl?sid=119578&cid=10089410
>
> From the LavaRND people. Apparently images produced with the binary
> pcwx portion loaded (full-sized frame) had *less* entropy than the
> smaller images produced without. Hence they speculate that the
> function of the binary pcwx part is actually to interpolate the
> 160x120 image to the bigger 640x480 size, and has little to do with
> hardware..
Actually, it's probably *colour* interpolation. Digital cameras are
based on fundamentally black-and-white image sensors, with a filter
grid superimposed. (Search on "Bayer filter" for the most common RGGB
pattern.) A "640x480" digital camera has 640x480 = 307200 sensor pixels,
divided among 3 (or sometimes 4) colours.
Note that this is unlike a "640x480" colour LCD, which will have 640x480x3
= 921600 active elements. But it is the standard terminology for the field.
This gives some luminance/chrominance information at each pixel, but to
assign a 24-bit colour to each pixel requires some interpolation based on
adjacent picels. Digital cameras do such interpolation internally, but
it's also popular to support a "raw" image format to an external program,
in the hope of better result. See gPhoto for examples of such algorithms.
Anyway, I can imagine that the camera can do something crude internally
like downsampling by 2x2 to get colour values for each pixel. I can also
imagine that it can export the raw image to a software driver for better
interpolation that would take more CPU horsepower than it has on board.
Now, the fact that colour is effectively encoded in the high-frequency
portion of the luminance signal makes it rather tricky to produce a
"sharp" colour image without introducing artifacts when a high-frequency
black & white signal is present. The general techniques are published,
but digital camera makers put a lot of effort into the subtleties and are
generally very posessive of the details of their implementation.
This might be what's going on with Philips.
However, given that we already have access to lots of suitable Free
interpolating software, Linux doesn't need that. It just needs to know
how to elicit a raw high-res frame from the camera and what the returned
bits mean. The rest can be coped with.
next reply other threads:[~2004-08-28 21:08 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-28 21:07 linux [this message]
2004-08-28 22:06 ` Summarizing the PWC driver questions/answers Oliver Neukum
-- strict thread matches above, loose matches on Subject: below --
2004-08-27 19:54 Kenneth Lavrsen
2004-08-27 20:22 ` David S. Miller
2004-08-27 20:30 ` David Ford
2004-08-27 21:26 ` Wouter Van Hemel
2004-08-27 20:32 ` Zwane Mwaikambo
2004-08-27 21:25 ` Jesper Juhl
[not found] ` <Pine.LNX.4.61.0408272259450.2771@dragon.hygekrogen.localho st>
2004-08-27 22:08 ` Kenneth Lavrsen
2004-08-27 23:01 ` Bernd Petrovitsch
2004-08-28 0:22 ` Paul Jakma
2004-08-30 12:04 ` Geert Uytterhoeven
2004-08-27 16:26 Greg KH
2004-08-27 16:58 ` David Woodhouse
2004-08-27 18:26 ` Wouter Van Hemel
2004-08-27 19:05 ` Ian Romanick
2004-08-27 20:36 ` Wouter Van Hemel
2004-08-27 16:58 ` Prakash K. Cheemplavam
2004-08-27 17:54 ` Roman Zippel
2004-08-30 17:31 ` Brian Litzinger
2004-08-30 18:24 ` Jeff Kinz
2004-08-30 19:28 ` viro
2004-08-30 20:11 ` Kenneth Lavrsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040828210751.24380.qmail@science.horizon.com \
--to=linux@horizon.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@vger.kernel.org \
--cc=paul@clubi.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.