[libcamera-devel] New warnings for pixel formats on Raspberry Pi platforms

Naushir Patuck naush at raspberrypi.com
Fri Aug 5 16:26:16 CEST 2022


Hi,

A recent change (commit f25ad4a2b16b libcamera: formats: Reimplement V4L2
PixelFormatInfo::info()) has started throwing WARN messages on the
Raspberry Pi platform:

[24:06:09.085738817] [8392]  INFO Camera camera_manager.cpp:293 libcamera
v0.0.0
[24:06:09.196596920] [8408]  WARN V4L2 v4l2_pixelformat.cpp:301 Unsupported
V4L2 pixel format SENS
[24:06:09.196729049] [8408]  WARN Formats formats.cpp:838 Unsupported pixel
format 0x00000000
[24:06:09.198112797] [8408]  WARN V4L2 v4l2_pixelformat.cpp:301 Unsupported
V4L2 pixel format BSTA
[24:06:09.198203814] [8408]  WARN Formats formats.cpp:838 Unsupported pixel
format 0x00000000
[24:06:09.199839579] [8408]  INFO RPI raspberrypi.cpp:1374 Registered
camera /base/soc/i2c0mux/i2c at 1/imx477 at 1a to Unicam device /dev/media0 and
ISP device /dev/media3

This is because our meta formats for statistics and embedded data do not
have defined types in libcamera::formats::PixelFormat.  The reason for this
is that they are metadata formats used exclusively internally in the
pipeline handler, and can never be selected by the application.

I'm not sure how to fix this.  Do I need to add entries in formats.yaml to
generate types in libcamera::formats::PixelFormat, meaning I also have to
add  new 4CCs in the drm headers... :-( Given these are metadata formats,
and not user selectable, is this the right thing to do?

Naush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220805/72ee6451/attachment.htm>


More information about the libcamera-devel mailing list