Does buffer-to-buffer JPEG or LEAD CMP compression. Call this function to compress raw 24-bit BGR or 8-bit grayscale data using input and output buffers that your program allocates.
#include "l_bitmap.h"
L_LTFIL_API L_INT L_CompressBuffer(pBuffer)
Pointer to the buffer that holds the data to be compressed. The data in this buffer must not be padded; so you should strip any padding bytes when loading the buffer. The BytesPerLine field in the bitmap handle may include padding. When getting data from a bitmap, it is better to calculate the bytes to get based on the Width and BitsPerPixel fields.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Note that you must call the L_StartCompressBuffer function before using this function, and you must call the L_EndCompressBuffer function to end the compression process. For a description of how these functions work together, refer to L_StartCompressBuffer.
Win32, x64, Linux.
For an example, refer to L_StartCompressBuffer.
For complete sample code, refer to the COMPCB example.
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