diff options
author | 2001-04-18 10:37:09 +0000 | |
---|---|---|
committer | 2001-04-18 10:37:09 +0000 | |
commit | 67fbbb9f926e1ca0b4f14b4166b91d32b7806f22 (patch) | |
tree | 6538fec07598e9df54ba9a5a63873bc335d671ba | |
parent | 46b83c244db87bf85ca8448dcf86433484063307 (diff) |
Maybe a little speedup.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@503 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_svga.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c index 5e2262ef92..c4ea0821b8 100644 --- a/libvo/vo_svga.c +++ b/libvo/vo_svga.c @@ -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); |