Commit 0d9336f7 authored by zuxy's avatar zuxy

MMX(2) accelerated yuv420->rgb24 routine, trivial as essentially as it just

swaps R and B inputs for the existing yuv420->bgr24 routine.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@30254 b3059339-0415-0410-9bf9-f77b7e298cf2
parent f4f2cd3a
...@@ -72,7 +72,8 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c) ...@@ -72,7 +72,8 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c)
if (HAVE_7REGS) return yuva420_bgr32_MMX2; if (HAVE_7REGS) return yuva420_bgr32_MMX2;
break; break;
} else return yuv420_bgr32_MMX2; } else return yuv420_bgr32_MMX2;
case PIX_FMT_BGR24: return yuv420_rgb24_MMX2; case PIX_FMT_RGB24: return yuv420_rgb24_MMX2;
case PIX_FMT_BGR24: return yuv420_bgr24_MMX2;
case PIX_FMT_RGB565: return yuv420_rgb16_MMX2; case PIX_FMT_RGB565: return yuv420_rgb16_MMX2;
case PIX_FMT_RGB555: return yuv420_rgb15_MMX2; case PIX_FMT_RGB555: return yuv420_rgb15_MMX2;
} }
...@@ -89,7 +90,8 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c) ...@@ -89,7 +90,8 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c)
if (HAVE_7REGS) return yuva420_bgr32_MMX; if (HAVE_7REGS) return yuva420_bgr32_MMX;
break; break;
} else return yuv420_bgr32_MMX; } else return yuv420_bgr32_MMX;
case PIX_FMT_BGR24: return yuv420_rgb24_MMX; case PIX_FMT_RGB24: return yuv420_rgb24_MMX;
case PIX_FMT_BGR24: return yuv420_bgr24_MMX;
case PIX_FMT_RGB565: return yuv420_rgb16_MMX; case PIX_FMT_RGB565: return yuv420_rgb16_MMX;
case PIX_FMT_RGB555: return yuv420_rgb15_MMX; case PIX_FMT_RGB555: return yuv420_rgb15_MMX;
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment