/device/asus/flo/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_unit_test.c | 42 int rc = MM_CAMERA_OK; in mm_app_tc_open_close() local 49 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close() 50 if (rc != MM_CAMERA_OK) { in mm_app_tc_open_close() 52 __func__, i, rc); in mm_app_tc_open_close() 56 rc = mm_app_close(&test_obj); in mm_app_tc_open_close() 57 if (rc != MM_CAMERA_OK) { in mm_app_tc_open_close() 59 __func__, i, rc); in mm_app_tc_open_close() 63 if (rc == MM_CAMERA_OK) { in mm_app_tc_open_close() 68 CDBG("%s:END, rc = %d\n", __func__, rc); in mm_app_tc_open_close() 69 return rc; in mm_app_tc_open_close() [all …]
|
D | mm_qcamera_dual_test.c | 82 int rc = MM_CAMERA_OK; in mm_app_dtc_0() local 91 CDBG_ERROR("%s:mm_app_open() back camera err=%d\n",__func__, rc); in mm_app_dtc_0() 92 rc = -1; in mm_app_dtc_0() 96 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_dtc_0() 97 rc = -1; in mm_app_dtc_0() 103 CDBG_ERROR("%s:mm_app_open() front camera err=%d\n",__func__, rc); in mm_app_dtc_0() 104 rc = -1; in mm_app_dtc_0() 109 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_dtc_0() 110 rc = -1; in mm_app_dtc_0() 115 if( MM_CAMERA_OK != (rc = startRdi(front_camera))) { in mm_app_dtc_0() [all …]
|
D | mm_qcamera_video.c | 62 int rc = MM_CAMERA_OK; in mm_app_add_video_stream() local 91 rc = mm_app_config_stream(test_obj, channel, stream, &stream->s_config); in mm_app_add_video_stream() 92 if (MM_CAMERA_OK != rc) { in mm_app_add_video_stream() 93 CDBG_ERROR("%s:config preview stream err=%d\n", __func__, rc); in mm_app_add_video_stream() 131 int rc = MM_CAMERA_OK; in mm_app_start_record_preview() local 157 rc = mm_app_start_channel(test_obj, p_ch); in mm_app_start_record_preview() 158 if (MM_CAMERA_OK != rc) { in mm_app_start_record_preview() 159 CDBG_ERROR("%s:start preview failed rc=%d\n", __func__, rc); in mm_app_start_record_preview() 163 return rc; in mm_app_start_record_preview() 166 return rc; in mm_app_start_record_preview() [all …]
|
/device/lge/mako/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_dual_test.c | 51 int rc = MM_CAMERA_OK; in mm_app_dtc_0() local 60 CDBG_ERROR("%s:mm_app_open() back camera err=%d\n",__func__, rc); in mm_app_dtc_0() 61 rc = -1; in mm_app_dtc_0() 65 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_dtc_0() 66 rc = -1; in mm_app_dtc_0() 70 if( MM_CAMERA_OK != (rc = startPreview(back_camera))) { in mm_app_dtc_0() 71 CDBG_ERROR("%s: back camera startPreview() err=%d\n", __func__, rc); in mm_app_dtc_0() 77 CDBG_ERROR("%s:mm_app_open() front camera err=%d\n",__func__, rc); in mm_app_dtc_0() 78 rc = -1; in mm_app_dtc_0() 82 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_dtc_0() [all …]
|
D | mm_qcamera_unit_test.c | 50 int rc = MM_CAMERA_OK; in mm_app_tc_0() local 57 rc = -1; in mm_app_tc_0() 62 CDBG_ERROR("%s:mm_app_open() err=%d\n",__func__, rc); in mm_app_tc_0() 63 rc = -1; in mm_app_tc_0() 67 CDBG_ERROR("%s:system_dimension_set() err=%d\n",__func__, rc); in mm_app_tc_0() 68 rc = -1; in mm_app_tc_0() 73 if ( MM_CAMERA_OK != (rc = startPreview(my_cam_app.cam_open))) { in mm_app_tc_0() 74 CDBG_ERROR("%s: startPreview() err=%d\n", __func__, rc); in mm_app_tc_0() 82 if ( MM_CAMERA_OK != (rc = stopPreview(my_cam_app.cam_open))) { in mm_app_tc_0() 83 CDBG("%s: startPreview() err=%d\n", __func__, rc); in mm_app_tc_0() [all …]
|
D | mm_qcamera_rdi.c | 54 int rc = MM_CAMERA_OK; in mm_app_set_rdi_fmt() local 66 return rc; in mm_app_set_rdi_fmt() 71 int rc = MM_CAMERA_OK; in mm_app_open_rdi() local 76 return rc; in mm_app_open_rdi() 79 if (MM_CAMERA_OK != (rc = stopPreview(cam_id))) { in mm_app_open_rdi() 80 CDBG_ERROR("%s:Stop preview err=%d\n", __func__, rc); in mm_app_open_rdi() 85 CDBG("%s: END, rc=%d\n", __func__, rc); in mm_app_open_rdi() 86 return rc; in mm_app_open_rdi() 99 int rc; in mm_app_rdi_notify_cb() local 124 int rc = MM_CAMERA_OK; in mm_app_prepare_rdi() local [all …]
|
D | mm_qcamera_snapshot.c | 65 int rc = 0; in mm_app_dump_snapshot_frame() local 81 rc = -1; in mm_app_dump_snapshot_frame() 89 return rc; in mm_app_dump_snapshot_frame() 109 int rc = MM_CAMERA_OK; in mm_app_set_thumbnail_fmt() local 117 return rc; in mm_app_set_thumbnail_fmt() 123 int rc = MM_CAMERA_OK; in mm_app_set_snapshot_fmt() local 130 return rc; in mm_app_set_snapshot_fmt() 135 int rc = MM_CAMERA_OK; in mm_app_set_live_snapshot_fmt() local 142 return rc; in mm_app_set_live_snapshot_fmt() 147 int rc = MM_CAMERA_OK; in mm_app_set_raw_snapshot_fmt() local [all …]
|
D | mm_qcamera_video.c | 49 int rc = 0; in mm_app_dump_video_frame() local 51 return rc; /* disable dump */ in mm_app_dump_video_frame() 63 rc = -1; in mm_app_dump_video_frame() 71 return rc; in mm_app_dump_video_frame() 76 int rc = MM_CAMERA_OK; in mm_app_set_video_fmt() local 83 return rc; in mm_app_set_video_fmt() 92 int i, rc = MM_CAMERA_OK; 96 rc = my_cam_app.hal_lib.mm_camera_do_munmap_ion (pme->ionfd, &(pme->video_buf.frame[i].fd_data), 98 if(rc != MM_CAMERA_OK) { 100 __func__, bufs[i].fd, rc); [all …]
|
D | mm_qcamera_preview.c | 52 int rc = 0; in mm_camera_do_mmap_ion() local 58 rc = ioctl(ion_fd, ION_IOC_ALLOC, alloc); in mm_camera_do_mmap_ion() 59 if (rc < 0) { in mm_camera_do_mmap_ion() 65 rc = ioctl(ion_fd, ION_IOC_SHARE, ion_info_fd); in mm_camera_do_mmap_ion() 66 if (rc < 0) { in mm_camera_do_mmap_ion() 100 int rc = 0; in mm_camera_do_munmap_ion() local 101 rc = munmap(addr, size); in mm_camera_do_munmap_ion() 107 return rc; in mm_camera_do_munmap_ion() 113 int rc = MM_CAMERA_OK; in mm_app_set_preview_fmt() local 120 return rc; in mm_app_set_preview_fmt() [all …]
|
/device/asus/flo/camera/QCamera2/HAL/ |
D | QCameraStateMachine.cpp | 244 int32_t rc = NO_ERROR; in stateMachine() local 247 rc = procEvtPreviewStoppedState(evt, payload); in stateMachine() 250 rc = procEvtPreviewReadyState(evt, payload); in stateMachine() 253 rc = procEvtPreviewingState(evt, payload); in stateMachine() 256 rc = procEvtPrepareSnapshotState(evt, payload); in stateMachine() 259 rc = procEvtPicTakingState(evt, payload); in stateMachine() 262 rc = procEvtRecordingState(evt, payload); in stateMachine() 265 rc = procEvtVideoPicTakingState(evt, payload); in stateMachine() 268 rc = procEvtPreviewPicTakingState(evt, payload); in stateMachine() 274 return rc; in stateMachine() [all …]
|
D | QCamera2HWI.cpp | 99 int rc = NO_ERROR; in set_preview_window() local 108 rc = hw->processAPI(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW, (void *)window); in set_preview_window() 109 if (rc == NO_ERROR) { in set_preview_window() 111 rc = hw->m_apiResult.status; in set_preview_window() 115 return rc; in set_preview_window() 155 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_SET_CALLBACKS, (void *)&payload); in set_CallBacks() local 156 if (rc == NO_ERROR) { in set_CallBacks() 182 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_ENABLE_MSG_TYPE, (void *)msg_type); in enable_msg_type() local 183 if (rc == NO_ERROR) { in enable_msg_type() 209 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_DISABLE_MSG_TYPE, (void *)msg_type); in disable_msg_type() local [all …]
|
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera.c | 135 int rc; in mm_camera_event_notify() local 143 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify() 146 if (rc >= 0) { in mm_camera_event_notify() 160 int32_t rc = 0; in mm_camera_enqueue_evt() local 175 rc = -1; in mm_camera_enqueue_evt() 178 return rc; in mm_camera_enqueue_evt() 188 int rc = 0; in mm_camera_send_ch_event() local 196 rc = mm_camera_enqueue_evt(my_obj, &event); in mm_camera_send_ch_event() 197 return rc; in mm_camera_send_ch_event() 203 int32_t rc = 0; in mm_camera_open() local [all …]
|
D | mm_camera_stream.c | 123 int rc = 0; in get_stream_inst_handle() local 130 rc = ioctl(my_obj->fd, MSM_CAM_V4L2_IOCTL_PRIVATE_G_CTRL, &v4l2_ioctl); in get_stream_inst_handle() 131 if (rc) { in get_stream_inst_handle() 133 return rc; in get_stream_inst_handle() 138 my_obj->inst_hdl, rc); in get_stream_inst_handle() 139 return rc; in get_stream_inst_handle() 199 int32_t idx = -1, i, rc; in mm_stream_data_notify() local 218 rc = mm_stream_read_msm_frame(my_obj, &buf_info); in mm_stream_data_notify() 219 if (rc != 0) { in mm_stream_data_notify() 351 int32_t rc = -1; in mm_stream_fsm_fn() local [all …]
|
D | mm_camera_interface.c | 93 int32_t rc = -1; in mm_camera_intf_sync() local 104 rc = mm_camera_sync(my_obj); in mm_camera_intf_sync() 108 CDBG("%s :X rc = %d",__func__,rc); in mm_camera_intf_sync() 109 return rc; in mm_camera_intf_sync() 118 int32_t rc = -1; in mm_camera_intf_is_parm_supported() local 129 rc = mm_camera_is_parm_supported(my_obj, parm_type, support_set_parm, support_get_parm); in mm_camera_intf_is_parm_supported() 133 return rc; in mm_camera_intf_is_parm_supported() 141 int32_t rc = -1; in mm_camera_intf_set_parm() local 150 rc = mm_camera_set_parm(my_obj, parm_type, p_value); in mm_camera_intf_set_parm() 154 return rc; in mm_camera_intf_set_parm() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_interface.c | 149 int32_t rc = -1; in mm_camera_intf_query_capability() local 160 rc = mm_camera_query_capability(my_obj); in mm_camera_intf_query_capability() 164 CDBG("%s :X rc = %d", __func__, rc); in mm_camera_intf_query_capability() 165 return rc; in mm_camera_intf_query_capability() 187 int32_t rc = -1; in mm_camera_intf_set_parms() local 196 rc = mm_camera_set_parms(my_obj, parms); in mm_camera_intf_set_parms() 200 return rc; in mm_camera_intf_set_parms() 224 int32_t rc = -1; in mm_camera_intf_get_parms() local 233 rc = mm_camera_get_parms(my_obj, parms); in mm_camera_intf_get_parms() 237 return rc; in mm_camera_intf_get_parms() [all …]
|
D | mm_camera.c | 154 int rc; in mm_camera_event_notify() local 162 rc = ioctl(my_obj->ctrl_fd, VIDIOC_DQEVENT, &ev); in mm_camera_event_notify() 164 if (rc >= 0 && ev.id == MSM_CAMERA_MSM_NOTIFY) { in mm_camera_event_notify() 204 int32_t rc = 0; in mm_camera_enqueue_evt() local 219 rc = -1; in mm_camera_enqueue_evt() 222 return rc; in mm_camera_enqueue_evt() 240 int32_t rc = 0; in mm_camera_open() local 268 rc = -1; in mm_camera_open() 290 rc = -1; in mm_camera_open() 311 CDBG("%s: end (rc = %d)\n", __func__, rc); in mm_camera_open() [all …]
|
/device/asus/flo/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_interface.c | 106 int32_t rc = -1; in mm_jpeg_intf_start_job() local 111 return rc; in mm_jpeg_intf_start_job() 119 return rc; in mm_jpeg_intf_start_job() 121 rc = mm_jpeg_start_job(g_jpeg_obj, job, job_id); in mm_jpeg_intf_start_job() 123 return rc; in mm_jpeg_intf_start_job() 144 int32_t rc = -1; in mm_jpeg_intf_create_session() local 148 return rc; in mm_jpeg_intf_create_session() 156 return rc; in mm_jpeg_intf_create_session() 159 rc = mm_jpeg_create_session(g_jpeg_obj, client_hdl, p_params, p_session_id); in mm_jpeg_intf_create_session() 161 return rc; in mm_jpeg_intf_create_session() [all …]
|
/device/lge/mako/camera/mm-camera-interface/ |
D | mm_camera_stream.c | 194 int idx = -1, rc = MM_CAMERA_OK; in mm_camera_read_msm_frame() local 206 rc = ioctl(stream->fd, VIDIOC_DQBUF, &vb); in mm_camera_read_msm_frame() 207 if (rc < 0) in mm_camera_read_msm_frame() 231 int rc = MM_CAMERA_OK; in mm_camera_stream_util_proc_get_crop() local 234 rc = ioctl(stream->fd, VIDIOC_G_CROP, &crop); in mm_camera_stream_util_proc_get_crop() 235 if (rc < 0) in mm_camera_stream_util_proc_get_crop() 236 return rc; in mm_camera_stream_util_proc_get_crop() 241 return rc; in mm_camera_stream_util_proc_get_crop() 246 int rc = MM_CAMERA_OK; in mm_camera_util_s_ctrl() local 252 rc = ioctl (fd, VIDIOC_S_CTRL, &control); in mm_camera_util_s_ctrl() [all …]
|
D | mm_camera_interface2.c | 129 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_set_parm() local 139 rc = mm_camera_set_parm(my_obj, &parm); in mm_camera_cfg_set_parm() 142 return rc; in mm_camera_cfg_set_parm() 150 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_get_parm() local 160 rc = mm_camera_get_parm(my_obj, &parm); in mm_camera_cfg_get_parm() 163 return rc; in mm_camera_cfg_get_parm() 169 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_request_buf() local 178 rc = mm_camera_request_buf(my_obj, buf); in mm_camera_cfg_request_buf() 181 return rc; in mm_camera_cfg_request_buf() 187 int32_t rc = -MM_CAMERA_E_GENERAL; in mm_camera_cfg_enqueue_buf() local [all …]
|
D | mm_camera.c | 50 int rc = 0; in mm_camera_ctrl_set_specialEffect() local 54 rc = ioctl(my_obj->ctrl_fd, VIDIOC_S_CTRL, &ctrl); in mm_camera_ctrl_set_specialEffect() 55 return rc; in mm_camera_ctrl_set_specialEffect() 59 int rc = 0; in mm_camera_ctrl_set_antibanding() local 64 rc = ioctl(my_obj->ctrl_fd, VIDIOC_S_CTRL, &ctrl); in mm_camera_ctrl_set_antibanding() 65 return rc; in mm_camera_ctrl_set_antibanding() 70 int rc = 0; in mm_camera_ctrl_set_auto_focus() local 85 if(0 != (rc = mm_camera_util_s_ctrl(my_obj->ctrl_fd, in mm_camera_ctrl_set_auto_focus() 88 __func__, V4L2_CID_FOCUS_AUTO, value, rc); in mm_camera_ctrl_set_auto_focus() 89 rc = -1; in mm_camera_ctrl_set_auto_focus() [all …]
|
/device/lge/mako/camera/QCamera/HAL/wrapper/ |
D | QualcommCamera.cpp | 162 int rc = -1; in get_camera_info() local 169 rc = 0; in get_camera_info() 175 return rc; in get_camera_info() 184 int rc = -1; in camera_device_open() local 196 return rc; in camera_device_open() 207 rc = 0; in camera_device_open() 220 LOGE("%s: end rc %d", __func__, rc); in camera_device_open() 221 return rc; in camera_device_open() 227 int rc = -1; in close_camera_device() local 243 rc = 0; in close_camera_device() [all …]
|
/device/lge/mako/camera/ |
D | QualcommCamera2.cpp | 161 int rc = -1; in get_camera_info() local 168 rc = 0; in get_camera_info() 174 return rc; in get_camera_info() 185 int rc = -1; in camera_device_open() local 195 return rc; in camera_device_open() 207 return rc; in camera_device_open() 219 rc = 0; in camera_device_open() 232 ALOGV("%s: end rc %d", __func__, rc); in camera_device_open() 234 return rc; in camera_device_open() 240 int rc = -1; in close_camera_device() local [all …]
|
D | QCameraStream.cpp | 107 int rc = MM_CAMERA_OK; in initChannel() 116 rc = cam_config_get_parm(cameraId, MM_CAMERA_PARM_DIMENSION, &dim); in initChannel() 117 if (MM_CAMERA_OK != rc) { in initChannel() 124 rc = cam_ops_ch_acquire(cameraId, MM_CAMERA_CH_PREVIEW); in initChannel() 125 ALOGV("%s:ch_acquire MM_CAMERA_CH_PREVIEW, rc=%d\n",__func__, rc); in initChannel() 127 if(MM_CAMERA_OK != rc) { in initChannel() 128 ALOGE("%s: preview channel acquir error =%d\n", __func__, rc); in initChannel() 143 rc = cam_config_set_parm(cameraId, MM_CAMERA_PARM_CH_IMAGE_FMT, &fmt); in initChannel() 144 ALOGV("%s: preview MM_CAMERA_PARM_CH_IMAGE_FMT rc = %d\n", __func__, rc); in initChannel() 145 if(MM_CAMERA_OK != rc) { in initChannel() [all …]
|
/device/lge/mako/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_interface.c | 70 int32_t rc = -1; in mm_jpeg_intf_start_job() local 76 return rc; in mm_jpeg_intf_start_job() 84 return rc; in mm_jpeg_intf_start_job() 87 rc = mm_jpeg_start_job(g_jpeg_obj, client_hdl, job, jobId); in mm_jpeg_intf_start_job() 89 return rc; in mm_jpeg_intf_start_job() 94 int32_t rc = -1; in mm_jpeg_intf_abort_job() local 98 return rc; in mm_jpeg_intf_abort_job() 106 return rc; in mm_jpeg_intf_abort_job() 109 rc = mm_jpeg_abort_job(g_jpeg_obj, client_hdl, jobId); in mm_jpeg_intf_abort_job() 111 return rc; in mm_jpeg_intf_abort_job() [all …]
|
D | mm_jpeg.c | 74 int32_t rc = 0; in mm_jpeg_omx_load() local 80 rc = OMX_GetHandle(&my_obj->omx_handle, in mm_jpeg_omx_load() 85 if (0 != rc) { in mm_jpeg_omx_load() 86 CDBG_ERROR("%s : OMX_GetHandle failed (%d)",__func__, rc); in mm_jpeg_omx_load() 87 return rc; in mm_jpeg_omx_load() 90 rc = OMX_Init(); in mm_jpeg_omx_load() 91 if (0 != rc) { in mm_jpeg_omx_load() 92 CDBG_ERROR("%s : OMX_Init failed (%d)",__func__, rc); in mm_jpeg_omx_load() 96 return rc; in mm_jpeg_omx_load() 101 int32_t rc = 0; in mm_jpeg_omx_unload() local [all …]
|