o Ensure you are able to build with JPEG support (see config.site).
----------------------------------?上面这句话什么意思?重新编译jpeglib?还是要把jpeglib.lib库加入编译tifflib工程?
o #define OJPEG_SUPPORT somewhere. This can be put in tiffconf.h for
instance.
o Append the jdhuff_add.c code to the end of jdhuff.c within the IJG JPEG
---------这个就是下面附的jpeg_reset_huff_decode 代码?
libraries jdhuff.c file and recompile libjpeg (jpeg-6b tested).
For the broadest possible support for OJPEG files the following steps are
necessary:
o Ensure you are able to build with JPEG support (see config.site).
o #define OJPEG_SUPPORT somewhere. This can be put in tiffconf.h for
instance.
o Append the jdhuff_add.c code to the end of jdhuff.c within the IJG JPEG
libraries jdhuff.c file and recompile libjpeg (jpeg-6b tested).
o Rebuild cleanly.
GLOBAL(void)
jpeg_reset_huff_decode (register j_decompress_ptr cinfo,register float *refbw)
{ register huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy;
register int ci = 0;
/* Re-initialize DC predictions */
do entropy->saved.last_dc_val[ci] = -refbw[ci << 1];
while (++ci < cinfo->comps_in_scan);
/* Discard encoded input bits, up to the next Byte boundary */
entropy->bitstate.bits_left &= ~7;
}