]> git.sesse.net Git - vlc/blobdiff - plugins/idct/idctclassic.c
Found bug in configure.in script Qt Embedded definition used $(QTDIR) i.s.o ${QTDIR}
[vlc] / plugins / idct / idctclassic.c
index fa8b6c207c64fe2d03ecfd7e9448bbbb27e88100..b1e0b8ec3523be42b43d9dd8b01acc16465b0128 100644 (file)
@@ -2,7 +2,7 @@
  * idctclassic.c : Classic IDCT module
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: idctclassic.c,v 1.17 2001/11/28 15:08:05 massiot Exp $
+ * $Id: idctclassic.c,v 1.24 2002/05/18 17:47:46 sam Exp $
  *
  * Authors: GaĆ«l Hendryckx <jimmy@via.ecp.fr>
  *
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#define MODULE_NAME idctclassic
-#include "modules_inner.h"
-
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include "defs.h"
-
 #include <stdlib.h>
 #include <string.h>
 
-#include "config.h"
-#include "common.h"
-#include "intf_msg.h"
-#include "threads.h"
-#include "mtime.h"
-#include "tests.h"
+#include <videolan/vlc.h>
 
 #include "idct.h"
 #include "block_c.h"
 
-#include "modules.h"
-#include "modules_export.h"
-
 /*****************************************************************************
  * Local and extern prototypes.
  *****************************************************************************/
@@ -54,14 +41,13 @@ static void idct_getfunctions( function_list_t * p_function_list );
  * Build configuration tree.
  *****************************************************************************/
 MODULE_CONFIG_START
-ADD_WINDOW( "Configuration for classic IDCT module" )
-    ADD_COMMENT( "Ha, ha -- nothing to configure yet" )
 MODULE_CONFIG_STOP
 
 MODULE_INIT_START
-    p_module->i_capabilities = MODULE_CAPABILITY_NULL
-                                | MODULE_CAPABILITY_IDCT;
-    p_module->psz_longname = "classic IDCT module";
+    SET_DESCRIPTION( _("classic IDCT module") )
+    ADD_CAPABILITY( IDCT, 100 )
+    ADD_SHORTCUT( "classic" )
+    ADD_SHORTCUT( "idctclassic" )
 MODULE_INIT_STOP
 
 MODULE_ACTIVATE_START
@@ -73,21 +59,6 @@ MODULE_DEACTIVATE_STOP
 
 /* Following functions are local */
 
-/*****************************************************************************
- * idct_Probe: returns a preference score
- *****************************************************************************/
-static int idct_Probe( probedata_t *p_data )
-{
-    if( TestMethod( IDCT_METHOD_VAR, "idctclassic" )
-         || TestMethod( IDCT_METHOD_VAR, "classic" ) )
-    {
-        return( 999 );
-    }
-
-    /* This plugin always works */
-    return( 100 );
-}
-
 /*****************************************************************************
  * NormScan : Unused in this IDCT
  *****************************************************************************/
@@ -98,7 +69,7 @@ static void NormScan( u8 ppi_scan[2][64] )
 /*****************************************************************************
  * IDCT : IDCT function for normal matrices
  *****************************************************************************/
-static __inline__ void IDCT( dctelem_t * p_block )
+static inline void IDCT( dctelem_t * p_block )
 {
     s32 tmp0, tmp1, tmp2, tmp3;
     s32 tmp10, tmp11, tmp12, tmp13;
@@ -316,6 +287,11 @@ static __inline__ void IDCT( dctelem_t * p_block )
     }
 }
 
+static inline void RestoreCPUState( )
+{
+    ;
+}
+
 #include "idct_sparse.h"
 #include "idct_decl.h"