![]() |
AXptz
|
The absolute, relative and continuous movements and its functions. More...
Go to the source code of this file.
Macros | |
#define | AX_PTZ_MOVEMENT_NO_VALUE |
Typedefs | |
typedef struct _AXPTZAbsoluteMovement | AXPTZAbsoluteMovement |
An opaque structure for an absolute movement. | |
typedef struct _AXPTZRelativeMovement | AXPTZRelativeMovement |
An opaque structure for a relative movement. | |
typedef struct _AXPTZContinuousMovement | AXPTZContinuousMovement |
An opaque structure for a continuous movement. | |
Functions | |
AXPTZAbsoluteMovement * | ax_ptz_absolute_movement_create (GError **error) |
Creates an absolute movement. More... | |
gboolean | ax_ptz_absolute_movement_destroy (AXPTZAbsoluteMovement *movement, GError **error) |
Destroys an absolute movement. More... | |
gboolean | ax_ptz_absolute_movement_set_pan_tilt_zoom (AXPTZAbsoluteMovement *movement, fixed_t pan_value, fixed_t tilt_value, fixed_t pan_tilt_speed, fixed_t zoom_value, fixed_t unused, GError **error) |
Sets the pan, tilt and zoom coordinates for an absolute movement. More... | |
AXPTZRelativeMovement * | ax_ptz_relative_movement_create (GError **error) |
Creates a relative movement. More... | |
gboolean | ax_ptz_relative_movement_destroy (AXPTZRelativeMovement *movement, GError **error) |
Destroys an relative movement. More... | |
gboolean | ax_ptz_relative_movement_set_pan_tilt_zoom (AXPTZRelativeMovement *movement, fixed_t pan_value, fixed_t tilt_value, fixed_t pan_tilt_speed, fixed_t zoom_value, fixed_t unused, GError **error) |
Sets the pan, tilt and zoom coordinates for a relative movement. More... | |
AXPTZContinuousMovement * | ax_ptz_continuous_movement_create (GError **error) |
Creates a continuous movement. More... | |
gboolean | ax_ptz_continuous_movement_destroy (AXPTZContinuousMovement *movement, GError **error) |
Destroys an continuous movement. More... | |
gboolean | ax_ptz_continuous_movement_set_pan_tilt_zoom (AXPTZContinuousMovement *movement, fixed_t pan_speed, fixed_t tilt_speed, fixed_t zoom_speed, fixed_t timeout, GError **error) |
Sets the pan, tilt and zoom speeds for a continuous movement. More... | |
The absolute, relative and continuous movements and its functions.
AXPTZAbsoluteMovement
, AXPTZRelativeMovement
, AXPTZContinuousMovement
are absolute, relative and continuous movements to be executed by AXPTZMovementHandler
.
AXPTZAbsoluteMovement* ax_ptz_absolute_movement_create | ( | GError ** | error | ) |
Creates an absolute movement.
error | Return location for a GError or NULL . |
gboolean ax_ptz_absolute_movement_destroy | ( | AXPTZAbsoluteMovement * | movement, |
GError ** | error | ||
) |
Destroys an absolute movement.
movement | The absolute movement to destroy. |
error | Return location for a GError or NULL . |
TRUE
on success, FALSE
on failure. gboolean ax_ptz_absolute_movement_set_pan_tilt_zoom | ( | AXPTZAbsoluteMovement * | movement, |
fixed_t | pan_value, | ||
fixed_t | tilt_value, | ||
fixed_t | pan_tilt_speed, | ||
fixed_t | zoom_value, | ||
fixed_t | unused, | ||
GError ** | error | ||
) |
Sets the pan, tilt and zoom coordinates for an absolute movement.
movement | An absolute movement. |
pan_value | The pan coordinate to move to. Use AX_PTZ_MOVEMENT_NO_VALUE for no panning. |
tilt_value | The tilt coordinate to move to. Use AX_PTZ_MOVEMENT_NO_VALUE for no tilting. |
pan_tilt_speed | The pan and tilt speed. |
zoom_value | The zoom coordinate to move to. Use AX_PTZ_MOVEMENT_NO_VALUE for no zooming. |
unused | Future use. Must be set to AX_PTZ_MOVEMENT_NO_VALUE . |
error | Return location for a GError or NULL . |
TRUE
on success, FALSE
on failure. AXPTZRelativeMovement* ax_ptz_relative_movement_create | ( | GError ** | error | ) |
Creates a relative movement.
error | Return location for a GError or NULL . |
gboolean ax_ptz_relative_movement_destroy | ( | AXPTZRelativeMovement * | movement, |
GError ** | error | ||
) |
Destroys an relative movement.
movement | The relative movement to destroy. |
error | Return location for a GError or NULL . |
TRUE
on success, FALSE
on failure. gboolean ax_ptz_relative_movement_set_pan_tilt_zoom | ( | AXPTZRelativeMovement * | movement, |
fixed_t | pan_value, | ||
fixed_t | tilt_value, | ||
fixed_t | pan_tilt_speed, | ||
fixed_t | zoom_value, | ||
fixed_t | unused, | ||
GError ** | error | ||
) |
Sets the pan, tilt and zoom coordinates for a relative movement.
movement | A relative movement. |
pan_value | The relative pan coordinate. Use 0 or AX_PTZ_MOVEMENT_NO_VALUE for no panning. |
tilt_value | The relative tilt coordinate. Use 0 or AX_PTZ_MOVEMENT_NO_VALUE for no tilting. |
pan_tilt_speed | The pan and tilt speed. |
zoom_value | The relative zoom coordinate. Use 0 or AX_PTZ_MOVEMENT_NO_VALUE for no zooming. |
unused | Future use. Must be set to AX_PTZ_MOVEMENT_NO_VALUE . |
error | Return location for a GError or NULL . |
TRUE
on success, FALSE
on failure. AXPTZContinuousMovement* ax_ptz_continuous_movement_create | ( | GError ** | error | ) |
Creates a continuous movement.
error | Return location for a GError or NULL . |
gboolean ax_ptz_continuous_movement_destroy | ( | AXPTZContinuousMovement * | movement, |
GError ** | error | ||
) |
Destroys an continuous movement.
movement | The continuous movement to destroy. |
error | Return location for a GError or NULL . |
TRUE
on success, FALSE
on failure. gboolean ax_ptz_continuous_movement_set_pan_tilt_zoom | ( | AXPTZContinuousMovement * | movement, |
fixed_t | pan_speed, | ||
fixed_t | tilt_speed, | ||
fixed_t | zoom_speed, | ||
fixed_t | timeout, | ||
GError ** | error | ||
) |
Sets the pan, tilt and zoom speeds for a continuous movement.
movement | A continuous movement. |
pan_speed | The pan speed. Use 0 or AX_PTZ_MOVEMENT_NO_VALUE for no panning. |
tilt_speed | The tilt speed. Use 0 or AX_PTZ_MOVEMENT_NO_VALUE for no tilting. |
zoom_speed | The zoom speed. The zoom speed is unitless and cannot be set with ax_ptz_movement_handler_set_continuous_spaces . Use 0 or AX_PTZ_MOVEMENT_NO_VALUE for no zooming. |
timeout | Timeout for the continuous movement. Unit: seconds. |
error | Return location for a GError or NULL . |
TRUE
on success, FALSE
on failure. References AX_PTZ_MOVEMENT_PAN_TILT_UNITLESS.