Qualitative speedup for P3 & K7 cpus

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2307 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2001-10-20 13:11:10 +00:00
parent 167f1f10fc
commit d3c0ee86a5
1 changed files with 14 additions and 6 deletions

View File

@ -217,13 +217,21 @@ static void __vbeCopyData(uint8_t *image)
pixel_size = (video_mode_info.BitsPerPixel+7)/8;
screen_line_size = video_mode_info.XResolution*pixel_size;
image_line_size = image_width*pixel_size;
x_shift = x_offset*pixel_size;
limit = image_height+y_offset;
for(j=0,i=y_offset;i<limit;i++,j++)
if(image_width == video_mode_info.XResolution)
{
offset = i*screen_line_size+x_shift;
image_offset = j*image_line_size;
__vbeCopyBlock(offset,&image[image_offset],image_line_size);
/* Special case for zooming */
__vbeCopyBlock(y_offset*screen_line_size,image,image_line_size*image_height);
}
else
{
x_shift = x_offset*pixel_size;
limit = image_height+y_offset;
for(j=0,i=y_offset;i<limit;i++,j++)
{
offset = i*screen_line_size+x_shift;
image_offset = j*image_line_size;
__vbeCopyBlock(offset,&image[image_offset],image_line_size);
}
}
}
/* is called for yuv only */