From: Clem Taylor <clemtaylor@comcast.net>
To: QuantumG <qg@biodome.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: reverse engineering pwcx
Date: Sat, 28 Aug 2004 02:47:41 -0400 [thread overview]
Message-ID: <41302A8D.1010903@comcast.net> (raw)
In-Reply-To: <412FD751.9070604@biodome.org>
QuantumG wrote:
> There is no secret algorithm or complex image processing in this
> code. Having worked on reverse engineering a complex audio
> processing application (see our paper Using a Decompiler for
> Real-World Source Recovery, to appear WCRE 2004), I expected to see
> some serious floating point calculations or at least something
> recognisable as a FFT or some other known algorithm.
I think you need to look a little closer. This type of decompression is
surely not going to be done with floating point (can you even do
floating point ops in the kernel?).
This class of camera chip uses a greatly simplified JPEG like
compression. The compression is a 4x4 DCT (JPEG uses a 8x8 DCT), a
quantize step and some sort of simple VLC. The algorithm was chosen to
be easy to implement in an absolutely minimal number of gates. At this
point true JPEG encode hardware is enough of a commodity that it would
be silly not to use JPEG in a new design.
I'm pretty sure this class of camera chip uses a 4x4 DCT and some sort
of VLC. Most of the meat of the decoder would be table lookups to decode
the symbols and then a small multiply accumulate loop to do the inverse
DCT and another series of table lookups and multiplies to do the inverse
quant. Pretty basic stuff at this point.
The white paper I read a while back on this chipset family had been out
of NDA for a number of years, so I was never sure why the pwcx driver
wasn't opened up. A competitor wouldn't gain much knowing the exact
details of the decompression algorithm. If I was a competitor designing
a new webcam chip, I wouldn't waste my time reverse engineering Philips
compression scheme, I'd just use JPEG and be done with it.
Has anyone even asked Philips if they would be willing to open up the
algorithm? Maybe they would have said NO a few years ago, but at this
point does it matter?
--Clem
next prev parent reply other threads:[~2004-08-28 6:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-28 0:52 reverse engineering pwcx QuantumG
[not found] ` <20040828012055.GL24018@isi.edu>
[not found] ` <20040828014931.GM24018@isi.edu>
2004-08-28 3:14 ` QuantumG
2004-08-28 3:35 ` Craig Milo Rogers
2004-08-28 3:49 ` Lee Revell
2004-08-28 12:23 ` Vojtech Pavlik
2004-08-28 19:20 ` Chris Meadors
2004-08-28 3:57 ` QuantumG
2004-08-28 12:07 ` Vojtech Pavlik
2004-08-28 6:47 ` Clem Taylor [this message]
2004-08-28 12:23 ` Wouter Van Hemel
-- strict thread matches above, loose matches on Subject: below --
2004-08-28 16:17 Albert Cahalan
2004-08-28 16:25 ` Lee Revell
2004-08-28 16:56 ` Albert Cahalan
2004-08-28 17:11 ` Lee Revell
2004-08-28 18:05 ` Vojtech Pavlik
2004-08-28 17:53 ` Joel Jaeggli
2004-08-28 18:04 ` Lee Revell
2004-08-28 18:08 ` Lee Revell
2004-08-29 21:04 ` Helge Hafting
2004-08-30 7:42 ` Paul Jakma
2004-08-30 12:52 ` Albert Cahalan
2004-08-30 20:23 ` dulle
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=41302A8D.1010903@comcast.net \
--to=clemtaylor@comcast.net \
--cc=linux-kernel@vger.kernel.org \
--cc=qg@biodome.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox