]> git.sesse.net Git - ffmpeg/blob - libavutil/crc.h
Fix 2 bit allocation bugs. One fix enables using a higher bandwidth code. The other...
[ffmpeg] / libavutil / crc.h
1 #ifndef CRC_H
2 #define CRC_H
3
4 typedef uint32_t AVCRC;
5
6 extern AVCRC *av_crcEDB88320;
7 extern AVCRC *av_crc04C11DB7;
8 extern AVCRC *av_crc8005    ;
9 extern AVCRC *av_crc07      ;
10
11 int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size);
12 uint32_t av_crc(const AVCRC *ctx, uint32_t start_crc, const uint8_t *buffer, size_t length);
13
14 #endif /* CRC_H */
15