/hardware/qcom/camera/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 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() [all …]
|
D | QCameraPostProc.cpp | 1493 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releasePPInputData() local 1494 if (NULL != pme) { in releasePPInputData() 1497 pme->releaseSuperBuf(pp_job->src_frame); in releasePPInputData() 1504 pme->releaseSuperBuf(pp_job->src_reproc_frame); in releasePPInputData() 1525 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseJpegData() local 1526 if (NULL != pme) { in releaseJpegData() 1527 pme->releaseJpegJobData((qcamera_jpeg_data_t *)data); in releaseJpegData() 1546 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseOngoingPPData() local 1547 if (NULL != pme) { in releaseOngoingPPData() 1551 pme->releaseSuperBuf(pp_job->src_frame); in releaseOngoingPPData() [all …]
|
D | QCameraStream.cpp | 1090 QCameraStream *pme = (QCameraStream *)data; in dataProcRoutine() local 1091 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine() 1112 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine() 1114 if (pme->mDataCB != NULL) { in dataProcRoutine() 1115 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine() 1118 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine() 1127 pme->mDataQ.flush(); in dataProcRoutine() 1981 QCameraStream *pme = (QCameraStream *)data; in BufAllocRoutine() local 1985 pme->cond_wait(); in BufAllocRoutine() 1986 if (pme->mNumBufsNeedAlloc > 0) { in BufAllocRoutine() [all …]
|
D | QCamera2HWI.cpp | 9353 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)obj; in deferredWorkRoutine() local 9354 QCameraCmdThread *cmdThread = &pme->mDeferredWorkThread; in deferredWorkRoutine() 9384 reinterpret_cast<DefWork *>(pme->mCmdQueue.dequeue()); in deferredWorkRoutine() 9420 pme->sendEvtNotify(CAMERA_MSG_ERROR, in deferredWorkRoutine() 9430 int32_t ret = pme->getDefJobStatus(pme->mInitPProcJob); in deferredWorkRoutine() 9434 pme->sendEvtNotify(CAMERA_MSG_ERROR, in deferredWorkRoutine() 9441 if (pme->m_postprocessor.start(pChannel) != NO_ERROR) { in deferredWorkRoutine() 9444 pme->sendEvtNotify(CAMERA_MSG_ERROR, in deferredWorkRoutine() 9451 int32_t ret = pme->getDefJobStatus(pme->mParamAllocJob); in deferredWorkRoutine() 9455 pme->sendEvtNotify(CAMERA_MSG_ERROR, in deferredWorkRoutine() [all …]
|
D | QCameraStateMachine.cpp | 60 QCameraStateMachine *pme = (QCameraStateMachine *)data; in smEvtProcRoutine() local 65 ret = cam_sem_wait(&pme->cmd_sem); in smEvtProcRoutine() 75 qcamera_sm_cmd_t *node = (qcamera_sm_cmd_t *)pme->api_queue.dequeue(); in smEvtProcRoutine() 78 node = (qcamera_sm_cmd_t *)pme->evt_queue.dequeue(); in smEvtProcRoutine() 83 pme->stateMachine(node->evt, node->evt_payload); in smEvtProcRoutine() 88 pme->stateMachine(node->evt, node->evt_payload); in smEvtProcRoutine()
|
/hardware/qcom/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_snapshot.c | 42 mm_camera_test_obj_t *pme = NULL; in jpeg_encode_cb() local 45 pme = (mm_camera_test_obj_t *)userData; in jpeg_encode_cb() 46 if (pme->jpeg_hdl != client_hdl || in jpeg_encode_cb() 47 jobId != pme->current_job_id || in jpeg_encode_cb() 48 !pme->current_job_frames) { in jpeg_encode_cb() 50 jobId, pme->current_job_id); in jpeg_encode_cb() 61 pme->current_job_id = 0; in jpeg_encode_cb() 62 for (i = 0; i < pme->current_job_frames->num_bufs; i++) { in jpeg_encode_cb() 63 if (MM_CAMERA_OK != pme->cam->ops->qbuf(pme->current_job_frames->camera_handle, in jpeg_encode_cb() 64 pme->current_job_frames->ch_id, in jpeg_encode_cb() [all …]
|
D | mm_qcamera_reprocess.c | 38 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_reprocess_notify_cb() local 51 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_reprocess_notify_cb() 52 channel = &pme->channels[i]; in mm_app_reprocess_notify_cb() 66 if ( pme->encodeJpeg ) { in mm_app_reprocess_notify_cb() 67 pme->jpeg_buf.buf.buffer = (uint8_t *)malloc(m_frame->frame_len); in mm_app_reprocess_notify_cb() 68 if ( NULL == pme->jpeg_buf.buf.buffer ) { in mm_app_reprocess_notify_cb() 73 pme->jpeg_buf.buf.frame_len = m_frame->frame_len; in mm_app_reprocess_notify_cb() 75 rc = createEncodingSession(pme, m_stream, m_frame); in mm_app_reprocess_notify_cb() 78 free(pme->jpeg_buf.buf.buffer); in mm_app_reprocess_notify_cb() 84 rc = encodeData(pme, bufs, m_stream); in mm_app_reprocess_notify_cb() [all …]
|
D | mm_qcamera_preview.c | 51 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_metadata_notify_cb() local 63 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb() 64 channel = &pme->channels[i]; in mm_app_metadata_notify_cb() 95 if (pme->metadata == NULL) { in mm_app_metadata_notify_cb() 97 pme->metadata = malloc(sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb() 98 if (NULL == pme->metadata) { in mm_app_metadata_notify_cb() 103 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb() 117 if (pme->user_metadata_cb) { in mm_app_metadata_notify_cb() 119 pme->user_metadata_cb(frame); in mm_app_metadata_notify_cb() 122 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb() [all …]
|
D | mm_qcamera_video.c | 39 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_video_notify_cb() local 43 snprintf(file_name, sizeof(file_name), "V_C%d", pme->cam->camera_handle); in mm_app_video_notify_cb() 46 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_video_notify_cb()
|
D | mm_qcamera_rdi.c | 72 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_rdi_notify_cb() local 76 snprintf(file_name, sizeof(file_name), "RDI_dump_%d", pme->cam->camera_handle); in mm_app_rdi_notify_cb() 79 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_rdi_notify_cb()
|
/hardware/qcom/camera/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 820 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releasePPInputData() local 821 if (NULL != pme) { in releasePPInputData() 825 pme->releaseSuperBuf(buf->input); in releasePPInputData() 846 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseMetadata() local 847 if (NULL != pme) { in releaseMetadata() 848 pme->m_parent->metadataBufDone((mm_camera_super_buf_t *)data); in releaseMetadata() 865 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseJpegData() local 866 if (NULL != pme) { in releaseJpegData() 867 pme->releaseJpegJobData((qcamera_hal3_jpeg_data_t *)data); in releaseJpegData() 884 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseOngoingPPData() local [all …]
|
D | QCamera3Stream.cpp | 571 QCamera3Stream *pme = (QCamera3Stream *)data; in dataProcRoutine() local 572 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine() 574 cmdThread->setName(mStreamNames[pme->mStreamInfo->stream_type]); in dataProcRoutine() 594 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine() 598 pme->handleBatchBuffer(frame); in dataProcRoutine() 599 } else if (pme->mDataCB != NULL) { in dataProcRoutine() 600 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine() 603 pme->bufDone(frame->bufs[0]->buf_idx); in dataProcRoutine() 611 pme->mDataQ.flush(); in dataProcRoutine() 612 pme->flushFreeBatchBufQ(); in dataProcRoutine() [all …]
|