ipa: rkisp1: Add enable field for AWB algorithm in IPA context

Add an enable variable in the awb struct in IPASessionConfiguration
which indicates if the AWB hardware module is enabled. This will allow
other algorithms to retrieve this information.

Signed-off-by: Florian Sylvestre <fsylvestre@baylibre.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
Florian Sylvestre 2022-08-05 14:40:25 +02:00 committed by Laurent Pinchart
parent acf7213230
commit ea549c46d3
3 changed files with 10 additions and 0 deletions

View file

@ -50,6 +50,8 @@ int Awb::configure(IPAContext &context,
context.configuration.awb.measureWindow.h_size = 3 * configInfo.outputSize.width / 4;
context.configuration.awb.measureWindow.v_size = 3 * configInfo.outputSize.height / 4;
context.configuration.awb.enabled = true;
return 0;
}

View file

@ -87,6 +87,13 @@ namespace libcamera::ipa::rkisp1 {
*
* \var IPASessionConfiguration::awb.measureWindow
* \brief AWB measure window
*
* \var IPASessionConfiguration::awb.enabled
* \brief Indicates if the AWB hardware is enabled and applies colour gains
*
* The AWB module of the ISP applies colour gains and computes statistics. It is
* enabled when the AWB algorithm is loaded, regardless of whether the algorithm
* operates in manual or automatic mode.
*/
/**

View file

@ -29,6 +29,7 @@ struct IPASessionConfiguration {
struct {
struct rkisp1_cif_isp_window measureWindow;
bool enabled;
} awb;
struct {