libcamera/src
Milan Zamazal 6c17996879 libcamera: ipa_proxy: Report a missing configuration as a warning
When the configuration file for an IPA module is missing, it is reported
as an error in the log, for example:

  ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'imx219.yaml' not found for IPA module 'simple'

This is misleading because several pipelines use uncalibrated.yaml in
such a case and can continue working.  And in case of software ISP,
there is currently no other configuration file so the error is always
reported.

On the other hand, in some other cases the presence of the configuration
file is required and it is an error if it is missing.

Let's introduce a new optional argument to IPAProxy::configurationFile
that specifies a fallback file if the requested file is not found.  If
the primary requested file is not found and a non-empty fallback file is
specified then a warning is logged and the fallback file is looked up.
If neither the fallback file can be found then only then an error is
logged and the method returns an empty string.  This change has also the
benefit of putting the common fallback file ("uncalibrated.yaml")
pattern to a single place.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2024-08-01 08:50:36 +01:00
..
android libcamera: Avoid variable-length arrays 2024-07-31 01:22:13 +03:00
apps libcamera: Avoid variable-length arrays 2024-07-31 01:22:13 +03:00
gstreamer gstreamer: Fix width and height range handling 2024-07-26 10:15:31 +01:00
ipa libcamera: Avoid variable-length arrays 2024-07-31 01:22:13 +03:00
libcamera libcamera: ipa_proxy: Report a missing configuration as a warning 2024-08-01 08:50:36 +01:00
py py: libcamera: Move function declarations to common header 2024-06-26 12:07:11 +03:00
v4l2 v4l2: v4l2_compat: Fix ioctl() prototype with musl C library 2024-07-25 11:57:15 +01:00
meson.build v4l2: Move the v4l2 compat layer to libexec/libcamera 2023-05-04 20:05:02 +01:00