Dear friends:
     I am a photography enthusiast and C++ developer. I 
encountered some issues while using gphoto2 to connect to a Sony A7M3 camera 
and retrieve settings for ISO, iris, and shutter speed. When I use gphoto2 
--get-config /main/imgsettings/iso to get the ISO, it returns a very wide 
range, but what I need is the current effective value. In comparison, the Sony 
Camera Remote SDK provides methods to obtain the current value, the current 
valid range, and all supported ranges. Could you please advise if gphoto2 
offers any commands or interfaces that can similarly retrieve these different 
ranges as provided by the Sony SDK? We need your helps in urgent!


     My code list:
        cmd  : gphoto2 --get-config 
/main/imgsettings/iso


        code :
              
 gp_camera_get_config(camera, &config, context);
              
 gp_widget_get_child_by_name(config, "iso", &widget);
               int count = 
gp_widget_count_choices(widget);
               
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;std:map<int, const 
char*&gt; isoMaps;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int i = 0; i < 
count; i++) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
gp_widget_get_choice(widget, i, &amp;isoMaps[i]);
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

Reply via email to