diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2020-04-26 17:54:04 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2020-04-26 17:54:04 +0200 |
commit | cd2eafcdbb4e0fa52e91337c89cfc3e9f5d39445 (patch) | |
tree | 9f0af763aa5dc98043ad7242a6284a5c4460e49d | |
parent | d02e15759ab130ef957dc001085688a891181542 (diff) | |
download | libgphoto2-cd2eafcdbb4e0fa52e91337c89cfc3e9f5d39445.tar.gz |
added some more nikon 1 opcodes and property codes
-rw-r--r-- | camlibs/ptp2/ptp.c | 15 | ||||
-rw-r--r-- | camlibs/ptp2/ptp.h | 19 |
2 files changed, 33 insertions, 1 deletions
diff --git a/camlibs/ptp2/ptp.c b/camlibs/ptp2/ptp.c index de5374f85..9afd82ead 100644 --- a/camlibs/ptp2/ptp.c +++ b/camlibs/ptp2/ptp.c @@ -5971,7 +5971,20 @@ ptp_get_property_description(PTPParams* params, uint16_t dpc) {PTP_DPC_NIKON_LiveViewSelector,"LiveViewSelector"}, {PTP_DPC_NIKON_MovieShutterSpeed,"MovieShutterSpeed"}, {PTP_DPC_NIKON_MovieFNumber,"MovieFNumber"}, - + {PTP_DPC_NIKON_MovieCaptureMode,"MovieCaptureMode"}, + {PTP_DPC_NIKON_SlowMotionMovieRecordScreenSize,"SlowMotionMovieRecordScreenSize"}, + {PTP_DPC_NIKON_HighSpeedStillCaptureRate,"HighSpeedStillCaptureRate"}, + {PTP_DPC_NIKON_BestMomentCaptureMode,"BestMomentCaptureMode"}, + {PTP_DPC_NIKON_ActiveSelectionFrameSavedDefault,"ActiveSelectionFrameSavedDefault"}, + {PTP_DPC_NIKON_ActiveSelectionCapture40frameOver,"ActiveSelectionCapture40frameOver"}, + {PTP_DPC_NIKON_ActiveSelectionOnReleaseRecord,"ActiveSelectionOnReleaseRecord"}, + {PTP_DPC_NIKON_ActiveSelectionSelectedPictures,"ActiveSelectionSelectedPictures"}, + {PTP_DPC_NIKON_ExposureRemainingInMovie,"ExposureRemainingInMovie"}, + {PTP_DPC_NIKON_OpticalVR,"OpticalVR"}, + {PTP_DPC_NIKON_SilentPhotography,"SilentPhotography"}, + {PTP_DPC_NIKON_FacePriority,"FacePriority"}, + {PTP_DPC_NIKON_LensTypeNikon1,"LensTypeNikon1"}, + {PTP_DPC_NIKON_ISONoiseReduction,"ISONoiseReduction"}, {0,NULL} }; struct { diff --git a/camlibs/ptp2/ptp.h b/camlibs/ptp2/ptp.h index 8d244f6a9..1cdadf688 100644 --- a/camlibs/ptp2/ptp.h +++ b/camlibs/ptp2/ptp.h @@ -569,6 +569,8 @@ typedef struct _PTPIPHeader PTPIPHeader; #define PTP_OC_NIKON_TestFlash 0x941b #define PTP_OC_NIKON_GetEventEx 0x941c /* can do multiparameter events, compared to GetEvent */ #define PTP_OC_NIKON_MirrorUpCancel 0x941d +#define PTP_OC_NIKON_PowerZoomByFocalLength 0x941e +#define PTP_OC_NIKON_ActiveSelectionControl 0x941f #define PTP_OC_NIKON_SaveCameraSetting 0x9420 #define PTP_OC_NIKON_GetObjectSize 0x9421 /* param: objecthandle, returns 64bit objectsize as DATA */ #define PTP_OC_NIKON_GetLiveViewCompressedSize 0x9423 @@ -579,9 +581,11 @@ typedef struct _PTPIPHeader PTPIPHeader; #define PTP_OC_NIKON_GetPartialObjectEx 0x9431 /* p1: objecthandle, p2: offset lower 32bit, p3: offset higher 32bit, p4: maxsize lower 32bit, p5: maxsize upper 32bit, response is r1: lower 32bit, r2: higher 32bit */ #define PTP_OC_NIKON_GetManualSettingLensData 0x9432 + /* From Nikon V1 Trace */ #define PTP_OC_NIKON_GetDevicePropEx 0x9504 /* gets device prop data */ + /* Casio EX-F1 (from http://code.google.com/p/exf1ctrl/ ) */ #define PTP_OC_CASIO_STILL_START 0x9001 #define PTP_OC_CASIO_STILL_STOP 0x9002 @@ -1096,6 +1100,7 @@ typedef struct _PTPIPHeader PTPIPHeader; #define PTP_EC_Nikon_PictureControlAdjustChanged 0xC10B /* e1: picctrlitem e2: shootingmode */ #define PTP_EC_Nikon_LiveViewStateChanged 0xC10C /* e1: liveview state */ #define PTP_EC_Nikon_ManualSettingsLensDataChanged 0xC10E /* e1: lensnr */ +#define PTP_EC_Nikon_ActiveSelectionInterrupted 0xC112 /* e1: errorcode */ #define PTP_EC_Nikon_SBAdded 0xC120 /* e1: sbhandle */ #define PTP_EC_Nikon_SBRemoved 0xC121 /* e1: sbhandle */ #define PTP_EC_Nikon_SBAttrChanged 0xC122 /* e1: sbhandle, e2: attrid */ @@ -2411,7 +2416,21 @@ typedef struct _PTPCanonEOSDeviceInfo { #define PTP_DPC_NIKON_MovieVignetteControl 0xD23E #define PTP_DPC_NIKON_MovieDiffractionCompensation 0xD23F #define PTP_DPC_NIKON_UseDeviceStageFlag 0xD303 +#define PTP_DPC_NIKON_MovieCaptureMode 0xD304 +#define PTP_DPC_NIKON_SlowMotionMovieRecordScreenSize 0xD305 +#define PTP_DPC_NIKON_HighSpeedStillCaptureRate 0xD306 +#define PTP_DPC_NIKON_BestMomentCaptureMode 0xD307 +#define PTP_DPC_NIKON_ActiveSelectionFrameSavedDefault 0xD308 +#define PTP_DPC_NIKON_ActiveSelectionCapture40frameOver 0xD309 +#define PTP_DPC_NIKON_ActiveSelectionOnReleaseRecord 0xD310 +#define PTP_DPC_NIKON_ActiveSelectionSelectedPictures 0xD311 +#define PTP_DPC_NIKON_ExposureRemainingInMovie 0xD312 +#define PTP_DPC_NIKON_OpticalVR 0xD313 #define PTP_DPC_NIKON_ElectronicVR 0xD314 +#define PTP_DPC_NIKON_SilentPhotography 0xD315 +#define PTP_DPC_NIKON_FacePriority 0xD316 +#define PTP_DPC_NIKON_LensTypeNikon1 0xD317 +#define PTP_DPC_NIKON_ISONoiseReduction 0xD318 /* Nikon V1 (or WU adapter?) Trace */ |