Skip to content

AWB not working after deinit/init cycle #1

@BojanSof

Description

@BojanSof

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions