summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/cookdata_fixpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libcook/cookdata_fixpoint.h')
-rw-r--r--apps/codecs/libcook/cookdata_fixpoint.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/codecs/libcook/cookdata_fixpoint.h b/apps/codecs/libcook/cookdata_fixpoint.h
index 7a9440c664..72ccabeb89 100644
--- a/apps/codecs/libcook/cookdata_fixpoint.h
+++ b/apps/codecs/libcook/cookdata_fixpoint.h
@@ -43,7 +43,9 @@ typedef struct {
43#define cPI1_8 0xec83 /* 1pi/8 2^16 */ 43#define cPI1_8 0xec83 /* 1pi/8 2^16 */
44#define cPI2_8 0xb505 /* 2pi/8 2^16 */ 44#define cPI2_8 0xb505 /* 2pi/8 2^16 */
45#define cPI3_8 0x61f8 /* 3pi/8 2^16 */ 45#define cPI3_8 0x61f8 /* 3pi/8 2^16 */
46#endif 46
47
48
47static const FIXPU sincos_lookup[2050] = { 49static const FIXPU sincos_lookup[2050] = {
48 /* x_i = 2^16 sin(i 2pi/8192), 2^16 cos(i 2pi/8192); i=0..1024 */ 50 /* x_i = 2^16 sin(i 2pi/8192), 2^16 cos(i 2pi/8192); i=0..1024 */
49 0x0000, 0xffff, 0x0032, 0xffff, 0x0065, 0xffff, 0x0097, 0xffff, 51 0x0000, 0xffff, 0x0032, 0xffff, 0x0065, 0xffff, 0x0097, 0xffff,
@@ -305,6 +307,8 @@ static const FIXPU sincos_lookup[2050] = {
305 0xb505, 0xb505 307 0xb505, 0xb505
306}; 308};
307 309
310#endif
311
308static const FIXPU pow128_tab[128] = { 312static const FIXPU pow128_tab[128] = {
309 /* x_i = 2^(15+i/128) */ 313 /* x_i = 2^(15+i/128) */
310 0x8000, 0x80b2, 0x8165, 0x8219, 0x82ce, 0x8383, 0x843a, 0x84f2, 0x85ab, 314 0x8000, 0x80b2, 0x8165, 0x8219, 0x82ce, 0x8383, 0x843a, 0x84f2, 0x85ab,
@@ -325,6 +329,7 @@ static const FIXPU pow128_tab[128] = {
325}; 329};
326 330
327 331
332
328/* dither_table and quant_centroid_table. 333/* dither_table and quant_centroid_table.
329 * Index 1: [0] - scaled by 2^13, [1] - scaled by 2^13 / sqrt(2) 334 * Index 1: [0] - scaled by 2^13, [1] - scaled by 2^13 / sqrt(2)
330 * Index 2: [0..7] - category 335 * Index 2: [0..7] - category