Menu ▾ ▴

#43 JPEG plugin standard optimized encoding support

closed
None
5
2012-10-31
2010-03-28
Lucian Sabo
No

This encoding mode offers half the speed of progressive mode for similar compression (usually lower, but higher with certain image types).The standard optimized encoding is usually better than the progressive encoding when dealing with images having large areas with the same colors and quality setting lower than 50.

To implement it you need to add these lines after jpeg_set_defaults(&cinfo); in the Save function

//optimize Huffman tables
if((flags & JPEG_OPTIMIZE) == JPEG_OPTIMIZE) {
cinfo.optimize_coding = true;
}

and define in FreeImage.h

define JPEG_OPTIMIZE 0x40000

Discussion

  • Hervé Drolon

    Hervé Drolon - 2010-05-30

    Thanks for the patch : it is now merged with the CVS.
    Hervé

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Anonymous
Anonymous

Add attachments
Cancel