Smooth / continuous zooming - General Discussion and Assistance - CHDK Forum

Smooth / continuous zooming

  • 0 Replies
  • 2251 Views
Smooth / continuous zooming
« on: 06 / November / 2008, 12:56:44 »
Advertisements
Hi,

I'm trying to implement my own focus algorithm, in which the user is able to zoom the camera as they wish, with my logic dictating the point that is focused on.

I have cobbled something together that sort of works using the lens_get_zoom_point, lens_set_zoom_point, shooting_set_focus, and in general the kbd_key_press functions.

However, my current implementation is very jerky. If the zoom knob is held down, then the lens does continue zooming until the zoom knob is released, but it does it in multiple discrete steps, rather than as a longer continuous transition (as happens when the camera's own zoom logic is controlling things). I haven't figured out how to make the zoom continuous yet.

I would be happy to let the camera's internal logic handle the zooming, if only I could have a handler or something that ran when the zoom was released. I haven't figured out how to do this at all yet.

Does anyone know how I can get around this problem?

Thanks for the help,

- Tim

 

Related Topics


SimplePortal © 2008-2014, SimplePortal