using libjpeg
- From: oswald.harry@xxxxxxxxx
- Date: Wed, 30 Jan 2008 05:47:02 -0800 (PST)
hi
I have a char* imgnames[] that contain full path names of jpg files
(ie like "F:\myimgs\jpg\one.jpg",... etc) .I wish to read each
corresponding .jpg file and extract info into a struct ..and thus
create an array of structures.in each struct i would like to store
imgname,width,height,and value of each pixel(as a long?).
may be like
struct myjpgfile{
char* imgfile;
int wdth;
int hgt;
long[] pixels;//as a 1 dimensional array
}
..I am told that cygwin has libjpeg library that can do this task..i
went thru the jpeglib.h file but couldn't make out which method should
be used..can someone help?
thanx
oharry
.
- Follow-Ups:
- Re: using libjpeg
- From: Logan Shaw
- Re: using libjpeg
- From: Edward Rosten
- Re: using libjpeg
- From: Syren Baran
- Re: using libjpeg
- Prev by Date: Array bound read : pthread_exit
- Next by Date: Re: Extract Text with "sed"
- Previous by thread: Array bound read : pthread_exit
- Next by thread: Re: using libjpeg
- Index(es):
Relevant Pages
|