diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-01-02 13:17:48 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-01-02 13:17:48 +0100 |
commit | d03da3e24020e9ef7b7558c0f1741331d46c2c21 (patch) | |
tree | b03b455c8382c45ed096d291d8007e2f90eb20cf /tests/checkasm | |
parent | af1238f863fda4a1a6fc00525b651a3d9b31eccd (diff) | |
parent | 2008f76054906e9ff6bf744800af0e5a5bfe61be (diff) | |
download | ffmpeg-d03da3e24020e9ef7b7558c0f1741331d46c2c21.tar.gz |
Merge commit '2008f76054906e9ff6bf744800af0e5a5bfe61be'
* commit '2008f76054906e9ff6bf744800af0e5a5bfe61be':
dca: remove unused decode_hf function and quant_d tables
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'tests/checkasm')
-rw-r--r-- | tests/checkasm/dcadsp.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/checkasm/dcadsp.c b/tests/checkasm/dcadsp.c index e0a4f4de98..5c7ff6f2d1 100644 --- a/tests/checkasm/dcadsp.c +++ b/tests/checkasm/dcadsp.c @@ -75,16 +75,6 @@ } \ } while (0) -#define randomize_decode_hf() \ - do { \ - int i; \ - for (i = 0; i < DCA_SUBBANDS; i++) { \ - vq_num[i] = rnd() >> 22; \ - scale[i][0] = rnd() >> 26; \ - scale[i][1] = INT32_MIN; \ - } \ - } while (0) - void checkasm_check_dcadsp(void) { DCADSPContext c; @@ -98,40 +88,5 @@ void checkasm_check_dcadsp(void) if (check_func(c.lfe_fir[1], "dca_lfe_fir1")) check_lfe_fir(64, 1.0e-6f); - if (check_func(c.decode_hf, "dca_decode_hf")) { - LOCAL_ALIGNED_16(float, dst0, [DCA_SUBBANDS], [8]); - LOCAL_ALIGNED_16(float, dst1, [DCA_SUBBANDS], [8]); - LOCAL_ALIGNED_16(int32_t, scale, [DCA_SUBBANDS], [2]); - LOCAL_ALIGNED_16(int32_t, vq_num, [DCA_SUBBANDS]); - intptr_t start, end = 32, offset; - - declare_func(void, float[DCA_SUBBANDS][8], const int32_t[DCA_SUBBANDS], - const int8_t[1024][DCA_SUBBANDS], intptr_t, int32_t[DCA_SUBBANDS][2], - intptr_t, intptr_t); - - for (start = 0; start < 32; start++) { - for (offset = 0; offset < 32; offset += 8) { - int j; - for (j = 0; j < DCA_SUBBANDS; j++) { - memset(dst0[j], 0, sizeof(*(dst0[j])) * 8); - memset(dst1[j], 0, sizeof(*(dst1[j])) * 8); - } - randomize_decode_hf(); - - call_ref(dst0, vq_num, ff_dca_high_freq_vq, offset, scale, start, end); - call_new(dst1, vq_num, ff_dca_high_freq_vq, offset, scale, start, end); - - for (j = 0; j < 8 * DCA_SUBBANDS; j++) { - if (!float_near_ulp(dst0[j>>3][j&7], dst1[j>>3][j&7], 1)) { - fail(); - break; - } - } - - bench_new(dst1, vq_num, ff_dca_high_freq_vq, offset, scale, start, end); - } - } - } - report("dcadsp"); } |