Some people confuse vidix with kernel drivers, so let's add a note about it
[mplayer/glamo.git] / liba52 / a52_internal.h
blob428bbd1a2ac2e60930b226102c8b683db2d9ef07
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>
6 * This file is part of a52dec, a free ATSC A-52 stream decoder.
7 * See http://liba52.sourceforge.net/ for updates.
9 * Modified for use with MPlayer, changes contained in liba52_changes.diff.
10 * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/
11 * $Id$
13 * a52dec is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * a52dec is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #define LEVEL_PLUS6DB 2.0
29 #define LEVEL_PLUS3DB 1.4142135623730951
30 #define LEVEL_3DB 0.7071067811865476
31 #define LEVEL_45DB 0.5946035575013605
32 #define LEVEL_6DB 0.5
34 #define EXP_REUSE (0)
35 #define EXP_D15 (1)
36 #define EXP_D25 (2)
37 #define EXP_D45 (3)
39 #define DELTA_BIT_REUSE (0)
40 #define DELTA_BIT_NEW (1)
41 #define DELTA_BIT_NONE (2)
42 #define DELTA_BIT_RESERVED (3)
44 void bit_allocate (a52_state_t * state, a52_ba_t * ba, int bndstart,
45 int start, int end, int fastleak, int slowleak,
46 uint8_t * exp, int8_t * bap);
48 int downmix_init (int input, int flags, sample_t * level,
49 sample_t clev, sample_t slev);
50 void downmix_accel_init(uint32_t mm_accel);
51 int downmix_coeff (sample_t * coeff, int acmod, int output, sample_t level,
52 sample_t clev, sample_t slev);
53 extern void (*downmix) (sample_t * samples, int acmod, int output, sample_t bias,
54 sample_t clev, sample_t slev);
55 extern void (*upmix) (sample_t * samples, int acmod, int output);
57 void imdct_init (uint32_t mm_accel);
58 extern void (* imdct_256) (sample_t * data, sample_t * delay, sample_t bias);
59 extern void (* imdct_512) (sample_t * data, sample_t * delay, sample_t bias);
60 void imdct_do_256_mlib (sample_t * data, sample_t * delay, sample_t bias);
61 void imdct_do_512_mlib (sample_t * data, sample_t * delay, sample_t bias);