[libcamera-devel,0/2] Fixed mismatch of pixel formats of V4L2 and libcamera
mbox series

Message ID 20210618200247.624987-1-vedantparanjape160201@gmail.com
Headers show
Series
  • Fixed mismatch of pixel formats of V4L2 and libcamera
Related show

Message

Vedant Paranjape June 18, 2021, 8:02 p.m. UTC
On running libcamera gstreamer element on Raspberry Pi 4B+, there was a
warning as follows:

[3:23:59.717513107] [3577] WARN V4L2 v4l2_pixelformat.cpp:180 Unsupported V4L2 pixel format XB24

This patchset fixes the following warning, by updating the existing
mapping of V4L2_PIX_FMT_XRGB32 to libcamera pixel format. Additionally,
adds a new mapping of V4L2_PIX_FMT_RBGX32 to formats::XBGR8888

Vedant Paranjape (2):
  libcamera: Fix V4L2 pixel format mapping for XRGB32
  libcamera: Update V4L2 pixel format to libcamera pixel format mapping

 src/libcamera/formats.cpp          | 12 +++++++++++-
 src/libcamera/v4l2_pixelformat.cpp |  3 ++-
 2 files changed, 13 insertions(+), 2 deletions(-)