11-12-2012 12:47 PM - edited 11-12-2012 01:24 PM
I am trying to set the camera focus mode and have run into a problem. The modes return from camera_get_focus_modes(*) indicate that six focus modes are now supported. But when I try to set one of these modes via a call to camera_set_focus_mode(*) the call returns
which is documented to mean:"The function call failed because the requested operation is not supported."
Is this simply an artifact of the DevAlpha? That is, the focus modes returned by camera_get_focus_modes(*) *will* be implemented by the real hardware but not on the DevAlpha? Or am I doing something blindingly stupid?
EDIT: Using DevAlpha B.
Thanking you in advance... -Sam.
Solved! Go to Solution.
11-12-2012 05:27 PM
The viewfinder needs to be running first.
There is a sample here which runs through the various focus modes:
11-13-2012 12:53 PM
Yes, the focus modes query should fail if they cannot be set or effected.
Thanks for your help. And thanks much for the reference to all those Jam demos. Very helpful. Are there any other sample caches that are not explicitely referenced in either the community section or the official section?
11-13-2012 01:17 PM
all camera-related samples are linked to from the camera community wiki page here:
I just checked the implementation, and yes, it looks like the camera_get_focus_modes() API is hooked up in a state-independent way. I will look at getting this fixed. This list should not likely be queryable without a viewfinder running, because the list may vary based on which mode is currently selected. It doesn't presently, but in the future it may.