Thanks for starting this, definitely seems like a worthwhile project. My weekend looks like it will be mostly taken up by other stuff, but I'll try to play with the patch provide some more specific comments later. In the meantime, here's some random stream of consciousness...
Can we do a better job making sure a port is using the optimal buffer configuration?
One thing I've wanted to do for a long time is an MD self test: Basically, start MD, record tick count, turn on the AF led, record tick count when MD triggers. This will be subject to the 10ms resolution of tick count, but otherwise should be very consistent and comparable across cameras. The main difficulty is that the LED functions are not very consistent across cameras. Adding CHDK platform independent LED code (so you could say something like set_led(LED_AF) is another thing on my list... This should be available in the C code and script, and have some way of determining which values are valid.
Another thing semi-related to MD: Using native face detect on cameras that support it, see
http://chdk.setepontos.com/index.php?topic=8243.msg86889#msg86889There are also some propcases that update continuously (even outside of halfshoot) depending on the scene (196 in propset 2 for example), which might be used to make a form of MD that just works on overall scene brightness and could potentially be faster than screen reading.
I'll submit for inclusion to the dev & stable trunk at some point but any feedback prior to that would be appreciated.
FWIW, this is stretching the definition of bug fix, so I'd prefer this only only go in the trunk (at least initially). That said, posting a 1.1 patch is good for people who want to try it without getting the rest of the trunk baggage.