]> git.sesse.net Git - vlc/blob - src/ac3_decoder/ac3_internal.h
* Move ac3 globals variables into structures
[vlc] / src / ac3_decoder / ac3_internal.h
1 /*****************************************************************************
2  * ac3_internals.h: needed by the ac3 decoder
3  *****************************************************************************
4  * Copyright (C) 2000 VideoLAN
5  *
6  * Authors: Michel Lespinasse <walken@zoy.org>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23 /* Exponent strategy constants */
24 #define EXP_REUSE       (0)
25 #define EXP_D15         (1)
26 #define EXP_D25         (2)
27 #define EXP_D45         (3)
28
29 /* Delta bit allocation constants */
30 #define DELTA_BIT_REUSE         (0)
31 #define DELTA_BIT_NEW           (1)
32 #define DELTA_BIT_NONE          (2)
33 #define DELTA_BIT_RESERVED      (3)
34
35 /* ac3_bit_allocate.c */
36 void bit_allocate (ac3dec_t *);
37
38 /* ac3_downmix.c */
39 int downmix (ac3dec_t *, s16 *);
40
41 /* ac3_exponent.c */
42 int exponent_unpack (ac3dec_t *);
43
44 /* ac3_imdct.c */
45 void imdct (ac3dec_t * p_ac3dec, s16 * buffer);
46
47 /* ac3_mantissa.c */
48 void mantissa_unpack (ac3dec_t *);
49
50 /* ac3_parse.c */
51 int parse_bsi (ac3dec_t *);
52 int parse_audblk (ac3dec_t *, int);
53 void parse_auxdata (ac3dec_t *);
54
55 /* ac3_rematrix.c */
56 void rematrix (ac3dec_t *);