Alessandro Ghedini
0983d48111
crc: add ANSI CRC16 LE
...
This adds the reversed byte-order version of the ANSI CRC16.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Paul B Mahol
410192e369
add crc24 tables
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
James Almer
c485c835fe
avutil/crc: Dont limit CRC32 standard tables
...
Currently, standard tables like AV_CRC_32_IEEE and such are being generated (or
provided in case the user compiles with hardcoded tables) with only 257 elements.
We're missing a considerable boost in performance by not making them with a size
of 1024 elements instead.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
62a43d30cc
crc: Move static data table from header to .c file
...
Having static data tables in header files is a potential source of trouble.
12 years ago
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
12 years ago
Anton Khirnov
b4dc6dccba
crc: move doxy to the header
12 years ago
Yordan Makariev
425b45d4b0
Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Mans Rullgard
8b19ae0761
crc: fix signed overflow
...
This fixes a signed overflow from i << 24 when i == 255 by
making i unsigned. The result of the shift is already
assigned to an variable of unsigned type.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Måns Rullgård
8fc0162ac4
Add av_ prefix to bswap macros
...
Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
e6b22522c9
bswap: change ME to NE in macro names
...
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
e669590a0a
Fix parameter name and position in av_crc_init Doxygen documentation.
...
Originally committed as revision 23981 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
49bd8e4b84
Fix grammar errors in documentation
...
Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2ed6f39944
Replace many includes of libavutil/common.h with what is actually needed
...
This reduces the number of false dependencies on header files and
speeds up compilation.
Originally committed as revision 22407 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jeff Downs
d468ff0fdf
Fix cast of byte buffer to uint32 that was disregarding alignment
...
requirements.
Now calculates crc byte at a time until aligned, then continues with uint32
optimized calculation.
This fixes crashes during mlp decoding on sparc (at least, maybe others).
Originally committed as revision 19160 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
7d685b486b
spelling/grammar/consistency review part III
...
Originally committed as revision 16849 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
89c9ff504b
spelling/grammar/consistency review part I
...
Originally committed as revision 16840 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
e503674c4a
Add necessary, remove unnecessary #includes.
...
Originally committed as revision 16547 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
37d3e0667a
uses FF_ARRAY_ELEMS() where appropriate
...
Originally committed as revision 15662 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
070144671d
Dont cast const away.
...
Originally committed as revision 11700 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
f3635240b7
Fix a couple of 'return type defaults to int' and 'control reaches end of
...
non-void function' warnings in test code.
Originally committed as revision 11491 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
03d83abcc6
Fix access to the last element of the table.
...
(size of the table vs. number of elements in the table)
Originally committed as revision 11448 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
3abe5fbdc4
improve CRC API
...
- don't export any global var
- provide either generated or hardcoded tables
Originally committed as revision 11409 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
f8a80fd69d
main() --> main(void)
...
Originally committed as revision 11079 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
45e3c163a9
Additional documentation for CRC functions
...
Originally committed as revision 10151 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
7b07d3e8fe
Use defines instead of raw hex numbers to specify CRC polynomials
...
Originally committed as revision 10143 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
08cb195020
kill 3 more av_mallocz_static()
...
Originally committed as revision 8397 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
04d7f60143
Add official LGPL license headers to the files that were missing them.
...
Originally committed as revision 6219 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
a08d38ee82
put the code which is specific for the large crc table under #ifndef CONFIG_SMALL
...
Originally committed as revision 5676 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Michael Niedermayer
43a80ccee5
generic crc calculation code
...
Originally committed as revision 5115 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago