Re: Reading images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux