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
} DECOMPRESSDATA, *pDECOMPRESSDATA;
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document