Re: OT: Why is usb data many times the cpu hog that firewire is?

From: Matt Mackall
Date: Tue Feb 22 2005 - 18:14:52 EST


On Mon, Feb 21, 2005 at 05:08:27PM -0500, Gene Heskett wrote:
> On Monday 21 February 2005 13:29, Wichert Akkerman wrote:
> >Previously Gene Heskett wrote:
> >> Thats what I was afraid of, which makes using it for a motion
> >> detected burgular alarm source considerably less than practical
> >> since the machine must be able to do other things too.
> >
> >Dependin on the type of compression used you might be able to detect
> >motion by analyzing the compressed datastream.
> >
> Its jpg coming out of the camera, but I don't know to capture the raw
> stream and do the comparisons. One would have to first subtract the
> expected peak values of the sensors noise (snow if you will), either
> by a running average obtained by frame addition on a pixel by pixel
> basis. Somehow, that seems to imply a decoded stream. And thats
> obviously not going to be anything but cpu intensive too. So I'm
> less than enthusiastic that its a workable solution unless one is
> able to dedicate a machine to that job exclusively. X10 FIR's like
> the EagleEye or HawkEye will need to be used to detect when the
> recording should be started (and stopped)

JPEG data is DCT of 8x8 pixel chunks. If you can get at that, you can
compare the DC terms of each chunk with minimal decoding. Various
thumbnailers do this for speed already.

--
Mathematics is the supreme nostalgia of our time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/