Lines Matching refs:pme
69 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in zsl_channel_cb() local
70 if (pme == NULL || in zsl_channel_cb()
71 pme->mCameraHandle == NULL || in zsl_channel_cb()
72 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in zsl_channel_cb()
77 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_ZSL]; in zsl_channel_cb()
84 if(pme->mParameters.isSceneSelectionEnabled() && in zsl_channel_cb()
85 !pme->m_stateMachine.isCaptureRunning()) { in zsl_channel_cb()
86 pme->selectScene(pChannel, recvd_frame); in zsl_channel_cb()
92 __func__, recvd_frame->bUnlockAEC, pme->m_bLedAfAecLock); in zsl_channel_cb()
93 if(recvd_frame->bUnlockAEC && pme->m_bLedAfAecLock) { in zsl_channel_cb()
100 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
121 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
134 pme->captureDone(); in zsl_channel_cb()
160 pme->dumpFrameToFile(pStream, raw_frame, QCAMERA_DUMP_FRM_RAW); in zsl_channel_cb()
176 pme->dumpFrameToFile(pStream, yuv_frame, QCAMERA_DUMP_FRM_SNAPSHOT); in zsl_channel_cb()
184 if(pme->needFDMetadata(QCAMERA_CH_TYPE_ZSL)){ in zsl_channel_cb()
223 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
247 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "ZSL_Snapshot"); in zsl_channel_cb()
275 pme->waitDefferedWork(pme->mReprocJob); in zsl_channel_cb()
278 pme->m_postprocessor.processData(frame); in zsl_channel_cb()
389 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in capture_channel_cb_routine() local
390 if (pme == NULL || in capture_channel_cb_routine()
391 pme->mCameraHandle == NULL || in capture_channel_cb_routine()
392 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in capture_channel_cb_routine()
397 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_CAPTURE]; in capture_channel_cb_routine()
426 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "Snapshot"); in capture_channel_cb_routine()
435 pme->waitDefferedWork(pme->mReprocJob); in capture_channel_cb_routine()
438 pme->m_postprocessor.processData(frame); in capture_channel_cb_routine()
468 int32_t rc = pme->registerFaceImage(main_frame->buffer, &config, faceId); in capture_channel_cb_routine()
501 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postproc_channel_cb_routine() local
502 if (pme == NULL || in postproc_channel_cb_routine()
503 pme->mCameraHandle == NULL || in postproc_channel_cb_routine()
504 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in postproc_channel_cb_routine()
519 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
551 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_stream_cb_routine() local
554 if (pme == NULL) { in preview_stream_cb_routine()
572 if (!pme->needProcessPreviewFrame()) { in preview_stream_cb_routine()
579 if (pme->needDebugFps()) { in preview_stream_cb_routine()
580 pme->debugShowPreviewFPS(); in preview_stream_cb_routine()
584 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
586 if(pme->m_bPreviewStarted) { in preview_stream_cb_routine()
588 pme->m_bPreviewStarted = false ; in preview_stream_cb_routine()
592 CDBG("%p displayBuffer %d E", pme, idx); in preview_stream_cb_routine()
606 if (pme->mDataCb != NULL && in preview_stream_cb_routine()
607 (pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) && in preview_stream_cb_routine()
608 (!pme->mParameters.isSceneSelectionEnabled())) { in preview_stream_cb_routine()
609 int32_t rc = pme->sendPreviewCallback(stream, memory, idx); in preview_stream_cb_routine()
810 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in nodisplay_preview_stream_cb_routine() local
811 if (pme == NULL || in nodisplay_preview_stream_cb_routine()
812 pme->mCameraHandle == NULL || in nodisplay_preview_stream_cb_routine()
813 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in nodisplay_preview_stream_cb_routine()
826 if (!pme->needProcessPreviewFrame()) { in nodisplay_preview_stream_cb_routine()
833 if (pme->needDebugFps()) { in nodisplay_preview_stream_cb_routine()
834 pme->debugShowPreviewFPS(); in nodisplay_preview_stream_cb_routine()
843 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
845 if (pme->needProcessPreviewFrame() && in nodisplay_preview_stream_cb_routine()
846 pme->mDataCb != NULL && in nodisplay_preview_stream_cb_routine()
847 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0 ) { in nodisplay_preview_stream_cb_routine()
856 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in nodisplay_preview_stream_cb_routine()
892 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in rdi_mode_stream_cb_routine() local
893 if (pme == NULL || in rdi_mode_stream_cb_routine()
894 pme->mCameraHandle == NULL || in rdi_mode_stream_cb_routine()
895 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in rdi_mode_stream_cb_routine()
905 if (!pme->needProcessPreviewFrame()) { in rdi_mode_stream_cb_routine()
910 if (pme->needDebugFps()) { in rdi_mode_stream_cb_routine()
911 pme->debugShowPreviewFPS(); in rdi_mode_stream_cb_routine()
914 if (!pme->isSecureMode()) { in rdi_mode_stream_cb_routine()
926 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
928 if (pme->needProcessPreviewFrame() && in rdi_mode_stream_cb_routine()
929 pme->mDataCb != NULL && in rdi_mode_stream_cb_routine()
930 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in rdi_mode_stream_cb_routine()
939 pme->m_cbNotifier.notifyCallback(cbArg); in rdi_mode_stream_cb_routine()
961 if (pme->needProcessPreviewFrame() && in rdi_mode_stream_cb_routine()
962 pme->mDataCb != NULL && in rdi_mode_stream_cb_routine()
963 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in rdi_mode_stream_cb_routine()
976 pme->m_cbNotifier.notifyCallback(cbArg); in rdi_mode_stream_cb_routine()
1009 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postview_stream_cb_routine() local
1012 if (pme == NULL) { in postview_stream_cb_routine()
1034 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
1072 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in video_stream_cb_routine() local
1073 if (pme == NULL || in video_stream_cb_routine()
1074 pme->mCameraHandle == NULL || in video_stream_cb_routine()
1075 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in video_stream_cb_routine()
1084 if (pme->needDebugFps()) { in video_stream_cb_routine()
1085 pme->debugShowVideoFPS(); in video_stream_cb_routine()
1087 if(pme->m_bRecordStarted) { in video_stream_cb_routine()
1089 pme->m_bRecordStarted = false ; in video_stream_cb_routine()
1106 (pme->mStoreMetaDataInFrame > 0)? true : false); in video_stream_cb_routine()
1109 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1110 if ((pme->mDataCbTimestamp != NULL) && in video_stream_cb_routine()
1111 pme->msgTypeEnabledWithLock(CAMERA_MSG_VIDEO_FRAME) > 0) { in video_stream_cb_routine()
1118 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in video_stream_cb_routine()
1167 pme->dumpFrameToFile(stream, plane_frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1171 if ((pme->mDataCbTimestamp != NULL) && in video_stream_cb_routine()
1172 pme->msgTypeEnabledWithLock(CAMERA_MSG_VIDEO_FRAME) > 0) { in video_stream_cb_routine()
1179 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in video_stream_cb_routine()
1216 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_channel_cb_routine() local
1217 if (pme == NULL || in snapshot_channel_cb_routine()
1218 pme->mCameraHandle == NULL || in snapshot_channel_cb_routine()
1219 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in snapshot_channel_cb_routine()
1226 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_SNAPSHOT]; in snapshot_channel_cb_routine()
1249 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "Snapshot"); in snapshot_channel_cb_routine()
1267 pme->m_postprocessor.processData(frame); in snapshot_channel_cb_routine()
1297 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in raw_stream_cb_routine() local
1298 if (pme == NULL || in raw_stream_cb_routine()
1299 pme->mCameraHandle == NULL || in raw_stream_cb_routine()
1300 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in raw_stream_cb_routine()
1307 pme->m_postprocessor.processRawData(super_frame); in raw_stream_cb_routine()
1335 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_raw_stream_cb_routine() local
1336 if (pme == NULL || in preview_raw_stream_cb_routine()
1337 pme->mCameraHandle == NULL || in preview_raw_stream_cb_routine()
1338 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in preview_raw_stream_cb_routine()
1353 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in preview_raw_stream_cb_routine()
1390 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_raw_stream_cb_routine() local
1391 if (pme == NULL || in snapshot_raw_stream_cb_routine()
1392 pme->mCameraHandle == NULL || in snapshot_raw_stream_cb_routine()
1393 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in snapshot_raw_stream_cb_routine()
1408 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in snapshot_raw_stream_cb_routine()
1520 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in metadata_stream_cb_routine() local
1521 if (pme == NULL || in metadata_stream_cb_routine()
1522 pme->mCameraHandle == NULL || in metadata_stream_cb_routine()
1523 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in metadata_stream_cb_routine()
1532 if(pme->m_stateMachine.isNonZSLCaptureRunning()&& in metadata_stream_cb_routine()
1533 !pme->mLongshotEnabled) { in metadata_stream_cb_routine()
1535 pme->playShutter(); in metadata_stream_cb_routine()
1538 if (pMetaData->is_tuning_params_valid && pme->mParameters.getRecordingHintValue() == true) { in metadata_stream_cb_routine()
1540 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
1552 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1581 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1602 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1626 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1648 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1665 if (!pme->m_stateMachine.isCaptureRunning()) { in metadata_stream_cb_routine()
1673 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1693 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1713 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1725 pme->mExifParams.sensor_params.flash_mode = (cam_flash_mode_t)*flash_mode; in metadata_stream_cb_routine()
1729 pme->mExifParams.sensor_params.flash_state = (cam_flash_state_t) *flash_state; in metadata_stream_cb_routine()
1733 pme->mExifParams.sensor_params.aperture_value = *aperture_value; in metadata_stream_cb_routine()
1737 pme->mExifParams.cam_3a_params = *ae_params; in metadata_stream_cb_routine()
1738 pme->mExifParams.cam_3a_params_valid = TRUE; in metadata_stream_cb_routine()
1739 pme->mFlashNeeded = ae_params->flash_needed; in metadata_stream_cb_routine()
1740 pme->mExifParams.cam_3a_params.brightness = (float) pme->mParameters.getBrightness(); in metadata_stream_cb_routine()
1748 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1760 pme->mExifParams.cam_3a_params.wb_mode = (cam_wb_mode_type) *wb_mode; in metadata_stream_cb_routine()
1764 pme->mExifParams.sensor_params = *sensor_params; in metadata_stream_cb_routine()
1769 pme->mExifParams.ae_debug_params = *ae_exif_debug_params; in metadata_stream_cb_routine()
1770 pme->mExifParams.ae_debug_params_valid = TRUE; in metadata_stream_cb_routine()
1775 pme->mExifParams.awb_debug_params = *awb_exif_debug_params; in metadata_stream_cb_routine()
1776 pme->mExifParams.awb_debug_params_valid = TRUE; in metadata_stream_cb_routine()
1781 pme->mExifParams.af_debug_params = *af_exif_debug_params; in metadata_stream_cb_routine()
1782 pme->mExifParams.af_debug_params_valid = TRUE; in metadata_stream_cb_routine()
1787 pme->mExifParams.asd_debug_params = *asd_exif_debug_params; in metadata_stream_cb_routine()
1788 pme->mExifParams.asd_debug_params_valid = TRUE; in metadata_stream_cb_routine()
1793 pme->mExifParams.stats_debug_params = *stats_exif_debug_params; in metadata_stream_cb_routine()
1794 pme->mExifParams.stats_debug_params_valid = TRUE; in metadata_stream_cb_routine()
1805 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1818 edge_application.sharpness = pme->mParameters.getSharpness(); in metadata_stream_cb_routine()
1834 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
1876 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in reprocess_stream_cb_routine() local
1877 if (pme == NULL || in reprocess_stream_cb_routine()
1878 pme->mCameraHandle == NULL || in reprocess_stream_cb_routine()
1879 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in reprocess_stream_cb_routine()
1886 pme->m_postprocessor.processPPData(super_frame); in reprocess_stream_cb_routine()
2383 QCameraCbNotifier *pme = (QCameraCbNotifier *)data; in cbNotifyRoutine() local
2384 QCameraCmdThread *cmdThread = &pme->mProcTh; in cbNotifyRoutine()
2409 numOfSnapshotExpected = pme->mParent->numOfSnapshotsExpected(); in cbNotifyRoutine()
2410 longShotEnabled = pme->mParent->isLongshotEnabled(); in cbNotifyRoutine()
2418 pme->mDataQ.flushNodes(matchSnapshotNotifications); in cbNotifyRoutine()
2428 (qcamera_callback_argm_t *)pme->mDataQ.dequeue(); in cbNotifyRoutine()
2435 if (pme->mParent->msgTypeEnabledWithLock(cb->msg_type)) { in cbNotifyRoutine()
2444 if (pme->mNotifyCb) { in cbNotifyRoutine()
2445 pme->mNotifyCb(cb->msg_type, in cbNotifyRoutine()
2448 pme->mCallbackCookie); in cbNotifyRoutine()
2457 if (pme->mDataCb) { in cbNotifyRoutine()
2458 pme->mDataCb(cb->msg_type, in cbNotifyRoutine()
2462 pme->mCallbackCookie); in cbNotifyRoutine()
2471 if(pme->mDataCbTimestamp) { in cbNotifyRoutine()
2472 pme->mDataCbTimestamp(cb->timestamp, in cbNotifyRoutine()
2476 pme->mCallbackCookie); in cbNotifyRoutine()
2485 if (TRUE == isSnapshotActive && pme->mDataCb ) { in cbNotifyRoutine()
2495 … pme->mParent->processSyncEvt(QCAMERA_SM_EVT_SNAPSHOT_DONE, in cbNotifyRoutine()
2499 pme->mDataCb(cb->msg_type, in cbNotifyRoutine()
2503 pme->mCallbackCookie); in cbNotifyRoutine()
2534 pme->mDataQ.flush(); in cbNotifyRoutine()