summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-05 15:09:49 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-05 15:09:49 +0000
commit5d02058b47aadcc384ddd02083b8ee0639fb2592 (patch)
tree012a2b7c0682ecd178ea35cb12f086bc6d5cbc2c /libvo
parent6a09e8e2ed913cb44d74cac9c9e7a4cf7f4a18c1 (diff)
downloadmpv-5d02058b47aadcc384ddd02083b8ee0639fb2592.tar.bz2
mpv-5d02058b47aadcc384ddd02083b8ee0639fb2592.tar.xz
Do not use fast_memcpy for small size copy, esp. when the size is constant
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23476 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_bl.c2
-rw-r--r--libvo/vo_dxr3.c2
-rw-r--r--libvo/vo_vesa.c4
-rw-r--r--libvo/vo_zr2.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c
index 7036c3c4f3..19f85a8c76 100644
--- a/libvo/vo_bl.c
+++ b/libvo/vo_bl.c
@@ -174,7 +174,7 @@ static int udp_init(bl_host_t *h) {
addr.sin_family = AF_INET;
addr.sin_port = htons(h->port);
- fast_memcpy(&addr.sin_addr.s_addr, dest->h_addr_list[0], dest->h_length);
+ memcpy(&addr.sin_addr.s_addr, dest->h_addr_list[0], dest->h_length);
h->fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (h->fd < 0) {
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index 8d86b61a83..754efd22b2 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -1106,7 +1106,7 @@ static struct lut_entry *new_lookuptable(overlay_t *o)
},*p;
p = malloc(sizeof(m));
- fast_memcpy(p,m,sizeof(m));
+ memcpy(p,m,sizeof(m));
return p;
}
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index a7c51197a0..9f5a8d0591 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -217,7 +217,7 @@ static void __vbeSetPixel(int x, int y, int r, int g, int b)
color = (r << shift_r) | (g << shift_g) | (b << shift_b);
offset = y * bpl + (x * pixel_size);
if(!VALID_WIN_FRAME(offset)) __vbeSwitchBank(offset);
- fast_memcpy(VIDEO_PTR(offset), &color, pixel_size);
+ memcpy(VIDEO_PTR(offset), &color, pixel_size);
}
/*
@@ -649,7 +649,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
else fs_mode = 1;
}
if((err=vbeInit()) != VBE_OK) { PRINT_VBE_ERR("vbeInit",err); return -1; }
- fast_memcpy(vib.VESASignature,"VBE2",4);
+ memcpy(vib.VESASignature,"VBE2",4);
if(!vib_set && (err=vbeGetControllerInfo(&vib)) != VBE_OK)
{
PRINT_VBE_ERR("vbeGetControllerInfo",err);
diff --git a/libvo/vo_zr2.c b/libvo/vo_zr2.c
index 613496d48c..e1413ac83d 100644
--- a/libvo/vo_zr2.c
+++ b/libvo/vo_zr2.c
@@ -394,7 +394,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
* We make configuration changes to a temporary params structure,
* compare it with the old params structure and only apply the new
* config if it is different from the old one. */
- fast_memcpy(&zptmp, &p->zp, sizeof(zptmp));
+ memcpy(&zptmp, &p->zp, sizeof(zptmp));
/* translate the configuration to zoran understandable format */
zptmp.decimation = 0;
@@ -423,7 +423,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
if (memcmp(&zptmp, &p->zp, sizeof(zptmp))) {
/* config differs, we must update */
- fast_memcpy(&p->zp, &zptmp, sizeof(zptmp));
+ memcpy(&p->zp, &zptmp, sizeof(zptmp));
stop_playing(p);
if (ioctl(p->vdes, MJPIOC_S_PARAMS, &p->zp) < 0) {
ERROR("error writing display params to card\n");