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

Jindrich Makovicka makovick
Wed Nov 23 07:52:29 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: 1869 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051123/6365c275/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crc.h
Type: text/x-chdr
Size: 495 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051123/6365c275/attachment.h>



More information about the ffmpeg-devel mailing list