Browse Source

Adding fastmemcpy stuff to speedup mplayer project

Originally committed as revision 27 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Nick Kurshev 24 years ago
parent
commit
54329dd5a5
6 changed files with 38 additions and 1 deletions
  1. +2
    -1
      libavcodec/Makefile
  2. +1
    -0
      libavcodec/fastmemcpy.h
  3. +8
    -0
      libavcodec/imgconvert.c
  4. +10
    -0
      libavcodec/imgresample.c
  5. +8
    -0
      libavcodec/mpeg12.c
  6. +9
    -0
      libavcodec/mpegvideo.c

+ 2
- 1
libavcodec/Makefile View File

@@ -35,7 +35,8 @@ SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
LIB= libavcodec.a LIB= libavcodec.a
TESTS= imgresample-test dct-test TESTS= imgresample-test dct-test


all: $(LIB) apiexample
all: $(LIB)
tests: apiexample $(TESTS)


$(LIB): $(OBJS) $(ASM_OBJS) $(LIB): $(OBJS) $(ASM_OBJS)
rm -f $@ rm -f $@


+ 1
- 0
libavcodec/fastmemcpy.h View File

@@ -0,0 +1 @@
#include "../libvo/fastmemcpy.h"

+ 8
- 0
libavcodec/imgconvert.c View File

@@ -21,6 +21,14 @@
#include <string.h> #include <string.h>
#include "avcodec.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 */ /* XXX: totally non optimized */


static void yuv422_to_yuv420p(UINT8 *lum, UINT8 *cb, UINT8 *cr, static void yuv422_to_yuv420p(UINT8 *lum, UINT8 *cb, UINT8 *cr,


+ 10
- 0
libavcodec/imgresample.c View File

@@ -23,6 +23,16 @@
#include "dsputil.h" #include "dsputil.h"
#include "avcodec.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 NB_COMPONENTS 3


#define PHASE_BITS 4 #define PHASE_BITS 4


+ 8
- 0
libavcodec/mpeg12.c View File

@@ -25,6 +25,14 @@


#include "mpeg12data.h" #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 //#define DEBUG


#ifdef DEBUG #ifdef DEBUG


+ 9
- 0
libavcodec/mpegvideo.c View File

@@ -24,6 +24,15 @@
#include "dsputil.h" #include "dsputil.h"
#include "mpegvideo.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 encode_picture(MpegEncContext *s, int picture_number);
static void rate_control_init(MpegEncContext *s); static void rate_control_init(MpegEncContext *s);
static int rate_estimate_qscale(MpegEncContext *s); static int rate_estimate_qscale(MpegEncContext *s);


Loading…
Cancel
Save