Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Run length stretch / BYTE units
  Function name  
CMP_DecRunlenByte
No
1.1

  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 . 

      Note: Both input buffer and output buffer are reserved by the user. Ahead of each buffer The head address must match the start address of the 4-byte boundary . The output buffer must be large enough to obtain decompressed data, and the processing unit It must be an integer multiple of the number of bytes.

Remarks The function interface is the same as CMP_DecRunlen (). Refer to Figure 2.1.


Return to previous page Return to menu Go to next page