Edgard Alexander Sotter wrote:
> Hi,
> 
> I want to see if the information that is stored in the buffers are really images...
> anyone knows how can I do to get the images from the buffer in a ppm format (or 
>another
> format) to the disk???

struct video_mmap        buf = {
    frame:   0,
    format:  VIDEO_PALETTE_GREY,
    width:   768,
    height:  568
};

[ capture stuff ]

printf("P5\n%d %d\n255\n",buf.width,buf.height);
fwrite(map,buf.width,buf.height,stdout);

  Gerd


-- 
Get back there in front of the computer NOW. Christmas can wait.
        -- Linus "the Grinch" Torvalds,  24 Dec 2000 on linux-kernel



_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to