Commit bee7dcab authored by nickols_k's avatar nickols_k

Adding fastmemcpy stuff to speedup mplayer project


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@27 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 335cceb4
......@@ -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 $@
......
#include "../libvo/fastmemcpy.h"
......@@ -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,
......
......@@ -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
......
......@@ -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
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment