[Ffmpeg-devel] [RFC] Addition of JIT accelerated scaler for ARM into libswscale

Michael Niedermayer michaelni
Tue Jan 23 15:27:29 CET 2007


On Tue, Jan 23, 2007 at 01:30:39PM +0100, Reimar Doeffinger wrote:
> Hello,
> On Tue, Jan 23, 2007 at 12:22:26AM +0200, Siarhei Siamashka wrote:
> [...]
> > A natural solution for getting good scaler performance is to use JIT style 
> > dynamic code generation. I spent full two days on the last weekend and got
> > some initial scaler implementation working (it is quite simple and
> > straightforward and uses less than 300 lines of code):
> > https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/libswscale_nokia770/?root=mplayer
> What is the point of those four mprotects?? AFAICT at most you would
> want to do one mprotect at the end to remove the write permission, but
> if that is worth the extra dependency...

yes it is worth ... having executeable+writeable memory is not good


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070123/8ef988f6/attachment.pgp>

More information about the ffmpeg-devel mailing list