summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2020-01-22 23:10:55 +0300
committerJasem Mutlaq <mutlaqja@ikarustech.com>2020-01-22 23:10:55 +0300
commited87367c26b9ed2a9cf910c47c8ce4bd31a56760 (patch)
treec753dd6eb8c0993f3ecc5143f0280a1b4600dcc0
parente14e6154715ae4673ab2bd0332cc55f1d597c835 (diff)
downloadlibgphoto2-ed87367c26b9ed2a9cf910c47c8ce4bd31a56760.tar.gz
Adding Nikon D7500 capture settings
-rw-r--r--camlibs/ptp2/config.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c
index 4c95de445..b821405b2 100644
--- a/camlibs/ptp2/config.c
+++ b/camlibs/ptp2/config.c
@@ -5254,6 +5254,23 @@ static struct deviceproptableu8 nikon_d850_compression[] = {
};
GENERIC8TABLE(Nikon_D850_Compression,nikon_d850_compression)
+static struct deviceproptableu8 nikon_d7500_compression[] = {
+ { N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON },
+ { N_("JPEG Basic*"), 0x01, PTP_VENDOR_NIKON },
+ { N_("JPEG Normal"), 0x02, PTP_VENDOR_NIKON },
+ { N_("JPEG Normal*"), 0x03, PTP_VENDOR_NIKON },
+ { N_("JPEG Fine"), 0x04, PTP_VENDOR_NIKON },
+ { N_("JPEG Fine*"), 0x05, PTP_VENDOR_NIKON },
+ { N_("NEF (Raw)"), 0x06, PTP_VENDOR_NIKON },
+ { N_("NEF+Basic"), 0x07, PTP_VENDOR_NIKON },
+ { N_("NEF+Basic*"), 0x08, PTP_VENDOR_NIKON },
+ { N_("NEF+Normal"), 0x09, PTP_VENDOR_NIKON },
+ { N_("NEF+Normal*"), 0x0A, PTP_VENDOR_NIKON },
+ { N_("NEF+Fine"), 0x0B, PTP_VENDOR_NIKON },
+ { N_("NEF+Fine*"), 0x0C, PTP_VENDOR_NIKON },
+};
+GENERIC8TABLE(Nikon_D7500_Compression,nikon_d7500_compression)
+
static struct deviceproptableu8 compressionsetting[] = {
{ N_("JPEG Basic"), 0x00, PTP_VENDOR_NIKON },
{ N_("JPEG Normal"), 0x01, PTP_VENDOR_NIKON },
@@ -8495,6 +8512,11 @@ static struct submenu nikon_d850_capture_settings[] = {
{ 0,0,0,0,0,0,0 },
};
+static struct submenu nikon_d7500_capture_settings[] = {
+ { N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D7500_Compression, _put_Nikon_D7500_Compression },
+ { 0,0,0,0,0,0,0 },
+};
+
static struct submenu nikon_z6_capture_settings[] = {
{ N_("Image Quality"), "imagequality", PTP_DPC_CompressionSetting, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_D850_Compression, _put_Nikon_D850_Compression },
{ N_("Focus Metering Mode"), "focusmetermode", PTP_DPC_FocusMeteringMode, PTP_VENDOR_NIKON, PTP_DTC_UINT16, _get_Nikon_D850_FocusMetering, _put_Nikon_D850_FocusMetering },
@@ -8599,8 +8621,9 @@ static struct menu menus[] = {
{ N_("Capture Settings"), "capturesettings", 0x4b0, 0x0426, nikon_d3s_capture_settings, NULL, NULL },
{ N_("Capture Settings"), "capturesettings", 0x4b0, 0x0429, nikon_d5100_capture_settings, NULL, NULL },
{ N_("Capture Settings"), "capturesettings", 0x4b0, 0x0430, nikon_d7100_capture_settings, NULL, NULL },
+ { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0440, nikon_d7500_capture_settings, NULL, NULL },
{ N_("Capture Settings"), "capturesettings", 0x4b0, 0x0414, nikon_d40_capture_settings, NULL, NULL },
- { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0441, nikon_d850_capture_settings, NULL, NULL },
+ { N_("Capture Settings"), "capturesettings", 0x4b0, 0x0441, nikon_d850_capture_settings, NULL, NULL },
{ N_("Capture Settings"), "capturesettings", 0x4b0, 0x0442, nikon_z6_capture_settings, NULL, NULL }, /* Z7 */
{ N_("Capture Settings"), "capturesettings", 0x4b0, 0x0443, nikon_z6_capture_settings, NULL, NULL }, /* Z6 */
{ N_("Capture Settings"), "capturesettings", 0x4b0, 0, nikon_generic_capture_settings, NULL, NULL },