# HG changeset patch # User nick # Date 1004461471 0 # Node ID 71934dc064905a1a3bcfb295ab3c03dd8aa25faa # Parent 66837325b929cb59841250a97eea1c005a7b853e Using new stuff of rgb15to16 diff -r 66837325b929 -r 71934dc06490 libvo/Makefile --- a/libvo/Makefile Tue Oct 30 17:03:11 2001 +0000 +++ b/libvo/Makefile Tue Oct 30 17:04:31 2001 +0000 @@ -7,7 +7,7 @@ OBJS=$(SRCS:.c=.o) ifeq ($(TARGET_ARCH_X86),yes) -SRCS += rgb15to16mmx.c yuv2rgb_mmx.c +SRCS += yuv2rgb_mmx.c ifeq ($(TARGET_OS),Linux) SRCS += vo_vesa.c endif diff -r 66837325b929 -r 71934dc06490 libvo/vo_dga.c --- a/libvo/vo_dga.c Tue Oct 30 17:03:11 2001 +0000 +++ b/libvo/vo_dga.c Tue Oct 30 17:04:31 2001 +0000 @@ -23,8 +23,8 @@ * - works only on x86 architectures * * $Log$ - * Revision 1.30 2001/08/13 11:08:18 atlka - * changes according to -utf8 option, draw_osd() function added + * Revision 1.31 2001/10/30 17:04:31 nick + * Using new stuff of rgb15to16 * * Revision 1.29 2001/07/16 18:41:52 jkeil * vo_dga doesn't compile on non-x86 architecture due to x86 asm usage. @@ -151,11 +151,9 @@ #include "x11_common.h" - +#include "../postproc/rgb2rgb.h" #include "fastmemcpy.h" -extern void rgb15to16_mmx(char* s0,char* d0,int count); - static vo_info_t vo_info = { #ifdef HAVE_DGA2 @@ -479,18 +477,9 @@ int i; char *e; for(i=0; i< vo_dga_lines; i++){ -#ifdef HAVE_MMX - rgb15to16_mmx( s, d, vo_dga_bytes_per_line); + rgb15to16( s, d, vo_dga_bytes_per_line); d+=vo_dga_bytes_per_line; s+=vo_dga_bytes_per_line; -#else - e = s+vo_dga_bytes_per_line; - while( s< e ){ - register uint16_t x = *(((uint16_t *)s)++); - *(((uint16_t *)d)++)=( x&0x001F )|( ( x&0x7FE0 )<<1 ); - } - -#endif d+= vo_dga_vp_skip; } } diff -r 66837325b929 -r 71934dc06490 libvo/vo_fbdev.c --- a/libvo/vo_fbdev.c Tue Oct 30 17:03:11 2001 +0000 +++ b/libvo/vo_fbdev.c Tue Oct 30 17:04:31 2001 +0000 @@ -28,6 +28,7 @@ #include "fastmemcpy.h" #include "sub.h" #include "yuv2rgb.h" +#include "../postproc/rgb2rgb.h" LIBVO_EXTERN(fbdev) @@ -38,7 +39,6 @@ "" }; -extern void rgb15to16_mmx(char *s0, char *d0, int count); extern int verbose; /****************************** @@ -1146,20 +1146,10 @@ char *d = next_frame; char *s = src[0]; if (sbpp == fb_pixel_size) { - if (fb_real_bpp == 16 && pixel_format == (IMGFMT_BGR|15)) { -#ifdef HAVE_MMX - rgb15to16_mmx(s, d, 2 * in_width * in_height); -#else - unsigned short *s1 = (unsigned short *) s; - unsigned short *d1 = (unsigned short *) d; - unsigned short *e = s1 + in_width * in_height; - while (s116bpp -#ifdef HAVE_MMX - rgb15to16_mmx( s,d,2*image_width ); -#else - unsigned short *s1=( unsigned short * )s; - unsigned short *d1=( unsigned short * )d; - unsigned short *e=s1+image_width; - while( s116bpp -#ifdef HAVE_MMX - rgb15to16_mmx( s,d,2*image_width*image_height ); -#else - unsigned short *s1=( unsigned short * )s; - unsigned short *d1=( unsigned short * )d; - unsigned short *e=s1+image_width*image_height; - while( s1