summaryrefslogtreecommitdiffstats
path: root/libvo/vo_sdl.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-05 14:27:54 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-05 14:27:54 +0000
commit6a09e8e2ed913cb44d74cac9c9e7a4cf7f4a18c1 (patch)
treeef08af22a70727d8ee9a902f622cf1d5042f5344 /libvo/vo_sdl.c
parentac87b4a173d2aee564e7cdca3037f101d946fbad (diff)
downloadmpv-6a09e8e2ed913cb44d74cac9c9e7a4cf7f4a18c1.tar.bz2
mpv-6a09e8e2ed913cb44d74cac9c9e7a4cf7f4a18c1.tar.xz
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
Diffstat (limited to 'libvo/vo_sdl.c')
-rw-r--r--libvo/vo_sdl.c12
1 files changed, 6 insertions, 6 deletions
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;