author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (side-by-side diff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /core/multimedia/opieplayer/libmpeg3/audio/tables.h | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'core/multimedia/opieplayer/libmpeg3/audio/tables.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/libmpeg3/audio/tables.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/libmpeg3/audio/tables.h b/core/multimedia/opieplayer/libmpeg3/audio/tables.h new file mode 100644 index 0000000..7b14de1 --- a/dev/null +++ b/core/multimedia/opieplayer/libmpeg3/audio/tables.h @@ -0,0 +1,88 @@ +/********************************************************************** +** Copyright (C) 2000 Trolltech AS. All rights reserved. +** +** This file is part of Qtopia Environment. +** +** This file may be distributed and/or modified under the terms of the +** GNU General Public License version 2 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. +** +** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +** +** See http://www.trolltech.com/gpl/ for GPL licensing information. +** +** Contact info@trolltech.com if any conditions of this licensing are +** not clear to you. +** +**********************************************************************/ +#ifndef TABLES_H +#define TABLES_H + +extern int mpeg3_tabsel_123[2][3][16]; + +extern long mpeg3_freqs[9]; + +struct mpeg3_bandInfoStruct +{ + int longIdx[23]; + int longDiff[22]; + int shortIdx[14]; + int shortDiff[13]; +}; + + +extern mpeg3_real_t mpeg3_decwin[512 + 32]; +extern mpeg3_real_t mpeg3_cos64[16], mpeg3_cos32[8], mpeg3_cos16[4], mpeg3_cos8[2], mpeg3_cos4[1]; + +extern mpeg3_real_t *mpeg3_pnts[5]; + +extern int mpeg3_grp_3tab[32 * 3]; /* used: 27 */ +extern int mpeg3_grp_5tab[128 * 3]; /* used: 125 */ +extern int mpeg3_grp_9tab[1024 * 3]; /* used: 729 */ +extern long mpeg3_intwinbase[257]; +extern mpeg3_real_t mpeg3_COS6_1, mpeg3_COS6_2; + +#if defined(USE_FIXED_POINT) && !defined(PRINT_FIXED_POINT_TABLES) +# define REAL_MATRIX(var,dim1,dimn) mpeg3_real_t (*var)dimn +#else +# define REAL_MATRIX(var,dim1,dimn) mpeg3_real_t var dim1 dimn +#endif +extern REAL_MATRIX(mpeg3_muls, [27], [64]); /* also used by layer 1 */ +extern REAL_MATRIX(mpeg3_gainpow2, [256 + 118 + 4], ); +extern REAL_MATRIX(mpeg3_ispow, [8207], ); +extern REAL_MATRIX(mpeg3_aa_ca, [8], ); +extern REAL_MATRIX(mpeg3_aa_cs, [8], ); +extern REAL_MATRIX(mpeg3_win, [4], [36]); +extern REAL_MATRIX(mpeg3_win1, [4], [36]); +extern REAL_MATRIX(mpeg3_COS1, [12], [6]); +extern REAL_MATRIX(mpeg3_COS9, [9], ); +extern REAL_MATRIX(mpeg3_tfcos36, [9], ); +extern REAL_MATRIX(mpeg3_tfcos12, [3], ); +extern REAL_MATRIX(mpeg3_cos9, [3], ); +extern REAL_MATRIX(mpeg3_cos18, [3], ); +extern REAL_MATRIX(mpeg3_tan1_1, [16], ); +extern REAL_MATRIX(mpeg3_tan2_1, [16], ); +extern REAL_MATRIX(mpeg3_tan1_2, [16], ); +extern REAL_MATRIX(mpeg3_tan2_2, [16], ); +extern REAL_MATRIX(mpeg3_pow1_1, [2], [16]); +extern REAL_MATRIX(mpeg3_pow2_1, [2], [16]); +extern REAL_MATRIX(mpeg3_pow1_2, [2], [16]); +extern REAL_MATRIX(mpeg3_pow2_2, [2], [16]); + +extern int mpeg3_longLimit[9][23]; +extern int mpeg3_shortLimit[9][14]; + +extern struct mpeg3_bandInfoStruct mpeg3_bandInfo[9]; + +extern int mpeg3_mapbuf0[9][152]; +extern int mpeg3_mapbuf1[9][156]; +extern int mpeg3_mapbuf2[9][44]; +extern int *mpeg3_map[9][3]; +extern int *mpeg3_mapend[9][3]; + +extern unsigned int mpeg3_n_slen2[512]; /* MPEG 2.0 slen for 'normal' mode */ +extern unsigned int mpeg3_i_slen2[256]; /* MPEG 2.0 slen for intensity stereo */ + +#endif |