summaryrefslogtreecommitdiff
path: root/gst/bayer
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-09-14 11:28:56 -0700
committerDavid Schleef <ds@schleef.org>2010-09-14 12:00:32 -0700
commit5b6550dbd54e91c22ffa85aa4a784287d2af2a89 (patch)
tree65e5c77eda86014aef6c840da916637e8fce73a1 /gst/bayer
parent742867566c54a01267929e34b261b04344db95ed (diff)
downloadgstreamer-plugins-bad-5b6550dbd54e91c22ffa85aa4a784287d2af2a89.tar.gz
bayer2rgb: Add format=bggr/etc. to caps
Diffstat (limited to 'gst/bayer')
-rw-r--r--gst/bayer/gstbayer2rgb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/bayer/gstbayer2rgb.c b/gst/bayer/gstbayer2rgb.c
index 3a1adacef..c8c0640f4 100644
--- a/gst/bayer/gstbayer2rgb.c
+++ b/gst/bayer/gstbayer2rgb.c
@@ -138,7 +138,8 @@ struct _GstBayer2RGBClass
GST_VIDEO_CAPS_RGB ";" \
GST_VIDEO_CAPS_BGR
-#define SINK_CAPS "video/x-raw-bayer,width=(int)[1,MAX],height=(int)[1,MAX]"
+#define SINK_CAPS "video/x-raw-bayer,format=(string){bggr,grbg,gbrg,rggb}," \
+ "width=(int)[1,MAX],height=(int)[1,MAX]"
enum
{
@@ -328,7 +329,8 @@ gst_bayer2rgb_transform_caps (GstBaseTransform * base,
structure = gst_caps_get_structure (caps, 0);
if (direction == GST_PAD_SRC) {
- newcaps = gst_caps_new_simple ("video/x-raw-bayer", NULL);
+ newcaps = gst_caps_from_string ("video/x-raw-bayer,"
+ "format=(string){bggr,grbg,gbrg,rggb}");
} else {
newcaps = gst_caps_new_simple ("video/x-raw-rgb", NULL);
}