* motionmmxext.c : MMX EXT motion compensation module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: motionmmxext.c,v 1.14 2001/12/09 17:01:36 sam Exp $
+ * $Id: motionmmxext.c,v 1.15 2001/12/30 07:09:55 sam Exp $
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
* Michel Lespinasse <walken@zoy.org>
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#define MODULE_NAME motionmmxext
-#include "modules_inner.h"
-
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include "defs.h"
-
#include <stdlib.h> /* malloc(), free() */
#include <string.h>
-#include "common.h" /* boolean_t, byte_t */
-#include "intf_msg.h"
-#include "threads.h"
-#include "mtime.h"
-#include "tests.h"
+#include <videolan/vlc.h>
#include "mmx.h"
-#include "modules.h"
-#include "modules_export.h"
-
/*****************************************************************************
* Local and extern prototypes.
*****************************************************************************/
* Build configuration tree.
*****************************************************************************/
MODULE_CONFIG_START
-ADD_WINDOW( "Configuration for MMXEXT motion compensation module" )
- ADD_COMMENT( "Ha, ha -- nothing to configure yet" )
MODULE_CONFIG_STOP
MODULE_INIT_START
- p_module->i_capabilities = MODULE_CAPABILITY_NULL
- | MODULE_CAPABILITY_MOTION;
- p_module->psz_longname = "MMXEXT motion compensation module";
+ SET_DESCRIPTION( "MMXEXT motion compensation module" )
+ ADD_CAPABILITY( MOTION, 200 )
+ ADD_REQUIREMENT( MMXEXT )
+ ADD_SHORTCUT( "mmxext" )
+ ADD_SHORTCUT( "motionmmxext" )
MODULE_INIT_STOP
MODULE_ACTIVATE_START
*****************************************************************************/
static int motion_Probe( probedata_t *p_data )
{
- if( !TestCPU( CPU_CAPABILITY_MMXEXT ) )
- {
- return( 0 );
- }
-
- if( TestMethod( MOTION_METHOD_VAR, "motionmmxext" )
- || TestMethod( MOTION_METHOD_VAR, "mmxext" ) )
- {
- return( 999 );
- }
-
return( 200 );
}