typedef struct _DECOMPRESSDATA 
   L_UINT uStructSize; 
   L_UCHAR* pBuffer; 
   L_INT nWidth; 
   L_INT nHeight; 
   L_SIZE_T uOffset; 
   L_UINT32 nBufferSize; 
   L_INT nRow; 
   L_INT nCol; 
   L_UINT uFlags; 
   L_INT nReserved1 

The DECOMPRESSDATA structure provides decompression to the L_DecompressBuffer function.



Size of this structure in bytes, for versioning. Use the sizeof() operator to calculate this value.


Pointer to the raw compressed data.


Width of the uncompressed strip or tile, in bytes.


Height of the uncompressed strip or tile, in bytes. If the image consists of a single compressed strip, as with TWAIN, this is the height of the image.


Offset of the strip, relative to the buffer. This is usually zero.


Size of the strip before decompression. For TWAIN, this is the buffer size determined by DAT_SETUPMEMXFER.


Row offset of the tile or strip.


Column offset of the tile or strip.


Flags that indicate whether which part of a strip or tile is being processed. Possible values are:

Value Meaning
DECOMPRESS_STRIP_START Processing the beginning of a tile or strip.
DECOMPRESS_STRIP_END Processing the end of a tile or strip.
DECOMPRESS_CHUNK_COMPLETE Process a complete tile or strip. This is the same as DECOMPRESS_STRIP_START | DECOMPRESS_STRIP_END.


Reserved for future use.  Pass 0.


If pBuffer does not point to a full tile or strip, set uFlags to DECOMPRESS_STRIP_START when the tile/strip begins and set it to DECOPMRESS_STRIP_END when the tile/strip ends.

Some functions which take this structure as a parameter require that the structure be initialized prior to the function call. You must set the uStructSize member to the total size, in bytes, of the structure. Use the sizeof() operator to calculate this value. Functions that do not require the structure be initialized will take the total size of the structure, in bytes, as an additional function parameter.

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help