}
static gboolean
-caps_are_64bpp (const GstCaps * caps)
+caps_is_supported (const GstCaps * caps)
{
GstVideoFormat fmt;
GstStructure *s;
fmt = gst_video_format_from_string (format);
fail_if (fmt == GST_VIDEO_FORMAT_UNKNOWN);
- return (fmt == GST_VIDEO_FORMAT_ARGB64 || fmt == GST_VIDEO_FORMAT_AYUV64);
+ return (fmt == GST_VIDEO_FORMAT_ARGB64 || fmt == GST_VIDEO_FORMAT_AYUV64
+ || fmt == GST_VIDEO_FORMAT_GRAY8 || fmt == GST_VIDEO_FORMAT_GRAY16_BE
+ || GST_VIDEO_FORMAT_GRAY16_LE);
}
static void
guint n_buffers = 0;
/* skip formats that videoconvert can't handle */
- if (caps_are_64bpp (caps))
+ if (caps_is_supported (caps))
return;
pipeline = gst_element_factory_make ("pipeline", "pipeline");
for (method = 0; method < 3; method++) {
/* skip formats that videoconvert can't handle */
- if (caps_are_64bpp (caps))
+ if (caps_is_supported (caps))
continue;
GST_DEBUG ("Running test for caps '%" GST_PTR_FORMAT "'"