gst_v4l2camsrc_format_get_rank (fa);
}
+static gboolean is_supported_pixelformat(guint32 fourcc)
+{
+ if(fourcc == V4L2_PIX_FMT_NV12
+ || fourcc == V4L2_PIX_FMT_YUV420
+ || fourcc == V4L2_PIX_FMT_SGRBG10)
+ return TRUE;
+ return FALSE;
+}
+
/******************************************************
* gst_v4l2camsrc_fill_format_list():
* create list of supported capture formats
goto failed;
}
}
+ if(!is_supported_pixelformat(format->pixelformat)) {
+ GST_LOG_OBJECT(v4l2camsrc, " (skipping format %" GST_FOURCC_FORMAT ")",GST_FOURCC_ARGS (format->pixelformat));
+ continue;
+ }
GST_LOG_OBJECT (v4l2camsrc, "index: %u", format->index);
GST_LOG_OBJECT (v4l2camsrc, "type: %d", format->type);