I've put together a patch that adds a new command line option which takes rational number for the shutter speed value (ie 1/60). Here's the changed file: https://github.com/SnowLeopard71/userla ... mControl.c
The new command line option is -ssr
) -- I used an extra 'r' for rational
. Since the MMAL code already provides functions for manipulating rational numbers, it was pretty easy, even for a non-programmer.
The main reason I did this is in spite of not knowing much about photography, using a fraction for the shutter speed seems more "standard" (for lack of better term) than microseconds.
Here are the reported "Exposure times" (from exiftags):
3319/200000 sec = .016595 (1/60 = .016667)
1983/200000 sec = .009915 (1/100 = .01)
77/15625 sec = .004928 (1/200 = .005)
Questions for all of you:
Is this worth adding to the official code?
Is the option name okay or is there better name for it?
Should this usage replace the current option that uses microseconds?