Lines Matching refs:pme

77     QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata;  in zsl_channel_cb()  local
78 if (pme == NULL || in zsl_channel_cb()
79 pme->mCameraHandle == NULL || in zsl_channel_cb()
80 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in zsl_channel_cb()
85 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()
386 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in capture_channel_cb_routine() local
387 if (pme == NULL || in capture_channel_cb_routine()
388 pme->mCameraHandle == NULL || in capture_channel_cb_routine()
389 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in capture_channel_cb_routine()
394 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_CAPTURE]; in capture_channel_cb_routine()
421 pme->dumpFrameToFile(pStream, yuv_frame, QCAMERA_DUMP_FRM_INPUT_REPROCESS); in capture_channel_cb_routine()
439 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "Snapshot"); in capture_channel_cb_routine()
449 if ((NO_ERROR != pme->waitDeferredWork(pme->mReprocJob)) || in capture_channel_cb_routine()
450 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in capture_channel_cb_routine()
486 int32_t rc = pme->registerFaceImage(main_frame->buffer, &config, faceId); in capture_channel_cb_routine()
643 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postproc_channel_cb_routine() local
644 if (pme == NULL || in postproc_channel_cb_routine()
645 pme->mCameraHandle == NULL || in postproc_channel_cb_routine()
646 pme->mCameraHandle->camera_handle != recvd_frame->camera_handle){ in postproc_channel_cb_routine()
664 pme->waitDeferredWork(pme->mJpegJob); in postproc_channel_cb_routine()
667 pme->m_postprocessor.processPPData(frame); in postproc_channel_cb_routine()
697 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in synchronous_stream_cb_routine() local
700 if (pme == NULL) { in synchronous_stream_cb_routine()
719 if(pme->m_bPreviewStarted) { in synchronous_stream_cb_routine()
721 pme->m_bPreviewStarted = false; in synchronous_stream_cb_routine()
724 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in synchronous_stream_cb_routine()
725 pthread_mutex_lock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
726 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
727 pthread_mutex_unlock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
734 mPreviewTimestamp = pme->mCameraDisplay.computePresentationTimeStamp(frameTime); in synchronous_stream_cb_routine()
739 pme->TsMakeupProcess_Preview(frame,stream); in synchronous_stream_cb_routine()
745 pme, idx, frameTime, mPreviewTimestamp); in synchronous_stream_cb_routine()
749 pthread_mutex_lock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
750 pme->mLastPreviewFrameID = frame->frame_idx; in synchronous_stream_cb_routine()
751 pme->mEnqueuedBuffers++; in synchronous_stream_cb_routine()
752 pthread_mutex_unlock(&pme->mGrallocLock); in synchronous_stream_cb_routine()
787 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_stream_cb_routine() local
791 if (pme == NULL) { in preview_stream_cb_routine()
811 if (pme->mParameters.isInstantAECEnabled() || in preview_stream_cb_routine()
812 pme->mParameters.isInstantCaptureEnabled()) { in preview_stream_cb_routine()
813 pme->mInstantAecFrameCount++; in preview_stream_cb_routine()
816 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
818 pme->mLastPreviewFrameID = frame->frame_idx; in preview_stream_cb_routine()
821 (!pme->needProcessPreviewFrame(frame->frame_idx))) || in preview_stream_cb_routine()
826 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
832 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
835 if (pme->needDebugFps()) { in preview_stream_cb_routine()
836 pme->debugShowPreviewFPS(); in preview_stream_cb_routine()
841 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in preview_stream_cb_routine()
843 if(pme->m_bPreviewStarted) { in preview_stream_cb_routine()
845 pme->m_bPreviewStarted = false ; in preview_stream_cb_routine()
851 pme->TsMakeupProcess_Preview(frame,stream); in preview_stream_cb_routine()
856 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
857 pme->mEnqueuedBuffers++; in preview_stream_cb_routine()
858 dequeueCnt = pme->mEnqueuedBuffers; in preview_stream_cb_routine()
859 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
864 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
865 dequeueCnt = pme->mEnqueuedBuffers; in preview_stream_cb_routine()
866 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
870 LOGD("%p displayBuffer %d E", pme, idx); in preview_stream_cb_routine()
880 pthread_mutex_lock(&pme->mGrallocLock); in preview_stream_cb_routine()
881 pme->mEnqueuedBuffers--; in preview_stream_cb_routine()
882 pthread_mutex_unlock(&pme->mGrallocLock); in preview_stream_cb_routine()
889 Mutex::Autolock l(pme->mMapLock); in preview_stream_cb_routine()
890 pme->mMapCond.signal(); in preview_stream_cb_routine()
910 if (pme->m_channels[QCAMERA_CH_TYPE_CALLBACK] == NULL) { in preview_stream_cb_routine()
911 if (pme->needSendPreviewCallback() && in preview_stream_cb_routine()
912 (!pme->mParameters.isSceneSelectionEnabled())) { in preview_stream_cb_routine()
913 int32_t rc = pme->sendPreviewCallback(stream, memory, idx); in preview_stream_cb_routine()
1128 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in nodisplay_preview_stream_cb_routine() local
1129 if (pme == NULL || in nodisplay_preview_stream_cb_routine()
1130 pme->mCameraHandle == NULL || in nodisplay_preview_stream_cb_routine()
1131 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in nodisplay_preview_stream_cb_routine()
1144 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in nodisplay_preview_stream_cb_routine()
1151 if (pme->needDebugFps()) { in nodisplay_preview_stream_cb_routine()
1152 pme->debugShowPreviewFPS(); in nodisplay_preview_stream_cb_routine()
1161 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_PREVIEW); in nodisplay_preview_stream_cb_routine()
1163 if ((pme->needProcessPreviewFrame(frame->frame_idx)) && in nodisplay_preview_stream_cb_routine()
1164 pme->needSendPreviewCallback() && in nodisplay_preview_stream_cb_routine()
1165 (pme->getRelatedCamSyncInfo()->mode != CAM_MODE_SECONDARY)) { in nodisplay_preview_stream_cb_routine()
1174 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in nodisplay_preview_stream_cb_routine()
1210 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in rdi_mode_stream_cb_routine() local
1211 if (pme == NULL || in rdi_mode_stream_cb_routine()
1212 pme->mCameraHandle == NULL || in rdi_mode_stream_cb_routine()
1213 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in rdi_mode_stream_cb_routine()
1223 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in rdi_mode_stream_cb_routine()
1228 if (pme->needDebugFps()) { in rdi_mode_stream_cb_routine()
1229 pme->debugShowPreviewFPS(); in rdi_mode_stream_cb_routine()
1232 if (!pme->isSecureMode()) { in rdi_mode_stream_cb_routine()
1244 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_RAW); in rdi_mode_stream_cb_routine()
1246 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1247 pme->mDataCb != NULL && in rdi_mode_stream_cb_routine()
1248 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in rdi_mode_stream_cb_routine()
1257 pme->m_cbNotifier.notifyCallback(cbArg); in rdi_mode_stream_cb_routine()
1279 if (pme->needProcessPreviewFrame(frame->frame_idx) && in rdi_mode_stream_cb_routine()
1280 pme->mDataCb != NULL && in rdi_mode_stream_cb_routine()
1281 pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) { in rdi_mode_stream_cb_routine()
1294 pme->m_cbNotifier.notifyCallback(cbArg); in rdi_mode_stream_cb_routine()
1327 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in postview_stream_cb_routine() local
1330 if (pme == NULL) { in postview_stream_cb_routine()
1352 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_THUMBNAIL); in postview_stream_cb_routine()
1395 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in video_stream_cb_routine() local
1396 if (pme == NULL || in video_stream_cb_routine()
1397 pme->mCameraHandle == NULL || in video_stream_cb_routine()
1398 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in video_stream_cb_routine()
1407 if (pme->needDebugFps()) { in video_stream_cb_routine()
1408 pme->debugShowVideoFPS(); in video_stream_cb_routine()
1410 if(pme->m_bRecordStarted) { in video_stream_cb_routine()
1412 pme->m_bRecordStarted = false ; in video_stream_cb_routine()
1420 if (pme->mParameters.getVideoBatchSize() == 0) { in video_stream_cb_routine()
1425 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1430 (pme->mStoreMetaDataInFrame > 0)? true : false); in video_stream_cb_routine()
1436 pme->dumpFrameToFile(stream, frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1464 int fd_cnt = pme->mParameters.getVideoBatchSize(); in video_stream_cb_routine()
1550 pme->dumpFrameToFile(stream, plane_frame, QCAMERA_DUMP_FRM_VIDEO); in video_stream_cb_routine()
1561 if ((pme->mDataCbTimestamp != NULL) && in video_stream_cb_routine()
1562 pme->msgTypeEnabledWithLock(CAMERA_MSG_VIDEO_FRAME) > 0) { in video_stream_cb_routine()
1569 int32_t rc = pme->m_cbNotifier.notifyCallback(cbArg); in video_stream_cb_routine()
1604 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_channel_cb_routine() local
1605 if (pme == NULL || in snapshot_channel_cb_routine()
1606 pme->mCameraHandle == NULL || in snapshot_channel_cb_routine()
1607 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in snapshot_channel_cb_routine()
1614 if (pme->isLowPowerMode()) { in snapshot_channel_cb_routine()
1615 pChannel = pme->m_channels[QCAMERA_CH_TYPE_VIDEO]; in snapshot_channel_cb_routine()
1617 pChannel = pme->m_channels[QCAMERA_CH_TYPE_SNAPSHOT]; in snapshot_channel_cb_routine()
1642 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "Snapshot"); in snapshot_channel_cb_routine()
1664 if ((NO_ERROR != pme->waitDeferredWork(pme->mReprocJob)) || in snapshot_channel_cb_routine()
1665 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in snapshot_channel_cb_routine()
1701 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in raw_stream_cb_routine() local
1702 if (pme == NULL || in raw_stream_cb_routine()
1703 pme->mCameraHandle == NULL || in raw_stream_cb_routine()
1704 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in raw_stream_cb_routine()
1711 pme->m_postprocessor.processRawData(super_frame); in raw_stream_cb_routine()
1739 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in raw_channel_cb_routine() local
1740 if (pme == NULL || in raw_channel_cb_routine()
1741 pme->mCameraHandle == NULL || in raw_channel_cb_routine()
1742 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in raw_channel_cb_routine()
1749 QCameraChannel *pChannel = pme->m_channels[QCAMERA_CH_TYPE_RAW]; in raw_channel_cb_routine()
1773 pme->dumpMetadataToFile(pStream, pMetaFrame, (char *) "raw"); in raw_channel_cb_routine()
1797 if ((NO_ERROR != pme->waitDeferredWork(pme->mReprocJob)) || in raw_channel_cb_routine()
1798 (NO_ERROR != pme->m_postprocessor.processData(frame))) { in raw_channel_cb_routine()
1834 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in preview_raw_stream_cb_routine() local
1835 if (pme == NULL || in preview_raw_stream_cb_routine()
1836 pme->mCameraHandle == NULL || in preview_raw_stream_cb_routine()
1837 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in preview_raw_stream_cb_routine()
1851 if (dump_preview_raw || (pme->mParameters.getRecordingHintValue() in preview_raw_stream_cb_routine()
1853 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in preview_raw_stream_cb_routine()
1886 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in snapshot_raw_stream_cb_routine() local
1887 if (pme == NULL || in snapshot_raw_stream_cb_routine()
1888 pme->mCameraHandle == NULL || in snapshot_raw_stream_cb_routine()
1889 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in snapshot_raw_stream_cb_routine()
1904 pme->dumpFrameToFile(stream, raw_frame, QCAMERA_DUMP_FRM_RAW); in snapshot_raw_stream_cb_routine()
2032 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in metadata_stream_cb_routine() local
2033 if (pme == NULL || in metadata_stream_cb_routine()
2034 pme->mCameraHandle == NULL || in metadata_stream_cb_routine()
2035 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in metadata_stream_cb_routine()
2044 if(pme->m_stateMachine.isNonZSLCaptureRunning()&& in metadata_stream_cb_routine()
2045 !pme->mLongshotEnabled) { in metadata_stream_cb_routine()
2047 pme->playShutter(); in metadata_stream_cb_routine()
2050 if (pMetaData->is_tuning_params_valid && pme->mParameters.getRecordingHintValue() == true) { in metadata_stream_cb_routine()
2052 pme->dumpMetadataToFile(stream,frame,(char *)"Video"); in metadata_stream_cb_routine()
2064 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2080 pme->fillFacesData(faces_data, pMetaData); in metadata_stream_cb_routine()
2089 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2122 pme->mActiveAF){ in metadata_stream_cb_routine()
2126 if ((pme->m_currentFocusState != (*afState)) || forceAFUpdate) { in metadata_stream_cb_routine()
2127 cam_af_state_t prevFocusState = pme->m_currentFocusState; in metadata_stream_cb_routine()
2128 pme->m_currentFocusState = (cam_af_state_t)(*afState); in metadata_stream_cb_routine()
2140 ((pme->m_currentFocusState == CAM_AF_STATE_FOCUSED_LOCKED) || in metadata_stream_cb_routine()
2141 (pme->m_currentFocusState == CAM_AF_STATE_NOT_FOCUSED_LOCKED)); in metadata_stream_cb_routine()
2158 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2182 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2202 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2218 if (!pme->m_stateMachine.isCaptureRunning()) { in metadata_stream_cb_routine()
2226 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2246 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2266 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2278 pme->mExifParams.sensor_params.flash_mode = (cam_flash_mode_t)*flash_mode; in metadata_stream_cb_routine()
2282 pme->mExifParams.sensor_params.flash_state = (cam_flash_state_t) *flash_state; in metadata_stream_cb_routine()
2286 pme->mExifParams.sensor_params.aperture_value = *aperture_value; in metadata_stream_cb_routine()
2290 pme->mExifParams.cam_3a_params = *ae_params; in metadata_stream_cb_routine()
2291 pme->mExifParams.cam_3a_params_valid = TRUE; in metadata_stream_cb_routine()
2292 pme->mFlashNeeded = ae_params->flash_needed; in metadata_stream_cb_routine()
2293 pme->mExifParams.cam_3a_params.brightness = (float) pme->mParameters.getBrightness(); in metadata_stream_cb_routine()
2301 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2313 pme->mExifParams.cam_3a_params.wb_mode = (cam_wb_mode_type) *wb_mode; in metadata_stream_cb_routine()
2317 pme->mExifParams.sensor_params = *sensor_params; in metadata_stream_cb_routine()
2322 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2323 pme->mExifParams.debug_params->ae_debug_params = *ae_exif_debug_params; in metadata_stream_cb_routine()
2324 pme->mExifParams.debug_params->ae_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2330 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2331 pme->mExifParams.debug_params->awb_debug_params = *awb_exif_debug_params; in metadata_stream_cb_routine()
2332 pme->mExifParams.debug_params->awb_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2338 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2339 pme->mExifParams.debug_params->af_debug_params = *af_exif_debug_params; in metadata_stream_cb_routine()
2340 pme->mExifParams.debug_params->af_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2346 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2347 pme->mExifParams.debug_params->asd_debug_params = *asd_exif_debug_params; in metadata_stream_cb_routine()
2348 pme->mExifParams.debug_params->asd_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2354 if (pme->mExifParams.debug_params) { in metadata_stream_cb_routine()
2355 pme->mExifParams.debug_params->stats_debug_params = *stats_exif_debug_params; in metadata_stream_cb_routine()
2356 pme->mExifParams.debug_params->stats_debug_params_valid = TRUE; in metadata_stream_cb_routine()
2368 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2381 edge_application.sharpness = pme->mParameters.getSharpness(); in metadata_stream_cb_routine()
2397 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2408 if (pme->mParameters.getLowLightCapture()) { in metadata_stream_cb_routine()
2411 pme->mParameters.setLowLightLevel(*low_light_level); in metadata_stream_cb_routine()
2417 pme->mParameters.setDynamicImgData(*dyn_img_data); in metadata_stream_cb_routine()
2455 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in reprocess_stream_cb_routine() local
2456 if (pme == NULL || in reprocess_stream_cb_routine()
2457 pme->mCameraHandle == NULL || in reprocess_stream_cb_routine()
2458 pme->mCameraHandle->camera_handle != super_frame->camera_handle){ in reprocess_stream_cb_routine()
2465 pme->m_postprocessor.processPPData(super_frame); in reprocess_stream_cb_routine()
2488 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)userdata; in callback_stream_cb_routine() local
2490 if (pme == NULL || in callback_stream_cb_routine()
2491 pme->mCameraHandle == NULL || in callback_stream_cb_routine()
2492 pme->mCameraHandle->camera_handle != super_frame->camera_handle) { in callback_stream_cb_routine()
2506 if (!pme->needProcessPreviewFrame(frame->frame_idx)) { in callback_stream_cb_routine()
2515 if (pme->mDataCb != NULL && in callback_stream_cb_routine()
2516 (pme->msgTypeEnabledWithLock(CAMERA_MSG_PREVIEW_FRAME) > 0) && in callback_stream_cb_routine()
2517 (!pme->mParameters.isSceneSelectionEnabled())) { in callback_stream_cb_routine()
2518 int32_t rc = pme->sendPreviewCallback(stream, previewMemObj, frame->buf_idx); in callback_stream_cb_routine()
3114 QCameraCbNotifier *pme = (QCameraCbNotifier *)data; in cbNotifyRoutine() local
3115 QCameraCmdThread *cmdThread = &pme->mProcTh; in cbNotifyRoutine()
3140 numOfSnapshotExpected = pme->mParent->numOfSnapshotsExpected(); in cbNotifyRoutine()
3141 longShotEnabled = pme->mParent->isLongshotEnabled(); in cbNotifyRoutine()
3149 pme->mDataQ.flushNodes(matchSnapshotNotifications); in cbNotifyRoutine()
3159 (qcamera_callback_argm_t *)pme->mDataQ.dequeue(); in cbNotifyRoutine()
3165 if (pme->mParent->msgTypeEnabledWithLock(cb->msg_type)) { in cbNotifyRoutine()
3173 if (pme->mNotifyCb) { in cbNotifyRoutine()
3174 pme->mNotifyCb(cb->msg_type, in cbNotifyRoutine()
3177 pme->mCallbackCookie); in cbNotifyRoutine()
3189 if (pme->mDataCb) { in cbNotifyRoutine()
3190 pme->mDataCb(cb->msg_type, in cbNotifyRoutine()
3194 pme->mCallbackCookie); in cbNotifyRoutine()
3206 if(pme->mDataCbTimestamp) { in cbNotifyRoutine()
3207 pme->mDataCbTimestamp(cb->timestamp, in cbNotifyRoutine()
3211 pme->mCallbackCookie); in cbNotifyRoutine()
3223 if (TRUE == isSnapshotActive && pme->mDataCb ) { in cbNotifyRoutine()
3232pme->mParent->processSyncEvt(QCAMERA_SM_EVT_SNAPSHOT_DONE, in cbNotifyRoutine()
3236 if (pme->mJpegCb) { in cbNotifyRoutine()
3240 pme->mParent->getCameraId(), in cbNotifyRoutine()
3243 pme->mJpegCb(cb->msg_type, cb->data, in cbNotifyRoutine()
3245 pme->mJpegCallbackCookie, in cbNotifyRoutine()
3255 pme->mDataCb(cb->msg_type, cb->data, cb->index, in cbNotifyRoutine()
3256 cb->metadata, pme->mCallbackCookie); in cbNotifyRoutine()
3294 pme->mDataQ.flush(); in cbNotifyRoutine()