nanogui: image loading
Subject:
Re: [nanogui] image loading
From:
"Greg Haerr" ####@####.####
Date:
30 May 2006 06:04:02 +0100
Message-Id: <15ad01c683a6$64847550$6401a8c0@winXP>
Sai -
You've got a couple of options: if your system has memory
mapping (MMAP) support, enable the define HAVE_MMAP
in include/device.h which will allow mapping the file
contents into memory, rather than requiring a malloc
and read.
Otherwise, you'll have to rewrite the decoder routines
engine/image_*.c to read the file contents when required,
rather than using a buffer.
Regards,
Greg
> Thank u for u r reply. I do want to load the BMP,JPEG,PNG type of images .
Regards,
sai.
Greg Haerr ####@####.#### wrote:
: Is there any alternative way to read image data
: instead of allocating entire
: image data at once and decode it ?
Hard to answer without knowing the image format
you're talking about
------------------------------------------------------------------------------
Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.