annotate liba52/a52_internal.h @ 16286:044bc40e6ff5

typo, grammar
author diego
date Mon, 22 Aug 2005 00:01:02 +0000
parents d6219ce521e9
children 4bad7f00556e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3394
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
1 /*
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
2 * a52_internal.h
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
3 * Copyright (C) 2000-2001 Michel Lespinasse <walken@zoy.org>
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
4 * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
5 *
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
6 * This file is part of a52dec, a free ATSC A-52 stream decoder.
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
7 * See http://liba52.sourceforge.net/ for updates.
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
8 *
14991
07f1e7669772 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 3910
diff changeset
9 * Modified for use with MPlayer, changes contained in liba52_changes.diff.
07f1e7669772 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 3910
diff changeset
10 * detailed CVS changelog at http://www.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/
07f1e7669772 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 3910
diff changeset
11 * $Id$
07f1e7669772 Mark modified files as such to comply more closely with GPL ¡ø2a.
diego
parents: 3910
diff changeset
12 *
3394
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
13 * a52dec is free software; you can redistribute it and/or modify
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
14 * it under the terms of the GNU General Public License as published by
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
15 * the Free Software Foundation; either version 2 of the License, or
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
16 * (at your option) any later version.
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
17 *
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
18 * a52dec is distributed in the hope that it will be useful,
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
21 * GNU General Public License for more details.
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
22 *
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
23 * You should have received a copy of the GNU General Public License
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
24 * along with this program; if not, write to the Free Software
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
26 */
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
27
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
28 #define LEVEL_PLUS6DB 2.0
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
29 #define LEVEL_PLUS3DB 1.4142135623730951
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
30 #define LEVEL_3DB 0.7071067811865476
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
31 #define LEVEL_45DB 0.5946035575013605
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
32 #define LEVEL_6DB 0.5
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
33
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
34 #define EXP_REUSE (0)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
35 #define EXP_D15 (1)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
36 #define EXP_D25 (2)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
37 #define EXP_D45 (3)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
38
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
39 #define DELTA_BIT_REUSE (0)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
40 #define DELTA_BIT_NEW (1)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
41 #define DELTA_BIT_NONE (2)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
42 #define DELTA_BIT_RESERVED (3)
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
43
16173
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
44 #ifdef ARCH_X86_64
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
45 # define REG_a "rax"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
46 # define REG_d "rdx"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
47 # define REG_S "rsi"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
48 # define REG_D "rdi"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
49 # define REG_BP "rbp"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
50 #else
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
51 # define REG_a "eax"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
52 # define REG_d "edx"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
53 # define REG_S "esi"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
54 # define REG_D "edi"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
55 # define REG_BP "ebp"
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
56 #endif
d6219ce521e9 liba52 asm optimizations ported to amd64
aurel
parents: 14991
diff changeset
57
3394
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
58 void bit_allocate (a52_state_t * state, a52_ba_t * ba, int bndstart,
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
59 int start, int end, int fastleak, int slowleak,
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
60 uint8_t * exp, int8_t * bap);
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
61
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
62 int downmix_init (int input, int flags, sample_t * level,
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
63 sample_t clev, sample_t slev);
3910
db1d556fcf58 runtime cpudetect the liba52 way part 2 (downmix.c)
michael
parents: 3904
diff changeset
64 void downmix_accel_init(uint32_t mm_accel);
3394
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
65 int downmix_coeff (sample_t * coeff, int acmod, int output, sample_t level,
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
66 sample_t clev, sample_t slev);
3904
848d848521b9 runtime cpudetect
michael
parents: 3394
diff changeset
67 extern void (*downmix) (sample_t * samples, int acmod, int output, sample_t bias,
3394
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
68 sample_t clev, sample_t slev);
3904
848d848521b9 runtime cpudetect
michael
parents: 3394
diff changeset
69 extern void (*upmix) (sample_t * samples, int acmod, int output);
3394
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
70
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
71 void imdct_init (uint32_t mm_accel);
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
72 extern void (* imdct_256) (sample_t * data, sample_t * delay, sample_t bias);
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
73 extern void (* imdct_512) (sample_t * data, sample_t * delay, sample_t bias);
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
74 void imdct_do_256_mlib (sample_t * data, sample_t * delay, sample_t bias);
35b18ed357c2 imported from liba52 CVS
arpi
parents:
diff changeset
75 void imdct_do_512_mlib (sample_t * data, sample_t * delay, sample_t bias);