mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
bayer2rgb: Add format=bggr/etc. to caps
This commit is contained in:
parent
742867566c
commit
5b6550dbd5
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue