GNOME Bugzilla – Bug 767300
v4l2object uses deprecated RGB15 V4L2 format code
Last modified: 2016-06-07 21:18:06 UTC
Created attachment 329215 [details] [review] 0001-v4l2object-Use-non-deprecated-V4L2-type-for-RGB15.patch v4l2object, now supports the V4L2_PIX_FMT_XRGB555 RGB pixel format, but does so by mapping to the old deprecated format. Enumerations with drivers supporting V4L2_PIX_FMT_XRGB555 will list RGB15, however when used in a pipeline, this format gets set as the deprecated V4L2_PIX_FMT_RGB555, and fails to map buffers. Patch attached to update to the new V4L2 pixel format code.
Review of attachment 329215 [details] [review]: ::: sys/v4l2/gstv4l2object.c @@ +1661,3 @@ break; case GST_VIDEO_FORMAT_RGB15: + fourcc = V4L2_PIX_FMT_XRGB555; Unfortunatly this is not backward compatible. We'll need a fallback here. We can probably reuse the fallback for multi-planer.
Created attachment 329229 [details] [review] 0001-v4l2object-Use-non-deprecated-V4L2-type-for-RGB15.patch - Using fourcc_nc Patch updated, as it looks like the other formats affected by this same issue simply put the non-deprecated format as the fourcc_nc which enables Gstreamer to select that preferentially.
Review of attachment 329229 [details] [review]: Thanks. For future submission, please remove the Signed-off-by in the comment, we trust the author line in this project.
Pushed as b4e6a71
Should go in 1.8 branch too.
Branch: 1.8 Commit: 586a10da96086031c83ef9f57372839cd336ba89