/device/lge/mako/camera/QCamera/stack/mm-camera-test/src/ |
mm_qcamera_dual_test.c | 317 if ( 0 != (rc = mm_app_open(cam_id, MM_CAMERA_OP_MODE_NOTUSED))) { 318 CDBG("%s: open cam %d at opmode = %d err, loop=%d, rc=%d\n", __func__, cam_id, MM_CAMERA_OP_MODE_NOTUSED, i, rc); 321 if(0 != (rc = mm_app_open_preview(cam_id))) { 324 if(0 != (rc = mm_app_close_preview(cam_id))) { 327 if ( 0 != (rc = mm_app_close(cam_id))) { 328 CDBG("%s: close cam %d at opmode = %d err,loop=%d, rc=%d\n", __func__, cam_id, MM_CAMERA_OP_MODE_NOTUSED, i, rc); 347 if ( 0 != (rc = mm_app_open(cam_id, MM_CAMERA_OP_MODE_NOTUSED))) { 349 __func__, cam_id, MM_CAMERA_OP_MODE_NOTUSED, i, rc); 352 if(0 != (rc = mm_app_open_snapshot(cam_id))) { 355 if(0 != (rc = mm_app_close_snapshot(cam_id))) { 545 int cam_id = 0; local [all...] |
mm_qcamera_unit_test.c | 311 if ( 0 != (rc = mm_app_open(cam_id, MM_CAMERA_OP_MODE_NOTUSED))) { 312 CDBG("%s: open cam %d at opmode = %d err, loop=%d, rc=%d\n", __func__, cam_id, MM_CAMERA_OP_MODE_NOTUSED, i, rc); 315 if (0 != (rc = mm_app_open_preview(cam_id))) { 318 if (0 != (rc = mm_app_close_preview(cam_id))) { 321 if ( 0 != (rc = mm_app_close(cam_id))) { 322 CDBG("%s: close cam %d at opmode = %d err,loop=%d, rc=%d\n", __func__, cam_id, MM_CAMERA_OP_MODE_NOTUSED, i, rc); 341 if ( 0 != (rc = mm_app_open(cam_id, MM_CAMERA_OP_MODE_NOTUSED))) { 343 __func__, cam_id, MM_CAMERA_OP_MODE_NOTUSED, i, rc); 346 if (0 != (rc = mm_app_open_snapshot(cam_id))) { 349 if (0 != (rc = mm_app_close_snapshot(cam_id))) { 539 int cam_id = 0; local [all...] |
mm_qcamera_rdi.c | 52 static int mm_app_set_rdi_fmt(int cam_id,mm_camera_image_fmt_t *fmt) 56 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 69 int mm_app_open_rdi(int cam_id) 73 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 79 if (MM_CAMERA_OK != (rc = stopPreview(cam_id))) { 122 int mm_app_prepare_rdi(int cam_id) 129 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 149 mm_app_set_rdi_fmt(cam_id,&pme->stream[MM_CAMERA_RDI].str_config.fmt); 172 mm_app_set_preview_fmt(cam_id,&pme->stream[MM_CAMERA_PREVIEW].str_config.fmt); 187 int mm_app_unprepare_rdi(int cam_id) [all...] |
mm_qcamera_app.c | 91 mm_camera_app_obj_t *mm_app_get_cam_obj(int8_t cam_id) 93 mm_camera_app_obj_t *temp = my_cam_app.obj[cam_id]; 210 int mm_app_open(uint8_t cam_id) 217 pme = mm_app_get_cam_obj(cam_id); 224 my_cam_app.cam_open = cam_id; 225 my_cam_app.obj[cam_id] = (mm_camera_app_obj_t *)malloc(sizeof(mm_camera_app_obj_t)); 226 pme = my_cam_app.obj[cam_id]; 232 pme->cam = my_cam_app.hal_lib.mm_camera_open(cam_id,pme->mem_cam); 238 CDBG("Open Camera id = %d handle = %d",cam_id,pme->cam->camera_handle); 240 pme->ch_id = cam_id; [all...] |
mm_qcamera_snapshot.c | 107 static int mm_app_set_thumbnail_fmt(int cam_id,mm_camera_image_fmt_t *fmt) 110 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 120 int mm_app_set_snapshot_fmt(int cam_id,mm_camera_image_fmt_t *fmt) 124 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 133 int mm_app_set_live_snapshot_fmt(int cam_id,mm_camera_image_fmt_t *fmt) 136 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 145 int mm_app_set_raw_snapshot_fmt(int cam_id) 150 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 170 int mm_app_prepare_raw_snapshot_buf(int cam_id) 175 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); [all...] |
mm_qcamera_video.c | 74 static int mm_app_set_video_fmt(int cam_id,mm_camera_image_fmt_t *fmt) 77 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 213 int mm_app_config_video(int cam_id) 216 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 218 mm_app_set_video_fmt(cam_id,&pme->stream[MM_CAMERA_VIDEO].str_config.fmt); 233 mm_app_set_live_snapshot_fmt(cam_id,&pme->stream[MM_CAMERA_SNAPSHOT_MAIN].str_config.fmt); 245 int mm_app_prepare_video(int cam_id) 249 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 274 /*if(mm_app_config_video(cam_id) != MM_CAMERA_OK) 282 int mm_app_unprepare_video(int cam_id) [all...] |
mm_qcamera_preview.c | 111 int mm_app_set_preview_fmt(int cam_id,mm_camera_image_fmt_t *fmt) 114 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 174 int mm_app_open_camera(int cam_id) 178 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 184 if (MM_CAMERA_OK != (rc = mm_app_stop_preview(cam_id))) { 191 if (MM_CAMERA_OK != (rc = mm_app_start_preview(cam_id))) { 203 int mm_app_open_zsl(int cam_id) 207 mm_camera_app_obj_t *pme = mm_app_get_cam_obj(cam_id); 213 if (MM_CAMERA_OK != (rc = mm_app_stop_preview(cam_id))) { 220 if (MM_CAMERA_OK != (rc = mm_app_start_preview_zsl(cam_id))) { [all...] |
mm_qcamera_main_menu.c | 1431 int cam_id; local [all...] |
/device/lge/mako/camera/QCamera/stack/mm-camera-test/inc/ |
mm_qcamera_app.h | 157 extern mm_camera_app_obj_t *mm_app_get_cam_obj(int8_t cam_id); 161 extern int mm_app_open_ch(int cam_id); 162 extern void mm_app_close_ch(int cam_id, int ch_type); 163 extern int mm_app_set_dim(int8_t cam_id, cam_ctrl_dimension_t *dim); 169 extern int mm_app_close(int8_t cam_id); 170 extern int startPreview(int cam_id); 171 extern int mm_app_stop_preview(int cam_id); 172 extern int mm_app_stop_video(int cam_id); 173 extern int startRecording(int cam_id); 174 extern int stopRecording(int cam_id); [all...] |
mm_qcamera_main_menu.h | 298 int cam_id; member in struct:__anon1696 462 int take_yuv_snapshot(int cam_id);
|
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/inc/ |
mm_camera_sock.h | 40 int mm_camera_socket_create(int cam_id, mm_camera_sock_type_t sock_type);
|
/device/lge/mako/camera/mm-camera-interface/ |
mm_camera_sock.h | 40 int mm_camera_socket_create(int cam_id, mm_camera_sock_type_t sock_type);
|
mm_camera_interface2.h | 449 int cam_id, 452 int cam_id, 456 int cam_id, 461 int cam_id, 464 int32_t cam_config_request_buf(int cam_id, mm_camera_reg_buf_t *buf); 465 int32_t cam_config_enqueue_buf(int cam_id, mm_camera_reg_buf_t *buf); 466 int32_t cam_config_prepare_buf(int cam_id, mm_camera_reg_buf_t *buf); 467 int32_t cam_config_unprepare_buf(int cam_id, mm_camera_channel_type_t ch_type); 470 uint8_t cam_ops_is_op_supported(int cam_id, mm_camera_ops_type_t opcode); 472 int32_t cam_ops_action(int cam_id, uint8_t start [all...] |
mm_camera_interface2.c | 706 static mm_camera_t * get_camera_by_id( int cam_id) 709 if( cam_id < 0 || cam_id >= g_cam_ctrl.num_cam) { 712 mm_cam = & g_cam_ctrl.camera[cam_id]; 719 int cam_id, 723 mm_camera_t * mm_cam = get_camera_by_id(cam_id); 731 int cam_id, 735 mm_camera_t * mm_cam = get_camera_by_id(cam_id); 745 int cam_id, 750 mm_camera_t * mm_cam = get_camera_by_id(cam_id); [all...] |
mm_camera_sock.c | 46 * int cam_id: camera ID 50 int mm_camera_socket_create(int cam_id, mm_camera_sock_type_t sock_type) 77 snprintf(sock_addr.sun_path, UNIX_PATH_MAX, "/data/cam_socket%d", cam_id);
|
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/ |
mm_camera_sock.c | 46 * int cam_id: camera ID 50 int mm_camera_socket_create(int cam_id, mm_camera_sock_type_t sock_type) 77 snprintf(sock_addr.sun_path, UNIX_PATH_MAX, "/data/cam_socket%d", cam_id);
|