123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef AVUTIL_CRC_H
- #define AVUTIL_CRC_H
- #include <stdint.h>
- #include <stddef.h>
- #include "attributes.h"
- #include "version.h"
- typedef uint32_t AVCRC;
- typedef enum {
- AV_CRC_8_ATM,
- AV_CRC_16_ANSI,
- AV_CRC_16_CCITT,
- AV_CRC_32_IEEE,
- AV_CRC_32_IEEE_LE,
- AV_CRC_16_ANSI_LE,
- AV_CRC_24_IEEE,
- AV_CRC_8_EBU,
- AV_CRC_MAX,
- }AVCRCId;
- int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size);
- const AVCRC *av_crc_get_table(AVCRCId crc_id);
- uint32_t av_crc(const AVCRC *ctx, uint32_t crc,
- const uint8_t *buffer, size_t length) av_pure;
- #endif
|