Title | Function | Function name | No |
format Sint32 CMP_DecRunlenByte (void * in, void ** out, Sint32 size) Argument in (input): Compressed data input buffer pointer. : out (input): Address of the decompressed data output buffer pointer. : (Output): Output data output tail pointer. Buffsize (input): Output buffer size [BYTE]. Return value Processing result : CMP_DEC_OK (0): Normal end. The input data has been expanded to the end. CMP_DEC_STOP (1): Suspend decompression processing. The output buffer size has been expanded. CMP_DEC_ERR (-1): Abnormal termination. The input data is abnormal. CMP_DEC_ERR_H_ALGO (-2): Abnormal termination. Unsupported algorithm. CMP_DEC_ERR_H_UNIT (-3): Abnormal termination. Unsupported processing unit. Function Decompresses compressed data. Data Compressed with run length and processing unit BYTE. Compressed data is read from in. Write decompressed data to * * out. * out is a post-in increments . The user sets the * out value set before startup and the * out value after startup. You can know the size of the expanded data from the difference . If the decompressed data exceeds bufsze [byte], processing is interrupted there. Interrupted Even in the case of . , the correct decompressed data for the buffer size is written to the output buffer. There is .
Remarks The function interface is the same as CMP_DecRunlen (). Refer to Figure 2.1.