]> git.sesse.net Git - vlc/blob - src/ac3_decoder/ac3_downmix.h
* Header cleaning: filled all empty authors fields, added CVS $Id stuff.
[vlc] / src / ac3_decoder / ac3_downmix.h
1 /*****************************************************************************
2  * ac3_downmix.h: ac3 downmix functions
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  * $Id: ac3_downmix.h,v 1.5 2001/03/21 13:42:34 sam Exp $
6  *
7  * Authors: Renaud Dartus <reno@videolan.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 #define NORM 16384
25
26 typedef struct dm_par_s {
27     float unit;
28     float clev;
29     float slev;
30 } dm_par_t;
31
32 void downmix_3f_2r_to_2ch_c(float *samples, dm_par_t * dm_par);
33 void downmix_3f_1r_to_2ch_c(float *samples, dm_par_t * dm_par);
34 void downmix_2f_2r_to_2ch_c(float *samples, dm_par_t * dm_par);
35 void downmix_2f_1r_to_2ch_c(float *samples, dm_par_t * dm_par);
36 void downmix_3f_0r_to_2ch_c(float *samples, dm_par_t * dm_par);            
37 void stream_sample_2ch_to_s16_c(s16 *s16_samples, float *left, float *right);
38 void stream_sample_1ch_to_s16_c(s16 *s16_samples, float *center);