[FFmpeg-cvslog] r29010 - in trunk/libswscale: yuv2rgb.c yuv2rgb_template.c

Cédric Schieli cschieli
Sat Mar 21 12:03:38 CET 2009


2009/3/21 Reimar D?ffinger <Reimar.Doeffinger at gmx.de>:
> On Sat, Mar 21, 2009 at 11:35:43AM +0100, C?dric Schieli wrote:
>> Index: yuv2rgb.c
>> ===================================================================
>> --- yuv2rgb.c (revision 29020)
>> +++ yuv2rgb.c (working copy)
>> @@ -508,7 +508,9 @@
>> ? ? ? ? ?switch (c->dstFormat) {
>> ? ? ? ? ?case PIX_FMT_RGB32:
>> ? ? ? ? ? ? ?if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){
>> - ? ? ? ? ? ? ? ?if (HAVE_7REGS) return yuva420_rgb32_MMX2;
>> +#if HAVE_7REGS
>> + ? ? ? ? ? ? ? ?return yuva420_rgb32_MMX2;
>> +#endif
>> ? ? ? ? ? ? ?}else return yuv420_rgb32_MMX2;
>> ? ? ? ? ?case PIX_FMT_BGR24: ?return yuv420_rgb24_MMX2;
>> ? ? ? ? ?case PIX_FMT_RGB565: return yuv420_rgb16_MMX2;
>> @@ -519,7 +521,9 @@
>> ? ? ? ? ?switch (c->dstFormat) {
>> ? ? ? ? ?case PIX_FMT_RGB32:
>> ? ? ? ? ? ? ?if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P){
>> - ? ? ? ? ? ? ? ?if (HAVE_7REGS) return yuva420_rgb32_MMX;
>> +#if HAVE_7REGS
>> + ? ? ? ? ? ? ? ?return yuva420_rgb32_MMX;
>> +#endif
>> ? ? ? ? ? ? ?}else return yuv420_rgb32_MMX;
>> ? ? ? ? ?case PIX_FMT_BGR24: ?return yuv420_rgb24_MMX;
>> ? ? ? ? ?case PIX_FMT_RGB565: return yuv420_rgb16_MMX;
>
> Well, while you're at it, it would be a good idea to make it not return
> yuv420_rgb24_MMX when HAVE_7REGS is disabled.

Yes, of course.
Patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_osx.patch
Type: text/x-patch
Size: 1621 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20090321/0c000d99/attachment.bin>



More information about the ffmpeg-cvslog mailing list