OpenJPEG  1.5.1
Macros | Functions
crc.h File Reference

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...
 

Detailed Description

Functions used to compute the 16- and 32-bit CRC of byte arrays.

Macro Definition Documentation

#define __CRC32_HEADER__

Function Documentation

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.