Lines Matching refs:cam
335 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_preview_window() local
336 CHECK_CAMERA_ERROR(cam); in set_preview_window()
338 for (uint32_t i = 0; i < cam->numCameras; i++) { in set_preview_window()
339 pCam = gMuxer->getPhysicalCamera(cam, i); in set_preview_window()
383 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_callBacks() local
384 CHECK_CAMERA(cam); in set_callBacks()
387 for (uint32_t i = 0; i < cam->numCameras; i++) { in set_callBacks()
388 pCam = gMuxer->getPhysicalCamera(cam, i); in set_callBacks()
447 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in enable_msg_type() local
448 CHECK_CAMERA(cam); in enable_msg_type()
450 for (uint32_t i = 0; i < cam->numCameras; i++) { in enable_msg_type()
451 pCam = gMuxer->getPhysicalCamera(cam, i); in enable_msg_type()
476 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in disable_msg_type() local
477 CHECK_CAMERA(cam); in disable_msg_type()
479 for (uint32_t i = 0; i < cam->numCameras; i++) { in disable_msg_type()
480 pCam = gMuxer->getPhysicalCamera(cam, i); in disable_msg_type()
505 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in msg_type_enabled() local
506 CHECK_CAMERA_ERROR(cam); in msg_type_enabled()
508 for (uint32_t i = 0; i < cam->numCameras; i++) { in msg_type_enabled()
509 pCam = gMuxer->getPhysicalCamera(cam, i); in msg_type_enabled()
541 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in start_preview() local
542 CHECK_CAMERA_ERROR(cam); in start_preview()
545 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_preview()
546 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
559 if (cam->numCameras > 1) { in start_preview()
562 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_preview()
563 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
571 for (uint32_t j = 0; j < cam->numCameras; j++) { in start_preview()
572 if (j == cam->nPrimaryPhyCamIndex) { in start_preview()
575 sessionId = cam->sId[j]; in start_preview()
578 cam->pId[i], cam->sId[i], sessionId); in start_preview()
589 sessionId = cam->sId[cam->nPrimaryPhyCamIndex]; in start_preview()
592 cam->pId[i], cam->sId[i], sessionId); in start_preview()
602 cam->bSyncOn = true; in start_preview()
605 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_preview()
606 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
636 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in stop_preview() local
637 CHECK_CAMERA(cam); in stop_preview()
639 for (uint32_t i = 0; i < cam->numCameras; i++) { in stop_preview()
640 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_preview()
670 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in preview_enabled() local
671 CHECK_CAMERA_ERROR(cam); in preview_enabled()
673 for (uint32_t i = 0; i < cam->numCameras; i++) { in preview_enabled()
674 pCam = gMuxer->getPhysicalCamera(cam, i); in preview_enabled()
707 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in store_meta_data_in_buffers() local
708 CHECK_CAMERA_ERROR(cam); in store_meta_data_in_buffers()
710 for (uint32_t i = 0; i < cam->numCameras; i++) { in store_meta_data_in_buffers()
711 pCam = gMuxer->getPhysicalCamera(cam, i); in store_meta_data_in_buffers()
746 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in start_recording() local
747 CHECK_CAMERA_ERROR(cam); in start_recording()
753 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_recording()
754 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
768 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_recording()
769 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
783 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_recording()
784 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
798 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_recording()
799 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
814 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_recording()
815 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
829 for (uint32_t i = 0; i < cam->numCameras; i++) { in start_recording()
830 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
866 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in stop_recording() local
867 CHECK_CAMERA(cam); in stop_recording()
869 for (uint32_t i = 0; i < cam->numCameras; i++) { in stop_recording()
870 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
887 for (uint32_t i = 0; i < cam->numCameras; i++) { in stop_recording()
888 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
902 for (uint32_t i = 0; i < cam->numCameras; i++) { in stop_recording()
903 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
918 for (uint32_t i = 0; i < cam->numCameras; i++) { in stop_recording()
919 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
950 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in recording_enabled() local
951 CHECK_CAMERA_ERROR(cam); in recording_enabled()
953 for (uint32_t i = 0; i < cam->numCameras; i++) { in recording_enabled()
954 pCam = gMuxer->getPhysicalCamera(cam, i); in recording_enabled()
985 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in release_recording_frame() local
986 CHECK_CAMERA(cam); in release_recording_frame()
988 for (uint32_t i = 0; i < cam->numCameras; i++) { in release_recording_frame()
989 pCam = gMuxer->getPhysicalCamera(cam, i); in release_recording_frame()
1021 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in auto_focus() local
1022 CHECK_CAMERA_ERROR(cam); in auto_focus()
1024 for (uint32_t i = 0; i < cam->numCameras; i++) { in auto_focus()
1025 pCam = gMuxer->getPhysicalCamera(cam, i); in auto_focus()
1062 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in cancel_auto_focus() local
1063 CHECK_CAMERA_ERROR(cam); in cancel_auto_focus()
1065 for (uint32_t i = 0; i < cam->numCameras; i++) { in cancel_auto_focus()
1066 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_auto_focus()
1104 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in take_picture() local
1105 CHECK_CAMERA_ERROR(cam); in take_picture()
1112 gMuxer->getActiveNumOfPhyCam(cam, numOfAcitvePhyCam); in take_picture()
1120 pCam = gMuxer->getPhysicalCamera(cam, 0); in take_picture()
1133 for (uint32_t i = 1; i < cam->numCameras; i++) { in take_picture()
1134 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1150 for (uint32_t i = 0; i < cam->numCameras; i++) { in take_picture()
1151 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1183 for (uint32_t i = 0; i < cam->numCameras; i++) { in take_picture()
1184 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1201 for (uint32_t i = 0; i < cam->numCameras; i++) { in take_picture()
1202 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1216 for (uint32_t i = 0; i < cam->numCameras; i++) { in take_picture()
1217 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1231 for (uint32_t i = 0; i < cam->numCameras; i++) { in take_picture()
1232 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1246 for (uint32_t i = 0; i < cam->numCameras; i++) { in take_picture()
1247 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1267 for (int32_t i = cam->numCameras-1 ; i >= 0; i--) { in take_picture()
1268 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1305 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in cancel_picture() local
1306 CHECK_CAMERA_ERROR(cam); in cancel_picture()
1308 for (uint32_t i = 0; i < cam->numCameras; i++) { in cancel_picture()
1309 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_picture()
1351 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in set_parameters() local
1353 CHECK_CAMERA_ERROR(cam); in set_parameters()
1355 for (uint32_t i = 0; i < cam->numCameras; i++) { in set_parameters()
1356 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1372 for (uint32_t i = 0; i < cam->numCameras; i++) { in set_parameters()
1373 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1388 for (uint32_t i = 0; i < cam->numCameras; i++) { in set_parameters()
1389 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1404 for (uint32_t i = 0; i < cam->numCameras; i++) { in set_parameters()
1405 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1443 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in get_parameters() local
1444 if (!cam) { in get_parameters()
1449 for (uint32_t i = 0; i < cam->numCameras; i++) { in get_parameters()
1450 pCam = gMuxer->getPhysicalCamera(cam, i); in get_parameters()
1487 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in put_parameters() local
1488 CHECK_CAMERA(cam); in put_parameters()
1490 for (uint32_t i = 0; i < cam->numCameras; i++) { in put_parameters()
1491 pCam = gMuxer->getPhysicalCamera(cam, i); in put_parameters()
1527 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in send_command() local
1528 CHECK_CAMERA_ERROR(cam); in send_command()
1530 for (uint32_t i = 0; i < cam->numCameras; i++) { in send_command()
1531 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1547 for (uint32_t i = 0; i < cam->numCameras; i++) { in send_command()
1548 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1595 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in release() local
1596 CHECK_CAMERA(cam); in release()
1598 for (uint32_t i = 0; i < cam->numCameras; i++) { in release()
1599 pCam = gMuxer->getPhysicalCamera(cam, i); in release()
1629 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(device); in dump() local
1630 CHECK_CAMERA_ERROR(cam); in dump()
1632 for (uint32_t i = 0; i < cam->numCameras; i++) { in dump()
1633 pCam = gMuxer->getPhysicalCamera(cam, i); in dump()
1668 qcamera_logical_descriptor_t *cam = gMuxer->getLogicalCamera(cam_dev); in close_camera_device() local
1669 CHECK_CAMERA_ERROR(cam); in close_camera_device()
1672 if (cam->bSyncOn) { in close_camera_device()
1673 if (cam->numCameras > 1) { in close_camera_device()
1676 for (uint32_t i = 0; i < cam->numCameras; i++) { in close_camera_device()
1677 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
1685 for (uint32_t j = 0; j < cam->numCameras; j++) { in close_camera_device()
1686 if (j == cam->nPrimaryPhyCamIndex) { in close_camera_device()
1689 sessionId = cam->sId[j]; in close_camera_device()
1692 cam->pId[i], cam->sId[i], sessionId); in close_camera_device()
1703 sessionId = cam->sId[cam->nPrimaryPhyCamIndex]; in close_camera_device()
1706 cam->pId[i], cam->sId[i], sessionId); in close_camera_device()
1715 cam->bSyncOn = false; in close_camera_device()
1719 for (uint32_t i = 0; i < cam->numCameras; i++) { in close_camera_device()
1720 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
2099 qcamera_logical_descriptor_t *cam = NULL; in cameraDeviceOpen() local
2116 cam = &m_pLogicalCamera[camera_id]; in cameraDeviceOpen()
2121 hw_device_t *hw_dev[cam->numCameras]; in cameraDeviceOpen()
2123 if (m_pPhyCamera[cam->pId[0]].type != CAM_TYPE_MAIN) { in cameraDeviceOpen()
2129 for (uint32_t i = 0; i < cam->numCameras; i++) { in cameraDeviceOpen()
2130 phyId = cam->pId[i]; in cameraDeviceOpen()
2160 cam->sId[i] = m_pPhyCamera[phyId].camera_server_id; in cameraDeviceOpen()
2162 phyId, cam->sId[i], hw_dev[i], hw); in cameraDeviceOpen()
2170 cam->dev.common.tag = HARDWARE_DEVICE_TAG; in cameraDeviceOpen()
2171 cam->dev.common.version = HARDWARE_DEVICE_API_VERSION(1, 0); in cameraDeviceOpen()
2172 cam->dev.common.close = close_camera_device; in cameraDeviceOpen()
2173 cam->dev.ops = &mCameraMuxerOps; in cameraDeviceOpen()
2174 cam->dev.priv = (void*)cam; in cameraDeviceOpen()
2175 *hw_device = &cam->dev.common; in cameraDeviceOpen()