annotate libac3/ac3_internal.h @ 112:a2c063b6ecf9 libavcodec

fixed a bug in the tmp buffer fixed the color range for yuv fixed the width %8!=0 bug (another 1% speed loss)
author michael
date Fri, 19 Oct 2001 13:41:38 +0000
parents 986e461dc072
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
986e461dc072 Initial revision
glantau
parents:
diff changeset
1 /*
986e461dc072 Initial revision
glantau
parents:
diff changeset
2 * ac3_internal.h
986e461dc072 Initial revision
glantau
parents:
diff changeset
3 *
986e461dc072 Initial revision
glantau
parents:
diff changeset
4 * Copyright (C) Aaron Holtzman - May 1999
986e461dc072 Initial revision
glantau
parents:
diff changeset
5 *
986e461dc072 Initial revision
glantau
parents:
diff changeset
6 * This file is part of ac3dec, a free Dolby AC-3 stream decoder.
986e461dc072 Initial revision
glantau
parents:
diff changeset
7 *
986e461dc072 Initial revision
glantau
parents:
diff changeset
8 * ac3dec is free software; you can redistribute it and/or modify
986e461dc072 Initial revision
glantau
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
986e461dc072 Initial revision
glantau
parents:
diff changeset
10 * the Free Software Foundation; either version 2, or (at your option)
986e461dc072 Initial revision
glantau
parents:
diff changeset
11 * any later version.
986e461dc072 Initial revision
glantau
parents:
diff changeset
12 *
986e461dc072 Initial revision
glantau
parents:
diff changeset
13 * ac3dec is distributed in the hope that it will be useful,
986e461dc072 Initial revision
glantau
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
986e461dc072 Initial revision
glantau
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
986e461dc072 Initial revision
glantau
parents:
diff changeset
16 * GNU General Public License for more details.
986e461dc072 Initial revision
glantau
parents:
diff changeset
17 *
986e461dc072 Initial revision
glantau
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
986e461dc072 Initial revision
glantau
parents:
diff changeset
19 * along with GNU Make; see the file COPYING. If not, write to
986e461dc072 Initial revision
glantau
parents:
diff changeset
20 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
986e461dc072 Initial revision
glantau
parents:
diff changeset
21 *
986e461dc072 Initial revision
glantau
parents:
diff changeset
22 */
986e461dc072 Initial revision
glantau
parents:
diff changeset
23
986e461dc072 Initial revision
glantau
parents:
diff changeset
24 #define LEVEL_PLUS3DB 1.4142135623730951
986e461dc072 Initial revision
glantau
parents:
diff changeset
25 #define LEVEL_3DB 0.7071067811865476
986e461dc072 Initial revision
glantau
parents:
diff changeset
26 #define LEVEL_45DB 0.5946035575013605
986e461dc072 Initial revision
glantau
parents:
diff changeset
27 #define LEVEL_6DB 0.5
986e461dc072 Initial revision
glantau
parents:
diff changeset
28
986e461dc072 Initial revision
glantau
parents:
diff changeset
29 /* Exponent strategy constants */
986e461dc072 Initial revision
glantau
parents:
diff changeset
30 #define EXP_REUSE (0)
986e461dc072 Initial revision
glantau
parents:
diff changeset
31 #define EXP_D15 (1)
986e461dc072 Initial revision
glantau
parents:
diff changeset
32 #define EXP_D25 (2)
986e461dc072 Initial revision
glantau
parents:
diff changeset
33 #define EXP_D45 (3)
986e461dc072 Initial revision
glantau
parents:
diff changeset
34
986e461dc072 Initial revision
glantau
parents:
diff changeset
35 /* Delta bit allocation constants */
986e461dc072 Initial revision
glantau
parents:
diff changeset
36 #define DELTA_BIT_REUSE (0)
986e461dc072 Initial revision
glantau
parents:
diff changeset
37 #define DELTA_BIT_NEW (1)
986e461dc072 Initial revision
glantau
parents:
diff changeset
38 #define DELTA_BIT_NONE (2)
986e461dc072 Initial revision
glantau
parents:
diff changeset
39 #define DELTA_BIT_RESERVED (3)
986e461dc072 Initial revision
glantau
parents:
diff changeset
40
986e461dc072 Initial revision
glantau
parents:
diff changeset
41 void bit_allocate (ac3_state_t * state, ac3_ba_t * ba, int bndstart,
986e461dc072 Initial revision
glantau
parents:
diff changeset
42 int start, int end, int fastleak, int slowleak,
986e461dc072 Initial revision
glantau
parents:
diff changeset
43 uint8_t * exp, int8_t * bap);
986e461dc072 Initial revision
glantau
parents:
diff changeset
44
986e461dc072 Initial revision
glantau
parents:
diff changeset
45 int downmix_init (int input, int flags, float * level, float clev, float slev);
986e461dc072 Initial revision
glantau
parents:
diff changeset
46 void downmix (float * samples, int acmod, int output, float level, float bias,
986e461dc072 Initial revision
glantau
parents:
diff changeset
47 float clev, float slev);
986e461dc072 Initial revision
glantau
parents:
diff changeset
48
986e461dc072 Initial revision
glantau
parents:
diff changeset
49 void imdct_init (void);
986e461dc072 Initial revision
glantau
parents:
diff changeset
50 extern void (* imdct_256) (float data[], float delay[]);
986e461dc072 Initial revision
glantau
parents:
diff changeset
51 extern void (* imdct_512) (float data[], float delay[]);