Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Run length stretch / DWORD units
  Function name  
CMP_DecRunlenDword
No
1.3

  format  Sint32 CMP_DecRunlenDword (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): Deletion 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.
  Run length, processing unit Processes data compressed with DWORD.
 Compressed data is read from  in.
Write decompressed data to  *  * out. * out is posted every time 1 byte is written
 Increment . The user sets the value of * out that was set before startup and * out after startup.
You can know the size of the expanded data from the difference in the values ​​of . .
  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. For each buffer The start address must match the start address of the 4-byte boundary . The output buffer should be large enough to obtain the decompressed data and processed 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