ret = v0 + (v1 * (255 - alpha)) / 255; \
} G_STMT_END
+/* returns newly-allocated pixels in src->pixels, which caller must g_free() */
void
video_blend_scale_linear_RGBA (GstBlendVideoFormatInfo * src,
gint dest_height, gint dest_width)
#include "config.h"
#endif
+#ifdef HAVE_VALGRIND
+# include <valgrind/valgrind.h>
+#endif
+
#include <unistd.h>
#include <gst/check/gstcheck.h>
fail_unless (gst_video_buffer_get_overlay_composition (buf) == NULL);
gst_buffer_ref (buf);
- /* buffer now has refcount of 2, so its metadata is not writable */
- ASSERT_CRITICAL (gst_video_buffer_set_overlay_composition (buf, comp1));
+ /* buffer now has refcount of 2, so its metadata is not writable.
+ * only check this if we are not running in valgrind, as it leaks */
+#ifdef HAVE_VALGRIND
+ if (!RUNNING_ON_VALGRIND) {
+ ASSERT_CRITICAL (gst_video_buffer_set_overlay_composition (buf, comp1));
+ }
+#endif
gst_buffer_unref (buf);
gst_video_buffer_set_overlay_composition (buf, comp1);
fail_unless (gst_video_buffer_get_overlay_composition (buf) == comp1);