Revert "v4l2transform: Expose BGRA and ARGB formats"
This reverts commit 2676ac90751ff933f4d7e1a286cd304907081166.
diff --git a/sys/v4l2/gstv4l2.c b/sys/v4l2/gstv4l2.c
index 2674d9c..c55adb6 100644
--- a/sys/v4l2/gstv4l2.c
+++ b/sys/v4l2/gstv4l2.c
@@ -92,26 +92,8 @@
template = gst_v4l2_object_v4l2fourcc_to_structure (format.pixelformat);
- if (template) {
- GstStructure *alt_t = NULL;
-
- switch (format.pixelformat) {
- case V4L2_PIX_FMT_RGB32:
- alt_t = gst_structure_copy (template);
- gst_structure_set (alt_t, "format", G_TYPE_STRING, "ARGB", NULL);
- break;
- case V4L2_PIX_FMT_BGR32:
- alt_t = gst_structure_copy (template);
- gst_structure_set (alt_t, "format", G_TYPE_STRING, "BGRA", NULL);
- default:
- break;
- }
-
+ if (template)
gst_caps_append_structure (caps, template);
-
- if (alt_t)
- gst_caps_append_structure (caps, alt_t);
- }
}
return gst_caps_simplify (caps);