Skip to content

Fix various v4lconvert functions assuming stride == width

Hans de Goede linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libv4lconvert: Fix v4lconvert_yuv420_to_rgb/bgr24() not taking stride into accountlib/libv4lconvert/libv4lconvert-priv.h lib/libv4lconvert/libv4lconvert.c lib/libv4lconvert/rgbyuv.c+27 -190 replies
2/4libv4lconvert: Fix v4lconvert_rgb565_to_rgb/bgr24() not taking stride into accountlib/libv4lconvert/libv4lconvert-priv.h lib/libv4lconvert/libv4lconvert.c lib/libv4lconvert/rgbyuv.c+8 -60 replies
3/4libv4lconvert: Fix v4lconvert_nv12_*() not taking stride into accountlib/libv4lconvert/libv4lconvert-priv.h lib/libv4lconvert/libv4lconvert.c lib/libv4lconvert/rgbyuv.c+19 -110 replies
4/4libv4lconvert: Fix v4lconvert_nv16_to_yuyv() not taking stride into accountlib/libv4lconvert/libv4lconvert-priv.h lib/libv4lconvert/libv4lconvert.c lib/libv4lconvert/rgbyuv.c+15 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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