V4L2: Add multi-planar capture support#22236
Conversation
|
@mizo Thanks for the PR. What camera do you use to test the code? |
@asmorkalov Thank you for watching. I use KBCR-S08MM. The host is Armadillo-IoT G4 (SoC: NXP i.MX 8M Plus). i.MX 8M Plus only supports multi-planar. Therefore, I made it because it needs multi-planar support. |
|
Hello, is there anything that can be done to help move forward with this PR? |
|
@martinetd Thanks for the contribution and sorry for the delay. We are looking how to test the solution on our side, if it's possible. I try v4l2loopback to emulate your camera and have not reached the goal. Please let me know, if you have some solution. |
|
Thanks for the quick reply! I took a quick look at other devices in the linux tree that have That sounds easier than trying to emulate multiplanar; I gave v4l2loopback a quick look as well but it only supports Ultimately if you cannot test any mplane-compatible device yet, I think what's most important is that we didn't break the existing: have you tested wtih normal capture support yet? |
264f40a to
ec6a2c8
Compare
Devices which only support multi-planar capture cannot be processed as single-planar. Add multi-planar support to v4l driver.
ec6a2c8 to
a001ab3
Compare
asmorkalov
left a comment
There was a problem hiding this comment.
👍 Looks good to me. I cannot test multi-plane branch, but default branch works well. Tested with Logitech and Genius cams in both BGR and JPEG mode, timestamps and some properties.
|
@alalek please take a look. |
|
Thanks! |
Devices which only support multi-planar capture cannot be processed as
single-planar.
Add multi-planar support to v4l driver.
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.