changeset 17:b69fe46fd708 libavcodec

Adding fastmemcpy stuff to speedup mplayer project
author nickols_k
date Thu, 02 Aug 2001 08:29:38 +0000
parents 89bc3bf1a031
children 1d2077091e88
files Makefile fastmemcpy.h imgconvert.c imgresample.c mpeg12.c mpegvideo.c
diffstat 6 files changed, 38 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 $@
--- /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"
--- 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 <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,
--- 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
--- 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
--- 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);