1 /*****************************************************************************
2 * downmix.c : A52 downmix module
3 *****************************************************************************
4 * Copyright (C) 1999-2001 VideoLAN
5 * $Id: downmix.c,v 1.2 2002/08/21 09:27:40 sam Exp $
7 * Authors: Renaud Dartus <reno@via.ecp.fr>
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.
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.
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 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
32 #include "../downmix.h"
33 #include "downmix_common.h"
35 /*****************************************************************************
37 *****************************************************************************/
38 static int Open ( vlc_object_t *p_this )
40 downmix_t *p_downmix = (downmix_t *)p_this;
42 p_downmix->pf_downmix_3f_2r_to_2ch = E_( downmix_3f_2r_to_2ch );
43 p_downmix->pf_downmix_3f_1r_to_2ch = E_( downmix_3f_1r_to_2ch );
44 p_downmix->pf_downmix_2f_2r_to_2ch = E_( downmix_2f_2r_to_2ch );
45 p_downmix->pf_downmix_2f_1r_to_2ch = E_( downmix_2f_1r_to_2ch );
46 p_downmix->pf_downmix_3f_0r_to_2ch = E_( downmix_3f_0r_to_2ch );
47 p_downmix->pf_stream_sample_2ch_to_s16 = E_( stream_sample_2ch_to_s16 );
48 p_downmix->pf_stream_sample_1ch_to_s16 = E_( stream_sample_1ch_to_s16 );
53 /*****************************************************************************
55 *****************************************************************************/
57 #ifdef MODULE_NAME_IS_downmix
58 set_description( _("A52 downmix module") );
59 set_capability( "downmix", 50 );
61 #elif defined( MODULE_NAME_IS_downmixsse )
62 set_description( _("SSE A52 downmix module") );
63 set_capability( "downmix", 200 );
64 add_shortcut( "sse" );
65 add_requirement( SSE );
66 #elif defined( MODULE_NAME_IS_downmix3dn )
67 set_description( _("3D Now! A52 downmix module") );
68 set_capability( "downmix", 200 );
69 add_shortcut( "3dn" );
70 add_shortcut( "3dnow" );
71 add_requirement( 3DNOW );
73 set_callbacks( Open, NULL );