From 7a904c8f5dd13007b165b4492fdf0e6757e43722 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Wed, 27 Jun 2012 07:42:21 -0400 Subject: [PATCH] niimaq: use video lib caps --- sys/niimaq/gstniimaq.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/sys/niimaq/gstniimaq.c b/sys/niimaq/gstniimaq.c index d89d5cf..199c279 100644 --- a/sys/niimaq/gstniimaq.c +++ b/sys/niimaq/gstniimaq.c @@ -69,19 +69,8 @@ enum static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw-gray, " - "bpp = (int) 8, " - "depth = (int) 8, " - "width = (int) [ 1, max ], " - "height = (int) [ 1, max ], " - "framerate = (fraction) [ 0, max ]" - ";" - "video/x-raw-gray, " - "bpp = (int) {10, 12, 14, 16}, " - "depth = (int) 16, " - "endianness = (int) LITTLE_ENDIAN, " - "width = (int) [ 1, max ], " - "height = (int) [ 1, max ], " "framerate = (fraction) [ 0, max ]") + GST_STATIC_CAPS (GST_VIDEO_CAPS_GRAY8 ";" + GST_VIDEO_CAPS_GRAY16 ("LITTLE_ENDIAN")) ); static void gst_niimaqsrc_init_interfaces (GType type);