diff --git a/libcelt/bands.c b/libcelt/bands.c index 7f10f23fc2c583ab2e3b2867132d7c233f32942c..a3ce002cdb8a7b3c623c78a55e56e030636ea562 100644 --- a/libcelt/bands.c +++ b/libcelt/bands.c @@ -42,6 +42,7 @@ #include "os_support.h" #include "mathops.h" +#if 0 void exp_rotation(celt_norm_t *X, int len, int dir, int stride, int iter) { int i, k; @@ -74,7 +75,7 @@ void exp_rotation(celt_norm_t *X, int len, int dir, int stride, int iter) } } } - +#endif const celt_word16_t sqrtC_1[2] = {QCONST16(1.f, 14), QCONST16(1.414214f, 14)}; @@ -336,15 +337,15 @@ void quant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, ce if (q > 0) { - int nb_rotations = q <= 2*C ? 2*C/q : 0; + /*int nb_rotations = q <= 2*C ? 2*C/q : 0; if (nb_rotations != 0) { exp_rotation(P+C*eBands[i], C*(eBands[i+1]-eBands[i]), -1, C, nb_rotations); exp_rotation(X+C*eBands[i], C*(eBands[i+1]-eBands[i]), -1, C, nb_rotations); - } + }*/ alg_quant(X+C*eBands[i], W+C*eBands[i], C*(eBands[i+1]-eBands[i]), q, P+C*eBands[i], enc); - if (nb_rotations != 0) - exp_rotation(X+C*eBands[i], C*(eBands[i+1]-eBands[i]), 1, C, nb_rotations); + /*if (nb_rotations != 0) + exp_rotation(X+C*eBands[i], C*(eBands[i+1]-eBands[i]), 1, C, nb_rotations);*/ } for (j=C*eBands[i];j<C*eBands[i+1];j++) norm[j] = MULT16_16_Q15(n,X[j]); @@ -394,12 +395,12 @@ void unquant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, if (q > 0) { - int nb_rotations = q <= 2*C ? 2*C/q : 0; + /*int nb_rotations = q <= 2*C ? 2*C/q : 0; if (nb_rotations != 0) - exp_rotation(P+C*eBands[i], C*(eBands[i+1]-eBands[i]), -1, C, nb_rotations); + exp_rotation(P+C*eBands[i], C*(eBands[i+1]-eBands[i]), -1, C, nb_rotations);*/ alg_unquant(X+C*eBands[i], C*(eBands[i+1]-eBands[i]), q, P+C*eBands[i], dec); - if (nb_rotations != 0) - exp_rotation(X+C*eBands[i], C*(eBands[i+1]-eBands[i]), 1, C, nb_rotations); + /*if (nb_rotations != 0) + exp_rotation(X+C*eBands[i], C*(eBands[i+1]-eBands[i]), 1, C, nb_rotations);*/ } for (j=C*eBands[i];j<C*eBands[i+1];j++) norm[j] = MULT16_16_Q15(n,X[j]); diff --git a/tests/Makefile.am b/tests/Makefile.am index 7d70c9923b5cdf80f0aac68cf7af726dd119fb0a..2dc5c5631d2fe8a89084b149de20eb402422eef9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,9 +1,9 @@ INCLUDES = -I$(top_srcdir)/libcelt METASOURCES = AUTO -TESTS = type-test ectest cwrs32-test cwrs64-test real-fft-test dft-test laplace-test mdct-test rotation-test mathops-test +TESTS = type-test ectest cwrs32-test cwrs64-test real-fft-test dft-test laplace-test mdct-test mathops-test -noinst_PROGRAMS = type-test ectest cwrs32-test cwrs64-test real-fft-test dft-test laplace-test mdct-test rotation-test mathops-test +noinst_PROGRAMS = type-test ectest cwrs32-test cwrs64-test real-fft-test dft-test laplace-test mdct-test mathops-test type_test_SOURCES = type-test.c ectest_SOURCES = ectest.c @@ -13,8 +13,8 @@ real_fft_test_SOURCES = real-fft-test.c dft_test_SOURCES = dft-test.c laplace_test_SOURCES = laplace-test.c mdct_test_SOURCES = mdct-test.c -rotation_test_SOURCES = rotation-test.c +#rotation_test_SOURCES = rotation-test.c mathops_test_SOURCES = mathops-test.c -LDFLAGS = -static +AM_LDFLAGS = -static LDADD = $(top_builddir)/libcelt/libcelt.la