]> git.sesse.net Git - vlc/blob - src/ac3_decoder/ac3_internal.h
* AC3 IMDCT and downmix functions are now in plugins, --imdct and
[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.10 2001/05/15 16:19:42 sam 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_exponent.c */
40 int exponent_unpack (ac3dec_t *);
41
42 /* ac3_imdct.c */
43 void imdct_init (imdct_t * p_imdct);
44 void imdct (ac3dec_t * p_ac3dec, s16 * buffer);
45
46 /* ac3_mantissa.c */
47 void mantissa_unpack (ac3dec_t *);
48
49 /* ac3_parse.c */
50 int parse_bsi (ac3dec_t *);
51 int parse_audblk (ac3dec_t *, int);
52 void parse_auxdata (ac3dec_t *);
53
54 /* ac3_rematrix.c */
55 void rematrix (ac3dec_t *);
56