/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 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() [all …]
|
D | QCameraPostProc.cpp | 1708 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releasePPInputData() local 1709 if (NULL != pme) { in releasePPInputData() 1712 pme->releaseSuperBuf(pp_job->src_frame); in releasePPInputData() 1719 pme->releaseSuperBuf(pp_job->src_reproc_frame); in releasePPInputData() 1740 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseJpegData() local 1741 if (NULL != pme) { in releaseJpegData() 1742 pme->releaseJpegJobData((qcamera_jpeg_data_t *)data); in releaseJpegData() 1761 QCameraPostProcessor *pme = (QCameraPostProcessor *)user_data; in releaseOngoingPPData() local 1762 if (NULL != pme) { in releaseOngoingPPData() 1766 pme->releaseSuperBuf(pp_job->src_frame); in releaseOngoingPPData() [all …]
|
D | QCameraStream.cpp | 1164 QCameraStream *pme = (QCameraStream *)data; in dataProcRoutine() local 1165 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine() 1186 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine() 1188 if (pme->mDataCB != NULL) { in dataProcRoutine() 1189 pme->mDataCB(frame, pme, pme->mUserData); in dataProcRoutine() 1192 pme->bufDone(frame); in dataProcRoutine() 1201 pme->mDataQ.flush(); in dataProcRoutine() 2112 QCameraStream *pme = (QCameraStream *)data; in BufAllocRoutine() local 2116 pme->cond_wait(); in BufAllocRoutine() 2117 if (pme->mNumBufsNeedAlloc > 0) { in BufAllocRoutine() [all …]
|
D | QCamera2HWI.cpp | 10434 QCamera2HardwareInterface *pme = (QCamera2HardwareInterface *)obj; in deferredWorkRoutine() local 10435 QCameraCmdThread *cmdThread = &pme->mDeferredWorkThread; in deferredWorkRoutine() 10465 reinterpret_cast<DefWork *>(pme->mCmdQueue.dequeue()); in deferredWorkRoutine() 10501 pme->sendEvtNotify(CAMERA_MSG_ERROR, in deferredWorkRoutine() 10511 int32_t ret = pme->getDefJobStatus(pme->mInitPProcJob); in deferredWorkRoutine() 10515 pme->sendEvtNotify(CAMERA_MSG_ERROR, in deferredWorkRoutine() 10522 if (pme->m_postprocessor.start(pChannel) != NO_ERROR) { in deferredWorkRoutine() 10525 pme->sendEvtNotify(CAMERA_MSG_ERROR, in deferredWorkRoutine() 10532 int32_t ret = pme->getDefJobStatus(pme->mParamAllocJob); in deferredWorkRoutine() 10536 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/msm8998/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_preview.c | 55 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_metadata_notify_cb() local 67 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb() 68 channel = &pme->channels[i]; in mm_app_metadata_notify_cb() 99 if (pme->metadata == NULL) { in mm_app_metadata_notify_cb() 101 pme->metadata = malloc(sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb() 102 if (NULL == pme->metadata) { in mm_app_metadata_notify_cb() 108 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb() 113 pme->mExifParams.sensor_params.flash_mode = (cam_flash_mode_t)*flash_mode; in mm_app_metadata_notify_cb() 117 pme->mExifParams.sensor_params.flash_state = (cam_flash_state_t) *flash_state; in mm_app_metadata_notify_cb() 121 pme->mExifParams.sensor_params.aperture_value = *aperture_value; in mm_app_metadata_notify_cb() [all …]
|
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_video.c | 40 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_metadata_notify_cb() local 52 if (pme->channels[i].ch_id == bufs->ch_id) { in mm_app_metadata_notify_cb() 53 channel = &pme->channels[i]; in mm_app_metadata_notify_cb() 84 if (pme->metadata == NULL) { in mm_app_metadata_notify_cb() 86 pme->metadata = malloc(sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb() 87 if (NULL == pme->metadata) { in mm_app_metadata_notify_cb() 92 memcpy(pme->metadata, frame->buffer, sizeof(metadata_buffer_t)); in mm_app_metadata_notify_cb() 106 if (pme->user_metadata_cb) { in mm_app_metadata_notify_cb() 108 pme->user_metadata_cb(frame); in mm_app_metadata_notify_cb() 111 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_metadata_notify_cb() [all …]
|
D | mm_qcamera_rdi.c | 73 mm_camera_test_obj_t *pme = (mm_camera_test_obj_t *)user_data; in mm_app_rdi_notify_cb() local 77 snprintf(file_name, sizeof(file_name), "RDI_dump_%d", pme->cam->camera_handle); in mm_app_rdi_notify_cb() 80 if (MM_CAMERA_OK != pme->cam->ops->qbuf(bufs->camera_handle, in mm_app_rdi_notify_cb()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3PostProc.cpp | 873 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releasePPInputData() local 874 if (NULL != pme) { in releasePPInputData() 878 pme->releaseSuperBuf(buf->input); in releasePPInputData() 899 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseMetadata() local 900 if (NULL != pme) { in releaseMetadata() 901 pme->m_parent->metadataBufDone((mm_camera_super_buf_t *)data); in releaseMetadata() 918 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseJpegData() local 919 if (NULL != pme) { in releaseJpegData() 920 pme->releaseJpegJobData((qcamera_hal3_jpeg_data_t *)data); in releaseJpegData() 937 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)user_data; in releaseOngoingPPData() local [all …]
|
D | QCamera3Stream.cpp | 672 QCamera3Stream *pme = (QCamera3Stream *)data; in dataProcRoutine() local 673 QCameraCmdThread *cmdThread = &pme->mProcTh; in dataProcRoutine() 675 cmdThread->setName(mStreamNames[pme->mStreamInfo->stream_type]); in dataProcRoutine() 695 Mutex::Autolock lock(pme->mTimeoutFrameQLock); in dataProcRoutine() 696 if (pme->mTimeoutFrameQ.size()) { in dataProcRoutine() 697 auto itr = pme->mTimeoutFrameQ.begin(); in dataProcRoutine() 699 itr = pme->mTimeoutFrameQ.erase(itr); in dataProcRoutine() 705 pme->cancelBuffer(bufIdx); in dataProcRoutine() 712 (mm_camera_super_buf_t *)pme->mDataQ.dequeue(); in dataProcRoutine() 716 pme->handleBatchBuffer(frame); in dataProcRoutine() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/util/ |
D | QCameraHALPP.cpp | 279 QCameraHALPP *pme = (QCameraHALPP *)pUserData; in releaseOngoingDataCb() local 280 pme->releaseData((qcamera_hal_pp_data_t*)pData); in releaseOngoingDataCb() 298 QCameraHALPP *pme = (QCameraHALPP *)pUserData; in releaseInputDataCb() local 303 std::vector<qcamera_hal_pp_data_t*> *pVector = pme->getFrameVector(frameIndex); in releaseInputDataCb() 307 pme->releaseData(pVector->at(i)); in releaseInputDataCb()
|