-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
For some reason, after deinit/init cycle, the white balance algorithm is not applied.
Check the following image, obtained when using the camera middleware.
Ignore the pink rectangle on the image.
I was able to resolve the issue by putting the code that's inside the (enableCurrent == false) || (IQParamConfig->AWBAlgo.enable == ISP_AWB_ENABLE_RECONFIGURE):
reconfigureRequest = true;
skip_stat_check_count = ALGO_AWB_STAT_CHECK_SKIP_AFTER_CT_ESTIMATION;
in the ISP_ALGO_STATE_INIT case, in the ISP_Algo_AWB_Process function:
// rest of the code
switch(algo->state)
{
case ISP_ALGO_STATE_INIT:
reconfigureRequest = true;
skip_stat_check_count = ALGO_AWB_STAT_CHECK_SKIP_AFTER_CT_ESTIMATION;
// rest of the code
Commit applying this workaround.
Now, the image has correct white balance after deinit/init cycle.
It would be great to see if there is anything wrong with the init/deinit logic, or if the workaround I've performed is enough.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels