rateFrame 385 samples/cpp/autofocus.cpp int stepToCorrect = correctFocus(lastSucceeded, state, rateFrame(frame)); rateFrame 405 samples/cpp/autofocus.cpp double rate = rateFrame(frame);