[FFmpeg-devel] [PATCH] SSE2 Xvid idct
Alexander Strange
astrange
Sun Apr 6 06:19:58 CEST 2008
This adds skal's sse2 idct and uses it as the xvid idct when available.
I merged two shuffles into the permutation and changed the zero-
skipping some - it's fastest in MMX and not really worth doing for the
first three rows. Their right halfs are still usually all zero, but
adding the branch to check for it is a net loss. The best thing for
speed would be switching IDCTs by counting the last nonzero
coefficient position, but that's something for later.
xvididctheader - makes a new header so I don't add any more extern
declarations in .c files.
sse2-permute - the new permutation; it might not have a specific
enough name, but it should work as well for simpleidct as this if I
can get back to that.
sse2-xvid-idct.diff + idct_sse2_xvid.c - the IDCT
The URLs in the header (copied from idct_mmx_xvid and the original
nasm source) are broken at the moment, but archive.org URLs are longer
than 80 characters, so I left them like they are.
skal agreed it could be under LGPL in the last thread.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xvididctheader.diff
Type: application/octet-stream
Size: 1820 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080406/26a30592/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sse2-permute.diff
Type: application/octet-stream
Size: 1157 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080406/26a30592/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sse2-xvid-idct.diff
Type: application/octet-stream
Size: 1981 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080406/26a30592/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: idct_sse2_xvid.c
Type: application/octet-stream
Size: 9776 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080406/26a30592/attachment-0003.obj>
More information about the ffmpeg-devel
mailing list