int ret = CAMERA_ERROR_NONE;
camera_cli_s *pc = (camera_cli_s *)camera;
muse_camera_api_e api = MUSE_CAMERA_API_ATTR_SET_PAN;
- camera_msg_param param;
- int set_move_type = (int)move_type;
- int value = 0;
+ camera_msg_param param0;
+ camera_msg_param param1;
if (!pc || !pc->cb_info) {
LOGE("NULL handle");
LOGD("Enter");
- value = (set_move_type << 16) | pan_step;
- CAMERA_MSG_PARAM_SET(param, INT, value);
+ CAMERA_MSG_PARAM_SET(param0, INT, move_type);
+ CAMERA_MSG_PARAM_SET(param1, INT, pan_step);
- _camera_msg_send_param1(api, pc->cb_info, &ret, ¶m, CAMERA_CB_TIMEOUT);
+ _camera_msg_send_param2_int(api, pc->cb_info, &ret,
+ ¶m0, ¶m1, CAMERA_CB_TIMEOUT);
LOGD("ret : 0x%x", ret);
int ret = CAMERA_ERROR_NONE;
camera_cli_s *pc = (camera_cli_s *)camera;
muse_camera_api_e api = MUSE_CAMERA_API_ATTR_SET_TILT;
- camera_msg_param param;
- int set_move_type = (int)move_type;
- int value = 0;
+ camera_msg_param param0;
+ camera_msg_param param1;
if (!pc || !pc->cb_info) {
LOGE("NULL handle");
LOGD("Enter");
- value = (set_move_type << 16) | tilt_step;
- CAMERA_MSG_PARAM_SET(param, INT, value);
+ CAMERA_MSG_PARAM_SET(param0, INT, move_type);
+ CAMERA_MSG_PARAM_SET(param1, INT, tilt_step);
- _camera_msg_send_param1(api, pc->cb_info, &ret, ¶m, CAMERA_CB_TIMEOUT);
+ _camera_msg_send_param2_int(api, pc->cb_info, &ret,
+ ¶m0, ¶m1, CAMERA_CB_TIMEOUT);
LOGD("ret : 0x%x", ret);