public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* v4l library - decoding of Pixart JPEG frames
@ 2008-08-14 17:14 Jean-Francois Moine
  2008-08-14 18:51 ` Thomas Kaiser
  2008-08-17 11:47 ` Hans de Goede
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Francois Moine @ 2008-08-14 17:14 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Video 4 Linux

Hello Hans,

I found that the webcams containing a Pixart JPEG chip (PAC 73xx)
generate strange JPEG frames: they contains 'ff ff ff xx' markers every
1024 or 512 bytes and there are eight unused bits at the end of each
JPEG block (I saw also a 90 degrees rotation with the PAC 7302).

So, I added a new pixel format V4L2_PIX_FMT_PJPG for this encoding. It
is generated by the pac7311 subdriver of gspca. May you add the code for
decoding this format in the V4L library?

I could have done a patch by myself, but the tiny jpeg decoder is rather
complex, and I could not find the right place to do the job. If it may
help, I wrote a simple image viewer (http://moinejf.free.fr/siv.c) which
takes a raw webcam image and displays it via gtk+. It contains the
Pixart JPEG decoder and the two differences from normal JPEG are
identified by 'pac7311'.

Cheers.

-- 
Ken ar c'hentañ |             ** Breizh ha Linux atav! **
Jef             |               http://moinejf.free.fr/


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-18  7:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 17:14 v4l library - decoding of Pixart JPEG frames Jean-Francois Moine
2008-08-14 18:51 ` Thomas Kaiser
2008-08-17 11:47 ` Hans de Goede
2008-08-18  7:34   ` Jean-Francois Moine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox