summaryrefslogtreecommitdiff
path: root/libavcodec/sinewin_fixed_tablegen.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-10-28 21:36:10 +0200
committerLynne <dev@lynne.ee>2022-11-06 14:39:33 +0100
commit469cd8d7fa55ebd07be31e4c5bd0ed4b45c551dc (patch)
tree39a6426364b9fdd54468fc16b0bc6137c42927c7 /libavcodec/sinewin_fixed_tablegen.c
parent4cee7ebd75205bca06ca8010711ae2f83a55caa6 (diff)
aacdec: convert to lavu/tx and support fixed-point 960-sample decoding
This patch replaces the transform used in AAC with lavu/tx and removes the limitation on only being able to decode 960-sample files with the float decoder. This commit also removes a whole bunch of unnecessary and slow lifting steps the decoder did to compensate for the poor accuracy of the old integer transformation code. Overall float decoder speedup on Zen 3 for 64kbps: 32%
Diffstat (limited to 'libavcodec/sinewin_fixed_tablegen.c')
-rw-r--r--libavcodec/sinewin_fixed_tablegen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/sinewin_fixed_tablegen.c b/libavcodec/sinewin_fixed_tablegen.c
index 61e5274afa..15f0cc2072 100644
--- a/libavcodec/sinewin_fixed_tablegen.c
+++ b/libavcodec/sinewin_fixed_tablegen.c
@@ -35,8 +35,11 @@ int main(void)
printf("SINETABLE("#size") = {\n"); \
write_int32_t_array(sine_ ## size ## _fixed, size); \
printf("};\n")
+ PRINT_TABLE(120);
PRINT_TABLE(128);
+ PRINT_TABLE(480);
PRINT_TABLE(512);
+ PRINT_TABLE(960);
PRINT_TABLE(1024);
return 0;
}