libipa: Centralise Fixed / Floating point convertors
The rkisp1 IPA has some utility functions to convert between fixed and floating point numbers. Move those to libipa so they're available for use in other IPA modules too. Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "libcamera/internal/yaml_parser.h"
|
||||
|
||||
#include "../utils.h"
|
||||
#include "libipa/fixedpoint.h"
|
||||
#include "libipa/interpolator.h"
|
||||
|
||||
/**
|
||||
@@ -72,7 +72,7 @@ void Ccm::setParameters(struct rkisp1_cif_isp_ctk_config &config,
|
||||
for (unsigned int i = 0; i < 3; i++) {
|
||||
for (unsigned int j = 0; j < 3; j++)
|
||||
config.coeff[i][j] =
|
||||
utils::floatingToFixedPoint<4, 7, uint16_t, double>(matrix[i][j]);
|
||||
floatingToFixedPoint<4, 7, uint16_t, double>(matrix[i][j]);
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < 3; i++)
|
||||
|
||||
Reference in New Issue
Block a user