Methods and related computer program products, systems, and devices for
auto-focusing in an image-capturing system includes sampling output
signals from an auto-focusing circuit in a first interval of lens
distances and determining a first lens distance and a second lens
distance corresponding to the two highest values of the sampled output
signals in the first interval of lens distances.