From 6a09e8e2ed913cb44d74cac9c9e7a4cf7f4a18c1 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 5 Jun 2007 14:27:54 +0000 Subject: Replace implicit use of fast_memcpy via macro by explicit use to allow for future optimization. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23475 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_sdl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libvo/vo_sdl.c') diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index 415c43de17..177003e0e7 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -1052,11 +1052,11 @@ static int draw_frame(uint8_t *src[]) mysrc+=priv->framePlaneYUY; for(i = 0; i < priv->height; i++) { mysrc-=priv->stridePlaneYUY; - memcpy (dst, mysrc, priv->stridePlaneYUY); + fast_memcpy (dst, mysrc, priv->stridePlaneYUY); dst+=priv->overlay->pitches[0]; } } - else memcpy (dst, src[0], priv->framePlaneYUY); + else fast_memcpy (dst, src[0], priv->framePlaneYUY); SDL_OVR_UNLOCK break; @@ -1075,11 +1075,11 @@ static int draw_frame(uint8_t *src[]) mysrc+=priv->framePlaneRGB; for(i = 0; i < priv->height; i++) { mysrc-=priv->stridePlaneRGB; - memcpy (dst, mysrc, priv->stridePlaneRGB); + fast_memcpy (dst, mysrc, priv->stridePlaneRGB); dst += priv->surface->pitch; } } - else memcpy (dst, src[0], priv->framePlaneRGB); + else fast_memcpy (dst, src[0], priv->framePlaneRGB); SDL_SRF_UNLOCK(priv->surface) } else { SDL_SRF_LOCK(priv->rgbsurface, -1) @@ -1088,11 +1088,11 @@ static int draw_frame(uint8_t *src[]) mysrc+=priv->framePlaneRGB; for(i = 0; i < priv->height; i++) { mysrc-=priv->stridePlaneRGB; - memcpy (dst, mysrc, priv->stridePlaneRGB); + fast_memcpy (dst, mysrc, priv->stridePlaneRGB); dst += priv->rgbsurface->pitch; } } - else memcpy (dst, src[0], priv->framePlaneRGB); + else fast_memcpy (dst, src[0], priv->framePlaneRGB); SDL_SRF_UNLOCK(priv->rgbsurface) } break; -- cgit v1.2.3