diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-08-19 12:36:15 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-08-19 12:36:15 +0000 |
commit | 7b07d3e8feab3e8d6e25303f3e469e250027bb61 (patch) | |
tree | b34d997f8bb7d96406204c74a277101645bbf898 /libavutil/crc.h | |
parent | 4f48929248e2d5c47ea0313155368df6ec2e83fa (diff) | |
download | ffmpeg-7b07d3e8feab3e8d6e25303f3e469e250027bb61.tar.gz |
Use defines instead of raw hex numbers to specify CRC polynomials
Originally committed as revision 10143 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/crc.h')
-rw-r--r-- | libavutil/crc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/crc.h b/libavutil/crc.h index 11c4fd09b0..4fdc4bbd2a 100644 --- a/libavutil/crc.h +++ b/libavutil/crc.h @@ -26,6 +26,13 @@ typedef uint32_t AVCRC; +#define AV_CRC_8_ATM 0x07 +#define AV_CRC_16 0x8005 +#define AV_CRC_16_CCITT 0x1021 +#define AV_CRC_32_IEEE 0x04C11DB7L +//! reversed bitorder version of AV_CRC_32_IEEE +#define AV_CRC_32_IEEE_LE 0xEDB88320L + #if LIBAVUTIL_VERSION_INT < (50<<16) extern AVCRC *av_crcEDB88320; extern AVCRC *av_crc04C11DB7; |