FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Files | Functions
Adler32
Crypto and Hashing

Files

file  adler32.c
 Computes the Adler-32 checksum of a data stream.
 

Functions

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

Detailed Description

Function Documentation

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.

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

Definition at line 44 of file adler32.c.

Referenced by av_hash_update(), crc_write_packet(), filter_frame(), framecrc_write_header(), framecrc_write_packet(), and video_frame_cksum().