summaryrefslogtreecommitdiff
path: root/camlibs/ptp2/ptp.h
diff options
context:
space:
mode:
authorMark Watson <watsonmw@gmail.com>2022-12-23 00:47:44 -0800
committerGitHub <noreply@github.com>2022-12-23 09:47:44 +0100
commit1aaf870ede9fdaa29ce7b90f4c15422829ef877e (patch)
treefc1ac7b1ce0aaa66083e4bc4fbf76a37ee1c5936 /camlibs/ptp2/ptp.h
parent896e6e53502a7c8f2b621bcb7bd297749502d0cb (diff)
downloadlibgphoto2-1aaf870ede9fdaa29ce7b90f4c15422829ef877e.tar.gz
Add properties to control Sony focus assist magnification, useful for remotely dialing in focus using live view / preview. (#883)
The following toggle actions control the focus assist magnification: - focusmagnify : enter focus magnification mode, toggles through magnification levels - focusmagnifyexit : exit focus magnification mode, back to normal live view / preview image - focusmagnifyup : move magnification zone up - focusmagnifydown : move magnification zone down - focusmagnifyleft : move magnification zone left - focusmagnifyright : move magnification zone right These are toggle actions and may need to be set twice to be noticed by the camera: gphoto2 --set-config=focusmagnify=1 --set-config=focusmagnify=0 gphoto2 --set-config=focusmagnifyexit=1 --set-config=focusmagnifyexit=0
Diffstat (limited to 'camlibs/ptp2/ptp.h')
-rw-r--r--camlibs/ptp2/ptp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/camlibs/ptp2/ptp.h b/camlibs/ptp2/ptp.h
index 7cbbdcee3..2c216d20c 100644
--- a/camlibs/ptp2/ptp.h
+++ b/camlibs/ptp2/ptp.h
@@ -3098,6 +3098,12 @@ typedef struct _PTPCanonEOSDeviceInfo {
#define PTP_DPC_SONY_PriorityMode 0xD25A
#define PTP_DPC_SONY_AutoFocus 0xD2C1 /* ? half-press */
#define PTP_DPC_SONY_Capture 0xD2C2 /* ? full-press */
+#define PTP_DPC_SONY_FocusMagnify 0xD2CB
+#define PTP_DPC_SONY_FocusMagnifyExit 0xD2CC
+#define PTP_DPC_SONY_FocusMagnifyUp 0xD2CD
+#define PTP_DPC_SONY_FocusMagnifyDown 0xD2CE
+#define PTP_DPC_SONY_FocusMagnifyLeft 0xD2CF
+#define PTP_DPC_SONY_FocusMagnifyRight 0xD2D0
/* D2DB (2) , D2D3 (2) , D2C8 (2) also seen in Camera Remote related to D2C2 */
/* S1 ?
* AEL - d2c3