]> git.sesse.net Git - vlc/blob - src/ac3_decoder/ac3_internal.h
b6e5bdca6274e094c30ca51326a0ce1ca3782d53
[vlc] / src / ac3_decoder / ac3_internal.h
1 /*****************************************************************************
2  * ac3_internals.h: needed by the ac3 decoder
3  *****************************************************************************
4  * Copyright (C) 2000 VideoLAN
5  * $Id: ac3_internal.h,v 1.9 2001/05/14 15:58:04 reno Exp $
6  *
7  * Authors: Michel Lespinasse <walken@zoy.org>
8  *
9  * This program 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  * This program 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, USA.
22  *****************************************************************************/
23
24 /* Exponent strategy constants */
25 #define EXP_REUSE       (0)
26 #define EXP_D15         (1)
27 #define EXP_D25         (2)
28 #define EXP_D45         (3)
29
30 /* Delta bit allocation constants */
31 #define DELTA_BIT_REUSE         (0)
32 #define DELTA_BIT_NEW           (1)
33 #define DELTA_BIT_NONE          (2)
34 #define DELTA_BIT_RESERVED      (3)
35
36 /* ac3_bit_allocate.c */
37 void bit_allocate (ac3dec_t *);
38
39 /* ac3_downmix.c */
40 void downmix_init (downmix_t * p_downmix);
41
42 /* ac3_exponent.c */
43 int exponent_unpack (ac3dec_t *);
44
45 /* ac3_imdct.c */
46 void imdct_init (imdct_t * p_imdct);
47 void imdct (ac3dec_t * p_ac3dec, s16 * buffer);
48
49 /* ac3_mantissa.c */
50 void mantissa_unpack (ac3dec_t *);
51
52 /* ac3_parse.c */
53 int parse_bsi (ac3dec_t *);
54 int parse_audblk (ac3dec_t *, int);
55 void parse_auxdata (ac3dec_t *);
56
57 /* ac3_rematrix.c */
58 void rematrix (ac3dec_t *);