From: <mar...@us...> - 2009-11-13 12:44:06
|
Revision: 12525 http://gphoto.svn.sourceforge.net/gphoto/?rev=12525&view=rev Author: marcusmeissner Date: 2009-11-13 12:44:00 +0000 (Fri, 13 Nov 2009) Log Message: ----------- decode fuji options Modified Paths: -------------- trunk/libgphoto2/camlibs/ptp2/ptp.c Modified: trunk/libgphoto2/camlibs/ptp2/ptp.c =================================================================== --- trunk/libgphoto2/camlibs/ptp2/ptp.c 2009-11-09 16:30:09 UTC (rev 12524) +++ trunk/libgphoto2/camlibs/ptp2/ptp.c 2009-11-13 12:44:00 UTC (rev 12525) @@ -3496,6 +3496,19 @@ {PTP_DPC_MTP_PlaysForSureID, N_("PlaysForSure ID")}, /* D131 (?) */ {0,NULL} }; + struct { + uint16_t dpc; + const char *txt; + } ptp_device_properties_FUJI[] = { + {PTP_DPC_FUJI_ColorTemperature, N_("Color Temperature")}, /* 0xD017 */ + {PTP_DPC_FUJI_Quality, N_("Quality")}, /* 0xD018 */ + {PTP_DPC_FUJI_Quality, N_("Release Mode")}, /* 0xD201 */ + {PTP_DPC_FUJI_Quality, N_("Focus Areas")}, /* 0xD206 */ + {PTP_DPC_FUJI_Quality, N_("AE Lock")}, /* 0xD213 */ + {PTP_DPC_FUJI_Quality, N_("Aperture")}, /* 0xD218 */ + {PTP_DPC_FUJI_Quality, N_("Shutter Speed")}, /* 0xD219 */ + {0,NULL} + }; for (i=0; ptp_device_properties[i].txt!=NULL; i++) if (ptp_device_properties[i].dpc==dpc) @@ -3522,6 +3535,11 @@ if (ptp_device_properties_Nikon[i].dpc==dpc) return (ptp_device_properties_Nikon[i].txt); + if (params->deviceinfo.VendorExtensionID==PTP_VENDOR_FUJI) + for (i=0; ptp_device_properties_FUJI[i].txt!=NULL; i++) + if (ptp_device_properties_FUJI[i].dpc==dpc) + return (ptp_device_properties_FUJI[i].txt); + return NULL; } @@ -3590,7 +3608,9 @@ {PTP_DPC_ExposureTime, 0, 0.00001, 0.0, "%.2g sec"}, /* 500D */ {PTP_DPC_ExposureIndex, 0, 1.0, 0.0, "ISO %.0f"}, /* 500F */ {PTP_DPC_ExposureBiasCompensation, 0, 0.001, 0.0, N_("%.1f stops")},/* 5010 */ + {PTP_DPC_CaptureDelay, 0, 0.001, 0.0, "%.1fs"}, /* 5012 */ {PTP_DPC_DigitalZoom, 0, 0.1, 0.0, "%.1f"}, /* 5016 */ + {PTP_DPC_BurstInterval, 0, 0.001, 0.0, "%.1fs"}, /* 5019 */ /* Nikon device properties */ {PTP_DPC_NIKON_LightMeter, PTP_VENDOR_NIKON, 0.08333, 0.0, N_("%.1f stops")},/* D10A */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |