Developer Reference for Intel® Integrated Performance Primitives 2019
Decompresses input data with constantly checking integrity of output.
IppStatus ippsDecodeLZOSafe_8u(const Ipp8u* pSrc, Ipp32u srcLen, Ipp8u* pDst, Ipp32u* pDstLen);
ippdc.h
Headers: ippcore.h, ippvm.h, ipps.h
Libraries: ippcore.lib, ippvm.lib, ipps.lib
pSrc |
Pointer to the source data buffer. |
srcLen |
Number of elements in the source data buffer. |
pDst |
Pointer to the destination data buffer. |
pDstLen |
Pointer to the variable with the number of elements in the destination data buffer. |
This function is a version of the function ippsDecodeLZO. It decompresses the source (compressed) data according to the compressed data format. The function can decompress both single-thread and multi-threaded data. The maximum performance can be obtained only in multi-threaded decompression of data compressed in the multi-threaded mode. Additionally this function checks the integrity of the destination data buffer, that is checks the buffer boundary limits. This function works slower, it can be used in doubtful cases when the compressed data integrity is not guaranteed, for example, decoding data received via non-reliable communication lines.
Destination data buffer must have enough free space to hold uncompressed data. Prior to the function call the destination buffer size variable pointed to by pDstLen must be initialized with actual number of free bytes in the destination buffer.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if one of the specified pointers is NULL. |
ippStsLzoBrokenStreamErr |
Indicates an error if compressed data is not valid - not an LZO compressed data. |
ippStsDstSizeLessExpected |
Destination buffer is too small to store decompressed data. |