Purge references to liboil
authorTim-Philipp Müller <tim@centricular.net>
Sat, 29 Sep 2012 10:59:31 +0000 (11:59 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 29 Sep 2012 11:41:37 +0000 (12:41 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=673285

gst/level/gstlevel.c
tests/check/elements/videocrop.c

index 5fc5be6..b8b6d11 100644 (file)
@@ -361,6 +361,7 @@ DEFINE_INT_LEVEL_CALCULATOR (gint32, 31);
 DEFINE_INT_LEVEL_CALCULATOR (gint16, 15);
 DEFINE_INT_LEVEL_CALCULATOR (gint8, 7);
 
+/* FIXME: use orc to calculate squaresums? */
 #define DEFINE_FLOAT_LEVEL_CALCULATOR(TYPE)                                   \
 static void inline                                                            \
 gst_level_calculate_##TYPE (gpointer data, guint num, guint channels,         \
@@ -375,7 +376,7 @@ gst_level_calculate_##TYPE (gpointer data, guint num, guint channels,         \
   /* *NCS = 0.0; Normalized Cumulative Square */                              \
   /* *NPS = 0.0; Normalized Peask Square */                                   \
                                                                               \
-  /* oil_squaresum_f64(&squaresum,in,num); */                                 \
+  /* orc_level_squaresum_f64(&squaresum,in,num); */                           \
   for (j = 0; j < num; j += channels)                                         \
   {                                                                           \
     square = ((gdouble) in[j]) * in[j];                                       \
@@ -395,7 +396,7 @@ static void inline
 gst_level_calculate_gdouble (gpointer data, guint num, guint channels,
                             gdouble *NCS, gdouble *NPS)
 {
-  oil_squaresum_f64(NCS,(gdouble *)data,num);
+  orc_level_squaresum_f64(NCS,(gdouble *)data,num);
   *NPS = 0.0;
 }
 */
@@ -702,8 +703,6 @@ gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
-  /*oil_init (); */
-
   return gst_element_register (plugin, "level", GST_RANK_NONE, GST_TYPE_LEVEL);
 }
 
index 4e6e4ab..9baaafb 100644 (file)
@@ -786,14 +786,6 @@ main (int argc, char **argv)
   Suite *s = videocrop_suite ();
   SRunner *sr = srunner_create (s);
 
-#ifdef HAVE_VALGRIND
-  if (RUNNING_ON_VALGRIND) {
-    /* otherwise valgrind errors out when liboil probes CPU extensions
-     * in oil_init() during which it causes SIGILLs etc. to be fired */
-    g_setenv ("OIL_CPU_FLAGS", "0", 0);
-  }
-#endif
-
   gst_check_init (&argc, &argv);
 
   srunner_run_all (sr, CK_NORMAL);