From 5d02058b47aadcc384ddd02083b8ee0639fb2592 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 5 Jun 2007 15:09:49 +0000 Subject: 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 --- libmpcodecs/vd_mtga.c | 2 +- libmpcodecs/vf_fspp.c | 4 ++-- libmpcodecs/vf_yadif.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vd_mtga.c b/libmpcodecs/vd_mtga.c index f9f2301da2..c61492e6fc 100644 --- a/libmpcodecs/vd_mtga.c +++ b/libmpcodecs/vd_mtga.c @@ -110,7 +110,7 @@ static void decode_rle_tga(TGAInfo *info, unsigned char *data, mp_image_t *mpi) if (packet_header & 0x80) /* runlength encoded packet */ { - fast_memcpy(final, data, num_bytes); + memcpy(final, data, num_bytes); // Note: this will be slow when DR to vram! i=num_bytes; diff --git a/libmpcodecs/vf_fspp.c b/libmpcodecs/vf_fspp.c index acb39f5c56..021aa03de2 100644 --- a/libmpcodecs/vf_fspp.c +++ b/libmpcodecs/vf_fspp.c @@ -456,8 +456,8 @@ static void filter(struct vf_priv_s *p, uint8_t *dst, uint8_t *src, column_fidct_s((int16_t*)(&p->threshold_mtx[0]), block+x*8, block3+x*8, 8); //yes, this is a HOTSPOT } row_idct_s(block3+0*8, p->temp + (y&15)*stride+x0+2-(y&1), stride, 2*(BLOCKSZ-1)); - fast_memcpy(block, block+(BLOCKSZ-1)*64, 8*8*sizeof(DCTELEM)); //cycling - fast_memcpy(block3, block3+(BLOCKSZ-1)*64, 6*8*sizeof(DCTELEM)); + memcpy(block, block+(BLOCKSZ-1)*64, 8*8*sizeof(DCTELEM)); //cycling + memcpy(block3, block3+(BLOCKSZ-1)*64, 6*8*sizeof(DCTELEM)); } // es=width+8-x0; // 8, ... diff --git a/libmpcodecs/vf_yadif.c b/libmpcodecs/vf_yadif.c index 89c1a8b6bd..7ffded56a6 100644 --- a/libmpcodecs/vf_yadif.c +++ b/libmpcodecs/vf_yadif.c @@ -62,7 +62,7 @@ static void (*filter_line)(struct vf_priv_s *p, uint8_t *dst, uint8_t *prev, uin static void store_ref(struct vf_priv_s *p, uint8_t *src[3], int src_stride[3], int width, int height){ int i; - fast_memcpy (p->ref[3], p->ref[0], sizeof(uint8_t *)*3); + memcpy (p->ref[3], p->ref[0], sizeof(uint8_t *)*3); memmove(p->ref[0], p->ref[1], sizeof(uint8_t *)*3*3); for(i=0; i<3; i++){ -- cgit v1.2.3