Lines Matching refs:pme
74 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in zsl_channel_cb() local
76 if (pme == NULL || in zsl_channel_cb()
77 pme->mCameraHandle == 0 || in zsl_channel_cb()
78 (!validate_handle(pme->mCameraHandle->camera_handle, in zsl_channel_cb()
84 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_ZSL]; in zsl_channel_cb()
92 if(pme->mParameters.isSceneSelectionEnabled() && in zsl_channel_cb()
93 !pme->m_stateMachine.isCaptureRunning()) { in zsl_channel_cb()
94 pme->selectScene(pChannel, recvd_frame); in zsl_channel_cb()
100 recvd_frame->bUnlockAEC, pme->m_bLedAfAecLock); in zsl_channel_cb()
101 if(recvd_frame->bUnlockAEC && pme->m_bLedAfAecLock) { in zsl_channel_cb()
108 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
130 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
143 pme->captureDone(); in zsl_channel_cb()
169 pme->dumpFrameToFile(pStream, raw_frame, QCAMERA_DUMP_FRM_RAW); in zsl_channel_cb()
181 pme->dumpFrameToFile(pStream, yuv_frame, QCAMERA_DUMP_FRM_INPUT_REPROCESS); in zsl_channel_cb()
188 if(pme->needFDMetadata(QCAMERA_CH_TYPE_ZSL)){ in zsl_channel_cb()
206 pme->fillFacesData(faces_data, pMetaData); in zsl_channel_cb()
216 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
240 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "ZSL_Snapshot"); in zsl_channel_cb()
268 if ((NO_ERROR != pme->waitDeferredWork(pme->mReprocJob)) || in zsl_channel_cb()
269 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in zsl_channel_cb()
387 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in capture_channel_cb_routine() local
388 if (pme == NULL || in capture_channel_cb_routine()
389 pme->mCameraHandle == NULL || in capture_channel_cb_routine()
390 !validate_handle(pme->mCameraHandle->camera_handle, in capture_channel_cb_routine()
396 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_CAPTURE]; in capture_channel_cb_routine()
424 pme->dumpFrameToFile(pStream, yuv_frame, QCAMERA_DUMP_FRM_INPUT_REPROCESS); in capture_channel_cb_routine()
442 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "Snapshot"); in capture_channel_cb_routine()
452 if ((NO_ERROR != pme->waitDeferredWork(pme->mReprocJob)) || in capture_channel_cb_routine()
453 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in capture_channel_cb_routine()
489 int32_t rc = pme->registerFaceImage(main_frame->buffer, &config, faceId); in capture_channel_cb_routine()
646 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postproc_channel_cb_routine() local
648 if (pme == NULL || in postproc_channel_cb_routine()
649 pme->mCameraHandle == 0 || in postproc_channel_cb_routine()
650 !validate_handle(pme->mCameraHandle->camera_handle, in postproc_channel_cb_routine()
669 pme->waitDeferredWork(pme->mJpegJob); in postproc_channel_cb_routine()
672 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
702 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in synchronous_stream_cb_routine() local
704 if (pme == NULL) { in synchronous_stream_cb_routine()
723 if(pme->m_bPreviewStarted) { in synchronous_stream_cb_routine()
726 pme->m_perfLockMgr.releasePerfLock(PERF_LOCK_START_PREVIEW); in synchronous_stream_cb_routine()
727 pme->m_perfLockMgr.releasePerfLock(PERF_LOCK_OPEN_CAMERA); in synchronous_stream_cb_routine()
728 pme->m_bPreviewStarted = false; in synchronous_stream_cb_routine()
731 pme->m_perfLockMgr.acquirePerfLock(PERF_LOCK_POWERHINT_PREVIEW, 0); in synchronous_stream_cb_routine()
735 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in synchronous_stream_cb_routine()
736 pthread_mutex_lock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
737 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
739 pthread_mutex_unlock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
744 if (pme->needDebugFps()) { in synchronous_stream_cb_routine()
745 pme->debugShowPreviewFPS(); in synchronous_stream_cb_routine()
751 frameTime = frameTime - pme->mBootToMonoTimestampOffset; in synchronous_stream_cb_routine()
754 if (pme->getRecordingHintValue() == true) { in synchronous_stream_cb_routine()
755 mPreviewTimestamp = pme->mCameraDisplay.computePresentationTimeStamp(frameTime); in synchronous_stream_cb_routine()
763 pme, idx, frameTime, mPreviewTimestamp); in synchronous_stream_cb_routine()
767 pthread_mutex_lock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
768 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
769 pme->mEnqueuedBuffers++; in synchronous_stream_cb_routine()
770 pthread_mutex_unlock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
806 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_stream_cb_routine() local
810 if (pme == NULL) { in preview_stream_cb_routine()
830 if (pme->mParameters.isInstantAECEnabled() || in preview_stream_cb_routine()
831 pme->mParameters.isInstantCaptureEnabled()) { in preview_stream_cb_routine()
832 pme->mInstantAecFrameCount++; in preview_stream_cb_routine()
835 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
837 pme->mLastPreviewFrameID = frame->frame_idx; in preview_stream_cb_routine()
841 !pme->needProcessPreviewFrame(frame->frame_idx)) in preview_stream_cb_routine()
849 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
858 if (!pme->mParameters.isSecureMode()){ in preview_stream_cb_routine()
859 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
862 if(pme->m_bPreviewStarted) { in preview_stream_cb_routine()
865 pme->m_perfLockMgr.releasePerfLock(PERF_LOCK_START_PREVIEW); in preview_stream_cb_routine()
866 pme->m_perfLockMgr.releasePerfLock(PERF_LOCK_OPEN_CAMERA); in preview_stream_cb_routine()
867 pme->m_bPreviewStarted = false; in preview_stream_cb_routine()
870 pme->m_perfLockMgr.acquirePerfLock(PERF_LOCK_POWERHINT_PREVIEW, 0); in preview_stream_cb_routine()
875 if (pme->needDebugFps()) { in preview_stream_cb_routine()
876 pme->debugShowPreviewFPS(); in preview_stream_cb_routine()
881 pme->TsMakeupProcess_Preview(frame,stream); in preview_stream_cb_routine()
886 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
887 pme->mEnqueuedBuffers++; in preview_stream_cb_routine()
888 dequeueCnt = pme->mEnqueuedBuffers; in preview_stream_cb_routine()
889 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
894 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
895 dequeueCnt = pme->mEnqueuedBuffers; in preview_stream_cb_routine()
896 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
910 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
911 pme->mEnqueuedBuffers--; in preview_stream_cb_routine()
912 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
919 Mutex::Autolock l(pme->mMapLock); in preview_stream_cb_routine()
920 pme->mMapCond.signal(); in preview_stream_cb_routine()
942 if (pme->m_channels[QCAMERA_CH_TYPE_CALLBACK] == NULL) { in preview_stream_cb_routine()
943 if (pme->needSendPreviewCallback() && !discardFrame && in preview_stream_cb_routine()
944 (!pme->mParameters.isSceneSelectionEnabled()) && in preview_stream_cb_routine()
945 (!pme->mParameters.isSecureMode())) { in preview_stream_cb_routine()
947 int32_t rc = pme->sendPreviewCallback(stream, memory, idx); in preview_stream_cb_routine()
1162 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in nodisplay_preview_stream_cb_routine() local
1163 if (pme == NULL || in nodisplay_preview_stream_cb_routine()
1164 pme->mCameraHandle == NULL || in nodisplay_preview_stream_cb_routine()
1165 !validate_handle(pme->mCameraHandle->camera_handle, in nodisplay_preview_stream_cb_routine()
1179 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in nodisplay_preview_stream_cb_routine()
1186 if (pme->needDebugFps()) { in nodisplay_preview_stream_cb_routine()
1187 pme->debugShowPreviewFPS(); in nodisplay_preview_stream_cb_routine()
1196 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
1198 if ((pme->needProcessPreviewFrame(frame->frame_idx)) && in nodisplay_preview_stream_cb_routine()
1199 pme->needSendPreviewCallback() && in nodisplay_preview_stream_cb_routine()
1200 (pme->getRelatedCamSyncInfo()->mode != CAM_MODE_SECONDARY)) { in nodisplay_preview_stream_cb_routine()
1211 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in nodisplay_preview_stream_cb_routine()
1245 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in secure_stream_cb_routine() local
1246 if (pme == NULL || in secure_stream_cb_routine()
1247 pme->mCameraHandle == NULL || in secure_stream_cb_routine()
1248 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in secure_stream_cb_routine()
1259 if (pme->isSecureMode()) { in secure_stream_cb_routine()
1270 if (pme->mDataCb != NULL && in secure_stream_cb_routine()
1271 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in secure_stream_cb_routine()
1285 pme->m_cbNotifier.notifyCallback(cbArg); in secure_stream_cb_routine()
1326 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in rdi_mode_stream_cb_routine() local
1327 if (pme == NULL || in rdi_mode_stream_cb_routine()
1328 pme->mCameraHandle == NULL || in rdi_mode_stream_cb_routine()
1329 !validate_handle(pme->mCameraHandle->camera_handle, in rdi_mode_stream_cb_routine()
1340 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in rdi_mode_stream_cb_routine()
1345 if (pme->needDebugFps()) { in rdi_mode_stream_cb_routine()
1346 pme->debugShowPreviewFPS(); in rdi_mode_stream_cb_routine()
1360 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
1362 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1363 pme->mDataCb != NULL && in rdi_mode_stream_cb_routine()
1364 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in rdi_mode_stream_cb_routine()
1375 pme->m_cbNotifier.notifyCallback(cbArg); in rdi_mode_stream_cb_routine()
1411 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postview_stream_cb_routine() local
1414 if (pme == NULL) { in postview_stream_cb_routine()
1436 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
1479 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in video_stream_cb_routine() local
1480 if (pme == NULL || in video_stream_cb_routine()
1481 pme->mCameraHandle == 0 || in video_stream_cb_routine()
1482 !validate_handle(pme->mCameraHandle->camera_handle, in video_stream_cb_routine()
1491 if (pme->needDebugFps()) { in video_stream_cb_routine()
1492 pme->debugShowVideoFPS(); in video_stream_cb_routine()
1494 if(pme->m_bRecordStarted) { in video_stream_cb_routine()
1496 pme->m_bRecordStarted = false ; in video_stream_cb_routine()
1504 if (pme->mParameters.getVideoBatchSize() == 0) { in video_stream_cb_routine()
1507 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1512 (pme->mStoreMetaDataInFrame > 0)? true : false); in video_stream_cb_routine()
1520 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1546 int fd_cnt = pme->mParameters.getVideoBatchSize(); in video_stream_cb_routine()
1609 pme->dumpFrameToFile(stream, plane_frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1622 if ((pme->mDataCbTimestamp != NULL) && in video_stream_cb_routine()
1623 pme->msgTypeEnabledWithLock(CAMERA_MSG_VIDEO_FRAME) > 0) { in video_stream_cb_routine()
1632 if (!pme->mParameters.isAVTimerEnabled()) { in video_stream_cb_routine()
1635 timeStamp = timeStamp - pme->mBootToMonoTimestampOffset; in video_stream_cb_routine()
1639 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in video_stream_cb_routine()
1674 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_channel_cb_routine() local
1675 if (pme == NULL || in snapshot_channel_cb_routine()
1676 pme->mCameraHandle == NULL || in snapshot_channel_cb_routine()
1677 !validate_handle(pme->mCameraHandle->camera_handle, in snapshot_channel_cb_routine()
1685 if (pme->isLowPowerMode()) { in snapshot_channel_cb_routine()
1686 pChannel = pme->m_channels[QCAMERA_CH_TYPE_VIDEO]; in snapshot_channel_cb_routine()
1688 pChannel = pme->m_channels[QCAMERA_CH_TYPE_SNAPSHOT]; in snapshot_channel_cb_routine()
1710 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "Snapshot"); in snapshot_channel_cb_routine()
1732 if ((NO_ERROR != pme->waitDeferredWork(pme->mReprocJob)) || in snapshot_channel_cb_routine()
1733 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in snapshot_channel_cb_routine()
1769 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in raw_stream_cb_routine() local
1770 if (pme == NULL || in raw_stream_cb_routine()
1771 pme->mCameraHandle == NULL || in raw_stream_cb_routine()
1772 !validate_handle(pme->mCameraHandle->camera_handle, in raw_stream_cb_routine()
1780 pme->m_postprocessor.processRawData(super_frame); in raw_stream_cb_routine()
1808 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in raw_channel_cb_routine() local
1809 if (pme == NULL || in raw_channel_cb_routine()
1810 pme->mCameraHandle == NULL || in raw_channel_cb_routine()
1811 !validate_handle(pme->mCameraHandle->camera_handle, in raw_channel_cb_routine()
1819 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_RAW]; in raw_channel_cb_routine()
1843 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "raw"); in raw_channel_cb_routine()
1867 if ((NO_ERROR != pme->waitDeferredWork(pme->mReprocJob)) || in raw_channel_cb_routine()
1868 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in raw_channel_cb_routine()
1904 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_raw_stream_cb_routine() local
1905 if (pme == NULL || in preview_raw_stream_cb_routine()
1906 pme->mCameraHandle == NULL || in preview_raw_stream_cb_routine()
1907 !validate_handle(pme->mCameraHandle->camera_handle, in preview_raw_stream_cb_routine()
1922 if (dump_preview_raw || (pme->mParameters.getRecordingHintValue() in preview_raw_stream_cb_routine()
1924 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in preview_raw_stream_cb_routine()
1957 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_raw_stream_cb_routine() local
1958 if (pme == NULL || in snapshot_raw_stream_cb_routine()
1959 pme->mCameraHandle == NULL || in snapshot_raw_stream_cb_routine()
1960 !validate_handle(pme->mCameraHandle->camera_handle, in snapshot_raw_stream_cb_routine()
1976 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in snapshot_raw_stream_cb_routine()
2119 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in metadata_stream_cb_routine() local
2121 if (pme == NULL || in metadata_stream_cb_routine()
2122 pme->mCameraHandle == 0 || in metadata_stream_cb_routine()
2123 !validate_handle(pme->mCameraHandle->camera_handle, in metadata_stream_cb_routine()
2133 if (pme->isDualCamera()) { in metadata_stream_cb_routine()
2151 get_main_camera_handle(pme->mCameraHandle->camera_handle)) { in metadata_stream_cb_routine()
2155 get_aux_camera_handle(pme->mCameraHandle->camera_handle)) { in metadata_stream_cb_routine()
2161 resultMetadata = pme->m_pFovControl->processResultMetadata(pMetaDataMain, pMetaDataAux); in metadata_stream_cb_routine()
2172 if(pme->m_stateMachine.isNonZSLCaptureRunning()&& in metadata_stream_cb_routine()
2173 !pme->mLongshotEnabled) { in metadata_stream_cb_routine()
2175 pme->playShutter(); in metadata_stream_cb_routine()
2178 if (pMetaData->is_tuning_params_valid && pme->mParameters.getRecordingHintValue() == true) { in metadata_stream_cb_routine()
2180 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
2192 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2208 pme->fillFacesData(faces_data, pMetaData); in metadata_stream_cb_routine()
2217 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2250 pme->mActiveAF){ in metadata_stream_cb_routine()
2254 if ((pme->m_currentFocusState != (*afState)) || forceAFUpdate) { in metadata_stream_cb_routine()
2255 cam_af_state_t prevFocusState = pme->m_currentFocusState; in metadata_stream_cb_routine()
2256 pme->m_currentFocusState = (cam_af_state_t)(*afState); in metadata_stream_cb_routine()
2268 ((pme->m_currentFocusState == CAM_AF_STATE_FOCUSED_LOCKED) || in metadata_stream_cb_routine()
2269 (pme->m_currentFocusState == CAM_AF_STATE_NOT_FOCUSED_LOCKED)); in metadata_stream_cb_routine()
2290 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2314 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2334 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2350 if (!pme->m_stateMachine.isCaptureRunning()) { in metadata_stream_cb_routine()
2358 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2378 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2398 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2410 pme->mExifParams.sensor_params.flash_mode = (cam_flash_mode_t)*flash_mode; in metadata_stream_cb_routine()
2414 pme->mExifParams.sensor_params.flash_state = (cam_flash_state_t) *flash_state; in metadata_stream_cb_routine()
2418 pme->mExifParams.sensor_params.aperture_value = *aperture_value; in metadata_stream_cb_routine()
2422 pme->mExifParams.cam_3a_params = *ae_params; in metadata_stream_cb_routine()
2423 pme->mExifParams.cam_3a_params_valid = TRUE; in metadata_stream_cb_routine()
2424 pme->mFlashNeeded = ae_params->flash_needed; in metadata_stream_cb_routine()
2425 pme->mExifParams.cam_3a_params.brightness = (float) pme->mParameters.getBrightness(); in metadata_stream_cb_routine()
2433 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2445 pme->mExifParams.cam_3a_params.wb_mode = (cam_wb_mode_type) *wb_mode; in metadata_stream_cb_routine()
2449 pme->mExifParams.sensor_params = *sensor_params; in metadata_stream_cb_routine()
2454 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2455 pme->mExifParams.debug_params->ae_debug_params = *ae_exif_debug_params; in metadata_stream_cb_routine()
2456 pme->mExifParams.debug_params->ae_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2462 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2463 pme->mExifParams.debug_params->awb_debug_params = *awb_exif_debug_params; in metadata_stream_cb_routine()
2464 pme->mExifParams.debug_params->awb_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2470 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2471 pme->mExifParams.debug_params->af_debug_params = *af_exif_debug_params; in metadata_stream_cb_routine()
2472 pme->mExifParams.debug_params->af_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2478 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2479 pme->mExifParams.debug_params->asd_debug_params = *asd_exif_debug_params; in metadata_stream_cb_routine()
2480 pme->mExifParams.debug_params->asd_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2486 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2487 pme->mExifParams.debug_params->stats_debug_params = *stats_exif_debug_params; in metadata_stream_cb_routine()
2488 pme->mExifParams.debug_params->stats_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2494 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2495 pme->mExifParams.debug_params->bestats_debug_params = *bestats_exif_debug_params; in metadata_stream_cb_routine()
2496 pme->mExifParams.debug_params->bestats_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2502 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2503 pme->mExifParams.debug_params->bhist_debug_params = *bhist_exif_debug_params; in metadata_stream_cb_routine()
2504 pme->mExifParams.debug_params->bhist_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2510 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2511 pme->mExifParams.debug_params->q3a_tuning_debug_params = *q3a_tuning_exif_debug_params; in metadata_stream_cb_routine()
2512 pme->mExifParams.debug_params->q3a_tuning_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2524 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2537 edge_application.sharpness = pme->mParameters.getSharpness(); in metadata_stream_cb_routine()
2553 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2564 if (pme->mParameters.getLowLightCapture()) { in metadata_stream_cb_routine()
2567 pme->mParameters.setLowLightLevel(*low_light_level); in metadata_stream_cb_routine()
2573 pme->mParameters.setDynamicImgData(*dyn_img_data); in metadata_stream_cb_routine()
2580 if (pme->isDualCamera()) { in metadata_stream_cb_routine()
2581 pme->fillDualCameraFOVControl(); in metadata_stream_cb_routine()
2592 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2634 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in reprocess_stream_cb_routine() local
2635 if (pme == NULL || in reprocess_stream_cb_routine()
2636 pme->mCameraHandle == NULL || in reprocess_stream_cb_routine()
2637 !validate_handle(pme->mCameraHandle->camera_handle, in reprocess_stream_cb_routine()
2645 pme->m_postprocessor.processPPData(super_frame); in reprocess_stream_cb_routine()
2668 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in callback_stream_cb_routine() local
2670 if (pme == NULL || in callback_stream_cb_routine()
2671 pme->mCameraHandle == 0 || in callback_stream_cb_routine()
2672 !validate_handle(pme->mCameraHandle->camera_handle, in callback_stream_cb_routine()
2686 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in callback_stream_cb_routine()
2695 if (pme->mDataCb != NULL && in callback_stream_cb_routine()
2696 (pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) && in callback_stream_cb_routine()
2697 (!pme->mParameters.isSceneSelectionEnabled())) { in callback_stream_cb_routine()
2700 int32_t rc = pme->sendPreviewCallback(stream, previewMemObj, frame->buf_idx); in callback_stream_cb_routine()
3335 QCameraCbNotifier *pme = (QCameraCbNotifier *)data; in cbNotifyRoutine() local
3336 QCameraCmdThread *cmdThread = &pme->mProcTh; in cbNotifyRoutine()
3361 numOfSnapshotExpected = pme->mParent->numOfSnapshotsExpected(); in cbNotifyRoutine()
3362 longShotEnabled = pme->mParent->isLongshotEnabled(); in cbNotifyRoutine()
3370 pme->mDataQ.flushNodes(matchSnapshotNotifications); in cbNotifyRoutine()
3380 (qcamera_callback_argm_t *)pme->mDataQ.dequeue(); in cbNotifyRoutine()
3386 if (pme->mParent->msgTypeEnabledWithLock(cb->msg_type)) { in cbNotifyRoutine()
3394 if (pme->mNotifyCb) { in cbNotifyRoutine()
3395 pme->mNotifyCb(cb->msg_type, in cbNotifyRoutine()
3398 pme->mCallbackCookie); in cbNotifyRoutine()
3410 if (pme->mDataCb) { in cbNotifyRoutine()
3411 pme->mDataCb(cb->msg_type, in cbNotifyRoutine()
3415 pme->mCallbackCookie); in cbNotifyRoutine()
3427 if(pme->mDataCbTimestamp) { in cbNotifyRoutine()
3428 pme->mDataCbTimestamp(cb->timestamp, in cbNotifyRoutine()
3432 pme->mCallbackCookie); in cbNotifyRoutine()
3444 if (TRUE == isSnapshotActive && pme->mDataCb ) { in cbNotifyRoutine()
3453 … pme->mParent->processSyncEvt(QCAMERA_SM_EVT_SNAPSHOT_DONE, in cbNotifyRoutine()
3457 if (pme->mJpegCb) { in cbNotifyRoutine()
3461 pme->mParent->getCameraId(), in cbNotifyRoutine()
3464 pme->mJpegCb(cb->msg_type, cb->data, in cbNotifyRoutine()
3466 pme->mJpegCallbackCookie, in cbNotifyRoutine()
3474 } else if(pme->mDataCb){ in cbNotifyRoutine()
3475 pme->mDataCb(cb->msg_type, cb->data, cb->index, in cbNotifyRoutine()
3476 cb->metadata, pme->mCallbackCookie); in cbNotifyRoutine()
3514 pme->mDataQ.flush(); in cbNotifyRoutine()