Fix various v4lconvert functions assuming stride == width
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | libv4lconvert: Fix v4lconvert_yuv420_to_rgb/bgr24() not taking stride into accountlib/ lib/ lib/ | +27 | 0 replies | |
| 2/4 | libv4lconvert: Fix v4lconvert_rgb565_to_rgb/bgr24() not taking stride into accountlib/ lib/ lib/ | +8 | 0 replies | |
| 3/4 | libv4lconvert: Fix v4lconvert_nv12_*() not taking stride into accountlib/ lib/ lib/ | +19 | 0 replies | |
| 4/4 | libv4lconvert: Fix v4lconvert_nv16_to_yuyv() not taking stride into accountlib/ lib/ lib/ | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH v4l-utils 0/4] Fix various v4lconvert functions assuming stride == width
Hi All,
I (finally) have my videobuf2 conversion of the atomisp2 driver working (I'll post the kernel patches real soon now). This means working MMAP mode, which means I can use e.g. camorama with libv4l2 to do the conversion.
By hacking libv4lconvert to prefer certain formats I have been able to test yuv420, yuyv, rgb565, nv12 and nv16 support in the atomisp2 code. Which has resulted in me finding a bunch of issues inside v4lconvert because the atomisp2 driver generally creates frames where stride != width.
This patch series fixes this. All patches have been tested on actual hw, at least all the input -> rgb24 paths.
Regards,
Hans
Hans de Goede (4):
libv4lconvert: Fix v4lconvert_yuv420_to_rgb/bgr24() not taking stride
into account
libv4lconvert: Fix v4lconvert_rgb565_to_rgb/bgr24() not taking stride
into account
libv4lconvert: Fix v4lconvert_nv12_*() not taking stride into account
libv4lconvert: Fix v4lconvert_nv16_to_yuyv() not taking stride into
account
lib/libv4lconvert/libv4lconvert-priv.h | 14 +++--- lib/libv4lconvert/libv4lconvert.c | 32 ++++++------ lib/libv4lconvert/rgbyuv.c | 70 +++++++++++++++++--------- 3 files changed, 69 insertions(+), 47 deletions(-)
Signature · 1 line
2.37.3