Lines Matching refs:pme
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
938 if (NULL != pme) { in releaseOngoingPPData()
942 pme->releaseSuperBuf(pp_data->src_frame); in releaseOngoingPPData()
944 pme->releasePPJobData(pp_data); in releaseOngoingPPData()
2016 QCamera3PostProcessor *pme = (QCamera3PostProcessor *)data; in dataProcessRoutine() local
2017 QCameraCmdThread *cmdThread = &pme->m_dataProcTh; in dataProcessRoutine()
2038 pme->m_ongoingPPQ.init(); in dataProcessRoutine()
2039 pme->m_inputJpegQ.init(); in dataProcessRoutine()
2040 pme->m_inputPPQ.init(); in dataProcessRoutine()
2041 pme->m_inputFWKPPQ.init(); in dataProcessRoutine()
2042 pme->m_inputMetaQ.init(); in dataProcessRoutine()
2043 pme->m_jpegSettingsQ.init(); in dataProcessRoutine()
2054 (qcamera_hal3_jpeg_data_t *)pme->m_ongoingJpegQ.dequeue(); in dataProcessRoutine()
2056 pme->mJpegHandle.abort_job(jpeg_job->jobId); in dataProcessRoutine()
2058 pme->releaseJpegJobData(jpeg_job); in dataProcessRoutine()
2061 jpeg_job = (qcamera_hal3_jpeg_data_t *)pme->m_ongoingJpegQ.dequeue(); in dataProcessRoutine()
2065 if ( 0 < pme->mJpegSessionId ) { in dataProcessRoutine()
2066 pme->mJpegHandle.destroy_session(pme->mJpegSessionId); in dataProcessRoutine()
2067 pme->mJpegSessionId = 0; in dataProcessRoutine()
2073 pme->m_ongoingPPQ.flush(); in dataProcessRoutine()
2076 pme->m_inputJpegQ.flush(); in dataProcessRoutine()
2079 pme->m_inputPPQ.flush(); in dataProcessRoutine()
2082 pme->m_inputFWKPPQ.flush(); in dataProcessRoutine()
2084 pme->m_inputMetaQ.flush(); in dataProcessRoutine()
2086 pme->m_jpegSettingsQ.flush(); in dataProcessRoutine()
2100 if (pme->m_ongoingJpegQ.isEmpty()) { in dataProcessRoutine()
2104 (qcamera_hal3_jpeg_data_t *)pme->m_inputJpegQ.dequeue(); in dataProcessRoutine()
2108 pme->m_ongoingJpegQ.enqueue((void *)jpeg_job); in dataProcessRoutine()
2111 ret = pme->encodeFWKData(jpeg_job, needNewSess); in dataProcessRoutine()
2113 ret = pme->encodeData(jpeg_job, needNewSess); in dataProcessRoutine()
2117 pme->m_ongoingJpegQ.dequeue(false); in dataProcessRoutine()
2119 pme->releaseJpegJobData(jpeg_job); in dataProcessRoutine()
2126 if (!pme->m_inputFWKPPQ.isEmpty()) { in dataProcessRoutine()
2128 (qcamera_fwk_input_pp_data_t *) pme->m_inputFWKPPQ.dequeue(); in dataProcessRoutine()
2133 (jpeg_settings_t *)pme->m_jpegSettingsQ.dequeue(); in dataProcessRoutine()
2137 if (pme->m_pReprocChannel != NULL) { in dataProcessRoutine()
2138 … if (NO_ERROR != pme->m_pReprocChannel->overrideFwkMetadata(fwk_frame)) { in dataProcessRoutine()
2143 pme->m_ongoingPPQ.enqueue((void *)pp_job); in dataProcessRoutine()
2144 ret = pme->m_pReprocChannel->doReprocessOffline(fwk_frame); in dataProcessRoutine()
2147 pme->m_ongoingPPQ.dequeue(false); in dataProcessRoutine()
2172 pthread_mutex_lock(&pme->mReprocJobLock); in dataProcessRoutine()
2173 if(!pme->m_inputPPQ.isEmpty() && !pme->m_inputMetaQ.isEmpty()) { in dataProcessRoutine()
2175 (qcamera_hal3_pp_buffer_t *)pme->m_inputPPQ.dequeue(); in dataProcessRoutine()
2177 (mm_camera_super_buf_t *)pme->m_inputMetaQ.dequeue(); in dataProcessRoutine()
2179 (jpeg_settings_t *)pme->m_jpegSettingsQ.dequeue(); in dataProcessRoutine()
2180 pthread_mutex_unlock(&pme->mReprocJobLock); in dataProcessRoutine()
2187 pme->m_parent->postprocFail(pp_buffer); in dataProcessRoutine()
2202 pme->m_ongoingPPQ.enqueue((void *)pp_job); in dataProcessRoutine()
2203 if (pme->m_pReprocChannel != NULL) { in dataProcessRoutine()
2209 ret = pme->m_pReprocChannel->overrideMetadata( in dataProcessRoutine()
2215 pme->mPerfLockMgr.acquirePerfLock(PERF_LOCK_OFFLINE_REPROC); in dataProcessRoutine()
2216 ret = pme->m_pReprocChannel->doReprocessOffline( in dataProcessRoutine()
2218 pme->mPerfLockMgr.releasePerfLock(PERF_LOCK_OFFLINE_REPROC); in dataProcessRoutine()
2221 pme->m_ongoingPPQ.dequeue(false); in dataProcessRoutine()
2226 ret = pme->processPPData(pp_buffer->input); in dataProcessRoutine()
2238 pme->releaseSuperBuf(pp_buffer->input); in dataProcessRoutine()
2245 pme->m_parent->metadataBufDone(meta_buffer); in dataProcessRoutine()
2254 pthread_mutex_unlock(&pme->mReprocJobLock); in dataProcessRoutine()
2259 (qcamera_hal3_jpeg_data_t *)pme->m_inputJpegQ.dequeue(); in dataProcessRoutine()
2265 (qcamera_hal3_pp_buffer_t *)pme->m_inputPPQ.dequeue(); in dataProcessRoutine()
2268 pme->releaseSuperBuf(pp_buf->input); in dataProcessRoutine()
2274 … mm_camera_super_buf_t *metadata = (mm_camera_super_buf_t *)pme->m_inputMetaQ.dequeue(); in dataProcessRoutine()
2276 pme->m_parent->metadataBufDone(metadata); in dataProcessRoutine()
2280 (qcamera_fwk_input_pp_data_t *) pme->m_inputFWKPPQ.dequeue(); in dataProcessRoutine()