# HG changeset patch # User nickols_k # Date 996740978 0 # Node ID b69fe46fd708b28c860f5e09699397e959b9435f # Parent 89bc3bf1a0315bab40f29700f2f250f2f7906015 Adding fastmemcpy stuff to speedup mplayer project diff -r 89bc3bf1a031 -r b69fe46fd708 Makefile --- a/Makefile Mon Jul 30 23:51:20 2001 +0000 +++ b/Makefile Thu Aug 02 08:29:38 2001 +0000 @@ -35,7 +35,8 @@ LIB= libavcodec.a TESTS= imgresample-test dct-test -all: $(LIB) apiexample +all: $(LIB) +tests: apiexample $(TESTS) $(LIB): $(OBJS) $(ASM_OBJS) rm -f $@ diff -r 89bc3bf1a031 -r b69fe46fd708 fastmemcpy.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fastmemcpy.h Thu Aug 02 08:29:38 2001 +0000 @@ -0,0 +1,1 @@ +#include "../libvo/fastmemcpy.h" diff -r 89bc3bf1a031 -r b69fe46fd708 imgconvert.c --- a/imgconvert.c Mon Jul 30 23:51:20 2001 +0000 +++ b/imgconvert.c Thu Aug 02 08:29:38 2001 +0000 @@ -21,6 +21,14 @@ #include #include "avcodec.h" +/* Stuff below is useful only for mplayer project */ +#ifdef HAVE_CONFIG_H +#include "../config.h" +#endif + +#ifdef USE_FASTMEMCPY +#include "fastmemcpy.h" +#endif /* XXX: totally non optimized */ static void yuv422_to_yuv420p(UINT8 *lum, UINT8 *cb, UINT8 *cr, diff -r 89bc3bf1a031 -r b69fe46fd708 imgresample.c --- a/imgresample.c Mon Jul 30 23:51:20 2001 +0000 +++ b/imgresample.c Thu Aug 02 08:29:38 2001 +0000 @@ -23,6 +23,16 @@ #include "dsputil.h" #include "avcodec.h" +/* Stuff below is useful only for mplayer project */ +#ifdef HAVE_CONFIG_H +#include "../config.h" +#endif + +#ifdef USE_FASTMEMCPY +#include "fastmemcpy.h" +#endif + + #define NB_COMPONENTS 3 #define PHASE_BITS 4 diff -r 89bc3bf1a031 -r b69fe46fd708 mpeg12.c --- a/mpeg12.c Mon Jul 30 23:51:20 2001 +0000 +++ b/mpeg12.c Thu Aug 02 08:29:38 2001 +0000 @@ -25,6 +25,14 @@ #include "mpeg12data.h" +/* Stuff below is useful only for mplayer project */ +#ifdef HAVE_CONFIG_H +#include "../config.h" +#endif + +#ifdef USE_FASTMEMCPY +#include "fastmemcpy.h" +#endif //#define DEBUG #ifdef DEBUG diff -r 89bc3bf1a031 -r b69fe46fd708 mpegvideo.c --- a/mpegvideo.c Mon Jul 30 23:51:20 2001 +0000 +++ b/mpegvideo.c Thu Aug 02 08:29:38 2001 +0000 @@ -24,6 +24,15 @@ #include "dsputil.h" #include "mpegvideo.h" +/* Stuff below is useful only for mplayer project */ +#ifdef HAVE_CONFIG_H +#include "../config.h" +#endif + +#ifdef USE_FASTMEMCPY +#include "fastmemcpy.h" +#endif + static void encode_picture(MpegEncContext *s, int picture_number); static void rate_control_init(MpegEncContext *s); static int rate_estimate_qscale(MpegEncContext *s);