Mercurial > mplayer.hg
annotate liba52/a52_internal.h @ 6406:9bbbcd3a6762
Aii 10l forgot to commit with my last x11_common.c commit
author | atmos4 |
---|---|
date | Thu, 13 Jun 2002 00:26:17 +0000 |
parents | db1d556fcf58 |
children | 07f1e7669772 |
rev | line source |
---|---|
3394 | 1 /* |
2 * a52_internal.h | |
3 * Copyright (C) 2000-2001 Michel Lespinasse <walken@zoy.org> | |
4 * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca> | |
5 * | |
6 * This file is part of a52dec, a free ATSC A-52 stream decoder. | |
7 * See http://liba52.sourceforge.net/ for updates. | |
8 * | |
9 * a52dec is free software; you can redistribute it and/or modify | |
10 * it under the terms of the GNU General Public License as published by | |
11 * the Free Software Foundation; either version 2 of the License, or | |
12 * (at your option) any later version. | |
13 * | |
14 * a52dec is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 */ | |
23 | |
24 #define LEVEL_PLUS6DB 2.0 | |
25 #define LEVEL_PLUS3DB 1.4142135623730951 | |
26 #define LEVEL_3DB 0.7071067811865476 | |
27 #define LEVEL_45DB 0.5946035575013605 | |
28 #define LEVEL_6DB 0.5 | |
29 | |
30 #define EXP_REUSE (0) | |
31 #define EXP_D15 (1) | |
32 #define EXP_D25 (2) | |
33 #define EXP_D45 (3) | |
34 | |
35 #define DELTA_BIT_REUSE (0) | |
36 #define DELTA_BIT_NEW (1) | |
37 #define DELTA_BIT_NONE (2) | |
38 #define DELTA_BIT_RESERVED (3) | |
39 | |
40 void bit_allocate (a52_state_t * state, a52_ba_t * ba, int bndstart, | |
41 int start, int end, int fastleak, int slowleak, | |
42 uint8_t * exp, int8_t * bap); | |
43 | |
44 int downmix_init (int input, int flags, sample_t * level, | |
45 sample_t clev, sample_t slev); | |
3910
db1d556fcf58
runtime cpudetect the liba52 way part 2 (downmix.c)
michael
parents:
3904
diff
changeset
|
46 void downmix_accel_init(uint32_t mm_accel); |
3394 | 47 int downmix_coeff (sample_t * coeff, int acmod, int output, sample_t level, |
48 sample_t clev, sample_t slev); | |
3904 | 49 extern void (*downmix) (sample_t * samples, int acmod, int output, sample_t bias, |
3394 | 50 sample_t clev, sample_t slev); |
3904 | 51 extern void (*upmix) (sample_t * samples, int acmod, int output); |
3394 | 52 |
53 void imdct_init (uint32_t mm_accel); | |
54 extern void (* imdct_256) (sample_t * data, sample_t * delay, sample_t bias); | |
55 extern void (* imdct_512) (sample_t * data, sample_t * delay, sample_t bias); | |
56 void imdct_do_256_mlib (sample_t * data, sample_t * delay, sample_t bias); | |
57 void imdct_do_512_mlib (sample_t * data, sample_t * delay, sample_t bias); |