1 /*****************************************************************************
2 * ac3_internals.h: needed by the ac3 decoder
3 *****************************************************************************
4 * Copyright (C) 2000 VideoLAN
6 * Authors: Michel Lespinasse <walken@zoy.org>
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.
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.
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 *****************************************************************************/
23 /* Exponent strategy constants */
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)
35 /* ac3_bit_allocate.c */
36 void bit_allocate (ac3dec_t *);
39 int downmix (ac3dec_t *, s16 *);
42 int exponent_unpack (ac3dec_t *);
45 void imdct (ac3dec_t * p_ac3dec, s16 * buffer);
48 void mantissa_unpack (ac3dec_t *);
51 int parse_bsi (ac3dec_t *);
52 int parse_audblk (ac3dec_t *, int);
53 void parse_auxdata (ac3dec_t *);
56 void rematrix (ac3dec_t *);