|
Does anyone know where I can find format conventions for jpg and or tiff files or other picture foramts (not bmp)? I've downloaded source code but would rather write my own but don't know what the foramts are. Headers, compression ect. Not asking for code. I have a book that explains some tiff that I could post here but the book is old (80's) and really is a pile of crap. The basics are there though. I've looked at the magik lib,ect. I guess I'm asking where to find the standards-documentation?
-thanks -Gord.
<Added>
I'll post these as I go... http://www.ee.cooper.edu/courses/course_pages/past_courses/EE458/TIFF/
<Added>
A couple more as I go. Just checking these out myself... http://home.earthlink.net/~ritter/tiff/ http://www.jpeg.org/jpeg2000/index.html http://en.wikipedia.org/wiki/JPEG
<Added>
So based on the above info I will try and code a tiff reader. I guess this thread is as good as any. I'll be programming in Visual Studio 2005, win 32 , windows.
I'll just post structure code as I go. Feel free to help out.
I'll begin with the header struct.
typedef struct tiff_header_s
{
WORD id; // id == Byte ordering "II" (hex 4949) is for lntel-created image file.
//"MM" (hex //4D4D) is for Motorola-created image file.
//==byte 18761
WORD version; //always = = 42
WORD first_img_offset; //offset to first image.
WORD img_file_directory; //offset to image file directory, IFD structure.
}tiff_header_t;
<Added>
Try this agian (XP with many thread running...)
//the tiff header
typedef struct tiff_header_s
{
WORD id; // id == Byte ordering
//"II" (hex //4949) PC (18761)
// "MM" (hex //4D4D) MAC (19789)
WORD version; //always = = 42
WORD first_img_offset; //offset to first image.
WORD img_file_directory; //offset to image file directory, IFD structure.
}tiff_header_t;
<Added>
I guess I wont be posting the code here for the simple reason there is just tooo much of it. The links above are good though and have free source code downloads. (Dec 04/06).
|
|
|
|
|
|
|
// |