From: Frank W. <war...@po...> - 2009-07-27 19:50:17
|
Frank Warmerdam wrote: > Folks, > > I thought I had pretty much slain the 12bit jpeg dragon until my client > actually tried compressing with high quality values. At this point I > start getting "Bogus Huffman table definition" which appears to reflect > some sort of table size overflow. > > I am wondering if anyone else is using libjpeg to compress 12bit jpeg > data and could suggest ways of resolving this problem? > > The file in question is: > > http://download.osgeo.org/gdal/data/pnm/mandril_12bit.pnm > > Try compressing it like: > > cjpeg -quality 90 -outfile out.jpg mandril_12bit.pnm > > after building libjpeg and cjpeg in 12bit mode of course. If appropriate > I can seek client funding for meaningful assistance. Folks, It turns out the problem was only occuring when I was adapting the optimized huffman table, not with normal optimized huffman tables. I found a bug in the way I was adapting them, which I have corrected and I have updated the 12bit default table accordingly in jcparam.c. The issue now seems to be resolved. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, war...@po... light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent |