Lines Matching refs:hwi

79 #define CHECK_HWI(hwi) \  argument
80 if (!hwi) { \
85 #define CHECK_HWI_ERROR(hwi) \ argument
86 if (!hwi) { \
343 QCamera2HardwareInterface *hwi = pCam->hwi; in set_preview_window() local
344 CHECK_HWI_ERROR(hwi); in set_preview_window()
345 rc = hwi->set_preview_window(pCam->dev, window); in set_preview_window()
390 QCamera2HardwareInterface *hwi = pCam->hwi; in set_callBacks() local
391 CHECK_HWI(hwi); in set_callBacks()
393 hwi->set_CallBacks(pCam->dev, notify_cb, data_cb, data_cb_timestamp, in set_callBacks()
400 hwi->setJpegCallBacks(jpeg_data_callback, (void*)pCam); in set_callBacks()
452 QCamera2HardwareInterface *hwi = pCam->hwi; in enable_msg_type() local
453 CHECK_HWI(hwi); in enable_msg_type()
454 hwi->enable_msg_type(pCam->dev, msg_type); in enable_msg_type()
481 QCamera2HardwareInterface *hwi = pCam->hwi; in disable_msg_type() local
482 CHECK_HWI(hwi); in disable_msg_type()
483 hwi->disable_msg_type(pCam->dev, msg_type); in disable_msg_type()
511 QCamera2HardwareInterface *hwi = pCam->hwi; in msg_type_enabled() local
512 CHECK_HWI_ERROR(hwi); in msg_type_enabled()
515 return hwi->msg_type_enabled(pCam->dev, msg_type); in msg_type_enabled()
548 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview() local
549 CHECK_HWI_ERROR(hwi); in start_preview()
551 rc = hwi->prepare_preview(pCam->dev); in start_preview()
565 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview() local
566 CHECK_HWI_ERROR(hwi); in start_preview()
578 rc = hwi->bundleRelatedCameras(true, sessionId); in start_preview()
592 rc = hwi->bundleRelatedCameras(true, sessionId); in start_preview()
608 QCamera2HardwareInterface *hwi = pCam->hwi; in start_preview() local
609 CHECK_HWI_ERROR(hwi); in start_preview()
610 rc = hwi->start_preview(pCam->dev); in start_preview()
642 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_preview() local
643 CHECK_HWI(hwi); in stop_preview()
676 QCamera2HardwareInterface *hwi = pCam->hwi; in preview_enabled() local
677 CHECK_HWI_ERROR(hwi); in preview_enabled()
680 return hwi->preview_enabled(pCam->dev); in preview_enabled()
713 QCamera2HardwareInterface *hwi = pCam->hwi; in store_meta_data_in_buffers() local
714 CHECK_HWI_ERROR(hwi); in store_meta_data_in_buffers()
716 rc = hwi->store_meta_data_in_buffers(pCam->dev, enable); in store_meta_data_in_buffers()
756 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
757 CHECK_HWI_ERROR(hwi); in start_recording()
759 rc = hwi->pre_start_recording(pCam->dev); in start_recording()
771 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
772 CHECK_HWI_ERROR(hwi); in start_recording()
774 if (hwi->isPreviewRestartNeeded()) { in start_recording()
775 previewRestartNeeded = hwi->isPreviewRestartNeeded(); in start_recording()
786 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
787 CHECK_HWI_ERROR(hwi); in start_recording()
789 rc = hwi->restart_stop_preview(pCam->dev); in start_recording()
801 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
802 CHECK_HWI_ERROR(hwi); in start_recording()
804 rc = hwi->setRecordingHintValue(TRUE); in start_recording()
817 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
818 CHECK_HWI_ERROR(hwi); in start_recording()
820 rc = hwi->restart_start_preview(pCam->dev); in start_recording()
832 QCamera2HardwareInterface *hwi = pCam->hwi; in start_recording() local
833 CHECK_HWI_ERROR(hwi); in start_recording()
836 rc = hwi->start_recording(pCam->dev); in start_recording()
872 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
873 CHECK_HWI(hwi); in stop_recording()
890 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
891 CHECK_HWI(hwi); in stop_recording()
893 rc = hwi->restart_stop_preview(pCam->dev); in stop_recording()
905 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
906 CHECK_HWI(hwi); in stop_recording()
908 rc = hwi->setRecordingHintValue(FALSE); in stop_recording()
921 QCamera2HardwareInterface *hwi = pCam->hwi; in stop_recording() local
922 CHECK_HWI(hwi); in stop_recording()
924 rc = hwi->restart_start_preview(pCam->dev); in stop_recording()
956 QCamera2HardwareInterface *hwi = pCam->hwi; in recording_enabled() local
957 CHECK_HWI_ERROR(hwi); in recording_enabled()
960 return hwi->recording_enabled(pCam->dev); in recording_enabled()
991 QCamera2HardwareInterface *hwi = pCam->hwi; in release_recording_frame() local
992 CHECK_HWI(hwi); in release_recording_frame()
1027 QCamera2HardwareInterface *hwi = pCam->hwi; in auto_focus() local
1028 CHECK_HWI_ERROR(hwi); in auto_focus()
1068 QCamera2HardwareInterface *hwi = pCam->hwi; in cancel_auto_focus() local
1069 CHECK_HWI_ERROR(hwi); in cancel_auto_focus()
1122 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1123 CHECK_HWI_ERROR(hwi); in take_picture()
1125 rc = hwi->getJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1136 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1137 CHECK_HWI_ERROR(hwi); in take_picture()
1139 rc = hwi->setJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps, in take_picture()
1153 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1154 CHECK_HWI_ERROR(hwi); in take_picture()
1157 rc = hwi->prepare_snapshot(pCam->dev); in take_picture()
1164 rc = hwi->setMpoComposition(gMuxer->m_bMpoEnabled); in take_picture()
1186 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1187 CHECK_HWI_ERROR(hwi); in take_picture()
1191 rc = hwi->pre_take_picture(pCam->dev); in take_picture()
1204 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1205 CHECK_HWI_ERROR(hwi); in take_picture()
1207 if (hwi->isPreviewRestartNeeded()) { in take_picture()
1208 previewRestartNeeded = hwi->isPreviewRestartNeeded(); in take_picture()
1219 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1220 CHECK_HWI_ERROR(hwi); in take_picture()
1222 rc = hwi->restart_stop_preview(pCam->dev); in take_picture()
1234 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1235 CHECK_HWI_ERROR(hwi); in take_picture()
1237 rc = hwi->setRecordingHintValue(FALSE); in take_picture()
1249 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1250 CHECK_HWI_ERROR(hwi); in take_picture()
1252 rc = hwi->restart_start_preview(pCam->dev); in take_picture()
1270 QCamera2HardwareInterface *hwi = pCam->hwi; in take_picture() local
1271 CHECK_HWI_ERROR(hwi); in take_picture()
1311 QCamera2HardwareInterface *hwi = pCam->hwi; in cancel_picture() local
1312 CHECK_HWI_ERROR(hwi); in cancel_picture()
1358 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1359 CHECK_HWI_ERROR(hwi); in set_parameters()
1367 needRestart |= hwi->getNeedRestart(); in set_parameters()
1375 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1376 CHECK_HWI_ERROR(hwi); in set_parameters()
1391 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1392 CHECK_HWI_ERROR(hwi); in set_parameters()
1407 QCamera2HardwareInterface *hwi = pCam->hwi; in set_parameters() local
1408 CHECK_HWI_ERROR(hwi); in set_parameters()
1454 QCamera2HardwareInterface *hwi = pCam->hwi; in get_parameters() local
1455 if (!hwi) { in get_parameters()
1493 QCamera2HardwareInterface *hwi = pCam->hwi; in put_parameters() local
1494 CHECK_HWI(hwi); in put_parameters()
1533 QCamera2HardwareInterface *hwi = pCam->hwi; in send_command() local
1534 CHECK_HWI_ERROR(hwi); in send_command()
1550 QCamera2HardwareInterface *hwi = pCam->hwi; in send_command() local
1551 CHECK_HWI_ERROR(hwi); in send_command()
1601 QCamera2HardwareInterface *hwi = pCam->hwi; in release() local
1602 CHECK_HWI(hwi); in release()
1635 QCamera2HardwareInterface *hwi = pCam->hwi; in dump() local
1636 CHECK_HWI_ERROR(hwi); in dump()
1679 QCamera2HardwareInterface *hwi = pCam->hwi; in close_camera_device() local
1680 CHECK_HWI_ERROR(hwi); in close_camera_device()
1692 rc = hwi->bundleRelatedCameras(false, sessionId); in close_camera_device()
1706 rc = hwi->bundleRelatedCameras(false, sessionId); in close_camera_device()
1723 LOGH("hw device %x, hw %x", dev, pCam->hwi); in close_camera_device()
1729 pCam->hwi = NULL; in close_camera_device()
2154 m_pPhyCamera[phyId].hwi = hw; in cameraDeviceOpen()
2264 QCamera2HardwareInterface *hwi = pCam->hwi; in sendEvtNotify() local
2265 CHECK_HWI_ERROR(hwi); in sendEvtNotify()
2268 return pCam->hwi->sendEvtNotify(msg_type, ext1, ext2); in sendEvtNotify()