Hi, I'm poking around at libgphoto2 and I have a bit of trouble understanding how the gp_widgets are intended to be used. Obviously life isn't as easy as Nikon, Canon etc are using the same name for the same settings internally.
What I'm trying to do is to offer camera agnostic ways to do some common operations, such as set ISO, shutter speed and aperture. Looking at camlibs/ptp2/config.c it seems like you have striven to have the same names for the functions no matter the model. But for aperture I noticed that (assuming I'm understanding things correct) it's is called aperture for about half of the brands while it's called f-number for the other half. ISO and shutter speeds seems to be the same though. I also had a quick look at Darktable ( https://github.com/darktable-org/darktable/blob/893effa0f18e5628de6e6636deb70e51fe987ac6/src/libs/camera.c#L573 ) and it seems like I need to have special cases for a couple of the settings. So, my two questions would be: Is the Darktable way the intended way to implement it? IE I get all settings, look if f-number exist among them and if so determine that's the way, otherwise go for aperture (if that exist) If not getting a nudge in the right direction would be great. Thanks in advance Jon
_______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel