add optimized resampler

This commit is contained in:
Jehan Monnier 2010-12-10 16:41:14 +01:00
parent e1ffbe85c9
commit 3efbb0b44d
3 changed files with 15 additions and 5 deletions

View file

@ -67,10 +67,18 @@ LOCAL_SRC_FILES := \
# -DARM4_ASM
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS +=\
-DARM5E_ASM \
-DDISABLE_FLOAT_API \
-DFIXED_POINT=1
ifeq ($(LINPHONE_VIDEO),1)
LOCAL_CFLAGS += -DOVERRIDE_INNER_PRODUCT_SINGLE -Dinner_product_single=ff_scalarproduct_float_neon
endif
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
LOCAL_CFLAGS += -DFLOATING_POINT=1
LOCAL_CFLAGS += -DOVERRIDE_INTERPOLATE_PRODUCT_SINGLE
else
LOCAL_CFLAGS +=\
-DARM5E_ASM\
-DDISABLE_FLOAT_API \
-DFIXED_POINT=1
endif
else
LOCAL_CFLAGS += \
-DFLOATING_POINT=1

View file

@ -7,5 +7,7 @@ typedef unsigned short spx_uint16_t;
typedef int spx_int32_t;
typedef unsigned int spx_uint32_t;
extern float ff_scalarproduct_float_neon (const float *v1, const float *v2, int len);
extern float interpolate_product_single(const float *a, const float *b, unsigned int len, const spx_uint32_t oversample, float *frac);
#endif

@ -1 +1 @@
Subproject commit 5299f13eada1a8380ace99762cf20b73916aa324
Subproject commit 45934f35c0182d01d2f78ffca2b726d67fe95423