From 4060205ba79fec5607bb00d4ba32dd93e0473168 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 5 Nov 2001 01:21:05 +0000 Subject: [PATCH] yv12toyuy2 in MMX cleanup Originally committed as revision 2703 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/rgb2rgb.c | 83 +++++++++++++++++++++++++++++++++------------ postproc/rgb2rgb.h | 16 ++++----- postproc/rgb2rgb_template.c | 83 +++++++++++++++++++++++++++++++++------------ 3 files changed, 132 insertions(+), 50 deletions(-) diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index 9c5c688..d2875b6 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -2,6 +2,7 @@ * * rgb2rgb.c, Software RGB to RGB convertor * Written by Nick Kurshev. + * palette stuff & yuv stuff by Michael */ #include #include "../config.h" @@ -185,25 +186,25 @@ void rgb15to16(const uint8_t *src,uint8_t *dst,uint32_t src_size) /** * Pallete is assumed to contain bgr32 */ -void palette8torgb32(uint8_t *src, uint8_t *dst, int src_size, uint8_t *palette) +void palette8torgb32(uint8_t *src, uint8_t *dst, int num_pixels, uint8_t *palette) { int i; - for(i=0; i>1) + : "memory", "%eax" + ); + +#else int i; - src_size>>=1; - for(i=0; i>=1; + for(i=0; i>=1; - for(i=0; i>=1; + for(i=0; i #include "../config.h" @@ -185,25 +186,25 @@ void rgb15to16(const uint8_t *src,uint8_t *dst,uint32_t src_size) /** * Pallete is assumed to contain bgr32 */ -void palette8torgb32(uint8_t *src, uint8_t *dst, int src_size, uint8_t *palette) +void palette8torgb32(uint8_t *src, uint8_t *dst, int num_pixels, uint8_t *palette) { int i; - for(i=0; i>1) + : "memory", "%eax" + ); + +#else int i; - src_size>>=1; - for(i=0; i>=1; + for(i=0; i>=1; - for(i=0; i>=1; + for(i=0; i