Maybe a little speedup.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@503 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
se7encode 2001-04-18 10:37:09 +00:00
parent 46b83c244d
commit 67fbbb9f92
1 changed files with 7 additions and 4 deletions

View File

@ -421,12 +421,12 @@ static uint32_t draw_frame(uint8_t *src[]) {
src[0] = scalebuf;
}
if (bpp_conv) {
uint16_t *source = (uint16_t *) src[0];
uint16_t *dest = (uint16_t *) bppbuf;
uint16_t *end;
switch(bpp) {
case 32: {
uint16_t *source = (uint16_t *) src[0];
uint16_t *dest = (uint16_t *) bppbuf;
uint16_t *end;
end = source + (maxw * maxh * 2);
while (source < end) {
*dest++ = *source++;
@ -440,6 +440,9 @@ static uint32_t draw_frame(uint8_t *src[]) {
#ifdef HAVE_MMX
rgb15to16_mmx(src[0],bppbuf,maxw * maxh * 2);
#else
uint16_t *source = (uint16_t *) src[0];
uint16_t *dest = (uint16_t *) bppbuf;
uint16_t *end;
register uint16_t srcdata;
end = source + (maxw * maxh);