[FFmpeg-devel] [PATCH] Use av_clip_uint8 in swscale.

Michael Niedermayer michaelni
Sun Aug 16 17:36:57 CEST 2009


On Sun, Aug 16, 2009 at 04:18:02PM +0100, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
[...]
> >> > besides which compiler would turn the pure C av_clip_uint8 into such
> >> > instructions ?
> >> 
> >> We could write an asm version of it.
> >
> > yes but that brings us back to the issue of cpu specific optimizations
> > in libavutil headers ...
> 
> ... which we need to find an acceptable solution to.

yes


> 
> > besides we would need more than a optimized av_clip_uint8() because on
> > x86 4 or and 1 clip check is faster than 4 cliping checks

its actually just 3 or ...


> 
> Shocking.

you are easily shocked then if an instruction missing on x86 does shock
you ...


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090816/224a02c5/attachment.pgp>



More information about the ffmpeg-devel mailing list