diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2020-05-03 20:09:34 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2020-05-03 20:09:34 +0200 |
commit | 164906ed58b964ae54449b7ea769b2f6d18e25e4 (patch) | |
tree | cb88912894c5ac07479122676cdc0b78aab61c94 | |
parent | 12e91a54ee587f52c384d24e9370288d6284a943 (diff) | |
download | libgphoto2-164906ed58b964ae54449b7ea769b2f6d18e25e4.tar.gz |
added nikon facedetection
-rw-r--r-- | camlibs/ptp2/config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index 8a96003e2..f337601d6 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -5677,6 +5677,14 @@ static struct deviceproptableu8 nikon_hdmidatadepth[] = { }; GENERIC8TABLE(Nikon_HDMIDataDepth,nikon_hdmidatadepth) +static struct deviceproptableu8 nikon_facedetection[] = { + { N_("Off"), 0x0, 0 }, + { N_("Face detection"), 0x1, 0 }, + { N_("Face and pupil detection"), 0x2, 0 }, + { N_("Animal detection"), 0x3, 0 }, +}; +GENERIC8TABLE(Nikon_FaceDetection,nikon_facedetection) + static int _get_BatteryLevel(CONFIG_GET_ARGS) { unsigned char value_float , start, end; @@ -8630,6 +8638,7 @@ static struct submenu capture_settings_menu[] = { { N_("Video Mode"), "videomode", PTP_DPC_NIKON_VideoMode, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_VideoMode, _put_Nikon_VideoMode }, { N_("Sensor Crop"), "sensorcrop", PTP_DPC_SONY_SensorCrop, PTP_VENDOR_SONY, PTP_DTC_UINT8, _get_Sony_SensorCrop, _put_Sony_SensorCrop }, { N_("HDMI Output Data Depth"), "hdmioutputdatadepth", PTP_DPC_NIKON_HDMIOutputDataDepth, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_HDMIDataDepth, _put_Nikon_HDMIDataDepth }, + { N_("Face Detection"), "facedetection", PTP_DPC_NIKON_FaceDetection, PTP_VENDOR_NIKON, PTP_DTC_UINT8, _get_Nikon_FaceDetection, _put_Nikon_FaceDetection }, { 0,0,0,0,0,0,0 }, }; |