OpenJPEG
1.5.1
|
Functions used to compute the 16- and 32-bit CRC of byte arrays. More...
Go to the source code of this file.
Macros | |
#define | __CRC32_HEADER__ |
Functions | |
void | updateCRC16 (unsigned short *, unsigned char) |
file: CRC16.HPP More... | |
void | updateCRC32 (unsigned long *, unsigned char) |
file: CRC32.HPP More... | |
Functions used to compute the 16- and 32-bit CRC of byte arrays.
#define __CRC32_HEADER__ |
void updateCRC16 | ( | unsigned short * | , |
unsigned | char | ||
) |
file: CRC16.HPP
CRC - Cyclic Redundancy Check (16-bit)
A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned short), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC16 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.
implemented by Michael Neumann, 14.06.1998
References CRC16_table.
void updateCRC32 | ( | unsigned long * | , |
unsigned | char | ||
) |
file: CRC32.HPP
CRC - Cyclic Redundancy Check (32-bit)
A CRC-checksum is used to be sure, the data hasn't changed or is false. To create a CRC-checksum, initialise a check-variable (unsigned short), and set this to zero. Than call for every byte in the file (e.g.) the procedure updateCRC32 with this check-variable as the first parameter, and the byte as the second. At the end, the check-variable contains the CRC-checksum.
implemented by Michael Neumann, 14.06.1998
References CRC32_table.