]> git.sesse.net Git - vlc/blobdiff - plugins/idct/idctmmx.c
* ALL: new module API. Makes a few things a lot simpler, and we gain
[vlc] / plugins / idct / idctmmx.c
index 0b0de44bfc723330a3807cbf6241967ae3768e05..b7b4ad33e21310aa67b33e587f993ae86f17cfce 100644 (file)
@@ -2,7 +2,7 @@
  * idctmmx.c : MMX IDCT module
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: idctmmx.c,v 1.27 2002/06/01 12:31:59 sam Exp $
+ * $Id: idctmmx.c,v 1.28 2002/07/31 20:56:51 sam Exp $
  *
  * Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
  *          Michel Lespinasse <walken@zoy.org>
 #include "idct.h"
 #include "block_mmx.h"
 
-/*****************************************************************************
- * Local prototypes.
- *****************************************************************************/
-static void idct_getfunctions( function_list_t * p_function_list );
+static int Open( vlc_object_t *p_this );
 
 /*****************************************************************************
- * Build configuration tree.
+ * Module descriptor
  *****************************************************************************/
-MODULE_CONFIG_START
-MODULE_CONFIG_STOP
-
-MODULE_INIT_START
-    SET_DESCRIPTION( _("MMX IDCT module") )
-    ADD_CAPABILITY( IDCT, 150 )
-    ADD_REQUIREMENT( MMX )
-    ADD_SHORTCUT( "mmx" )
-MODULE_INIT_STOP
-
-MODULE_ACTIVATE_START
-    idct_getfunctions( &p_module->p_functions->idct );
-MODULE_ACTIVATE_STOP
-
-MODULE_DEACTIVATE_START
-MODULE_DEACTIVATE_STOP
-
-/* Following functions are local */
+vlc_module_begin();
+    set_description( _("MMX IDCT module") );
+    set_capability( "idct", 150 );
+    add_shortcut( "mmx" );
+    add_requirement( MMX );
+    set_callbacks( Open, NULL );
+vlc_module_end();
 
 /*****************************************************************************
  * NormScan : This IDCT uses reordered coeffs, so we patch the scan table