libavutil/adler32.h File Reference

#include <stdint.h>
#include "attributes.h"

Go to the source code of this file.

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.


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:
adler initial checksum value
buf pointer to input buffer
len size of input buffer
Returns:
updated checksum

Definition at line 33 of file adler32.c.

Referenced by av_adler32_update(), crc_write_packet(), end_frame(), and framecrc_write_packet().


Generated on Fri Oct 26 02:38:21 2012 for FFmpeg by  doxygen 1.5.8