Lines Matching refs:hwi

80 #define CHECK_HWI(hwi) \  argument
81 if (!hwi) { \
86 #define CHECK_HWI_ERROR(hwi) \ argument
87 if (!hwi) { \
344 QCamera2HardwareInterface *hwi = pCam->hwi; in set_preview_window() local
345 CHECK_HWI_ERROR(hwi); in set_preview_window()
346 rc = hwi->set_preview_window(pCam->dev, window); in set_preview_window()
391 QCamera2HardwareInterface *hwi = pCam->hwi; in set_callBacks() local
392 CHECK_HWI(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()
453 QCamera2HardwareInterface *hwi = pCam->hwi; in enable_msg_type() local
454 CHECK_HWI(hwi); in enable_msg_type()
455 hwi->enable_msg_type(pCam->dev, msg_type); in enable_msg_type()
482 QCamera2HardwareInterface *hwi = pCam->hwi; in disable_msg_type() local
483 CHECK_HWI(hwi); in disable_msg_type()
484 hwi->disable_msg_type(pCam->dev, msg_type); in disable_msg_type()
512 QCamera2HardwareInterface *hwi = pCam->hwi; in msg_type_enabled() local
513 CHECK_HWI_ERROR(hwi); in msg_type_enabled()
516 return hwi->msg_type_enabled(pCam->dev, msg_type); in msg_type_enabled()
549 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview() local
550 CHECK_HWI_ERROR(hwi); in start_preview()
552 rc = hwi->prepare_preview(pCam->dev); in start_preview()
566 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview() local
567 CHECK_HWI_ERROR(hwi); in start_preview()
579 rc = hwi->bundleRelatedCameras(true); in start_preview()
593 rc = hwi->bundleRelatedCameras(true); in start_preview()
609 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview() local
610 CHECK_HWI_ERROR(hwi); in start_preview()
611 rc = hwi->start_preview(pCam->dev); in start_preview()
643 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_preview() local
644 CHECK_HWI(hwi); in stop_preview()
677 QCamera2HardwareInterface *hwi = pCam->hwi; in preview_enabled() local
678 CHECK_HWI_ERROR(hwi); in preview_enabled()
681 return hwi->preview_enabled(pCam->dev); in preview_enabled()
714 QCamera2HardwareInterface *hwi = pCam->hwi; in store_meta_data_in_buffers() local
715 CHECK_HWI_ERROR(hwi); in store_meta_data_in_buffers()
717 rc = hwi->store_meta_data_in_buffers(pCam->dev, enable); in store_meta_data_in_buffers()
757 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
758 CHECK_HWI_ERROR(hwi); in start_recording()
760 rc = hwi->pre_start_recording(pCam->dev); in start_recording()
772 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
773 CHECK_HWI_ERROR(hwi); in start_recording()
775 if (hwi->isPreviewRestartNeeded()) { in start_recording()
776 previewRestartNeeded = hwi->isPreviewRestartNeeded(); in start_recording()
787 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
788 CHECK_HWI_ERROR(hwi); in start_recording()
790 rc = hwi->restart_stop_preview(pCam->dev); in start_recording()
802 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
803 CHECK_HWI_ERROR(hwi); in start_recording()
805 rc = hwi->setRecordingHintValue(TRUE); in start_recording()
818 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
819 CHECK_HWI_ERROR(hwi); in start_recording()
821 rc = hwi->restart_start_preview(pCam->dev); in start_recording()
833 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
834 CHECK_HWI_ERROR(hwi); in start_recording()
837 rc = hwi->start_recording(pCam->dev); in start_recording()
873 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
874 CHECK_HWI(hwi); in stop_recording()
891 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
892 CHECK_HWI(hwi); in stop_recording()
894 rc = hwi->restart_stop_preview(pCam->dev); in stop_recording()
906 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
907 CHECK_HWI(hwi); in stop_recording()
909 rc = hwi->setRecordingHintValue(FALSE); in stop_recording()
922 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
923 CHECK_HWI(hwi); in stop_recording()
925 rc = hwi->restart_start_preview(pCam->dev); in stop_recording()
957 QCamera2HardwareInterface *hwi = pCam->hwi; in recording_enabled() local
958 CHECK_HWI_ERROR(hwi); in recording_enabled()
961 return hwi->recording_enabled(pCam->dev); in recording_enabled()
992 QCamera2HardwareInterface *hwi = pCam->hwi; in release_recording_frame() local
993 CHECK_HWI(hwi); in release_recording_frame()
1028 QCamera2HardwareInterface *hwi = pCam->hwi; in auto_focus() local
1029 CHECK_HWI_ERROR(hwi); in auto_focus()
1069 QCamera2HardwareInterface *hwi = pCam->hwi; in cancel_auto_focus() local
1070 CHECK_HWI_ERROR(hwi); in cancel_auto_focus()
1123 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1124 CHECK_HWI_ERROR(hwi); in take_picture()
1126 rc = hwi->getJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1137 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1138 CHECK_HWI_ERROR(hwi); in take_picture()
1140 rc = hwi->setJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1154 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1155 CHECK_HWI_ERROR(hwi); in take_picture()
1158 rc = hwi->prepare_snapshot(pCam->dev); in take_picture()
1165 rc = hwi->setMpoComposition(gMuxer->m_bMpoEnabled); in take_picture()
1187 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1188 CHECK_HWI_ERROR(hwi); in take_picture()
1192 rc = hwi->pre_take_picture(pCam->dev); in take_picture()
1205 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1206 CHECK_HWI_ERROR(hwi); in take_picture()
1208 if (hwi->isPreviewRestartNeeded()) { in take_picture()
1209 previewRestartNeeded = hwi->isPreviewRestartNeeded(); in take_picture()
1220 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1221 CHECK_HWI_ERROR(hwi); in take_picture()
1223 rc = hwi->restart_stop_preview(pCam->dev); in take_picture()
1235 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1236 CHECK_HWI_ERROR(hwi); in take_picture()
1238 rc = hwi->setRecordingHintValue(FALSE); in take_picture()
1250 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1251 CHECK_HWI_ERROR(hwi); in take_picture()
1253 rc = hwi->restart_start_preview(pCam->dev); in take_picture()
1271 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1272 CHECK_HWI_ERROR(hwi); in take_picture()
1312 QCamera2HardwareInterface *hwi = pCam->hwi; in cancel_picture() local
1313 CHECK_HWI_ERROR(hwi); in cancel_picture()
1359 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1360 CHECK_HWI_ERROR(hwi); in set_parameters()
1368 needRestart |= hwi->getNeedRestart(); in set_parameters()
1376 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1377 CHECK_HWI_ERROR(hwi); in set_parameters()
1392 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1393 CHECK_HWI_ERROR(hwi); in set_parameters()
1408 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1409 CHECK_HWI_ERROR(hwi); in set_parameters()
1455 QCamera2HardwareInterface *hwi = pCam->hwi; in get_parameters() local
1456 if (!hwi) { in get_parameters()
1494 QCamera2HardwareInterface *hwi = pCam->hwi; in put_parameters() local
1495 CHECK_HWI(hwi); in put_parameters()
1534 QCamera2HardwareInterface *hwi = pCam->hwi; in send_command() local
1535 CHECK_HWI_ERROR(hwi); in send_command()
1551 QCamera2HardwareInterface *hwi = pCam->hwi; in send_command() local
1552 CHECK_HWI_ERROR(hwi); in send_command()
1602 QCamera2HardwareInterface *hwi = pCam->hwi; in release() local
1603 CHECK_HWI(hwi); in release()
1636 QCamera2HardwareInterface *hwi = pCam->hwi; in dump() local
1637 CHECK_HWI_ERROR(hwi); in dump()
1680 QCamera2HardwareInterface *hwi = pCam->hwi; in close_camera_device() local
1681 CHECK_HWI_ERROR(hwi); in close_camera_device()
1693 rc = hwi->bundleRelatedCameras(false); in close_camera_device()
1707 rc = hwi->bundleRelatedCameras(false); 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()
2159 m_pPhyCamera[phyId].hwi = hw; in cameraDeviceOpen()
2269 QCamera2HardwareInterface *hwi = pCam->hwi; in sendEvtNotify() local
2270 CHECK_HWI_ERROR(hwi); in sendEvtNotify()
2273 return pCam->hwi->sendEvtNotify(msg_type, ext1, ext2); in sendEvtNotify()