Adding fastmemcpy stuff to speedup mplayer project
authorNick Kurshev <nickols_k@mail.ru>
Thu, 2 Aug 2001 08:29:38 +0000 (08:29 +0000)
committerNick Kurshev <nickols_k@mail.ru>
Thu, 2 Aug 2001 08:29:38 +0000 (08:29 +0000)
Originally committed as revision 27 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/Makefile
libavcodec/fastmemcpy.h [new file with mode: 0644]
libavcodec/imgconvert.c
libavcodec/imgresample.c
libavcodec/mpeg12.c
libavcodec/mpegvideo.c

index 58a0274..de9376b 100644 (file)
@@ -35,7 +35,8 @@ SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
 LIB= libavcodec.a
 TESTS= imgresample-test dct-test
 
-all: $(LIB) apiexample
+all: $(LIB)
+tests: apiexample $(TESTS)
 
 $(LIB): $(OBJS) $(ASM_OBJS)
        rm -f $@
diff --git a/libavcodec/fastmemcpy.h b/libavcodec/fastmemcpy.h
new file mode 100644 (file)
index 0000000..2a6f5c8
--- /dev/null
@@ -0,0 +1 @@
+#include "../libvo/fastmemcpy.h"
index 01289d4..be2470b 100644 (file)
 #include <string.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
 /* XXX: totally non optimized */
 
 static void yuv422_to_yuv420p(UINT8 *lum, UINT8 *cb, UINT8 *cr,
index d394abd..52331a6 100644 (file)
 #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
index 326f043..d497d14 100644 (file)
 
 #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
index ec4b26b..49a9981 100644 (file)
 #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);