]> git.sesse.net Git - vlc/blob - src/ac3_decoder/ac3_downmix.h
063beeb1dc225dde0d6f8ed43ad59d9ea6b3f2d4
[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.7 2001/05/14 15:58:04 reno 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 /* C functions */
25 void downmix_3f_2r_to_2ch_c(float *samples, dm_par_t * dm_par);
26 void downmix_3f_1r_to_2ch_c(float *samples, dm_par_t * dm_par);
27 void downmix_2f_2r_to_2ch_c(float *samples, dm_par_t * dm_par);
28 void downmix_2f_1r_to_2ch_c(float *samples, dm_par_t * dm_par);
29 void downmix_3f_0r_to_2ch_c(float *samples, dm_par_t * dm_par);            
30 void stream_sample_2ch_to_s16_c(s16 *s16_samples, float *left, float *right);
31 void stream_sample_1ch_to_s16_c(s16 *s16_samples, float *center); 
32
33 /* SSE functions */
34 void downmix_3f_2r_to_2ch_sse(float *samples, dm_par_t * dm_par);
35 void downmix_3f_1r_to_2ch_sse(float *samples, dm_par_t * dm_par);
36 void downmix_2f_2r_to_2ch_sse(float *samples, dm_par_t * dm_par);
37 void downmix_2f_1r_to_2ch_sse(float *samples, dm_par_t * dm_par);
38 void downmix_3f_0r_to_2ch_sse(float *samples, dm_par_t * dm_par);            
39 void stream_sample_2ch_to_s16_sse(s16 *s16_samples, float *left, float *right);
40 void stream_sample_1ch_to_s16_sse(s16 *s16_samples, float *center);  
41
42 /* 3DNow! functions */
43 void downmix_3f_2r_to_2ch_3dn(float *samples, dm_par_t * dm_par);
44 void downmix_3f_1r_to_2ch_3dn(float *samples, dm_par_t * dm_par);
45 void downmix_2f_2r_to_2ch_3dn(float *samples, dm_par_t * dm_par);
46 void downmix_2f_1r_to_2ch_3dn(float *samples, dm_par_t * dm_par);
47 void downmix_3f_0r_to_2ch_3dn(float *samples, dm_par_t * dm_par);            
48 void stream_sample_2ch_to_s16_3dn(s16 *s16_samples, float *left, float *right);
49 void stream_sample_1ch_to_s16_3dn(s16 *s16_samples, float *center);  
50
51