videoio/gstreamer: Add support for GRAY16_LE.#18694
Conversation
|
I missed this before I started, but I see now that this is a duplicate of #14035. What would it take to get either of these merged? |
|
Hi, I can look into the test if you can post the log of how it is failing. I'm pretty sure it was passing here, so I'd like to get an idea of what's going on before I spend time trying to reproduce your result. I looked through the buildbot logs, and GStreamer is disabled in both the Linux x64 and the Linux32 build, and I guess none of the other configs are likely to have it either, so it's a reasonable assumption that buildbot didn't run the relevant test. |
|
@zyp , it is reproducible only in plugin-mode: Dynamic plugin-backend assumes frame is 8U: opencv/modules/videoio/src/backend_plugin.cpp Line 474 in 3c9d03c |
|
Ah, that makes sense.
Actually, at a glance it looks straightforward enough to improve the plugin-backend, so I will make an attempt at that and submit it as a separate PR that should be merged before this PR. |
|
Just mentioning #19320 to link this. |
|
jenkins cn please retry a build |
0687aae to
d6ae523
Compare
|
@zyp, I've updated your PR. If possible please check if it works in your scenarios. |
alalek
left a comment
There was a problem hiding this comment.
Please take a look on GStreamer tests.
Looks like there are several failures due to changed output types
|
|
||
|
|
||
| caps.attach(gst_caps_from_string("video/x-raw, format=(string){BGR, GRAY8}; video/x-bayer,format=(string){rggb,bggr,grbg,gbrg}; image/jpeg")); | ||
| caps.attach(gst_caps_from_string("video/x-raw, format=(string){BGR, BGRA, RGBA, BGRx, RGBx, GRAY8, GRAY16_LE, GRAY16_BE}; video/x-bayer,format=(string){rggb,bggr,grbg,gbrg}; image/jpeg")); |
There was a problem hiding this comment.
Perhaps this should be changed for "manual" pipelines only.
Or when passed parameters have CONVERT_RGB=0 (however there is another parameter which limits requested color codes).
* videoio/gstreamer: Add support for GRAY16_LE. * videoio/gstreamer: added BGRA/BGRx support Co-authored-by: Maksim Shabunin <maksim.shabunin@gmail.com>
This patch adds 16-bit grayscale support to GStreamerCapture and updates the test with 16-bit support and a 16-bit test case.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.