function | function name | number |
---|---|---|
run length extension | 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 |
one | Title | Function | Function name | No |
in (input) | : Compressed data input buffer pointer. |
out (input) | : Address of decompressed data output buffer pointer. |
(output) | : Pointer to the end of decompressed data output. |
bufsize(input) | :Output buffer size [BYTE]. |
CMP_DEC_OK ( 0) | :normal termination. The input data has been expanded to the end. |
CMP_DEC_STOP ( 1) | : Decompression processing interrupted. Extended by the output buffer size. |
CMP_DEC_ERR (-1) | :abnormal termination. Input data is abnormal. |
CMP_DEC_ERR_H_ALGO(-2) | :abnormal termination. This is an unsupported algorithm. |
CMP_DEC_ERR_H_UNIT(-3) | :abnormal termination. This is an unsupported processing unit. |
In (input) ↓ ─┬─┬─┬─┬─┬─ ─ ─ ─┬─┬─┬─┬─ Input buffer │■│■│■│■│・・・・・・・・・│■│■│■│ ─┴─┴─┴─┴─┴─ ─ ─ ─┴─┴─┴─┴── │←──────────────bufsize────────────────→│ ─┬─┬─┬─┬─┬─ ─ ─ ─┬─┬─┬─┬─┬─┬─┬──┬─┬─┬─┬─ Output buffer │□│□│□│□│・・・・・・・│□│□│□│□│□│ │・・・│ │ │ │ ─┴─┴─┴─┴─┴─ ─ ─ ─┴─┴─┴─┴─┴─┴─┴───┴─┴─┴─┴─ ↑ ↑ *out (input) out (output)
one | Title | Function | Function name | No |
in (input) | : Compressed data input buffer pointer. |
out (input) | : Address of decompressed data output buffer pointer. |
(output) | : Pointer to the end of decompressed data output. |
bufsize(input) | :Output buffer size [BYTE]. |
CMP_DEC_OK( 0) | :normal termination. The input data has been expanded to the end. |
CMP_DEC_STOP( 1) | : Decompression processing interrupted. Extended by the output buffer size. |
CMP_DEC_ERR(-1) | :abnormal termination. Input data is abnormal. |
CMP_DEC_ERR_H_ALGO(-2) | :abnormal termination. This is an unsupported algorithm. |
CMP_DEC_ERR_H_UNIT(-3) | :abnormal termination. This is an unsupported processing unit. |
one | Title | Function | Function name | No |
in (input) | : Compressed data input buffer pointer. |
out (input) | : Address of decompressed data output buffer pointer. |
(output) | : Pointer to the end of decompressed data output. |
bufsize(input) | :Output buffer size [BYTE]. |
CMP_DEC_OK( 0) | :normal termination. The input data has been expanded to the end. |
CMP_DEC_STOP( 1) | : Decompression processing interrupted. Extended by the output buffer size. |
CMP_DEC_ERR(-1) | :abnormal termination. Input data is abnormal. |
CMP_DEC_ERR_H_ALGO(-2) | :abnormal termination. This is an unsupported algorithm. |
CMP_DEC_ERR_H_UNIT(-3) | :abnormal termination. This is an unsupported processing unit. |
one | Title | Function | Function name | No |
in (input): Compressed data input buffer pointer. out (input): Address of decompressed data output buffer pointer. (Output): Decompressed data output end pointer. bufsize(input): Output buffer size [BYTE].
CMP_DEC_OK(0): Normal end. The input data has been expanded to the end. CMP_DEC_STOP( 1): Stops decompression processing. Extended by the output buffer size. CMP_DEC_ERR(-1): Abnormal termination. Input data is abnormal. CMP_DEC_ERR_H_ALGO(-2): Abnormal termination. This is an unsupported algorithm. CMP_DEC_ERR_H_UNIT(-3): Abnormal termination. This is an unsupported processing unit.