From fe147cec651486d39967f24d0d1bbe6ae1cd067b Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Fri, 30 Apr 2010 12:20:25 +0000 Subject: Modify the ffmpeg source files in apps/codecs/libwmapro in order to compile the codec standalone. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25764 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/dsputil.c | 49 +++++++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 21 deletions(-) (limited to 'apps/codecs/libwmapro/dsputil.c') diff --git a/apps/codecs/libwmapro/dsputil.c b/apps/codecs/libwmapro/dsputil.c index bbfdb6ae8d..b09311925a 100644 --- a/apps/codecs/libwmapro/dsputil.c +++ b/apps/codecs/libwmapro/dsputil.c @@ -29,17 +29,18 @@ #include "avcodec.h" #include "dsputil.h" -#include "simple_idct.h" -#include "faandct.h" -#include "faanidct.h" +//#include "simple_idct.h" +//#include "faandct.h" +//#include "faanidct.h" #include "mathops.h" -#include "mpegvideo.h" -#include "config.h" -#include "lpc.h" -#include "ac3dec.h" -#include "vorbis.h" -#include "png.h" +//#include "mpegvideo.h" +//#include "config.h" +//#include "lpc.h" +//#include "ac3dec.h" +//#include "vorbis.h" +//#include "png.h" +#if 0 uint8_t ff_cropTbl[256 + 2 * MAX_NEG_CROP] = {0, }; uint32_t ff_squareTbl[512] = {0, }; @@ -3797,6 +3798,8 @@ WRAPPER8_16_SQ(quant_psnr8x8_c, quant_psnr16_c) WRAPPER8_16_SQ(rd8x8_c, rd16_c) WRAPPER8_16_SQ(bit8x8_c, bit16_c) +#endif /* 0 */ + static void vector_fmul_c(float *dst, const float *src, int len){ int i; for(i=0; ilpc_compute_autocorr = ff_lpc_compute_autocorr; #endif + +#endif /* 0 */ c->vector_fmul = vector_fmul_c; c->vector_fmul_reverse = vector_fmul_reverse_c; c->vector_fmul_add = vector_fmul_add_c; c->vector_fmul_window = ff_vector_fmul_window_c; - c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; - c->vector_clipf = vector_clipf_c; - c->float_to_int16 = ff_float_to_int16_c; - c->float_to_int16_interleave = ff_float_to_int16_interleave_c; - c->scalarproduct_int16 = scalarproduct_int16_c; - c->scalarproduct_and_madd_int16 = scalarproduct_and_madd_int16_c; - c->scalarproduct_float = scalarproduct_float_c; - c->butterflies_float = butterflies_float_c; + //c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; + //c->vector_clipf = vector_clipf_c; + //c->float_to_int16 = ff_float_to_int16_c; + //c->float_to_int16_interleave = ff_float_to_int16_interleave_c; + //c->scalarproduct_int16 = scalarproduct_int16_c; + //c->scalarproduct_and_madd_int16 = scalarproduct_and_madd_int16_c; + //c->scalarproduct_float = scalarproduct_float_c; + //c->butterflies_float = butterflies_float_c; c->vector_fmul_scalar = vector_fmul_scalar_c; - +#if 0 c->vector_fmul_sv_scalar[0] = vector_fmul_sv_scalar_2_c; c->vector_fmul_sv_scalar[1] = vector_fmul_sv_scalar_4_c; @@ -4561,5 +4568,5 @@ av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx) default: av_log(avctx, AV_LOG_ERROR, "Internal error, IDCT permutation not set\n"); } +#endif /* 0 */ } - -- cgit v1.2.3