diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-11-07 10:37:12 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2001-11-07 10:37:12 +0000 |
commit | aaa8c577a7a77caa8810ec2daa206828d2e1e589 (patch) | |
tree | d789fbcca2273bd4ea1330175ae936ae0b0f70b9 /src | |
parent | 7b4aef56ae262ef55eaefcd897fa0f343abfbc09 (diff) | |
download | xine-lib-aaa8c577a7a77caa8810ec2daa206828d2e1e589.tar.gz xine-lib-aaa8c577a7a77caa8810ec2daa206828d2e1e589.tar.bz2 |
fast_memcpy (i had about 7% cpu improvement!)
CVS patchset: 977
CVS date: 2001/11/07 10:37:12
Diffstat (limited to 'src')
-rw-r--r-- | src/libw32dll/w32codec.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libw32dll/w32codec.c b/src/libw32dll/w32codec.c index d09e9661d..fcf2b450c 100644 --- a/src/libw32dll/w32codec.c +++ b/src/libw32dll/w32codec.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: w32codec.c,v 1.32 2001/11/07 02:29:21 miguelfreitas Exp $ + * $Id: w32codec.c,v 1.33 2001/11/07 10:37:12 miguelfreitas Exp $ * * routines for using w32 codecs * @@ -39,6 +39,7 @@ #include "buffer.h" #include "monitor.h" #include "xine_internal.h" +#include "memcpy.h" extern char* win32_codec_name; extern char* win32_def_path; @@ -393,7 +394,7 @@ static void w32v_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { /* printf ("w32codec: processing packet ...\n"); */ - memcpy (&this->buf[this->size], buf->content, buf->size); + fast_memcpy (&this->buf[this->size], buf->content, buf->size); this->size += buf->size; @@ -425,7 +426,7 @@ static void w32v_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { if (this->outfmt==IMGFMT_YUY2) { /* already decoded into YUY2 format by DLL */ - memcpy(img->base[0], this->img_buffer, this->bih.biHeight*this->bih.biWidth*2); + fast_memcpy(img->base[0], this->img_buffer, this->bih.biHeight*this->bih.biWidth*2); } else { /* now, convert rgb to yuv */ int row, col; @@ -651,7 +652,7 @@ static void w32a_decode_audio (w32a_decoder_t *this, HRESULT hr; /* DWORD srcsize=0; */ - memcpy (&this->buf[this->size], data, nSize); + fast_memcpy (&this->buf[this->size], data, nSize); this->size += nSize; if( this->size > 2 * this->rec_audio_src_size ) |