From: Anders C. <and...@md...> - 2004-04-20 07:30:08
|
(feh.. pressed the wrong key before - sorry for reposting) On Tue, 20 Apr 2004, Greg Kuchyt wrote: > testquickcam.c [..] (i.e read_test and mmap_test) Based on the testquickcam, I wrote my own small camera capture program using the read() method. > I guess a more suiting question is, what would have to be > done to the buffer in order to get a jpeg? I'm not sure how well the driver(s) support compression, and neither how to include a JPEG conversion routine into source. Instead, my small application outputs a PPM file, which is a very simple, non-compressed format. Then I have a shell script which gets a picture from the camera and feeds it through ppmtojpeg to get a JPEG image to display on the web page (using some sinister JavaScript solution, but that is off-topic here). -- Anders Carlsson |