From 37bbf407aef45a65dd5ff54586c0d2465c83f848 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Fri, 13 Sep 2002 03:02:18 +0000 Subject: use xine's optimized memcpy() where applicable CVS patchset: 2656 CVS date: 2002/09/13 03:02:18 --- src/libxinevdec/wc3video.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/libxinevdec/wc3video.c b/src/libxinevdec/wc3video.c index f5628a9cc..9c943581e 100644 --- a/src/libxinevdec/wc3video.c +++ b/src/libxinevdec/wc3video.c @@ -22,7 +22,7 @@ * For more information on the WC3 Movie format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: wc3video.c,v 1.4 2002/09/05 22:19:03 mroi Exp $ + * $Id: wc3video.c,v 1.5 2002/09/13 03:02:18 tmmm Exp $ */ #include @@ -159,18 +159,19 @@ static void wc3_build_frame (wc3video_decoder_t *this) { break; } + /* run is unchanged from last frame */ if (func < 12) { flag = flag ^ 1; if ( flag ) { - bytecopy( + xine_fast_memcpy( &this->current_frame->y[index], &this->last_frame->y[index], size); - bytecopy( + xine_fast_memcpy( &this->current_frame->u[index], &this->last_frame->u[index], size); - bytecopy( + xine_fast_memcpy( &this->current_frame->v[index], &this->last_frame->v[index], size); @@ -189,6 +190,7 @@ static void wc3_build_frame (wc3video_decoder_t *this) { } } } else { + /* run displacement from last frame */ int x = (*part3 >> 4) & 0xf; int y = *part3 & 0xf; part3++; @@ -198,15 +200,15 @@ static void wc3_build_frame (wc3video_decoder_t *this) { if (y & 8) y |= 0xfffffff0; /* copy a run of pixels from the previous frame */ - bytecopy( + xine_fast_memcpy( &this->current_frame->y[index], &this->last_frame->y[index + x + y * WC3_WIDTH], size); - bytecopy( + xine_fast_memcpy( &this->current_frame->u[index], &this->last_frame->u[index + x + y * WC3_WIDTH], size); - bytecopy( + xine_fast_memcpy( &this->current_frame->v[index], &this->last_frame->v[index + x + y * WC3_WIDTH], size); -- cgit v1.2.3