Home
last modified time | relevance | path

Searched refs:cam_idx (Results 1 – 2 of 2) sorted by relevance

/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c109 uint8_t cam_idx = mm_camera_util_get_index_by_handler(cam_handle); in mm_camera_util_get_dev_name() local
110 if(cam_idx < MM_CAMERA_MAX_NUM_SENSORS) { in mm_camera_util_get_dev_name()
111 dev_name = g_cam_ctrl.video_dev_name[cam_idx]; in mm_camera_util_get_dev_name()
130 uint8_t cam_idx = mm_camera_util_get_index_by_handler(cam_handle); in mm_camera_util_get_camera_by_handler() local
132 if (cam_idx < MM_CAMERA_MAX_NUM_SENSORS && in mm_camera_util_get_camera_by_handler()
133 (NULL != g_cam_ctrl.cam_obj[cam_idx]) && in mm_camera_util_get_camera_by_handler()
134 (cam_handle == g_cam_ctrl.cam_obj[cam_idx]->my_hdl)) { in mm_camera_util_get_camera_by_handler()
135 cam_obj = g_cam_ctrl.cam_obj[cam_idx]; in mm_camera_util_get_camera_by_handler()
354 uint8_t cam_idx = camera_handle & 0x00ff; in mm_camera_intf_close() local
373 g_cam_ctrl.cam_obj[cam_idx] = NULL; in mm_camera_intf_close()
[all …]
Dmm_camera.c254 int cam_idx = 0; in mm_camera_open() local
285 sscanf(dev_name, "/dev/video%d", &cam_idx); in mm_camera_open()
286 CDBG("%s: dev name = %s, cam_idx = %d", __func__, dev_name, cam_idx); in mm_camera_open()
316 my_obj->ds_fd = mm_camera_socket_create(cam_idx, MM_CAMERA_SOCK_TYPE_UDP); in mm_camera_open()