Home
last modified time | relevance | path

Searched refs:pPreviousPeaks (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
H A DLVPSA_Process.cpp220 if (pLVPSA_Inst->pPreviousPeaks[ii] <= pRead[ii]) { in LVPSA_GetSpectrum()
221 pLVPSA_Inst->pPreviousPeaks[ii] = pRead[ii]; in LVPSA_GetSpectrum()
222 } else if (pLVPSA_Inst->pPreviousPeaks[ii] != 0) { in LVPSA_GetSpectrum()
225 temp = (LVM_INT32)(LVPSA_MAXUNSIGNEDCHAR - pLVPSA_Inst->pPreviousPeaks[ii]); in LVPSA_GetSpectrum()
228 if (temp == (LVPSA_MAXUNSIGNEDCHAR - pLVPSA_Inst->pPreviousPeaks[ii])) { in LVPSA_GetSpectrum()
234 pLVPSA_Inst->pPreviousPeaks[ii] = (LVM_UINT8)(LVPSA_MAXUNSIGNEDCHAR - temp); in LVPSA_GetSpectrum()
237 pPeakValues[ii] = pLVPSA_Inst->pPreviousPeaks[ii]; in LVPSA_GetSpectrum()
H A DLVPSA_Init.cpp97 pLVPSA_Inst->pPreviousPeaks = in LVPSA_Init()
98 (LVM_UINT8*)calloc(pInitParams->nBands, sizeof(*(pLVPSA_Inst->pPreviousPeaks))); in LVPSA_Init()
99 if (pLVPSA_Inst->pPreviousPeaks == LVM_NULL) { in LVPSA_Init()
174 if (pLVPSA_Inst->pPreviousPeaks != LVM_NULL) { in LVPSA_DeInit()
175 free(pLVPSA_Inst->pPreviousPeaks); in LVPSA_DeInit()
176 pLVPSA_Inst->pPreviousPeaks = LVM_NULL; in LVPSA_DeInit()
H A DLVPSA_Private.h119 LVM_UINT8* pPreviousPeaks; /* Points to a nBands elements array that contains the previous peak member
H A DLVPSA_Control.cpp203 pInst->pPreviousPeaks[ii] = 0; in LVPSA_ApplyNewSettings()