Calculate the DOF from the focal length, aperture and focus distance for display on the info section of the screen.
I added a simple implementation of dof display - together with a integer division function.
But I think structure wise we should put math functions like this in a library and put some basic calculation values (like dof data, lens data, iso...) into a structure, that can be read out everywhere to either display them or do some further calculations.
Compute DOF of lens parameters and write lens info to movie.log file
- Fix bug 22 -- DOF is computed if the lens data are available.
- Work on bug 19 -- doesn't do frame count and doesn't use correct name
Having a DOF calculator would be AMAZING. I have for a long time wondered why this simple calculator is not included on all DSLRs as option that you can turn on and which shows you your focal length, aperatue and in focus area (close and far focus distances). MMmmmmm do it.
Please please include this in a release of magic lantern soon!