summaryrefslogtreecommitdiffstats
path: root/patches/gst-plugins-good-0.10.9
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-10-16 07:16:59 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2008-10-16 07:16:59 +0000
commitb1d8b98295d6c0de7ffffb3d107573a286bf2693 (patch)
tree817299d376372d3c2270b2fc04b60c9f7314add8 /patches/gst-plugins-good-0.10.9
parent077b4c52b86eba9da2381424c003fa857f33e0b6 (diff)
downloadptxdist-b1d8b98295d6c0de7ffffb3d107573a286bf2693.tar.gz
ptxdist-b1d8b98295d6c0de7ffffb3d107573a286bf2693.tar.xz
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8925 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches/gst-plugins-good-0.10.9')
-rw-r--r--patches/gst-plugins-good-0.10.9/generic/gst_v4l2_bw.diff32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/gst-plugins-good-0.10.9/generic/gst_v4l2_bw.diff b/patches/gst-plugins-good-0.10.9/generic/gst_v4l2_bw.diff
new file mode 100644
index 000000000..86fc3e750
--- /dev/null
+++ b/patches/gst-plugins-good-0.10.9/generic/gst_v4l2_bw.diff
@@ -0,0 +1,32 @@
+Subject: Add b/w support for the v4l2src
+From: Sascha Hauer <s.hauer@pengutronix.de>
+
+Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
+
+---
+ sys/v4l2/gstv4l2src.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+Index: gst-plugins-good-0.10.9/sys/v4l2/gstv4l2src.c
+===================================================================
+--- gst-plugins-good-0.10.9.orig/sys/v4l2/gstv4l2src.c
++++ gst-plugins-good-0.10.9/sys/v4l2/gstv4l2src.c
+@@ -679,6 +679,9 @@ gst_v4l2src_v4l2fourcc_to_structure (gui
+ break;
+ }
+ case V4L2_PIX_FMT_GREY: /* 8 Greyscale */
++ structure = gst_structure_new ("video/x-raw-gray",
++ "bpp", G_TYPE_INT, 8, NULL);
++ break;
+ case V4L2_PIX_FMT_YYUV: /* 16 YUV 4:2:2 */
+ case V4L2_PIX_FMT_HI240: /* 8 8-bit color */
+ /* FIXME: get correct fourccs here */
+@@ -990,6 +993,8 @@ gst_v4l2_get_caps_info (GstV4l2Src * v4l
+ fourcc = V4L2_PIX_FMT_JPEG;
+ } else if (strcmp (mimetype, "video/x-raw-bayer") == 0) {
+ fourcc = V4L2_PIX_FMT_SBGGR8;
++ } else if (strcmp (mimetype, "video/x-raw-gray") == 0) {
++ fourcc = V4L2_PIX_FMT_GREY;
+ }
+
+ if (fourcc == 0)