|
Libav 0.7.1
|
Go to the source code of this file.
Defines | |
| #define | BASE 65521L |
| #define | DO1(buf) {s1 += *buf++; s2 += s1;} |
| #define | DO4(buf) DO1(buf); DO1(buf); DO1(buf); DO1(buf); |
| #define | DO16(buf) DO4(buf); DO4(buf); DO4(buf); DO4(buf); |
Functions | |
| unsigned long | av_adler32_update (unsigned long adler, const uint8_t *buf, unsigned int len) |
| Calculate the Adler32 checksum of a buffer. | |
| #define BASE 65521L |
Definition at line 27 of file adler32.c.
Referenced by av_adler32_update().
| #define DO1 | ( | buf | ) | {s1 += *buf++; s2 += s1;} |
Definition at line 29 of file adler32.c.
Referenced by av_adler32_update().
| #define DO16 | ( | buf | ) | DO4(buf); DO4(buf); DO4(buf); DO4(buf); |
Definition at line 31 of file adler32.c.
Referenced by av_adler32_update().
| #define DO4 | ( | buf | ) | DO1(buf); DO1(buf); DO1(buf); DO1(buf); |
Definition at line 30 of file adler32.c.
Referenced by av_adler32_update().
| unsigned long av_adler32_update | ( | unsigned long | adler, |
| const uint8_t * | buf, | ||
| unsigned int | len | ||
| ) |
Calculate the Adler32 checksum of a buffer.
Passing the return value to a subsequent av_adler32_update() call allows the checksum of multiple buffers to be calculated as though they were concatenated.
| adler | initial checksum value |
| buf | pointer to input buffer |
| len | size of input buffer |
Definition at line 33 of file adler32.c.
Referenced by av_adler32_update(), crc_write_packet(), and framecrc_write_packet().
1.7.4