Trunk change poll - General Discussion and Assistance - CHDK Forum

Trunk change poll

  • 0 Replies
  • 1530 Views
Trunk change poll
« on: 05 / February / 2008, 17:18:58 »
Advertisements
Hi folks.

There is no true MF mode on IXUS(SD) cameras.
Tests showed that all but ixus700_sd500 are able to call MoveFocusLensToDistance() successfully (albeit with some restrictions).

Proposal: Changing trunk from

Code: [Select]
short shooting_get_focus_mode()
{
    short m;
    _GetPropertyCase(PROPCASE_FOCUS_MODE, &m, sizeof(m));
    return m;
}

to

Code: [Select]
short shooting_can_focus_be_set()
{
#if defined(CAMERA_ixus800_sd700) || defined(CAMERA_a560) || defined(CAMERA_ixus850_sd800) || defined(CAMERA_ixus70_sd1000)
    return shooting_get_zoom() < 8; // 9 zoom points lens but 8 zoom points code, prevent crash in MoveFocusLensToDistance()
#else
    short m;
    _GetPropertyCase(PROPCASE_FOCUS_MODE, &m, sizeof(m));
    return m;
#endif
}

or even

Code: [Select]
short shooting_can_focus_be_set()
{
#if defined(CAMERA_ixus800_sd700) || defined(CAMERA_a560) || defined(CAMERA_ixus850_sd800) || defined(CAMERA_ixus70_sd1000)
    return shooting_get_zoom() < 8;

//ewavr said A, S and G series do not require MF mode, ixus700_sd500 crashes
#elif defined(CAMERA_ixus700_sd500)
    return 0;
#else
    return 1;
#endif
}

All camera models would benefit from the second solution.
Taking an 'unlimited DOF' stack (aka subject distance bracketing) would be simplified to:
Set continuous drive mode and go! (as long as you camera is already setup for that as mine is)


Anyone a better name than shooting_can_focus_be_set() ?

Cheers
« Last Edit: 05 / February / 2008, 17:38:19 by nirschi »

 

Related Topics