From: Tuukka T. <tu...@ee...> - 2004-04-20 08:29:06
|
On Tue, 20 Apr 2004, Greg Kuchyt wrote: >I was looking through the testquickcam.c source code and I was looking >through the read functions (i.e read_test and mmap_test). I'm interested >to know what kind of data is read into the buffer? Is it just the raw mmap_test specifically sets vm.format = VIDEO_PALETTE_RGB24 (i.e. it gets 24-bit RGB data). read appears not to set any format specifically, so it is the default format which happens to be VIDEO_PALETTE_RGB24 also (but could be different on different drivers). >screen capture, and thus must be compressed? I guess a more suiting >question is, what would have to be done to the buffer in order to get a With Quickcam Web / LEGO cam you can get some kind or jpeg/mjpeg by using VIDEO_PALETTE_MJPEG. But typically you must just get some type of data a driver supports and then compress it into jpeg yourself using e.g. libjpeg. >jpeg? My apologies if this is off-topic. Thank your for your time, and Don't be. Your mail is so refreshing after a thousand spams. |