My A1400 crashes regularly, if i use set_zoom with big zoom changes.set_zoom(0);set_zoom(1);set_zoom(2);set_zoom(3);set_zoom(4);set_zoom(5);set_zoom(6);worksset_zoom(0);set_zoom(6);crash every time.
Is there a specific reason for adjusting focus in the CHDK routines behind set_zoom? That seems to be the cause of crashes on lots of cameras. Couldn't we just make re-focusing optional somehow?
Some existing scripts probably expect the current behavior, which might argue for keeping it as the default, or dependent on @chdk_version
Adding a menu option with the non-crashing behaviour as default? (Problematic camera -> no refocus). That would let those cameras run set_zoom'ing scripts without crashing, at the expense of possibly incorrect focus after zoom.
Oh, and a related but different issue: the incorrect distortion when not using CAM_USE_ALT_PT_MoveOpticalZoomAt. I suspect that almost all D4 and later cameras need the alternative zooming method as distortion correction and distorting lens designs were introduced in DIGIC 4 cams.
I noticed modern cameras (~ixus160 and later) have UIFS_MoveZoomToPositionWithTaskSwCtrlServ_FW, which kind of suggests a higher level function. It appears to take 3 parameters
Internally, it appears to use a function which is also available as eventproc UIFS_MoveZoomTo (all DryOS cams, except S5IS). Takes 3 params, first is zoom point (optical+digital), second is speed, third is an optional callback function.Tried on two cams so far. No crashes, even during video recording. Displays the native zoom bar on screen. Also seems to maintain focus(!). Minor issue is that it resets any previously set digital zoom.
Started by RickShelton
Started by Microfunguy
General Discussion and Assistance
Started by barianet
« 1 2 3 »
Started by Rogerio
« 1 2 »
Started by arjayagbunag