diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-21 15:00:37 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-24 22:14:22 +0300 |
commit | 3d7e50fd715dee709da9e2a8c9ccd4892f4d5f75 (patch) | |
tree | 556c9e364f1fc2205752b1c2f39d79c4cca921b1 /src/ipa/rpi/cam_helper/cam_helper.h | |
parent | a8de1f398ddc26a655756e8954fd4d90dff3b3fa (diff) |
libcamera: yaml_parser: Add support for float types
The YamlObject::get<T>() function template has a specialization for
double but not for float. When used in an IPA module, the issue is
caught at module load time only, when dynamic links are resolved,
causing errors such as
Failed to open IPA module shared object: /usr/lib/libcamera/ipa_rkisp1.so: undefined symbol: _ZNK9libcamera10YamlObject6GetterIfE3getERK_
Fix it by adding a float specialization. The alternative would be to use
double only in IPA modules, but the lack of enforcement at compile time
makes this dangerous.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/cam_helper/cam_helper.h')
0 files changed, 0 insertions, 0 deletions