mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01:00
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:
parent
167f1f10fc
commit
d3c0ee86a5
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user