Lines Matching refs:pme

64     QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata;  in zsl_channel_cb()  local
65 if (pme == NULL || in zsl_channel_cb()
66 pme->mCameraHandle == NULL || in zsl_channel_cb()
67 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in zsl_channel_cb()
72 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_ZSL]; in zsl_channel_cb()
79 if(pme->mParameters.isSceneSelectionEnabled() && in zsl_channel_cb()
80 !pme->m_stateMachine.isCaptureRunning()) { in zsl_channel_cb()
81 pme->selectScene(pChannel, recvd_frame); in zsl_channel_cb()
87 __func__, recvd_frame->bUnlockAEC, pme->m_bLedAfAecLock); in zsl_channel_cb()
88 if(recvd_frame->bUnlockAEC && pme->m_bLedAfAecLock) { in zsl_channel_cb()
90 pme->mParameters.setAecLock("false"); in zsl_channel_cb()
91 pme->mParameters.commitParameters(); in zsl_channel_cb()
92 pme->m_bLedAfAecLock = FALSE ; in zsl_channel_cb()
105 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
141 pme->dumpFrameToFile(pStream, raw_frame, QCAMERA_DUMP_FRM_RAW); in zsl_channel_cb()
157 pme->dumpFrameToFile(pStream, yuv_frame, QCAMERA_DUMP_FRM_SNAPSHOT); in zsl_channel_cb()
165 if(pme->needFDMetadata(QCAMERA_CH_TYPE_ZSL)){ in zsl_channel_cb()
202 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
226 pme->dumpMetadataToFile(pStream, pMetaFrame,(char *)"ZSL_Snapshot"); in zsl_channel_cb()
254 pme->m_postprocessor.processData(frame); in zsl_channel_cb()
370 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in capture_channel_cb_routine() local
371 if (pme == NULL || in capture_channel_cb_routine()
372 pme->mCameraHandle == NULL || in capture_channel_cb_routine()
373 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in capture_channel_cb_routine()
378 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_CAPTURE]; in capture_channel_cb_routine()
407 pme->dumpMetadataToFile(pStream, pMetaFrame,(char *)"Snapshot"); in capture_channel_cb_routine()
416 pme->waitDefferedWork(pme->mReprocJob); in capture_channel_cb_routine()
419 pme->m_postprocessor.processData(frame); in capture_channel_cb_routine()
449 int32_t rc = pme->registerFaceImage(main_frame->buffer, &config, faceId); in capture_channel_cb_routine()
481 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postproc_channel_cb_routine() local
482 if (pme == NULL || in postproc_channel_cb_routine()
483 pme->mCameraHandle == NULL || in postproc_channel_cb_routine()
484 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in postproc_channel_cb_routine()
499 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
529 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_stream_cb_routine() local
532 if (pme == NULL) { in preview_stream_cb_routine()
550 if (!pme->needProcessPreviewFrame()) { in preview_stream_cb_routine()
557 if (pme->needDebugFps()) { in preview_stream_cb_routine()
558 pme->debugShowPreviewFPS(); in preview_stream_cb_routine()
562 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
564 if(pme->m_bPreviewStarted) { in preview_stream_cb_routine()
566 pme->m_bPreviewStarted = false ; in preview_stream_cb_routine()
570 CDBG("%p displayBuffer %d E", pme, idx); in preview_stream_cb_routine()
584 if (pme->mDataCb != NULL && in preview_stream_cb_routine()
585 (pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) && in preview_stream_cb_routine()
586 (!pme->mParameters.isSceneSelectionEnabled())) { in preview_stream_cb_routine()
587 int32_t rc = pme->sendPreviewCallback(stream, memory, idx); in preview_stream_cb_routine()
702 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in nodisplay_preview_stream_cb_routine() local
703 if (pme == NULL || in nodisplay_preview_stream_cb_routine()
704 pme->mCameraHandle == NULL || in nodisplay_preview_stream_cb_routine()
705 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in nodisplay_preview_stream_cb_routine()
718 if (!pme->needProcessPreviewFrame()) { in nodisplay_preview_stream_cb_routine()
725 if (pme->needDebugFps()) { in nodisplay_preview_stream_cb_routine()
726 pme->debugShowPreviewFPS(); in nodisplay_preview_stream_cb_routine()
735 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
737 if (pme->needProcessPreviewFrame() && in nodisplay_preview_stream_cb_routine()
738 pme->mDataCb != NULL && in nodisplay_preview_stream_cb_routine()
739 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0 ) { in nodisplay_preview_stream_cb_routine()
749 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in nodisplay_preview_stream_cb_routine()
784 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in rdi_mode_stream_cb_routine() local
785 if (pme == NULL || in rdi_mode_stream_cb_routine()
786 pme->mCameraHandle == NULL || in rdi_mode_stream_cb_routine()
787 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in rdi_mode_stream_cb_routine()
797 if (!pme->needProcessPreviewFrame()) { in rdi_mode_stream_cb_routine()
802 if (pme->needDebugFps()) { in rdi_mode_stream_cb_routine()
803 pme->debugShowPreviewFPS(); in rdi_mode_stream_cb_routine()
806 if (!pme->isSecureMode()) { in rdi_mode_stream_cb_routine()
818 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
820 if (pme->needProcessPreviewFrame() && in rdi_mode_stream_cb_routine()
821 pme->mDataCb != NULL && in rdi_mode_stream_cb_routine()
822 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in rdi_mode_stream_cb_routine()
832 pme->m_cbNotifier.notifyCallback(cbArg); in rdi_mode_stream_cb_routine()
854 if (pme->needProcessPreviewFrame() && in rdi_mode_stream_cb_routine()
855 pme->mDataCb != NULL && in rdi_mode_stream_cb_routine()
856 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in rdi_mode_stream_cb_routine()
870 pme->m_cbNotifier.notifyCallback(cbArg); in rdi_mode_stream_cb_routine()
902 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postview_stream_cb_routine() local
905 if (pme == NULL) { in postview_stream_cb_routine()
927 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
964 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in video_stream_cb_routine() local
965 if (pme == NULL || in video_stream_cb_routine()
966 pme->mCameraHandle == NULL || in video_stream_cb_routine()
967 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in video_stream_cb_routine()
975 if (pme->needDebugFps()) { in video_stream_cb_routine()
976 pme->debugShowVideoFPS(); in video_stream_cb_routine()
978 if(pme->m_bRecordStarted) { in video_stream_cb_routine()
980 pme->m_bRecordStarted = false ; in video_stream_cb_routine()
988 if(pme->mParameters.isAVTimerEnabled() == true) { in video_stream_cb_routine()
998 …video_mem = videoMemObj->getMemory(frame->buf_idx, (pme->mStoreMetaDataInFrame > 0)? true : false); in video_stream_cb_routine()
1001 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1002 if ((pme->mDataCbTimestamp != NULL) && in video_stream_cb_routine()
1003 pme->msgTypeEnabledWithLock(CAMERA_MSG_VIDEO_FRAME) > 0) { in video_stream_cb_routine()
1010 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in video_stream_cb_routine()
1046 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_stream_cb_routine() local
1047 if (pme == NULL || in snapshot_stream_cb_routine()
1048 pme->mCameraHandle == NULL || in snapshot_stream_cb_routine()
1049 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in snapshot_stream_cb_routine()
1059 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_SNAPSHOT]; in snapshot_stream_cb_routine()
1074 pme->dumpMetadataToFile(pStream, pMetaFrame,(char *)"Snapshot"); in snapshot_stream_cb_routine()
1082 pme->m_postprocessor.processData(super_frame); in snapshot_stream_cb_routine()
1111 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in raw_stream_cb_routine() local
1112 if (pme == NULL || in raw_stream_cb_routine()
1113 pme->mCameraHandle == NULL || in raw_stream_cb_routine()
1114 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in raw_stream_cb_routine()
1121 pme->m_postprocessor.processRawData(super_frame); in raw_stream_cb_routine()
1149 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_raw_stream_cb_routine() local
1150 if (pme == NULL || in preview_raw_stream_cb_routine()
1151 pme->mCameraHandle == NULL || in preview_raw_stream_cb_routine()
1152 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in preview_raw_stream_cb_routine()
1166 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in preview_raw_stream_cb_routine()
1202 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_raw_stream_cb_routine() local
1203 if (pme == NULL || in snapshot_raw_stream_cb_routine()
1204 pme->mCameraHandle == NULL || in snapshot_raw_stream_cb_routine()
1205 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in snapshot_raw_stream_cb_routine()
1219 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in snapshot_raw_stream_cb_routine()
1253 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in metadata_stream_cb_routine() local
1254 if (pme == NULL || in metadata_stream_cb_routine()
1255 pme->mCameraHandle == NULL || in metadata_stream_cb_routine()
1256 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in metadata_stream_cb_routine()
1265 if(pme->m_stateMachine.isNonZSLCaptureRunning()&& in metadata_stream_cb_routine()
1266 !pme->mLongshotEnabled) { in metadata_stream_cb_routine()
1268 pme->playShutter(); in metadata_stream_cb_routine()
1271 if (pMetaData->is_tuning_params_valid && pme->mParameters.getRecordingHintValue() == true) { in metadata_stream_cb_routine()
1273 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
1286 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1315 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1335 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1360 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1382 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1399 if (!pme->m_stateMachine.isCaptureRunning()) { in metadata_stream_cb_routine()
1400 int32_t rc = pme->processHDRData(*hdr_scene_data); in metadata_stream_cb_routine()
1415 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1429 pme->mExifParams.sensor_params.flash_mode = (cam_flash_mode_t)*flash_mode; in metadata_stream_cb_routine()
1434 pme->mExifParams.sensor_params.flash_state = (cam_flash_state_t)*flash_state; in metadata_stream_cb_routine()
1439 pme->mExifParams.sensor_params.aperture_value = *aperture_value; in metadata_stream_cb_routine()
1444 pme->mExifParams.cam_3a_params = *ae_params; in metadata_stream_cb_routine()
1445 pme->mFlashNeeded = ae_params->flash_needed; in metadata_stream_cb_routine()
1450 pme->mExifParams.sensor_params = *sensor_params; in metadata_stream_cb_routine()
1483 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in reprocess_stream_cb_routine() local
1484 if (pme == NULL || in reprocess_stream_cb_routine()
1485 pme->mCameraHandle == NULL || in reprocess_stream_cb_routine()
1486 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in reprocess_stream_cb_routine()
1493 pme->m_postprocessor.processPPData(super_frame); in reprocess_stream_cb_routine()
1945 QCameraCbNotifier *pme = (QCameraCbNotifier *)data; in cbNotifyRoutine() local
1946 QCameraCmdThread *cmdThread = &pme->mProcTh; in cbNotifyRoutine()
1970 numOfSnapshotExpected = pme->mParent->numOfSnapshotsExpected(); in cbNotifyRoutine()
1971 longShotEnabled = pme->mParent->isLongshotEnabled(); in cbNotifyRoutine()
1979 pme->mDataQ.flushNodes(matchSnapshotNotifications); in cbNotifyRoutine()
1989 (qcamera_callback_argm_t *)pme->mDataQ.dequeue(); in cbNotifyRoutine()
1996 if (pme->mParent->msgTypeEnabledWithLock(cb->msg_type)) { in cbNotifyRoutine()
2004 if (pme->mNotifyCb) { in cbNotifyRoutine()
2005 pme->mNotifyCb(cb->msg_type, in cbNotifyRoutine()
2008 pme->mCallbackCookie); in cbNotifyRoutine()
2017 if (pme->mDataCb) { in cbNotifyRoutine()
2018 pme->mDataCb(cb->msg_type, in cbNotifyRoutine()
2022 pme->mCallbackCookie); in cbNotifyRoutine()
2031 if(pme->mDataCbTimestamp) { in cbNotifyRoutine()
2032 pme->mDataCbTimestamp(cb->timestamp, in cbNotifyRoutine()
2036 pme->mCallbackCookie); in cbNotifyRoutine()
2045 if (TRUE == isSnapshotActive && pme->mDataCb ) { in cbNotifyRoutine()
2055pme->mParent->processSyncEvt(QCAMERA_SM_EVT_SNAPSHOT_DONE, in cbNotifyRoutine()
2059 pme->mDataCb(cb->msg_type, in cbNotifyRoutine()
2063 pme->mCallbackCookie); in cbNotifyRoutine()
2094 pme->mDataQ.flush(); in cbNotifyRoutine()