★ PROGRAMMER'S GUIDE ★ Compression / decompression libraryfunction | Function name | number |
|---|---|---|
Run-length stretch | CMP_DecRunlen | 1 |
Run-length extension / BYTE unit | CMP_DecRunlenByte | 1.1 |
Run-length extension / WORD unit | CMP_DecRunlenWord | 1.2 |
Run-length extension / DWORD unit | CMP_DecRunlenDword | 1.3 1.3 |
List | Title | Function | Function name | No |
in (input) | : Compressed data input buffer pointer. |
out (input) | : Address of the decompressed data output buffer pointer. |
(output) | : Extended data output end pointer. |
bufsize (input) | : Output buffer size [BYTE]. |
CMP_DEC_OK (0) | :normal termination. The input data has been stretched to the end. |
CMP_DEC_STOP (1) | : Decompression processing interrupted. The output buffer size has been decompressed. |
CMP_DEC_ERR (-1) | :abnormal termination. The input data is abnormal. |
CMP_DEC_ERR_H_ALGO (-2) | :abnormal termination. It is an unsupported algorithm. |
CMP_DEC_ERR_H_UNIT (-3) | :abnormal termination. It is an unsupported processing unit. |
In (input) ↓ ─┬─┬─┬─┬─┬─────┬─┬─┬─┬── Input buffer │ ■ │ ■ │ ■ │ ■ │ ・ ・ ・ ・ ・ ・ │ ■ │ ■ │ ■ │ ─┴─┴─┴─┴─┴─────┴─┴─┴─┴── │ ← ───────────── buffsize ─────────────── → │ ─┬─┬─┬─┬─┬─────┬─┬─┬─┬─┬─┬─┬───┬─┬─┬─┬─ Output buffer │ □ │ □ │ □ │ □ │ ・ ・ ・ ・ ・ ・ ・ │ □ │ □ │ □ │ □ │ □ │ │ ・ ・ ・ │ │ │ │ │ ─┴─┴─┴─┴─┴─────┴─┴─┴─┴─┴─┴─┴───┴─┴─┴─┴─ ↑↑ * Out (input) out (output)
List | Title | Function | Function name | No |
in (input) | : Compressed data input buffer pointer. |
out (input) | : Address of the decompressed data output buffer pointer. |
(output) | : Extended data output end pointer. |
bufsize (input) | : Output buffer size [BYTE]. |
CMP_DEC_OK (0) | :normal termination. The input data has been stretched to the end. |
CMP_DEC_STOP (1) | : Decompression processing interrupted. The output buffer size has been decompressed. |
CMP_DEC_ERR (-1) | :abnormal termination. The input data is abnormal. |
CMP_DEC_ERR_H_ALGO (-2) | :abnormal termination. It is an unsupported algorithm. |
CMP_DEC_ERR_H_UNIT (-3) | :abnormal termination. It is an unsupported processing unit. |
List | Title | Function | Function name | No |
in (input) | : Compressed data input buffer pointer. |
out (input) | : Address of the decompressed data output buffer pointer. |
(output) | : Extended data output end pointer. |
bufsize (input) | : Output buffer size [BYTE]. |
CMP_DEC_OK (0) | :normal termination. The input data has been stretched to the end. |
CMP_DEC_STOP (1) | : Decompression processing interrupted. The output buffer size has been decompressed. |
CMP_DEC_ERR (-1) | :abnormal termination. The input data is abnormal. |
CMP_DEC_ERR_H_ALGO (-2) | :abnormal termination. It is an unsupported algorithm. |
CMP_DEC_ERR_H_UNIT (-3) | :abnormal termination. It is an unsupported processing unit. |
List | Title | Function | Function name | No |
in: Compressed data input buffer pointer.
out (input): Address of the decompressed data output buffer pointer.
(Output): The last pointer for decompressed data output.
bufsize (input): Output buffer size [BYTE].
CMP_DEC_OK (0): Normal termination. The input data has been stretched to the end. CMP_DEC_STOP (1): Decompression processing is interrupted. The output buffer size has been decompressed. CMP_DEC_ERR (-1): Abnormal termination. The input data is abnormal. CMP_DEC_ERR_H_ALGO (-2): Abnormal termination. It is an unsupported algorithm. CMP_DEC_ERR_H_UNIT (-3): Abnormal termination. It is an unsupported processing unit.
★ PROGRAMMER'S GUIDE ★ Compression / decompression library