1 /*****************************************************************************
2 * imdct.c : IMDCT module
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
5 * $Id: imdct.c,v 1.11 2002/07/31 20:56:51 sam Exp $
7 * Authors: Gaƫl Hendryckx <jimmy@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 "ac3_imdct.h"
33 #include "ac3_imdct_common.h"
35 /*****************************************************************************
37 *****************************************************************************/
38 static int Open ( vlc_object_t *p_this )
40 imdct_t *p_imdct = (imdct_t *)p_this;
42 p_imdct->pf_imdct_init = E_( imdct_init );
43 p_imdct->pf_imdct_256 = E_( imdct_do_256 );
44 p_imdct->pf_imdct_256_nol = E_( imdct_do_256_nol );
45 p_imdct->pf_imdct_512 = E_( imdct_do_512 );
46 p_imdct->pf_imdct_512_nol = E_( imdct_do_512_nol );
51 /*****************************************************************************
53 *****************************************************************************/
55 #if defined( MODULE_NAME_IS_imdct )
56 set_description( _("AC3 IMDCT module") );
57 set_capability( "imdct", 50 );
59 #elif defined( MODULE_NAME_IS_imdctsse )
60 set_description( _("SSE AC3 IMDCT module") );
61 set_capability( "imdct", 200 );
62 add_shortcut( "sse" );
63 #elif defined( MODULE_NAME_IS_imdct3dn )
64 set_description( _("3D Now! AC3 IMDCT module") );
65 set_capability( "imdct", 200 );
66 add_shortcut( "3dn" );
67 add_shortcut( "3dnow" );
69 set_callbacks( Open, NULL );