From f1959b9f313a33600eda575f32bbd06143a0cc45 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Fri, 14 Jun 2024 20:37:56 +0900 Subject: ipa: libipa: Add MatrixInterpolator class Add a class to encapsulate the functionality of fetching a matrix based on an integer key, and interpolating if there is no exact match. This is expected to be used by both color correction matrices / crosstalk correction as well as lens shading correction. A cache is included only for exact matches of the key. The caller is expected to decide the tolererance for rounding. Signed-off-by: Paul Elder Reviewed-by: Stefan Klug Reviewed-by: Kieran Bingham Signed-off-by: Laurent Pinchart --- src/ipa/libipa/meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ipa/libipa/meson.build') diff --git a/src/ipa/libipa/meson.build b/src/ipa/libipa/meson.build index 1952dccf..eff8ce26 100644 --- a/src/ipa/libipa/meson.build +++ b/src/ipa/libipa/meson.build @@ -8,6 +8,7 @@ libipa_headers = files([ 'fc_queue.h', 'histogram.h', 'matrix.h', + 'matrix_interpolator.h', 'module.h', 'pwl.h', 'vector.h', @@ -21,6 +22,7 @@ libipa_sources = files([ 'fc_queue.cpp', 'histogram.cpp', 'matrix.cpp', + 'matrix_interpolator.cpp', 'module.cpp', 'pwl.cpp', 'vector.cpp', -- cgit v1.2.1