typedef enum {
T_STOP = 0,
T_UP,
T_DOWN,
P_STOP,
P_LEFT,
P_RIGHT,
PT_STOP,
PT_UP_LEFT,
PT_UP_RIGHT,
PT_DOWN_LEFT,
PT_DOWN_RIGHT,
PT_CALIBRATION,
PT_CENTER,
T_PATROL,
P_PATROL,
TRACK_PATROL,
SET_PRESET,
GO_PRESET,
Z_STOP,
Z_WIDE,
Z_TELE,
I_STOP,
I_OPEN,
I_CLOSE,
IR_SWITCH,
ALARM_IOOUT,
F_STOP,
F_NEAR,
F_FAR,
} PTZ_COMMAND;
PTZ_COMMAND is the PTZ command which sent to camera
| Enum | Explain |
| T_STOP | Stop the vertical direction |
| T_UP | Turn up |
| T_DOWN | Turn down |
| P_STOP | Stop the horizontal direction |
| P_LEFT | Turn left |
| P_RIGHT | Turn right |
| PT_STOP | stop move |
| PT_UP_LEFT | Turn upper left |
| PT_UP_RIGHT | Turn upper right |
| PT_DOWN_LEFT | Turn bottom left |
| PT_DOWN_RIGHT | Turn bottom right |
| PT_CALIBRATION | PTZ calibration |
| PT_CENTER | Move to center |
| T_PATROL | Vertical Cruise |
| P_PATROL | Horizontal Cruise |
| TRACK_PATROL | Cruise |
| SET_PRESET | Set preset position |
| GO_PRESET | Goto preset position |
| Z_STOP | Stop to zoom |
| Z_WIDE | zoom to wide |
| Z_TELE | zoom to narrow |
| I_STOP | Aperture stop |
| I_OPEN | Aperture expansion |
| I_CLOSE | Aperture constriction |
| IR_SWITCH | Infrared lamp switch |
| ALARM_IOOUT | Alarm output of IO |
| F_STOP | Focal length stop |
| F_NEAR | Focal length near |
| F_FAR | Focal length far |