Files | Typedefs | Functions


file  adler32.c
file  adler32.h


typedef unsigned long AVAdler


AVAdler av_adler32_update (AVAdler adler, const uint8_t *buf, unsigned int len) av_pure
 Calculate the Adler32 checksum of a buffer. More...

Detailed Description

Adler-32 hash function implementation.

Typedef Documentation

◆ AVAdler

typedef unsigned long AVAdler

Definition at line 44 of file adler32.h.

Function Documentation

◆ av_adler32_update()

AVAdler av_adler32_update ( AVAdler  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.

adlerinitial checksum value
bufpointer to input buffer
lensize of input buffer
updated checksum

Definition at line 45 of file adler32.c.

Referenced by av_hash_update(), compute_crc_of_packets(), crc_write_packet(), filter_frame(), framecrc_write_header(), framecrc_write_packet(), main(), video_decode(), video_decode_example(), and video_frame_cksum().