libavutil/adler32.h
04d7f601
 /*
  * copyright (c) 2006 Mans Rullgard
  *
b78e7197
  * This file is part of FFmpeg.
  *
  * FFmpeg is free software; you can redistribute it and/or
04d7f601
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
b78e7197
  * version 2.1 of the License, or (at your option) any later version.
04d7f601
  *
b78e7197
  * FFmpeg is distributed in the hope that it will be useful,
04d7f601
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
b78e7197
  * License along with FFmpeg; if not, write to the Free Software
04d7f601
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
98790382
 #ifndef AVUTIL_ADLER32_H
 #define AVUTIL_ADLER32_H
b9a73d8d
 
99545457
 #include <stdint.h>
2ed6f399
 #include "attributes.h"
99545457
 
82012619
 /**
79d9ed4a
  * @defgroup lavu_adler32 Adler32
757cd8d8
  * @ingroup lavu_crypto
79d9ed4a
  * @{
3e17eec6
  */
 
 /**
82012619
  * 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.
  *
  * @param adler initial checksum value
  * @param buf   pointer to input buffer
  * @param len   size of input buffer
  * @return      updated checksum
  */
b9a73d8d
 unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,
85074d3c
                                 unsigned int len) av_pure;
b9a73d8d
 
79d9ed4a
 /**
  * @}
  */
 
98790382
 #endif /* AVUTIL_ADLER32_H */