[libcamera-devel] [PATCH v5 27/33] ipa: rkisp1: awb: Store color temperature as an integer

Laurent Pinchart laurent.pinchart at ideasonboard.com
Tue Sep 27 04:36:36 CEST 2022


The color temperature doesn't need floating point precision, and is
calculated by Awb::estimateCCT() as an unsigned integer. Store it with
the same data type in the frame context.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>
---
 src/ipa/rkisp1/ipa_context.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ipa/rkisp1/ipa_context.h b/src/ipa/rkisp1/ipa_context.h
index 9a16dd6cf108..d0692f872960 100644
--- a/src/ipa/rkisp1/ipa_context.h
+++ b/src/ipa/rkisp1/ipa_context.h
@@ -101,7 +101,7 @@ struct IPAFrameContext : public FrameContext {
 			double blue;
 		} gains;
 
-		double temperatureK;
+		unsigned int temperatureK;
 		bool autoEnabled;
 	} awb;
 
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list