• Home
  • Raw
  • Download

Lines Matching refs:pCam

68 #define CHECK_CAMERA(pCam) \  argument
69 if (!pCam) { \
74 #define CHECK_CAMERA_ERROR(pCam) \ argument
75 if (!pCam) { \
334 qcamera_physical_descriptor_t *pCam = NULL; in set_preview_window() local
339 pCam = gMuxer->getPhysicalCamera(cam, i); in set_preview_window()
340 CHECK_CAMERA_ERROR(pCam); in set_preview_window()
343 if (pCam->mode == CAM_MODE_PRIMARY) { in set_preview_window()
344 QCamera2HardwareInterface *hwi = pCam->hwi; in set_preview_window()
346 rc = hwi->set_preview_window(pCam->dev, window); in set_preview_window()
382 qcamera_physical_descriptor_t *pCam = NULL; in set_callBacks() local
388 pCam = gMuxer->getPhysicalCamera(cam, i); in set_callBacks()
389 CHECK_CAMERA(pCam); in set_callBacks()
391 QCamera2HardwareInterface *hwi = pCam->hwi; in set_callBacks()
394 hwi->set_CallBacks(pCam->dev, notify_cb, data_cb, data_cb_timestamp, in set_callBacks()
401 hwi->setJpegCallBacks(jpeg_data_callback, (void*)pCam); in set_callBacks()
403 if (pCam->mode == CAM_MODE_PRIMARY) { in set_callBacks()
404 rc = gMuxer->setMainJpegCallbackCookie((void*)(pCam)); in set_callBacks()
446 qcamera_physical_descriptor_t *pCam = NULL; in enable_msg_type() local
451 pCam = gMuxer->getPhysicalCamera(cam, i); in enable_msg_type()
452 CHECK_CAMERA(pCam); in enable_msg_type()
453 QCamera2HardwareInterface *hwi = pCam->hwi; in enable_msg_type()
455 hwi->enable_msg_type(pCam->dev, msg_type); in enable_msg_type()
475 qcamera_physical_descriptor_t *pCam = NULL; in disable_msg_type() local
480 pCam = gMuxer->getPhysicalCamera(cam, i); in disable_msg_type()
481 CHECK_CAMERA(pCam); in disable_msg_type()
482 QCamera2HardwareInterface *hwi = pCam->hwi; in disable_msg_type()
484 hwi->disable_msg_type(pCam->dev, msg_type); in disable_msg_type()
504 qcamera_physical_descriptor_t *pCam = NULL; in msg_type_enabled() local
509 pCam = gMuxer->getPhysicalCamera(cam, i); in msg_type_enabled()
510 CHECK_CAMERA_ERROR(pCam); in msg_type_enabled()
512 QCamera2HardwareInterface *hwi = pCam->hwi; in msg_type_enabled()
515 if (pCam->mode == CAM_MODE_PRIMARY) { in msg_type_enabled()
516 return hwi->msg_type_enabled(pCam->dev, msg_type); in msg_type_enabled()
540 qcamera_physical_descriptor_t *pCam = NULL; in start_preview() local
546 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
547 CHECK_CAMERA_ERROR(pCam); in start_preview()
549 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview()
552 rc = hwi->prepare_preview(pCam->dev); in start_preview()
563 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
564 CHECK_CAMERA_ERROR(pCam); in start_preview()
566 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview()
569 if(pCam->mode == CAM_MODE_PRIMARY) { in start_preview()
587 if (pCam->mode == CAM_MODE_SECONDARY) { in start_preview()
606 pCam = gMuxer->getPhysicalCamera(cam, i); in start_preview()
607 CHECK_CAMERA_ERROR(pCam); in start_preview()
609 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview()
611 rc = hwi->start_preview(pCam->dev); in start_preview()
635 qcamera_physical_descriptor_t *pCam = NULL; in stop_preview() local
640 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_preview()
641 CHECK_CAMERA(pCam); in stop_preview()
643 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_preview()
646 QCamera2HardwareInterface::stop_preview(pCam->dev); in stop_preview()
669 qcamera_physical_descriptor_t *pCam = NULL; in preview_enabled() local
674 pCam = gMuxer->getPhysicalCamera(cam, i); in preview_enabled()
675 CHECK_CAMERA_ERROR(pCam); in preview_enabled()
677 QCamera2HardwareInterface *hwi = pCam->hwi; in preview_enabled()
680 if (pCam->mode == CAM_MODE_PRIMARY) { in preview_enabled()
681 return hwi->preview_enabled(pCam->dev); in preview_enabled()
706 qcamera_physical_descriptor_t *pCam = NULL; in store_meta_data_in_buffers() local
711 pCam = gMuxer->getPhysicalCamera(cam, i); in store_meta_data_in_buffers()
712 CHECK_CAMERA_ERROR(pCam); in store_meta_data_in_buffers()
714 QCamera2HardwareInterface *hwi = pCam->hwi; in store_meta_data_in_buffers()
717 rc = hwi->store_meta_data_in_buffers(pCam->dev, enable); in store_meta_data_in_buffers()
745 qcamera_physical_descriptor_t *pCam = NULL; in start_recording() local
754 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
755 CHECK_CAMERA_ERROR(pCam); in start_recording()
757 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording()
760 rc = hwi->pre_start_recording(pCam->dev); in start_recording()
769 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
770 CHECK_CAMERA_ERROR(pCam); in start_recording()
772 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording()
784 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
785 CHECK_CAMERA_ERROR(pCam); in start_recording()
787 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording()
790 rc = hwi->restart_stop_preview(pCam->dev); in start_recording()
799 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
800 CHECK_CAMERA_ERROR(pCam); in start_recording()
802 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording()
815 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
816 CHECK_CAMERA_ERROR(pCam); in start_recording()
818 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording()
821 rc = hwi->restart_start_preview(pCam->dev); in start_recording()
830 pCam = gMuxer->getPhysicalCamera(cam, i); in start_recording()
831 CHECK_CAMERA_ERROR(pCam); in start_recording()
833 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording()
836 if (pCam->mode == CAM_MODE_PRIMARY) { in start_recording()
837 rc = hwi->start_recording(pCam->dev); in start_recording()
865 qcamera_physical_descriptor_t *pCam = NULL; in stop_recording() local
870 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
871 CHECK_CAMERA(pCam); in stop_recording()
873 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording()
876 if (pCam->mode == CAM_MODE_PRIMARY) { in stop_recording()
877 QCamera2HardwareInterface::stop_recording(pCam->dev); in stop_recording()
888 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
889 CHECK_CAMERA(pCam); in stop_recording()
891 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording()
894 rc = hwi->restart_stop_preview(pCam->dev); in stop_recording()
903 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
904 CHECK_CAMERA(pCam); in stop_recording()
906 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording()
919 pCam = gMuxer->getPhysicalCamera(cam, i); in stop_recording()
920 CHECK_CAMERA(pCam); in stop_recording()
922 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording()
925 rc = hwi->restart_start_preview(pCam->dev); in stop_recording()
949 qcamera_physical_descriptor_t *pCam = NULL; in recording_enabled() local
954 pCam = gMuxer->getPhysicalCamera(cam, i); in recording_enabled()
955 CHECK_CAMERA_ERROR(pCam); in recording_enabled()
957 QCamera2HardwareInterface *hwi = pCam->hwi; in recording_enabled()
960 if (pCam->mode == CAM_MODE_PRIMARY) { in recording_enabled()
961 return hwi->recording_enabled(pCam->dev); in recording_enabled()
984 qcamera_physical_descriptor_t *pCam = NULL; in release_recording_frame() local
989 pCam = gMuxer->getPhysicalCamera(cam, i); in release_recording_frame()
990 CHECK_CAMERA(pCam); in release_recording_frame()
992 QCamera2HardwareInterface *hwi = pCam->hwi; in release_recording_frame()
995 if (pCam->mode == CAM_MODE_PRIMARY) { in release_recording_frame()
996 QCamera2HardwareInterface::release_recording_frame(pCam->dev, opaque); in release_recording_frame()
1020 qcamera_physical_descriptor_t *pCam = NULL; in auto_focus() local
1025 pCam = gMuxer->getPhysicalCamera(cam, i); in auto_focus()
1026 CHECK_CAMERA_ERROR(pCam); in auto_focus()
1028 QCamera2HardwareInterface *hwi = pCam->hwi; in auto_focus()
1031 if (pCam->mode == CAM_MODE_PRIMARY) { in auto_focus()
1032 rc = QCamera2HardwareInterface::auto_focus(pCam->dev); in auto_focus()
1061 qcamera_physical_descriptor_t *pCam = NULL; in cancel_auto_focus() local
1066 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_auto_focus()
1067 CHECK_CAMERA_ERROR(pCam); in cancel_auto_focus()
1069 QCamera2HardwareInterface *hwi = pCam->hwi; in cancel_auto_focus()
1072 if (pCam->mode == CAM_MODE_PRIMARY) { in cancel_auto_focus()
1073 rc = QCamera2HardwareInterface::cancel_auto_focus(pCam->dev); in cancel_auto_focus()
1103 qcamera_physical_descriptor_t *pCam = NULL; in take_picture() local
1120 pCam = gMuxer->getPhysicalCamera(cam, 0); in take_picture()
1121 CHECK_CAMERA_ERROR(pCam); in take_picture()
1123 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1134 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1135 CHECK_CAMERA_ERROR(pCam); in take_picture()
1137 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1151 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1152 CHECK_CAMERA_ERROR(pCam); in take_picture()
1154 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1157 if (pCam->mode == CAM_MODE_PRIMARY) { in take_picture()
1158 rc = hwi->prepare_snapshot(pCam->dev); in take_picture()
1184 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1185 CHECK_CAMERA_ERROR(pCam); in take_picture()
1187 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1191 if ( (gMuxer->m_bMpoEnabled == 1) || (pCam->mode == CAM_MODE_PRIMARY) ) { in take_picture()
1192 rc = hwi->pre_take_picture(pCam->dev); in take_picture()
1202 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1203 CHECK_CAMERA_ERROR(pCam); in take_picture()
1205 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1217 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1218 CHECK_CAMERA_ERROR(pCam); in take_picture()
1220 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1223 rc = hwi->restart_stop_preview(pCam->dev); in take_picture()
1232 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1233 CHECK_CAMERA_ERROR(pCam); in take_picture()
1235 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1247 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1248 CHECK_CAMERA_ERROR(pCam); in take_picture()
1250 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1253 rc = hwi->restart_start_preview(pCam->dev); in take_picture()
1268 pCam = gMuxer->getPhysicalCamera(cam, i); in take_picture()
1269 CHECK_CAMERA_ERROR(pCam); in take_picture()
1271 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture()
1275 if ( (gMuxer->m_bMpoEnabled == 1) || (pCam->mode == CAM_MODE_PRIMARY) ) { in take_picture()
1276 rc = QCamera2HardwareInterface::take_picture(pCam->dev); in take_picture()
1304 qcamera_physical_descriptor_t *pCam = NULL; in cancel_picture() local
1309 pCam = gMuxer->getPhysicalCamera(cam, i); in cancel_picture()
1310 CHECK_CAMERA_ERROR(pCam); in cancel_picture()
1312 QCamera2HardwareInterface *hwi = pCam->hwi; in cancel_picture()
1315 rc = QCamera2HardwareInterface::cancel_picture(pCam->dev); in cancel_picture()
1350 qcamera_physical_descriptor_t *pCam = NULL; in set_parameters() local
1356 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1357 CHECK_CAMERA_ERROR(pCam); in set_parameters()
1359 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters()
1362 rc = QCamera2HardwareInterface::set_parameters(pCam->dev, parms); in set_parameters()
1373 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1374 CHECK_CAMERA_ERROR(pCam); in set_parameters()
1376 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters()
1380 rc = QCamera2HardwareInterface::stop_after_set_params(pCam->dev); in set_parameters()
1389 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1390 CHECK_CAMERA_ERROR(pCam); in set_parameters()
1392 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters()
1396 rc = QCamera2HardwareInterface::commit_params(pCam->dev); in set_parameters()
1405 pCam = gMuxer->getPhysicalCamera(cam, i); in set_parameters()
1406 CHECK_CAMERA_ERROR(pCam); in set_parameters()
1408 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters()
1412 rc = QCamera2HardwareInterface::restart_after_set_params(pCam->dev); in set_parameters()
1442 qcamera_physical_descriptor_t *pCam = NULL; in get_parameters() local
1450 pCam = gMuxer->getPhysicalCamera(cam, i); in get_parameters()
1451 if (!pCam) { in get_parameters()
1455 QCamera2HardwareInterface *hwi = pCam->hwi; in get_parameters()
1460 if (pCam->mode == CAM_MODE_PRIMARY) { in get_parameters()
1462 ret = QCamera2HardwareInterface::get_parameters(pCam->dev); in get_parameters()
1486 qcamera_physical_descriptor_t *pCam = NULL; in put_parameters() local
1491 pCam = gMuxer->getPhysicalCamera(cam, i); in put_parameters()
1492 CHECK_CAMERA(pCam); in put_parameters()
1494 QCamera2HardwareInterface *hwi = pCam->hwi; in put_parameters()
1497 if (pCam->mode == CAM_MODE_PRIMARY) { in put_parameters()
1499 QCamera2HardwareInterface::put_parameters(pCam->dev, parm); in put_parameters()
1526 qcamera_physical_descriptor_t *pCam = NULL; in send_command() local
1531 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1532 CHECK_CAMERA_ERROR(pCam); in send_command()
1534 QCamera2HardwareInterface *hwi = pCam->hwi; in send_command()
1537 rc = QCamera2HardwareInterface::send_command(pCam->dev, cmd, arg1, arg2); in send_command()
1548 pCam = gMuxer->getPhysicalCamera(cam, i); in send_command()
1549 CHECK_CAMERA_ERROR(pCam); in send_command()
1551 QCamera2HardwareInterface *hwi = pCam->hwi; in send_command()
1554 rc = QCamera2HardwareInterface::send_command_restart(pCam->dev, in send_command()
1594 qcamera_physical_descriptor_t *pCam = NULL; in release() local
1599 pCam = gMuxer->getPhysicalCamera(cam, i); in release()
1600 CHECK_CAMERA(pCam); in release()
1602 QCamera2HardwareInterface *hwi = pCam->hwi; in release()
1605 QCamera2HardwareInterface::release(pCam->dev); in release()
1628 qcamera_physical_descriptor_t *pCam = NULL; in dump() local
1633 pCam = gMuxer->getPhysicalCamera(cam, i); in dump()
1634 CHECK_CAMERA_ERROR(pCam); in dump()
1636 QCamera2HardwareInterface *hwi = pCam->hwi; in dump()
1639 rc = QCamera2HardwareInterface::dump(pCam->dev, fd); in dump()
1666 qcamera_physical_descriptor_t *pCam = NULL; in close_camera_device() local
1677 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
1678 CHECK_CAMERA_ERROR(pCam); in close_camera_device()
1680 QCamera2HardwareInterface *hwi = pCam->hwi; in close_camera_device()
1683 if(pCam->mode == CAM_MODE_PRIMARY) { in close_camera_device()
1701 if (pCam->mode == CAM_MODE_SECONDARY) { in close_camera_device()
1720 pCam = gMuxer->getPhysicalCamera(cam, i); in close_camera_device()
1721 CHECK_CAMERA_ERROR(pCam); in close_camera_device()
1723 hw_device_t *dev = (hw_device_t*)(pCam->dev); in close_camera_device()
1724 LOGH("hw device %x, hw %x", dev, pCam->hwi); in close_camera_device()
1730 pCam->hwi = NULL; in close_camera_device()
1731 pCam->dev = NULL; in close_camera_device()
2262 qcamera_physical_descriptor_t *pCam = NULL; in sendEvtNotify() local
2263 pCam = (qcamera_physical_descriptor_t*)(gMuxer->getMainJpegCallbackCookie()); in sendEvtNotify()
2265 CHECK_CAMERA_ERROR(pCam); in sendEvtNotify()
2267 QCamera2HardwareInterface *hwi = pCam->hwi; in sendEvtNotify()
2271 return pCam->hwi->sendEvtNotify(msg_type, ext1, ext2); in sendEvtNotify()