[Ffmpeg-devel] [patch] move av_xiphlacing in avutil

Jindrich Makovicka makovick
Tue Nov 22 21:12:14 CET 2005


Michael Niedermayer wrote:
> hmm, IMHO if the code is small and generic it should be ok (a single crc
> calculation function for all 8,16 and 32bit, and no hardcoded tables, but
> tables generated with some init_crc() function)
> unless there are objections of course ...
> 
> [...]
> 

This should allow arbitrary 8-32 big & little endian crc. The code is 
currently quite a lot slower than a hardcoded table, about 30% slower 
for 16bit crc, slightly better for 8 and 32 bit.

-- 
Jindrich Makovicka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crc.c
Type: text/x-csrc
Size: 1868 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051122/947f0ff6/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crc.h
Type: text/x-chdr
Size: 494 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051122/947f0ff6/attachment.h>



More information about the ffmpeg-devel mailing list