in xf_autowhitebalance_accel.cpp Line60, I can find gain0 is gotten, but in Line62 I find gain1 is used for xf::cv::AWBGainUpdate which is not valid. Suppose gain0 shoud be used for xf::cv::AWBGainUpdate.
gain0 and gain1 are ping pong buffers. You can notice them used in such manner in the function calls in line 96 and line 102. Hence, gain1 is used for AWBGainUpdate.
in xf_autowhitebalance_accel.cpp Line60, I can find gain0 is gotten, but in Line62 I find gain1 is used for xf::cv::AWBGainUpdate which is not valid. Suppose gain0 shoud be used for xf::cv::AWBGainUpdate.