Mercurial > mplayer.hg
diff libvo/vo_dga.c @ 690:2094b195a9bc
- now we use fastmemcpy() for copying. Saves about 25% of copying time on K6-2+
author | acki2 |
---|---|
date | Wed, 02 May 2001 23:21:27 +0000 |
parents | fbd9327b899b |
children | 3693fd4c4ec2 |
line wrap: on
line diff
--- a/libvo/vo_dga.c Wed May 02 21:02:04 2001 +0000 +++ b/libvo/vo_dga.c Wed May 02 23:21:27 2001 +0000 @@ -23,6 +23,9 @@ * - works only on x86 architectures * * $Log$ + * Revision 1.20 2001/05/02 23:21:27 acki2 + * - now we use fastmemcpy() for copying. Saves about 25% of copying time on K6-2+ + * * Revision 1.19 2001/05/01 22:37:37 acki2 * - now features 24->32 conversion (this is actually faster than letting the * codec produce depth 32 in the first place for avis :-))) ) @@ -113,6 +116,8 @@ #include "x11_common.h" +#include "fastmemcpy.h" + static vo_info_t vo_info = { #ifdef HAVE_DGA2 @@ -384,7 +389,17 @@ switch(SRC_MODE.vdm_conversion_func){ case VDM_CONV_NATIVE: - rep_movsl(d, s, lpl, vo_dga_vp_skip, numlines ); + {int i; + for(i=0; i< vo_dga_lines; i++){ + memcpy(d, s, vo_dga_bytes_per_line); + d+=vo_dga_vp_skip; + d+=vo_dga_bytes_per_line; + s+=vo_dga_bytes_per_line; + } + } + + + // rep_movsl(d, s, lpl, vo_dga_vp_skip, numlines ); break; case VDM_CONV_15TO16: printf("vo_dga: 15 to 16 not implemented yet!!!\n");