[MPlayer-dev-eng] [PATCH] -fPIC support for libswscale
Jason Tackaberry
tack at urandom.ca
Sat Aug 12 05:09:12 CEST 2006
The attached patch allows libswscale to be compiled with -fPIC. In most
cases I was able to use another register in lieu of ebx. (Note that
this patch also includes the patch in my previous email.)
I have tested the following (each separately with MMX, MMX2, and 3DNOW):
Scaling and/or colorspace conversion (non-special converters):
* YV12->BGR32 BICUBIC downscale
* YV12->BGR24 BICUBIC downscale
* RGB24->YUY2 BILINEAR upscale
* BGR24->YUY2 BILINEAR upscale
* BGR24->YUY2 FAST BILINEAR upscale
* BGR32->RGB32 FAST BILINEAR downscale
* Y8->Y8 BICUBLIN downscale
* YV12->YV12 BUCUBIC downscale
* YV12->YV12 BUCUBIC upscale
Algorithms:
* all algorithms, YV12->YV12 downscale and upscale
Special converters;
* YV12->YUY2
* YV12->BGR24
* BGR24->BGR32
* BGR24->YV12
Last year I did some work porting SwScaler to xine, which I've picked up
again. Making libswscale build with -fPIC is necessary for us, so I
hope this patch has a chance of being merged.
My asm-fu is weak, so hopefully somebody clueful can review this patch.
Thanks,
Jason.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libswscale-fpic.patch
Type: text/x-patch
Size: 23090 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060811/11661751/attachment.bin>
More information about the MPlayer-dev-eng
mailing list