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, \
/* *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]; \
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;
}
*/
static gboolean
plugin_init (GstPlugin * plugin)
{
- /*oil_init (); */
-
return gst_element_register (plugin, "level", GST_RANK_NONE, GST_TYPE_LEVEL);
}
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);