# HG changeset patch # User arpi_esp # Date 989632445 0 # Node ID 1cc160d4631992763a1861896239e4a80a26256d # Parent ec7e6bd74b460993f6da67acdc2cec06477fbc47 flip implemented for converted modes, soem cleanup, fixed indent diff -r ec7e6bd74b46 -r 1cc160d46319 libvo/vo_x11.c --- a/libvo/vo_x11.c Fri May 11 23:07:15 2001 +0000 +++ b/libvo/vo_x11.c Sat May 12 01:54:05 2001 +0000 @@ -431,52 +431,60 @@ void rgb15to16_mmx( char* s0,char* d0,int count ); -#if 1 -static uint32_t draw_frame( uint8_t *src[] ) -{ - if( image_format==IMGFMT_YV12 ) - { - yuv2rgb( ImageData,src[0],src[1],src[2],image_width,image_height,image_width*( bpp/8 ),image_width,image_width/2 ); - } - else - { +static uint32_t draw_frame( uint8_t *src[] ){ int i; int sbpp=( ( image_format&0xFF )+7 )/8; int dbpp=( bpp+7 )/8; char *d=ImageData; char *s=src[0]; //printf( "sbpp=%d dbpp=%d depth=%d bpp=%d\n",sbpp,dbpp,depth,bpp ); -#if 0 + + if( Flip_Flag ){ // flipped BGR int i; //printf( "Rendering flipped BGR frame bpp=%d src=%d dst=%d\n",bpp,sbpp,dbpp ); s+=sbpp*image_width*image_height; - for( i=0;i16bpp +#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 ); @@ -484,51 +492,31 @@ unsigned short *s1=( unsigned short * )s; unsigned short *d1=( unsigned short * )d; unsigned short *e=s1+image_width*image_height; - while( s132bpp conversion\n" ); - while( s32bpp conversion\n" ); + while( s