* downmix3dn.c : accelerated 3D Now! AC3 downmix module
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: downmix3dn.c,v 1.6 2001/12/09 17:01:36 sam Exp $
+ * $Id: downmix3dn.c,v 1.7 2001/12/30 07:09:54 sam Exp $
*
* Authors: Renaud Dartus <reno@via.ecp.fr>
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#define MODULE_NAME downmix3dn
-#include "modules_inner.h"
-
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include "defs.h"
-
#include <stdlib.h>
#include <string.h>
-#include "common.h"
-#include "intf_msg.h"
-#include "threads.h"
-#include "mtime.h"
-#include "tests.h"
+#include <videolan/vlc.h>
#include "ac3_downmix.h"
#include "ac3_downmix_common.h"
-#include "modules.h"
-#include "modules_export.h"
-
/*****************************************************************************
* Local and extern prototypes.
*****************************************************************************/
* Build configuration tree.
*****************************************************************************/
MODULE_CONFIG_START
-ADD_WINDOW( "Configuration for AC3 downmix3dn module" )
- ADD_COMMENT( "Ha, ha -- nothing to configure yet" )
MODULE_CONFIG_STOP
MODULE_INIT_START
- p_module->i_capabilities = MODULE_CAPABILITY_NULL
- | MODULE_CAPABILITY_DOWNMIX;
- p_module->psz_longname = "3D Now! AC3 downmix module";
+ SET_DESCRIPTION( "3D Now! AC3 downmix module" )
+ ADD_CAPABILITY( DOWNMIX, 200 )
+ ADD_REQUIREMENT( 3DNOW )
+ ADD_SHORTCUT( "3dn" )
+ ADD_SHORTCUT( "3dnow" )
+ ADD_SHORTCUT( "downmix3dn" )
MODULE_INIT_STOP
MODULE_ACTIVATE_START
*****************************************************************************/
static int downmix_Probe( probedata_t *p_data )
{
- if( !TestCPU( CPU_CAPABILITY_3DNOW ) )
- {
- return( 0 );
- }
-
- if( TestMethod( DOWNMIX_METHOD_VAR, "downmix3dn" )
- || TestMethod( DOWNMIX_METHOD_VAR, "3dn" ) )
- {
- return( 999 );
- }
-
- /* This plugin always works */
return( 200 );
}