X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjpeg%2Flibijg%2FREADME.GDCM.txt;h=13fcdb04078a345e5f075e4586d81d16a7de178c;hb=ac11759a2c7fcb32a6e0d2efdc8bb03982ae349e;hp=836b344b5465391e8653029a90eb5f89de2562d4;hpb=8c2e140c99ed3c497ddb53ec9fbf2708c3a1b341;p=gdcm.git diff --git a/src/jpeg/libijg/README.GDCM.txt b/src/jpeg/libijg/README.GDCM.txt index 836b344b..13fcdb04 100644 --- a/src/jpeg/libijg/README.GDCM.txt +++ b/src/jpeg/libijg/README.GDCM.txt @@ -9,7 +9,69 @@ We'd like to thank the IJG for distributing a public JPEG IO library. Modifications ------------- +1. jconfig.h is usually generated by the build process. For this distribution, we ship a version of jconfig.h.in to be used across several platforms. It's purpose is also to allow generation of both 8bits and 12bits lib. + + +2. +jdhuff.c was modified to support special Philips MRI image: + +Index: jdhuff.c +=================================================================== +RCS file: /cvs/public/gdcm/src/jpeg/libijg8/jdhuff.c,v +retrieving revision 1.1 +diff -u -3 -p -r1.1 jdhuff.c +--- jdhuff.c 24 Jun 2003 10:09:48 -0000 1.1 ++++ jdhuff.c 7 Oct 2004 02:29:43 -0000 +@@ -259,8 +259,11 @@ jpeg_make_d_derived_tbl (j_decompress_pt + if (isDC) { + for (i = 0; i < numsymbols; i++) { + int sym = htbl->huffval[i]; +- if (sym < 0 || sym > 15) +- ERREXIT(cinfo, JERR_BAD_HUFF_TABLE); ++ if (sym < 0 || sym > 15) { ++ // Now, we can read Philips MRI Images ++ htbl->huffval[i]=15; ++// ERREXIT(cinfo, JERR_BAD_HUFF_TABLE); ++ } + } + } + } + + +3. +jmorecfg.h was modified so that we can modify it automatically at build time to +either generate a 8bits jpeg lib or 12bits jpeg library: + +Index: jmorecfg.h +=================================================================== +RCS file: /cvs/public/gdcm/src/jpeg/libijg8/jmorecfg.h,v +retrieving revision 1.4 +diff -u -3 -p -r1.4 jmorecfg.h +--- jmorecfg.h 31 Oct 2003 14:59:50 -0000 1.4 ++++ jmorecfg.h 7 Oct 2004 02:30:40 -0000 +@@ -19,7 +19,8 @@ + * We do not support run-time selection of data precision, sorry. + */ + +-#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ ++//#define BITS_IN_JSAMPLE 8 /* use 8 or 12 */ ++#define BITS_IN_JSAMPLE @GDCM_BITS_IN_JSAMPLE@ + + /* + * Maximum number of components (color channels) allowed in JPEG image. + + + + +4. +To further allow us to have to different copy of the 8bits and 12bits jpeg +library we had to mangle the name. Fur this purpose two new file were added to +the library: gdcm_mangle_8bits.h and gdcm_mangle_12bits.h. Those file were +generated using: + + nm libgdcmijpeg8.a | grep " T " | colrm 1 11 | sort +