Примечания к выпуску для Cisco Cisco Content Security Management Appliance M160

Скачать
Страница из 96
             Open Source Used In Cisco IronPort AsyncOS 8.0 for Security Management
                                      67
of the I/O buffers allocated by jdatasrc.c and jdatadst.c, say from 4K to  
1K.  Another possibility is to move the error message table to far memory;  
this should be doable with only localized hacking on jerror.c.)  
 
About 2K of the near heap space is "permanent" memory that will not be  
released until you destroy the JPEG object.  This is only an issue if you  
save a JPEG object between compression or decompression operations.  
 
Far data space may also be a tight resource when you are dealing with large  
images.  The most memory-intensive case is decompression with two-pass color  
quantization, or single-pass quantization to an externally supplied color  
map.  This requires a 128Kb color lookup table plus strip buffers amounting  
to about 40 bytes per column for typical sampling ratios (eg, about 25600  
bytes for a 640-pixel-wide image).  You may not be able to process wide  
images if you have large data structures of your own.  
 
Of course, all of these concerns vanish if you use a 32-bit flat-memory-model  
compiler, such as DJGPP or Watcom C.  We highly recommend flat model if you  
can use it; the JPEG library is significantly faster in flat model.
* Copyright (C) 1994-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
[...]
/* Portions of this code are based on the PBMPLUS library, which is:
**
** Copyright (C) 1988 by Jef Poskanzer.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies and that both that
** copyright notice and this permission notice appear in supporting
** documentation.  This software is provided "as is" without express or
** implied warranty.
/*
* wrgif.c
*
* Copyright (C) 1991-1997, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains routines to write output images in GIF format.
*
**************************************************************************
* NOTE: to avoid entanglements with Unisys' patent on LZW compression,   *
* this code has been modified to output "uncompressed GIF" files.        *
* There is no trace of the LZW algorithm in this file.                   *
**************************************************************************
*