Lines Matching refs:hwi
79 #define CHECK_HWI(hwi) \
80 if (!hwi) { \
81 LOGE("Error !! HWI not found!!"); \
85 #define CHECK_HWI_ERROR(hwi) \
86 if (!hwi) { \
87 LOGE("Error !! HWI not found!!"); \
343 QCamera2HardwareInterface *hwi = pCam->hwi;
344 CHECK_HWI_ERROR(hwi);
345 rc = hwi->set_preview_window(pCam->dev, window);
385 // Set callbacks to HWI
390 QCamera2HardwareInterface *hwi = pCam->hwi;
391 CHECK_HWI(hwi);
393 hwi->set_CallBacks(pCam->dev, notify_cb, data_cb, data_cb_timestamp,
400 hwi->setJpegCallBacks(jpeg_data_callback, (void*)pCam);
452 QCamera2HardwareInterface *hwi = pCam->hwi;
453 CHECK_HWI(hwi);
454 hwi->enable_msg_type(pCam->dev, msg_type);
481 QCamera2HardwareInterface *hwi = pCam->hwi;
482 CHECK_HWI(hwi);
483 hwi->disable_msg_type(pCam->dev, msg_type);
511 QCamera2HardwareInterface *hwi = pCam->hwi;
512 CHECK_HWI_ERROR(hwi);
515 return hwi->msg_type_enabled(pCam->dev, msg_type);
548 QCamera2HardwareInterface *hwi = pCam->hwi;
549 CHECK_HWI_ERROR(hwi);
551 rc = hwi->prepare_preview(pCam->dev);
565 QCamera2HardwareInterface *hwi = pCam->hwi;
566 CHECK_HWI_ERROR(hwi);
578 rc = hwi->bundleRelatedCameras(true, sessionId);
592 rc = hwi->bundleRelatedCameras(true, sessionId);
608 QCamera2HardwareInterface *hwi = pCam->hwi;
609 CHECK_HWI_ERROR(hwi);
610 rc = hwi->start_preview(pCam->dev);
642 QCamera2HardwareInterface *hwi = pCam->hwi;
643 CHECK_HWI(hwi);
676 QCamera2HardwareInterface *hwi = pCam->hwi;
677 CHECK_HWI_ERROR(hwi);
680 return hwi->preview_enabled(pCam->dev);
713 QCamera2HardwareInterface *hwi = pCam->hwi;
714 CHECK_HWI_ERROR(hwi);
716 rc = hwi->store_meta_data_in_buffers(pCam->dev, enable);
748 // In cases where recording hint is not set, hwi->start_recording will
756 QCamera2HardwareInterface *hwi = pCam->hwi;
757 CHECK_HWI_ERROR(hwi);
759 rc = hwi->pre_start_recording(pCam->dev);
771 QCamera2HardwareInterface *hwi = pCam->hwi;
772 CHECK_HWI_ERROR(hwi);
774 if (hwi->isPreviewRestartNeeded()) {
775 previewRestartNeeded = hwi->isPreviewRestartNeeded();
786 QCamera2HardwareInterface *hwi = pCam->hwi;
787 CHECK_HWI_ERROR(hwi);
789 rc = hwi->restart_stop_preview(pCam->dev);
801 QCamera2HardwareInterface *hwi = pCam->hwi;
802 CHECK_HWI_ERROR(hwi);
804 rc = hwi->setRecordingHintValue(TRUE);
817 QCamera2HardwareInterface *hwi = pCam->hwi;
818 CHECK_HWI_ERROR(hwi);
820 rc = hwi->restart_start_preview(pCam->dev);
832 QCamera2HardwareInterface *hwi = pCam->hwi;
833 CHECK_HWI_ERROR(hwi);
836 rc = hwi->start_recording(pCam->dev);
872 QCamera2HardwareInterface *hwi = pCam->hwi;
873 CHECK_HWI(hwi);
890 QCamera2HardwareInterface *hwi = pCam->hwi;
891 CHECK_HWI(hwi);
893 rc = hwi->restart_stop_preview(pCam->dev);
905 QCamera2HardwareInterface *hwi = pCam->hwi;
906 CHECK_HWI(hwi);
908 rc = hwi->setRecordingHintValue(FALSE);
921 QCamera2HardwareInterface *hwi = pCam->hwi;
922 CHECK_HWI(hwi);
924 rc = hwi->restart_start_preview(pCam->dev);
956 QCamera2HardwareInterface *hwi = pCam->hwi;
957 CHECK_HWI_ERROR(hwi);
960 return hwi->recording_enabled(pCam->dev);
991 QCamera2HardwareInterface *hwi = pCam->hwi;
992 CHECK_HWI(hwi);
1027 QCamera2HardwareInterface *hwi = pCam->hwi;
1028 CHECK_HWI_ERROR(hwi);
1068 QCamera2HardwareInterface *hwi = pCam->hwi;
1069 CHECK_HWI_ERROR(hwi);
1122 QCamera2HardwareInterface *hwi = pCam->hwi;
1123 CHECK_HWI_ERROR(hwi);
1125 rc = hwi->getJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps,
1136 QCamera2HardwareInterface *hwi = pCam->hwi;
1137 CHECK_HWI_ERROR(hwi);
1139 rc = hwi->setJpegHandleInfo(&gMuxer->mJpegOps, &gMuxer->mJpegMpoOps,
1153 QCamera2HardwareInterface *hwi = pCam->hwi;
1154 CHECK_HWI_ERROR(hwi);
1157 rc = hwi->prepare_snapshot(pCam->dev);
1164 rc = hwi->setMpoComposition(gMuxer->m_bMpoEnabled);
1179 // hwi->take_picture will internally restart the preview.
1186 QCamera2HardwareInterface *hwi = pCam->hwi;
1187 CHECK_HWI_ERROR(hwi);
1191 rc = hwi->pre_take_picture(pCam->dev);
1204 QCamera2HardwareInterface *hwi = pCam->hwi;
1205 CHECK_HWI_ERROR(hwi);
1207 if (hwi->isPreviewRestartNeeded()) {
1208 previewRestartNeeded = hwi->isPreviewRestartNeeded();
1219 QCamera2HardwareInterface *hwi = pCam->hwi;
1220 CHECK_HWI_ERROR(hwi);
1222 rc = hwi->restart_stop_preview(pCam->dev);
1234 QCamera2HardwareInterface *hwi = pCam->hwi;
1235 CHECK_HWI_ERROR(hwi);
1237 rc = hwi->setRecordingHintValue(FALSE);
1249 QCamera2HardwareInterface *hwi = pCam->hwi;
1250 CHECK_HWI_ERROR(hwi);
1252 rc = hwi->restart_start_preview(pCam->dev);
1270 QCamera2HardwareInterface *hwi = pCam->hwi;
1271 CHECK_HWI_ERROR(hwi);
1311 QCamera2HardwareInterface *hwi = pCam->hwi;
1312 CHECK_HWI_ERROR(hwi);
1358 QCamera2HardwareInterface *hwi = pCam->hwi;
1359 CHECK_HWI_ERROR(hwi);
1367 needRestart |= hwi->getNeedRestart();
1375 QCamera2HardwareInterface *hwi = pCam->hwi;
1376 CHECK_HWI_ERROR(hwi);
1391 QCamera2HardwareInterface *hwi = pCam->hwi;
1392 CHECK_HWI_ERROR(hwi);
1407 QCamera2HardwareInterface *hwi = pCam->hwi;
1408 CHECK_HWI_ERROR(hwi);
1454 QCamera2HardwareInterface *hwi = pCam->hwi;
1455 if (!hwi) {
1493 QCamera2HardwareInterface *hwi = pCam->hwi;
1494 CHECK_HWI(hwi);
1497 // Parameters are not used in HWI and hence freed
1533 QCamera2HardwareInterface *hwi = pCam->hwi;
1534 CHECK_HWI_ERROR(hwi);
1550 QCamera2HardwareInterface *hwi = pCam->hwi;
1551 CHECK_HWI_ERROR(hwi);
1601 QCamera2HardwareInterface *hwi = pCam->hwi;
1602 CHECK_HWI(hwi);
1635 QCamera2HardwareInterface *hwi = pCam->hwi;
1636 CHECK_HWI_ERROR(hwi);
1679 QCamera2HardwareInterface *hwi = pCam->hwi;
1680 CHECK_HWI_ERROR(hwi);
1692 rc = hwi->bundleRelatedCameras(false, sessionId);
1706 rc = hwi->bundleRelatedCameras(false, sessionId);
1723 LOGH("hw device %x, hw %x", dev, pCam->hwi);
1729 pCam->hwi = NULL;
2134 // Make Camera HWI aware of its mode
2154 m_pPhyCamera[phyId].hwi = hw;
2241 * DESCRIPTION: send event notify to HWI for error callbacks
2264 QCamera2HardwareInterface *hwi = pCam->hwi;
2265 CHECK_HWI_ERROR(hwi);
2268 return pCam->hwi->sendEvtNotify(msg_type, ext1, ext2);