Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

lzdefs.h

00001 //  Copyright (c) 1996-2002 by Autodesk, Inc.
00002 //
00003 //  By using this code, you are agreeing to the terms and conditions of
00004 //  the License Agreement included in the documentation for this code.
00005 //
00006 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00007 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00008 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00009 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00010 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00011 //
00012 //  Use, duplication, or disclosure by the U.S. Government is subject to
00013 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00014 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00015 //  Data and Computer Software), as applicable.
00016 //
00017 
00018 #if !defined LZDEFS_HEADER
00019 #define LZDEFS_HEADER
00020 
00021 #define WD_LZ_HISTORY_BUFFER_SIZE               65536
00022 #define WD_LZ_COMPRESSION_AND_OFFSET_CODE_BYTES 3
00023 
00024 #define WD_ZLIB_COMPRESSION_OUTPUT_BUFFER_SIZE  8192
00025 #define WD_ZLIB_DECOMPRESSION_INPUT_BUFFER_SIZE 512
00026 #define WD_ZLIB_DEFLATE_LEVEL                   7   // Normal ZLIB default is 6 or Z_DEFAULT_COMPRESSION
00027 #define WD_ZLIB_DEFLATE_WINDOW_BITS             15  // Max allowed is 15, default is 15 which gives 32K history buffer
00028 #define WD_ZLIB_DEFLATE_MEM_LEVEL               9   // Max allowed is 9, default is 8
00029 
00030 // This following define really belongs in the file PRELOAD.H, but due to some compilation
00031 // issues it was moved here.
00032 #define WD_PORTION_OF_PRELOAD_DATA_NOT_USED_FOR_ZLIB    (2 * 256 * 4)   /* 2 Colormaps of 256 rgba colors */
00033 
00035 
00036 class WHIPTK_API WT_Compressor
00037 {
00038 public:
00039 
00040                  virtual                ~WT_Compressor() { }
00041     virtual    WT_Result   start() = 0; // Pure virtual
00042     virtual    WT_Boolean  is_compression_started() = 0; // Pure virtual
00043     virtual    WT_Result   stop()  = 0; // Pure virtual
00044     virtual    WT_Result   compress(int in_size, void const * in_buf) = 0; // Pure virtual
00045 };
00046 
00048 
00049 class WHIPTK_API WT_DeCompressor
00050 {
00051 public:
00052                  virtual                ~WT_DeCompressor() { }
00053     virtual    WT_Result   start() = 0; // Pure virtual
00054     virtual    WT_Result   decompress(int desired, int & actual, void * buffer) = 0; // Pure virtual
00055 };
00056 
00057 
00058 #endif // LZDEFS_HEADER

Generated on Tue May 17 12:07:44 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1