]> git.sesse.net Git - vlc/blob - src/ac3_decoder/ac3_downmix.h
e9ab8aa0d6e92597a663b4cca73e00a36bb768be
[vlc] / src / ac3_decoder / ac3_downmix.h
1 /*****************************************************************************
2  * ac3_downmix.h: ac3 downmix functions
3  *****************************************************************************
4  * Copyright (C) 2000, 2001 VideoLAN
5  *
6  * Authors: Renaud Dartus <reno@videolan.org>
7  *
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.
12  * 
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.
17  *
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  *****************************************************************************/
22
23 #define NORM 16384
24
25 typedef struct dm_par_s {
26     float unit;
27     float clev;
28     float slev;
29 } dm_par_t;
30
31 void downmix_3f_2r_to_2ch_c(float *samples, dm_par_t * dm_par);
32 void downmix_3f_1r_to_2ch_c(float *samples, dm_par_t * dm_par);
33 void downmix_2f_2r_to_2ch_c(float *samples, dm_par_t * dm_par);
34 void downmix_2f_1r_to_2ch_c(float *samples, dm_par_t * dm_par);
35 void downmix_3f_0r_to_2ch_c(float *samples, dm_par_t * dm_par);            
36 void stream_sample_2ch_to_s16_c(s16 *s16_samples, float *left, float *right);
37 void stream_sample_1ch_to_s16_c(s16 *s16_samples, float *center);