Lines Matching refs:parm
217 int32_t mm_camera_set_general_parm(mm_camera_obj_t * my_obj, mm_camera_parm_t *parm)
222 switch(parm->parm_type) {
226 *((int *)(parm->p_value)));
229 *((int *)(parm->p_value)));
232 *((int *)(parm->p_value)));
235 *((int *)(parm->p_value)));
238 *((int *)(parm->p_value)));
240 return mm_camera_ctrl_set_whitebalance (my_obj, *((int *)(parm->p_value)));
243 *((int *)(parm->p_value)));
246 *((int *)(parm->p_value)));
249 *((int *)(parm->p_value)));
251 return mm_camera_ctrl_set_antibanding (my_obj, *((int *)(parm->p_value)));
253 return mm_camera_ctrl_set_auto_focus(my_obj, *((int *)(parm->p_value)));
255 return mm_camera_util_s_ctrl(my_obj->ctrl_fd, MSM_V4L2_PID_HJR, *((int *)(parm->p_value)));
257 return mm_camera_ctrl_set_specialEffect (my_obj, *((int *)(parm->p_value)));
260 CAMERA_SET_PARM_FPS, sizeof(uint32_t), (void *)parm->p_value);
263 CAMERA_SET_FPS_MODE, sizeof(int32_t), (void *)parm->p_value);
266 CAMERA_SET_PARM_EXPOSURE_COMPENSATION, sizeof(int32_t), (void *)parm->p_value);
269 CAMERA_SET_PARM_LED_MODE, sizeof(int32_t), (void *)parm->p_value);
272 CAMERA_SET_PARM_ROLLOFF, sizeof(int32_t), (void *)parm->p_value);
274 my_obj->current_mode = *((camera_mode_t *)parm->p_value);
278 CAMERA_SET_PARM_FOCUS_RECT, sizeof(int32_t), (void *)parm->p_value);
281 CAMERA_SET_PARM_AEC_ROI, sizeof(cam_set_aec_roi_t), (void *)parm->p_value);
284 CAMERA_SET_PARM_AF_ROI, sizeof(roi_info_t), (void *)parm->p_value);
287 CAMERA_SET_PARM_AF_MODE, sizeof(int32_t), (void *)parm->p_value);
291 CAMERA_SET_PARM_AF_MTR_AREA, sizeof(af_mtr_area_t), (void *)parm->p_value);*/
294 CAMERA_SET_AEC_MTR_AREA, sizeof(aec_mtr_area_t), (void *)parm->p_value);
298 CAMERA_SET_PARM_CAF, sizeof(uint32_t), (void *)parm->p_value);
300 CDBG("%s : MM_CAMERA_PARM_BESTSHOT_MODE value : %d",__func__,*((int *)(parm->p_value)));
302 CAMERA_SET_PARM_BESTSHOT_MODE, sizeof(int32_t), (void *)parm->p_value);
306 CAMERA_SET_VIDEO_DIS_PARAMS, sizeof(video_dis_param_ctrl_t), (void *)parm->p_value);
309 CAMERA_SET_VIDEO_ROT_PARAMS, sizeof(video_rotation_param_ctrl_t), (void *)parm->p_value);
312 CAMERA_SET_SCE_FACTOR, sizeof(int32_t), (void *)parm->p_value);
315 CAMERA_SET_PARM_FD, sizeof(fd_set_parm_t), (void *)parm->p_value);
318 CAMERA_SET_AEC_LOCK, sizeof(int32_t), (void *)parm->p_value);
321 sizeof(int32_t), (void *)parm->p_value);
324 sizeof(int32_t), (void *)parm->p_value);
327 sizeof(focus_distances_info_t), (void *)parm->p_value);
330 sizeof(focus_distances_info_t), (void *)parm->p_value);
337 sizeof(snapshotData_info_t), (void *)parm->p_value);
340 CAMERA_SET_PARM_HFR, sizeof(int32_t), (void *)parm->p_value);
343 CAMERA_SET_REDEYE_REDUCTION, sizeof(int32_t), (void *)parm->p_value);
346 CAMERA_SET_PARM_WAVELET_DENOISE, sizeof(denoise_param_t), (void *)parm->p_value);
349 CAMERA_SET_PARM_3D_DISPLAY_DISTANCE, sizeof(float), (void *)parm->p_value);
352 CAMERA_SET_PARM_3D_VIEW_ANGLE, sizeof(uint32_t), (void *)parm->p_value);
357 CAMERA_SET_PARM_HISTOGRAM, sizeof(int8_t), (void *)parm->p_value);
362 mm_jpeg_encoder_setRotation(*((int *)parm->p_value),isZSL);
367 CAMERA_SET_ASD_ENABLE, sizeof(uint32_t), (void *)parm->p_value);
371 CAMERA_SET_RECORDING_HINT, sizeof(uint32_t), (void *)parm->p_value);
375 CAMERA_SET_PARM_PREVIEW_FORMAT, sizeof(uint32_t), (void *)parm->p_value);
379 CAMERA_SET_DIS_ENABLE, sizeof(uint32_t), (void *)parm->p_value);
382 my_obj->full_liveshot = *((int *)(parm->p_value));
384 CAMERA_SET_FULL_LIVESHOT, sizeof(uint32_t), (void *)parm->p_value);
389 CAMERA_SET_LOW_POWER_MODE, sizeof(uint32_t), (void *)parm->p_value);
392 CDBG("SM : %s : MM_CAMERA_PARM_CAF_TYPE value : %d",__func__,*((int *)(parm->p_value)));
394 CAMERA_SET_PARM_CAF_TYPE, sizeof(int32_t), (void *)parm->p_value);
398 CAMERA_SET_PARM_HDR, sizeof(exp_bracketing_t), (void *)parm->p_value);
402 CAMERA_SET_CAF_LOCK_CANCEL, sizeof(uint32_t), (void *)parm->p_value);
405 CDBG("%s: default: parm %d not supported\n", __func__, parm->parm_type);
456 mm_camera_parm_t *parm)
460 CDBG("%s type =%d", __func__, parm->parm_type);
461 switch(parm->parm_type) {
464 (mm_camera_op_mode_type_t *)parm->p_value);
468 CAMERA_SET_PARM_DIMENSION, sizeof(cam_ctrl_dimension_t), parm->p_value);
473 memcpy(&my_obj->dim, (cam_ctrl_dimension_t *)parm->p_value,
484 CDBG("%s: Setting snapshot burst number: %d\n", __func__, *((int *)parm->p_value));
485 my_obj->snap_burst_num_by_user = *((int *)parm->p_value);
491 fmt = (mm_camera_ch_image_fmt_parm_t *)parm->p_value;
506 rc = mm_camera_set_general_parm(my_obj, parm);
513 mm_camera_parm_t *parm)
517 switch(parm->parm_type) {
520 ((mm_camera_ch_crop_t *)parm->p_value)->ch_type,
521 MM_CAMERA_STATE_EVT_GET_CROP, parm->p_value);
524 memcpy(parm->p_value, &my_obj->dim, sizeof(my_obj->dim));
537 (mm_camera_dimension_t *)parm->p_value;
545 *((cam_format_t *)parm->p_value) = my_obj->properties.pxlcode;
548 *((int *)parm->p_value) = my_obj->properties.preview_format;
551 *((int *)parm->p_value) = my_obj->properties.preview_sizes_cnt;
554 *((int *)parm->p_value) = my_obj->properties.video_sizes_cnt;
557 *((int *)parm->p_value) = my_obj->properties.thumb_sizes_cnt;
560 *((int *)parm->p_value) = my_obj->properties.hfr_sizes_cnt;
563 *((int *)parm->p_value) = my_obj->properties.hfr_frame_skip;
566 *((int *)parm->p_value) = my_obj->properties.default_preview_width;
569 *((int *)parm->p_value) = my_obj->properties.default_preview_height;
572 *((int *)parm->p_value) = my_obj->properties.bestshot_reconfigure;
576 (mm_camera_dimension_t *)parm->p_value;
585 (mm_camera_dimension_t *)parm->p_value;
594 sizeof(camera_hfr_mode_t), (void *)parm->p_value);
597 sizeof(focus_distances_info_t), (void *)parm->p_value);
600 sizeof(focus_distances_info_t), (void *)parm->p_value);
603 sizeof(focus_distances_info_t), (void *)parm->p_value);
606 sizeof(focus_distances_info_t), (void *)parm->p_value);
609 sizeof(int), (void *)parm->p_value);
612 sizeof(camera_3d_frame_t), (void *)parm->p_value);
615 sizeof(int), (void *)parm->p_value);
617 mm_camera_zoom_tbl_t *tbl = (mm_camera_zoom_tbl_t *)parm->p_value;
622 default_sizes_tbl_t *tbl = (default_sizes_tbl_t*)parm->p_value;
627 default_sizes_tbl_t *tbl = (default_sizes_tbl_t*)parm->p_value;
632 default_sizes_tbl_t *tbl = (default_sizes_tbl_t*)parm->p_value;
637 default_sizes_tbl_t *tbl = (default_sizes_tbl_t*)parm->p_value;
642 *((mm_camera_op_mode_type_t *)parm->p_value) = my_obj->op_mode;
645 *((int *)parm->p_value) = my_obj->snap_burst_num_by_user;
648 *((int *)parm->p_value) = my_obj->properties.vfe_output_enable;
653 sizeof(int), (void *)parm->p_value);
656 sizeof(int), (void *)parm->p_value);
659 sizeof(int), (void *)parm->p_value);
662 CAMERA_GET_PARM_HDR, sizeof(exp_bracketing_t), (void *)parm->p_value);
663 //my_obj->channel_interface_mask = *((exp_bracketing_t *)(parm->p_value));
667 sizeof(aec_info_for_flash_t), (void *)parm->p_value);
671 sizeof(af_actuator_status_t), (void *)parm->p_value);
675 sizeof(float), (void *)parm->p_value);
819 mm_camera_ops_type_t opcode, void *parm)
826 if(!parm) return rc;
829 sizeof(isp3a_af_mode_t), parm))
835 (mm_camera_ops_parm_get_buffered_frame_t *)parm;
891 mm_camera_ops_type_t opcode, void *parm)
1100 mm_camera_ops_type_t opcode, void *parm)
1104 if(start) rc = mm_camera_action_start(my_obj, opcode, parm);
1105 else rc = mm_camera_action_stop(my_obj, opcode, parm);
1106 CDBG("%s:start_flag=%d,opcode=%d,parm=%p,rc=%d\n",__func__,start,opcode,parm, rc);