Lines Matching refs:rc

197     int32_t rc = NO_ERROR;  in applyDelayedMsgs()  local
200 rc = m_parent->enableMsgType(m_DelayedMsgs); in applyDelayedMsgs()
207 return rc; in applyDelayedMsgs()
301 int32_t rc = NO_ERROR; in stateMachine() local
305 rc = procEvtPreviewStoppedState(evt, payload); in stateMachine()
308 rc = procEvtPreviewReadyState(evt, payload); in stateMachine()
311 rc = procEvtPreviewingState(evt, payload); in stateMachine()
314 rc = procEvtPrepareSnapshotState(evt, payload); in stateMachine()
317 rc = procEvtPicTakingState(evt, payload); in stateMachine()
320 rc = procEvtRecordingState(evt, payload); in stateMachine()
323 rc = procEvtVideoPicTakingState(evt, payload); in stateMachine()
326 rc = procEvtPreviewPicTakingState(evt, payload); in stateMachine()
332 return rc; in stateMachine()
352 int32_t rc = NO_ERROR; in procEvtPreviewStoppedState() local
360 rc = m_parent->setPreviewWindow((struct preview_stream_ops *)payload); in procEvtPreviewStoppedState()
361 result.status = rc; in procEvtPreviewStoppedState()
371 rc = m_parent->setCallBacks(setcbs->notify_cb, in procEvtPreviewStoppedState()
376 result.status = rc; in procEvtPreviewStoppedState()
384 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
385 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
388 rc = m_parent->enableMsgType(*((int32_t *)payload)); in procEvtPreviewStoppedState()
390 result.status = rc; in procEvtPreviewStoppedState()
398 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
399 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
402 rc = m_parent->disableMsgType(*((int32_t *)payload)); in procEvtPreviewStoppedState()
404 result.status = rc; in procEvtPreviewStoppedState()
413 result.status = rc; in procEvtPreviewStoppedState()
424 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
425 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
428 rc = m_parent->updateParameters((char*)payload, needRestart); in procEvtPreviewStoppedState()
430 result.status = rc; in procEvtPreviewStoppedState()
439 result.status = rc; in procEvtPreviewStoppedState()
447 rc = m_parent->commitParameterChanges(); in procEvtPreviewStoppedState()
448 result.status = rc; in procEvtPreviewStoppedState()
457 result.status = rc; in procEvtPreviewStoppedState()
465 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
466 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
476 rc = result.params ? NO_ERROR : UNKNOWN_ERROR; in procEvtPreviewStoppedState()
477 result.status = rc; in procEvtPreviewStoppedState()
485 rc = m_parent->putParameters((char*)payload); in procEvtPreviewStoppedState()
486 result.status = rc; in procEvtPreviewStoppedState()
494 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
495 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
498 rc = m_parent->preparePreview(); in procEvtPreviewStoppedState()
500 if (rc == NO_ERROR) { in procEvtPreviewStoppedState()
504 result.status = rc; in procEvtPreviewStoppedState()
512 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
513 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
516 rc = m_parent->preparePreview(); in procEvtPreviewStoppedState()
517 if(rc == NO_ERROR) { in procEvtPreviewStoppedState()
524 rc = m_parent->preparePreview(); in procEvtPreviewStoppedState()
525 if (rc == NO_ERROR) { in procEvtPreviewStoppedState()
527 rc = m_parent->startPreview(); in procEvtPreviewStoppedState()
528 if (rc != NO_ERROR) { in procEvtPreviewStoppedState()
536 result.status = rc; in procEvtPreviewStoppedState()
544 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
545 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
548 rc = m_parent->preparePreview(); in procEvtPreviewStoppedState()
550 if (rc == NO_ERROR) { in procEvtPreviewStoppedState()
552 rc = m_parent->startPreview(); in procEvtPreviewStoppedState()
553 if (rc != NO_ERROR) { in procEvtPreviewStoppedState()
559 result.status = rc; in procEvtPreviewStoppedState()
587 rc = m_parent->release(); in procEvtPreviewStoppedState()
588 result.status = rc; in procEvtPreviewStoppedState()
596 rc = m_parent->storeMetaDataInBuffers(*((int *)payload)); in procEvtPreviewStoppedState()
597 result.status = rc; in procEvtPreviewStoppedState()
605 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
606 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
609 rc = m_parent->dump(*((int *)payload)); in procEvtPreviewStoppedState()
611 result.status = rc; in procEvtPreviewStoppedState()
619 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
620 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
625 rc = m_parent->sendCommand(cmd_payload->cmd, in procEvtPreviewStoppedState()
629 result.status = rc; in procEvtPreviewStoppedState()
646 rc = INVALID_OPERATION; in procEvtPreviewStoppedState()
647 result.status = rc; in procEvtPreviewStoppedState()
666 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
667 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
670 rc = m_parent->cancelAutoFocus(); in procEvtPreviewStoppedState()
672 result.status = rc; in procEvtPreviewStoppedState()
683 rc = m_parent->registerFaceImage(reg_payload->img_ptr, in procEvtPreviewStoppedState()
686 result.status = rc; in procEvtPreviewStoppedState()
695 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
696 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
699 rc = m_parent->updateThermalLevel(payload); in procEvtPreviewStoppedState()
725 result.status = rc; in procEvtPreviewStoppedState()
737 rc = m_parent->waitDeferredWork(m_parent->mParamInitJob); in procEvtPreviewStoppedState()
738 if (NO_ERROR != rc) { in procEvtPreviewStoppedState()
741 rc = m_parent->mParameters.updateFlashMode(internal_evt->led_data); in procEvtPreviewStoppedState()
756 return rc; in procEvtPreviewStoppedState()
776 int32_t rc = NO_ERROR; in procEvtPreviewReadyState() local
787 rc = m_parent->startPreview(); in procEvtPreviewReadyState()
788 if (rc != NO_ERROR) { in procEvtPreviewReadyState()
796 result.status = rc; in procEvtPreviewReadyState()
806 rc = m_parent->setCallBacks(setcbs->notify_cb, in procEvtPreviewReadyState()
811 result.status = rc; in procEvtPreviewReadyState()
819 rc = m_parent->enableMsgType(*((int32_t *)payload)); in procEvtPreviewReadyState()
820 result.status = rc; in procEvtPreviewReadyState()
828 rc = m_parent->disableMsgType(*((int32_t *)payload)); in procEvtPreviewReadyState()
829 result.status = rc; in procEvtPreviewReadyState()
838 result.status = rc; in procEvtPreviewReadyState()
848 rc = m_parent->updateParameters((char*)payload, needRestart); in procEvtPreviewReadyState()
849 result.status = rc; in procEvtPreviewReadyState()
862 result.status = rc; in procEvtPreviewReadyState()
870 rc = m_parent->commitParameterChanges(); in procEvtPreviewReadyState()
871 result.status = rc; in procEvtPreviewReadyState()
880 rc = m_parent->preparePreview(); in procEvtPreviewReadyState()
881 if (rc != NO_ERROR) { in procEvtPreviewReadyState()
885 result.status = rc; in procEvtPreviewReadyState()
894 rc = result.params ? NO_ERROR : UNKNOWN_ERROR; in procEvtPreviewReadyState()
895 result.status = rc; in procEvtPreviewReadyState()
903 rc = m_parent->putParameters((char*)payload); in procEvtPreviewReadyState()
904 result.status = rc; in procEvtPreviewReadyState()
913 rc = NO_ERROR; in procEvtPreviewReadyState()
914 result.status = rc; in procEvtPreviewReadyState()
922 rc = m_parent->startPreview(); in procEvtPreviewReadyState()
923 if (rc != NO_ERROR) { in procEvtPreviewReadyState()
930 rc = NO_ERROR; in procEvtPreviewReadyState()
931 result.status = rc; in procEvtPreviewReadyState()
940 rc = m_parent->startPreview(); in procEvtPreviewReadyState()
941 if (rc != NO_ERROR) { in procEvtPreviewReadyState()
949 rc = NO_ERROR; in procEvtPreviewReadyState()
950 result.status = rc; in procEvtPreviewReadyState()
959 rc = 0; in procEvtPreviewReadyState()
961 result.status = rc; in procEvtPreviewReadyState()
969 rc = NO_ERROR; in procEvtPreviewReadyState()
970 result.status = rc; in procEvtPreviewReadyState()
979 rc = 0; in procEvtPreviewReadyState()
980 result.status = rc; in procEvtPreviewReadyState()
989 rc = m_parent->storeMetaDataInBuffers(*((int *)payload)); in procEvtPreviewReadyState()
990 result.status = rc; in procEvtPreviewReadyState()
998 rc = m_parent->dump(*((int *)payload)); in procEvtPreviewReadyState()
999 result.status = rc; in procEvtPreviewReadyState()
1007 rc = m_parent->autoFocus(); in procEvtPreviewReadyState()
1008 result.status = rc; in procEvtPreviewReadyState()
1016 rc = m_parent->cancelAutoFocus(); in procEvtPreviewReadyState()
1017 result.status = rc; in procEvtPreviewReadyState()
1027 rc = m_parent->sendCommand(cmd_payload->cmd, in procEvtPreviewReadyState()
1030 result.status = rc; in procEvtPreviewReadyState()
1041 rc = m_parent->registerFaceImage(reg_payload->img_ptr, in procEvtPreviewReadyState()
1044 result.status = rc; in procEvtPreviewReadyState()
1064 rc = INVALID_OPERATION; in procEvtPreviewReadyState()
1065 result.status = rc; in procEvtPreviewReadyState()
1093 result.status = rc; in procEvtPreviewReadyState()
1105 rc = m_parent->mParameters.updateFlashMode(internal_evt->led_data); in procEvtPreviewReadyState()
1120 return rc; in procEvtPreviewReadyState()
1140 int32_t rc = NO_ERROR; in procEvtPreviewingState() local
1150 rc = INVALID_OPERATION; in procEvtPreviewingState()
1151 result.status = rc; in procEvtPreviewingState()
1161 rc = m_parent->setCallBacks(setcbs->notify_cb, in procEvtPreviewingState()
1166 result.status = rc; in procEvtPreviewingState()
1180 rc = m_parent->enableMsgType(enable_msgs); in procEvtPreviewingState()
1181 result.status = rc; in procEvtPreviewingState()
1196 rc = m_parent->disableMsgType(disable_msgs); in procEvtPreviewingState()
1197 result.status = rc; in procEvtPreviewingState()
1210 result.status = rc; in procEvtPreviewingState()
1220 rc = m_parent->updateParameters((char*)payload, needRestart); in procEvtPreviewingState()
1221 result.status = rc; in procEvtPreviewingState()
1231 rc = m_parent->stopPreview(); in procEvtPreviewingState()
1234 result.status = rc; in procEvtPreviewingState()
1242 rc = m_parent->commitParameterChanges(); in procEvtPreviewingState()
1243 result.status = rc; in procEvtPreviewingState()
1252 rc = m_parent->preparePreview(); in procEvtPreviewingState()
1253 if (rc == NO_ERROR) { in procEvtPreviewingState()
1255 rc = m_parent->startPreview(); in procEvtPreviewingState()
1256 if (rc != NO_ERROR) { in procEvtPreviewingState()
1259 if (rc != NO_ERROR) { in procEvtPreviewingState()
1264 result.status = rc; in procEvtPreviewingState()
1273 rc = result.params ? NO_ERROR : UNKNOWN_ERROR; in procEvtPreviewingState()
1274 result.status = rc; in procEvtPreviewingState()
1282 rc = m_parent->putParameters((char*)payload); in procEvtPreviewingState()
1283 result.status = rc; in procEvtPreviewingState()
1293 rc = NO_ERROR; in procEvtPreviewingState()
1294 result.status = rc; in procEvtPreviewingState()
1306 rc = NO_ERROR; in procEvtPreviewingState()
1307 result.status = rc; in procEvtPreviewingState()
1315 rc = m_parent->stopPreview(); in procEvtPreviewingState()
1318 result.status = rc; in procEvtPreviewingState()
1327 rc = NO_ERROR; in procEvtPreviewingState()
1328 result.status = rc; in procEvtPreviewingState()
1337 rc = NO_ERROR; in procEvtPreviewingState()
1338 result.status = rc; in procEvtPreviewingState()
1347 rc = m_parent->storeMetaDataInBuffers(*((int *)payload)); in procEvtPreviewingState()
1348 result.status = rc; in procEvtPreviewingState()
1356 rc = m_parent->dump(*((int *)payload)); in procEvtPreviewingState()
1357 result.status = rc; in procEvtPreviewingState()
1365 rc = m_parent->autoFocus(); in procEvtPreviewingState()
1366 result.status = rc; in procEvtPreviewingState()
1374 rc = m_parent->cancelAutoFocus(); in procEvtPreviewingState()
1375 result.status = rc; in procEvtPreviewingState()
1383 rc = m_parent->preStartRecording(); in procEvtPreviewingState()
1384 result.status = rc; in procEvtPreviewingState()
1392 rc = m_parent->startRecording(); in procEvtPreviewingState()
1393 if (rc == NO_ERROR) { in procEvtPreviewingState()
1398 result.status = rc; in procEvtPreviewingState()
1406 rc = m_parent->prepareHardwareForSnapshot(FALSE); in procEvtPreviewingState()
1407 if (rc == NO_ERROR) { in procEvtPreviewingState()
1415 rc); in procEvtPreviewingState()
1417 result.status = rc; in procEvtPreviewingState()
1426 rc = m_parent->preTakePicture(); in procEvtPreviewingState()
1427 result.status = rc; in procEvtPreviewingState()
1440 rc = m_parent->preparePreview(); in procEvtPreviewingState()
1441 if (rc == NO_ERROR) { in procEvtPreviewingState()
1442 rc = m_parent->startPreview(); in procEvtPreviewingState()
1443 if (rc != NO_ERROR) { in procEvtPreviewingState()
1463 rc = m_parent->takePicture(); in procEvtPreviewingState()
1464 if (rc != NO_ERROR) { in procEvtPreviewingState()
1469 if (!(m_parent->isRetroPicture()) || (rc != NO_ERROR)) { in procEvtPreviewingState()
1472 result.status = rc; in procEvtPreviewingState()
1479 rc = m_parent->takePicture(); in procEvtPreviewingState()
1480 if (rc != NO_ERROR) { in procEvtPreviewingState()
1499 result.status = rc; in procEvtPreviewingState()
1510 rc = m_parent->sendCommand(cmd_payload->cmd, in procEvtPreviewingState()
1527 rc = m_parent->preparePreview(); in procEvtPreviewingState()
1528 if (rc == NO_ERROR) { in procEvtPreviewingState()
1530 rc = m_parent->startPreview(); in procEvtPreviewingState()
1531 if (rc != NO_ERROR) { in procEvtPreviewingState()
1538 result.status = rc; in procEvtPreviewingState()
1553 rc = m_parent->preparePreview(); in procEvtPreviewingState()
1554 if (rc == NO_ERROR) { in procEvtPreviewingState()
1555 rc = m_parent->startPreview(); in procEvtPreviewingState()
1556 if (rc != NO_ERROR) { in procEvtPreviewingState()
1562 result.status = rc; in procEvtPreviewingState()
1573 rc = m_parent->registerFaceImage(reg_payload->img_ptr, in procEvtPreviewingState()
1576 result.status = rc; in procEvtPreviewingState()
1589 rc = INVALID_OPERATION; in procEvtPreviewingState()
1590 result.status = rc; in procEvtPreviewingState()
1602 rc = m_parent->processAutoFocusEvent(internal_evt->focus_data); in procEvtPreviewingState()
1607 rc = m_parent->processFaceDetectionResult(&internal_evt->faces_data); in procEvtPreviewingState()
1610 rc = m_parent->processHistogramStats(internal_evt->stats_data); in procEvtPreviewingState()
1613 rc = m_parent->processZoomEvent(internal_evt->crop_data); in procEvtPreviewingState()
1616 rc = m_parent->processASDUpdate(internal_evt->asd_data); in procEvtPreviewingState()
1619 rc = m_parent->mParameters.updateFlashMode(internal_evt->led_data); in procEvtPreviewingState()
1622 rc = m_parent->transAwbMetaToParams(internal_evt->awb_data); in procEvtPreviewingState()
1625 rc = m_parent->processAEInfo(internal_evt->ae_data); in procEvtPreviewingState()
1628 rc = m_parent->processFocusPositionInfo(internal_evt->focus_pos); in procEvtPreviewingState()
1631 rc = m_parent->processHDRData(internal_evt->hdr_data); in procEvtPreviewingState()
1634 rc = m_parent->processRetroAECUnlock(); in procEvtPreviewingState()
1637 rc = m_parent->processZSLCaptureDone(); in procEvtPreviewingState()
1666 rc = m_parent->updateThermalLevel(payload); in procEvtPreviewingState()
1673 result.status = rc; in procEvtPreviewingState()
1682 result.status = rc; in procEvtPreviewingState()
1690 rc = m_parent->preparePreview(); in procEvtPreviewingState()
1691 if (rc == NO_ERROR) { in procEvtPreviewingState()
1692 rc = m_parent->startPreview(); in procEvtPreviewingState()
1694 result.status = rc; in procEvtPreviewingState()
1706 return rc; in procEvtPreviewingState()
1726 int32_t rc = NO_ERROR; in procEvtPrepareSnapshotState() local
1767 rc = INVALID_OPERATION; in procEvtPrepareSnapshotState()
1768 result.status = rc; in procEvtPrepareSnapshotState()
1780 rc = m_parent->processAutoFocusEvent(internal_evt->focus_data); in procEvtPrepareSnapshotState()
1792 rc = m_parent->processFaceDetectionResult(&internal_evt->faces_data); in procEvtPrepareSnapshotState()
1795 rc = m_parent->processHistogramStats(internal_evt->stats_data); in procEvtPrepareSnapshotState()
1798 rc = m_parent->processZoomEvent(internal_evt->crop_data); in procEvtPrepareSnapshotState()
1801 rc = m_parent->processASDUpdate(internal_evt->asd_data); in procEvtPrepareSnapshotState()
1807 rc = m_parent->transAwbMetaToParams(internal_evt->awb_data); in procEvtPrepareSnapshotState()
1810 rc = m_parent->processAEInfo(internal_evt->ae_data); in procEvtPrepareSnapshotState()
1813 rc = m_parent->processFocusPositionInfo(internal_evt->focus_pos); in procEvtPrepareSnapshotState()
1816 rc = m_parent->processHDRData(internal_evt->hdr_data); in procEvtPrepareSnapshotState()
1819 rc = m_parent->processRetroAECUnlock(); in procEvtPrepareSnapshotState()
1822 rc = m_parent->processZSLCaptureDone(); in procEvtPrepareSnapshotState()
1839 result.status = rc; in procEvtPrepareSnapshotState()
1844 result.status = rc; in procEvtPrepareSnapshotState()
1865 result.status = rc; in procEvtPrepareSnapshotState()
1873 rc = m_parent->updateThermalLevel(payload); in procEvtPrepareSnapshotState()
1882 return rc; in procEvtPrepareSnapshotState()
1902 int32_t rc = NO_ERROR; in procEvtPicTakingState() local
1912 rc = INVALID_OPERATION; in procEvtPicTakingState()
1913 result.status = rc; in procEvtPicTakingState()
1923 rc = m_parent->setCallBacks(setcbs->notify_cb, in procEvtPicTakingState()
1928 result.status = rc; in procEvtPicTakingState()
1936 rc = m_parent->enableMsgType(*((int32_t *)payload)); in procEvtPicTakingState()
1937 result.status = rc; in procEvtPicTakingState()
1945 rc = m_parent->disableMsgType(*((int32_t *)payload)); in procEvtPicTakingState()
1946 result.status = rc; in procEvtPicTakingState()
1955 result.status = rc; in procEvtPicTakingState()
1965 rc = m_parent->updateParameters((char*)payload, needRestart); in procEvtPicTakingState()
1966 result.status = rc; in procEvtPicTakingState()
1974 result.status = rc; in procEvtPicTakingState()
1982 rc = m_parent->commitParameterChanges(); in procEvtPicTakingState()
1983 result.status = rc; in procEvtPicTakingState()
1992 result.status = rc; in procEvtPicTakingState()
2001 rc = result.params ? NO_ERROR : UNKNOWN_ERROR; in procEvtPicTakingState()
2002 result.status = rc; in procEvtPicTakingState()
2010 rc = m_parent->putParameters((char*)payload); in procEvtPicTakingState()
2011 result.status = rc; in procEvtPicTakingState()
2020 rc = m_parent->cancelPicture(); in procEvtPicTakingState()
2023 result.status = rc; in procEvtPicTakingState()
2031 rc = NO_ERROR; in procEvtPicTakingState()
2032 result.status = rc; in procEvtPicTakingState()
2041 rc = NO_ERROR; in procEvtPicTakingState()
2042 result.status = rc; in procEvtPicTakingState()
2051 rc = m_parent->storeMetaDataInBuffers(*((int *)payload)); in procEvtPicTakingState()
2052 result.status = rc; in procEvtPicTakingState()
2060 rc = m_parent->dump(*((int *)payload)); in procEvtPicTakingState()
2061 result.status = rc; in procEvtPicTakingState()
2069 rc = m_parent->autoFocus(); in procEvtPicTakingState()
2070 result.status = rc; in procEvtPicTakingState()
2078 rc = m_parent->cancelAutoFocus(); in procEvtPicTakingState()
2079 result.status = rc; in procEvtPicTakingState()
2089 rc = m_parent->sendCommand(cmd_payload->cmd, in procEvtPicTakingState()
2098 result.status = rc; in procEvtPicTakingState()
2106 rc = m_parent->cancelPicture(); in procEvtPicTakingState()
2108 result.status = rc; in procEvtPicTakingState()
2119 rc = m_parent->registerFaceImage(reg_payload->img_ptr, in procEvtPicTakingState()
2122 result.status = rc; in procEvtPicTakingState()
2133 rc = NO_ERROR; in procEvtPicTakingState()
2136 rc = INVALID_OPERATION; in procEvtPicTakingState()
2139 result.status = rc; in procEvtPicTakingState()
2148 rc = m_parent->longShot(); in procEvtPicTakingState()
2151 rc = INVALID_OPERATION; in procEvtPicTakingState()
2154 result.status = rc; in procEvtPicTakingState()
2173 rc = INVALID_OPERATION; in procEvtPicTakingState()
2174 result.status = rc; in procEvtPicTakingState()
2186 rc = m_parent->processAutoFocusEvent(internal_evt->focus_data); in procEvtPicTakingState()
2195 rc = m_parent->processZoomEvent(internal_evt->crop_data); in procEvtPicTakingState()
2198 rc = m_parent->processASDUpdate(internal_evt->asd_data); in procEvtPicTakingState()
2204 rc = m_parent->transAwbMetaToParams(internal_evt->awb_data); in procEvtPicTakingState()
2207 rc = m_parent->processAEInfo(internal_evt->ae_data); in procEvtPicTakingState()
2210 rc = m_parent->processFocusPositionInfo(internal_evt->focus_pos); in procEvtPicTakingState()
2213 rc = m_parent->processHDRData(internal_evt->hdr_data); in procEvtPicTakingState()
2216 rc = m_parent->processRetroAECUnlock(); in procEvtPicTakingState()
2219 rc = m_parent->processZSLCaptureDone(); in procEvtPicTakingState()
2234 result.status = rc; in procEvtPicTakingState()
2239 result.status = rc; in procEvtPicTakingState()
2272 rc = m_parent->processJpegNotify(jpeg_job); in procEvtPicTakingState()
2278 rc = m_parent->stopCaptureChannel(restartPreview); in procEvtPicTakingState()
2280 if (restartPreview && (NO_ERROR == rc)) { in procEvtPicTakingState()
2281 rc = m_parent->preparePreview(); in procEvtPicTakingState()
2282 if (NO_ERROR == rc) { in procEvtPicTakingState()
2285 rc = m_parent->startPreview(); in procEvtPicTakingState()
2289 result.status = rc; in procEvtPicTakingState()
2297 rc = m_parent->cancelPicture(); in procEvtPicTakingState()
2305 rc = m_parent->preparePreview(); in procEvtPicTakingState()
2306 if (NO_ERROR == rc) { in procEvtPicTakingState()
2309 rc = m_parent->startPreview(); in procEvtPicTakingState()
2317 result.status = rc; in procEvtPicTakingState()
2325 rc = m_parent->updateThermalLevel(payload); in procEvtPicTakingState()
2333 return rc; in procEvtPicTakingState()
2353 int32_t rc = NO_ERROR; in procEvtRecordingState() local
2366 rc = NO_ERROR; in procEvtRecordingState()
2367 result.status = rc; in procEvtRecordingState()
2377 rc = m_parent->setCallBacks(setcbs->notify_cb, in procEvtRecordingState()
2382 result.status = rc; in procEvtRecordingState()
2390 rc = m_parent->enableMsgType(*((int32_t *)payload)); in procEvtRecordingState()
2391 result.status = rc; in procEvtRecordingState()
2399 rc = m_parent->disableMsgType(*((int32_t *)payload)); in procEvtRecordingState()
2400 result.status = rc; in procEvtRecordingState()
2409 result.status = rc; in procEvtRecordingState()
2419 rc = m_parent->updateParameters((char*)payload, needRestart); in procEvtRecordingState()
2420 if (rc == NO_ERROR) { in procEvtRecordingState()
2424 rc = BAD_VALUE; in procEvtRecordingState()
2427 if (rc != NO_ERROR) { in procEvtRecordingState()
2430 result.status = rc; in procEvtRecordingState()
2438 rc = m_parent->commitParameterChanges(); in procEvtRecordingState()
2439 result.status = rc; in procEvtRecordingState()
2449 rc = INVALID_OPERATION; in procEvtRecordingState()
2450 result.status = rc; in procEvtRecordingState()
2459 rc = result.params ? NO_ERROR : UNKNOWN_ERROR; in procEvtRecordingState()
2460 result.status = rc; in procEvtRecordingState()
2468 rc = m_parent->putParameters((char*)payload); in procEvtRecordingState()
2469 result.status = rc; in procEvtRecordingState()
2477 rc = NO_ERROR; in procEvtRecordingState()
2478 result.status = rc; in procEvtRecordingState()
2487 rc = NO_ERROR; in procEvtRecordingState()
2488 result.status = rc; in procEvtRecordingState()
2497 rc = m_parent->storeMetaDataInBuffers(*((int *)payload)); in procEvtRecordingState()
2498 result.status = rc; in procEvtRecordingState()
2506 rc = m_parent->dump(*((int *)payload)); in procEvtRecordingState()
2507 result.status = rc; in procEvtRecordingState()
2515 rc = m_parent->autoFocus(); in procEvtRecordingState()
2516 result.status = rc; in procEvtRecordingState()
2524 rc = m_parent->cancelAutoFocus(); in procEvtRecordingState()
2525 result.status = rc; in procEvtRecordingState()
2535 rc = m_parent->sendCommand(cmd_payload->cmd, in procEvtRecordingState()
2538 result.status = rc; in procEvtRecordingState()
2547 rc = NO_ERROR; in procEvtRecordingState()
2548 result.status = rc; in procEvtRecordingState()
2557 rc = m_parent->takeLiveSnapshot(); in procEvtRecordingState()
2558 if (rc != NO_ERROR) { in procEvtRecordingState()
2562 result.status = rc; in procEvtRecordingState()
2575 rc = 0; in procEvtRecordingState()
2576 result.status = rc; in procEvtRecordingState()
2584 rc = m_parent->stopRecording(); in procEvtRecordingState()
2586 result.status = rc; in procEvtRecordingState()
2594 rc = m_parent->stopRecording(); in procEvtRecordingState()
2597 rc = m_parent->stopPreview(); in procEvtRecordingState()
2600 result.status = rc; in procEvtRecordingState()
2608 rc = m_parent->releaseRecordingFrame((const void *)payload); in procEvtRecordingState()
2609 result.status = rc; in procEvtRecordingState()
2620 rc = m_parent->registerFaceImage(reg_payload->img_ptr, in procEvtRecordingState()
2623 result.status = rc; in procEvtRecordingState()
2644 rc = INVALID_OPERATION; in procEvtRecordingState()
2645 result.status = rc; in procEvtRecordingState()
2657 rc = m_parent->processAutoFocusEvent(internal_evt->focus_data); in procEvtRecordingState()
2662 rc = m_parent->processFaceDetectionResult(&internal_evt->faces_data); in procEvtRecordingState()
2665 rc = m_parent->processHistogramStats(internal_evt->stats_data); in procEvtRecordingState()
2668 rc = m_parent->processZoomEvent(internal_evt->crop_data); in procEvtRecordingState()
2671 rc = m_parent->processASDUpdate(internal_evt->asd_data); in procEvtRecordingState()
2677 rc = m_parent->transAwbMetaToParams(internal_evt->awb_data); in procEvtRecordingState()
2680 rc = m_parent->processAEInfo(internal_evt->ae_data); in procEvtRecordingState()
2683 rc = m_parent->processFocusPositionInfo(internal_evt->focus_pos); in procEvtRecordingState()
2686 rc = m_parent->processHDRData(internal_evt->hdr_data); in procEvtRecordingState()
2689 rc = m_parent->processRetroAECUnlock(); in procEvtRecordingState()
2692 rc = m_parent->processZSLCaptureDone(); in procEvtRecordingState()
2719 rc = m_parent->updateThermalLevel(payload); in procEvtRecordingState()
2726 result.status = rc; in procEvtRecordingState()
2738 return rc; in procEvtRecordingState()
2758 int32_t rc = NO_ERROR; in procEvtVideoPicTakingState() local
2768 rc = INVALID_OPERATION; in procEvtVideoPicTakingState()
2769 result.status = rc; in procEvtVideoPicTakingState()
2779 rc = m_parent->setCallBacks(setcbs->notify_cb, in procEvtVideoPicTakingState()
2784 result.status = rc; in procEvtVideoPicTakingState()
2792 rc = m_parent->enableMsgType(*((int32_t *)payload)); in procEvtVideoPicTakingState()
2793 result.status = rc; in procEvtVideoPicTakingState()
2801 rc = m_parent->disableMsgType(*((int32_t *)payload)); in procEvtVideoPicTakingState()
2802 result.status = rc; in procEvtVideoPicTakingState()
2811 result.status = rc; in procEvtVideoPicTakingState()
2821 rc = m_parent->updateParameters((char*)payload, needRestart); in procEvtVideoPicTakingState()
2822 if (rc == NO_ERROR) { in procEvtVideoPicTakingState()
2826 rc = BAD_VALUE; in procEvtVideoPicTakingState()
2829 if (rc != NO_ERROR) { in procEvtVideoPicTakingState()
2832 result.status = rc; in procEvtVideoPicTakingState()
2840 rc = m_parent->commitParameterChanges(); in procEvtVideoPicTakingState()
2841 result.status = rc; in procEvtVideoPicTakingState()
2851 rc = INVALID_OPERATION; in procEvtVideoPicTakingState()
2852 result.status = rc; in procEvtVideoPicTakingState()
2861 rc = result.params ? NO_ERROR : UNKNOWN_ERROR; in procEvtVideoPicTakingState()
2862 result.status = rc; in procEvtVideoPicTakingState()
2870 rc = m_parent->putParameters((char*)payload); in procEvtVideoPicTakingState()
2871 result.status = rc; in procEvtVideoPicTakingState()
2879 rc = NO_ERROR; in procEvtVideoPicTakingState()
2880 result.status = rc; in procEvtVideoPicTakingState()
2889 rc = NO_ERROR; in procEvtVideoPicTakingState()
2890 result.status = rc; in procEvtVideoPicTakingState()
2899 rc = m_parent->storeMetaDataInBuffers(*((int *)payload)); in procEvtVideoPicTakingState()
2900 result.status = rc; in procEvtVideoPicTakingState()
2908 rc = m_parent->dump(*((int *)payload)); in procEvtVideoPicTakingState()
2909 result.status = rc; in procEvtVideoPicTakingState()
2917 rc = m_parent->autoFocus(); in procEvtVideoPicTakingState()
2918 result.status = rc; in procEvtVideoPicTakingState()
2926 rc = m_parent->cancelAutoFocus(); in procEvtVideoPicTakingState()
2927 result.status = rc; in procEvtVideoPicTakingState()
2937 rc = m_parent->sendCommand(cmd_payload->cmd, in procEvtVideoPicTakingState()
2940 result.status = rc; in procEvtVideoPicTakingState()
2948 rc = m_parent->cancelLiveSnapshot(); in procEvtVideoPicTakingState()
2951 rc = m_parent->stopRecording(); in procEvtVideoPicTakingState()
2954 result.status = rc; in procEvtVideoPicTakingState()
2962 rc = m_parent->releaseRecordingFrame((const void *)payload); in procEvtVideoPicTakingState()
2963 result.status = rc; in procEvtVideoPicTakingState()
2971 rc = m_parent->cancelLiveSnapshot(); in procEvtVideoPicTakingState()
2973 result.status = rc; in procEvtVideoPicTakingState()
2984 rc = m_parent->registerFaceImage(reg_payload->img_ptr, in procEvtVideoPicTakingState()
2987 result.status = rc; in procEvtVideoPicTakingState()
2996 rc = m_parent->cancelLiveSnapshot(); in procEvtVideoPicTakingState()
2999 rc = m_parent->stopRecording(); in procEvtVideoPicTakingState()
3002 rc = m_parent->stopPreview(); in procEvtVideoPicTakingState()
3005 result.status = rc; in procEvtVideoPicTakingState()
3024 rc = INVALID_OPERATION; in procEvtVideoPicTakingState()
3025 result.status = rc; in procEvtVideoPicTakingState()
3037 rc = m_parent->processAutoFocusEvent(internal_evt->focus_data); in procEvtVideoPicTakingState()
3042 rc = m_parent->processFaceDetectionResult(&internal_evt->faces_data); in procEvtVideoPicTakingState()
3045 rc = m_parent->processHistogramStats(internal_evt->stats_data); in procEvtVideoPicTakingState()
3048 rc = m_parent->processZoomEvent(internal_evt->crop_data); in procEvtVideoPicTakingState()
3051 rc = m_parent->processASDUpdate(internal_evt->asd_data); in procEvtVideoPicTakingState()
3057 rc = m_parent->transAwbMetaToParams(internal_evt->awb_data); in procEvtVideoPicTakingState()
3060 rc = m_parent->processAEInfo(internal_evt->ae_data); in procEvtVideoPicTakingState()
3063 rc = m_parent->processFocusPositionInfo(internal_evt->focus_pos); in procEvtVideoPicTakingState()
3066 rc = m_parent->processHDRData(internal_evt->hdr_data); in procEvtVideoPicTakingState()
3069 rc = m_parent->processRetroAECUnlock(); in procEvtVideoPicTakingState()
3072 rc = m_parent->processZSLCaptureDone(); in procEvtVideoPicTakingState()
3101 rc = m_parent->processJpegNotify(jpeg_job); in procEvtVideoPicTakingState()
3106 rc = m_parent->cancelLiveSnapshot(); in procEvtVideoPicTakingState()
3108 result.status = rc; in procEvtVideoPicTakingState()
3116 rc = m_parent->updateThermalLevel(payload); in procEvtVideoPicTakingState()
3124 return rc; in procEvtVideoPicTakingState()
3144 int32_t rc = NO_ERROR; in procEvtPreviewPicTakingState() local
3154 rc = m_parent->setCallBacks(setcbs->notify_cb, in procEvtPreviewPicTakingState()
3159 result.status = rc; in procEvtPreviewPicTakingState()
3167 rc = m_parent->enableMsgType(*((int32_t *)payload)); in procEvtPreviewPicTakingState()
3168 result.status = rc; in procEvtPreviewPicTakingState()
3176 rc = m_parent->disableMsgType(*((int32_t *)payload)); in procEvtPreviewPicTakingState()
3177 result.status = rc; in procEvtPreviewPicTakingState()
3186 result.status = rc; in procEvtPreviewPicTakingState()
3196 rc = m_parent->updateParameters((char*)payload, needRestart); in procEvtPreviewPicTakingState()
3197 result.status = rc; in procEvtPreviewPicTakingState()
3208 rc = m_parent->stopPreview(); in procEvtPreviewPicTakingState()
3211 result.status = rc; in procEvtPreviewPicTakingState()
3220 rc = m_parent->commitParameterChanges(); in procEvtPreviewPicTakingState()
3221 result.status = rc; in procEvtPreviewPicTakingState()
3230 rc = m_parent->preparePreview(); in procEvtPreviewPicTakingState()
3231 if (rc == NO_ERROR) { in procEvtPreviewPicTakingState()
3233 rc = m_parent->startPreview(); in procEvtPreviewPicTakingState()
3234 if (rc != NO_ERROR) { in procEvtPreviewPicTakingState()
3238 if (rc != NO_ERROR) { in procEvtPreviewPicTakingState()
3242 result.status = rc; in procEvtPreviewPicTakingState()
3251 rc = result.params ? NO_ERROR : UNKNOWN_ERROR; in procEvtPreviewPicTakingState()
3252 result.status = rc; in procEvtPreviewPicTakingState()
3260 rc = m_parent->putParameters((char*)payload); in procEvtPreviewPicTakingState()
3261 result.status = rc; in procEvtPreviewPicTakingState()
3269 rc = NO_ERROR; in procEvtPreviewPicTakingState()
3270 result.status = rc; in procEvtPreviewPicTakingState()
3279 rc = NO_ERROR; in procEvtPreviewPicTakingState()
3280 result.status = rc; in procEvtPreviewPicTakingState()
3289 rc = m_parent->storeMetaDataInBuffers(*((int *)payload)); in procEvtPreviewPicTakingState()
3290 result.status = rc; in procEvtPreviewPicTakingState()
3298 rc = m_parent->dump(*((int *)payload)); in procEvtPreviewPicTakingState()
3299 result.status = rc; in procEvtPreviewPicTakingState()
3307 rc = m_parent->autoFocus(); in procEvtPreviewPicTakingState()
3308 result.status = rc; in procEvtPreviewPicTakingState()
3316 rc = m_parent->cancelAutoFocus(); in procEvtPreviewPicTakingState()
3317 result.status = rc; in procEvtPreviewPicTakingState()
3327 rc = m_parent->sendCommand(cmd_payload->cmd, in procEvtPreviewPicTakingState()
3336 result.status = rc; in procEvtPreviewPicTakingState()
3344 rc = m_parent->releaseRecordingFrame((const void *)payload); in procEvtPreviewPicTakingState()
3345 result.status = rc; in procEvtPreviewPicTakingState()
3354 rc = m_parent->cancelPicture(); in procEvtPreviewPicTakingState()
3356 rc = m_parent->cancelLiveSnapshot(); in procEvtPreviewPicTakingState()
3359 result.status = rc; in procEvtPreviewPicTakingState()
3369 rc = m_parent->cancelPicture(); in procEvtPreviewPicTakingState()
3373 rc = m_parent->cancelPicture(); in procEvtPreviewPicTakingState()
3375 rc = m_parent->cancelLiveSnapshot(); in procEvtPreviewPicTakingState()
3381 result.status = rc; in procEvtPreviewPicTakingState()
3391 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3394 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3396 rc = m_parent->preStartRecording(); in procEvtPreviewPicTakingState()
3398 result.status = rc; in procEvtPreviewPicTakingState()
3409 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3413 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3415 rc = m_parent->startRecording(); in procEvtPreviewPicTakingState()
3416 if (rc == NO_ERROR) { in procEvtPreviewPicTakingState()
3420 result.status = rc; in procEvtPreviewPicTakingState()
3431 rc = m_parent->registerFaceImage(reg_payload->img_ptr, in procEvtPreviewPicTakingState()
3434 result.status = rc; in procEvtPreviewPicTakingState()
3445 rc = NO_ERROR; in procEvtPreviewPicTakingState()
3448 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3451 result.status = rc; in procEvtPreviewPicTakingState()
3460 rc = m_parent->longShot(); in procEvtPreviewPicTakingState()
3463 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3466 result.status = rc; in procEvtPreviewPicTakingState()
3478 rc = m_parent->prepareHardwareForSnapshot(FALSE); in procEvtPreviewPicTakingState()
3479 if (rc != NO_ERROR) { in procEvtPreviewPicTakingState()
3481 rc); in procEvtPreviewPicTakingState()
3482 result.status = rc; in procEvtPreviewPicTakingState()
3491 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3492 result.status = rc; in procEvtPreviewPicTakingState()
3507 rc = INVALID_OPERATION; in procEvtPreviewPicTakingState()
3508 result.status = rc; in procEvtPreviewPicTakingState()
3520 rc = m_parent->processAutoFocusEvent(internal_evt->focus_data); in procEvtPreviewPicTakingState()
3538 rc = m_parent->processFaceDetectionResult(&internal_evt->faces_data); in procEvtPreviewPicTakingState()
3554 rc = m_parent->processHistogramStats(internal_evt->stats_data); in procEvtPreviewPicTakingState()
3557 rc = m_parent->processZoomEvent(internal_evt->crop_data); in procEvtPreviewPicTakingState()
3560 rc = m_parent->processASDUpdate(internal_evt->asd_data); in procEvtPreviewPicTakingState()
3566 rc = m_parent->transAwbMetaToParams(internal_evt->awb_data); in procEvtPreviewPicTakingState()
3569 rc = m_parent->processAEInfo(internal_evt->ae_data); in procEvtPreviewPicTakingState()
3572 rc = m_parent->processFocusPositionInfo(internal_evt->focus_pos); in procEvtPreviewPicTakingState()
3575 rc = m_parent->processHDRData(internal_evt->hdr_data); in procEvtPreviewPicTakingState()
3578 rc = m_parent->processRetroAECUnlock(); in procEvtPreviewPicTakingState()
3581 rc = m_parent->processZSLCaptureDone(); in procEvtPreviewPicTakingState()
3596 result.status = rc; in procEvtPreviewPicTakingState()
3601 result.status = rc; in procEvtPreviewPicTakingState()
3635 rc = m_parent->processJpegNotify(jpeg_job); in procEvtPreviewPicTakingState()
3642 rc = m_parent->cancelPicture(); in procEvtPreviewPicTakingState()
3644 rc = m_parent->cancelLiveSnapshot(); in procEvtPreviewPicTakingState()
3648 result.status = rc; in procEvtPreviewPicTakingState()
3655 result.status = rc; in procEvtPreviewPicTakingState()
3663 rc = m_parent->updateThermalLevel(payload); in procEvtPreviewPicTakingState()
3669 result.status = rc; in procEvtPreviewPicTakingState()
3677 rc = m_parent->preparePreview(); in procEvtPreviewPicTakingState()
3678 if (rc == NO_ERROR) { in procEvtPreviewPicTakingState()
3679 rc = m_parent->startPreview(); in procEvtPreviewPicTakingState()
3681 result.status = rc; in procEvtPreviewPicTakingState()
3692 return rc; in procEvtPreviewPicTakingState()