Commit 9666d8d7 authored by Todor Tomov's avatar Todor Tomov Committed by Paolo Pisati
Browse files

media: ov5645: Improve mode finding function



Find the sensor mode by comparing the size of the requested image size
and the sensor mode's image size. The distance between image sizes is the
size in pixels of the non-overlapping regions between the requested size
and the frame-specified size. This logic is borrowed from et8ek8 sensor
driver.

Signed-off-by: default avatarTodor Tomov <todor.tomov@linaro.org>
parent f9f14865
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment