diff options
author | Milan Zamazal <mzamazal@redhat.com> | 2025-03-26 10:08:39 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2025-03-26 10:45:01 +0000 |
commit | 94e849bcf7fd6e3f7a21b16a2a81d2929f9d5323 (patch) | |
tree | 60d3a91b08cefb7f5f2e1cf04b5190ce08eff08e /src/ipa/simple/ipa_context.h | |
parent | 84f82c6b3ca9c90d6fc8e55678a39968f16b255c (diff) |
libcamera: software_isp: Use RGB type to represent gains
Rather than using a custom struct to represent RGB values, let's use the
corresponding type and its facilities.
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/simple/ipa_context.h')
-rw-r--r-- | src/ipa/simple/ipa_context.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ipa/simple/ipa_context.h b/src/ipa/simple/ipa_context.h index 607af45a..6a285414 100644 --- a/src/ipa/simple/ipa_context.h +++ b/src/ipa/simple/ipa_context.h @@ -13,6 +13,8 @@ #include <libcamera/controls.h> +#include "libcamera/internal/vector.h" + #include <libipa/fc_queue.h> namespace libcamera { @@ -36,11 +38,7 @@ struct IPAActiveState { } blc; struct { - struct { - double red; - double green; - double blue; - } gains; + RGB<double> gains; unsigned int temperatureK; } awb; |