Home
last modified time | relevance | path

Searched refs:nBands (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Init.cpp58 pLVPSA_Inst->nBands = pInitParams->nBands; in LVPSA_Init()
82 (LVM_FLOAT*)calloc(pInitParams->nBands, sizeof(*(pLVPSA_Inst->pPostGains))); in LVPSA_Init()
87 pInitParams->nBands, sizeof(*(pLVPSA_Inst->pFiltersParams))); in LVPSA_Init()
92 pInitParams->nBands, pLVPSA_Inst->SpectralDataBufferLength * in LVPSA_Init()
98 (LVM_UINT8*)calloc(pInitParams->nBands, sizeof(*(pLVPSA_Inst->pPreviousPeaks))); in LVPSA_Init()
103 pInitParams->nBands, sizeof(*(pLVPSA_Inst->pBPFiltersPrecision))); in LVPSA_Init()
108 (QPD_FLOAT_State_t*)calloc(pInitParams->nBands, sizeof(*(pLVPSA_Inst->pQPD_States))); in LVPSA_Init()
113 (QPD_FLOAT_Taps_t*)calloc(pInitParams->nBands, sizeof(*(pLVPSA_Inst->pQPD_Taps))); in LVPSA_Init()
119 for (ii = 0; ii < pLVPSA_Inst->nBands; ii++) { in LVPSA_Init()
124 for (ii = 0; ii < pLVPSA_Inst->nBands; ii++) { in LVPSA_Init()
DLVPSA_Process.cpp201 for (ii = 0; ii < pLVPSA_Inst->nBands; ii++) { in LVPSA_GetSpectrum()
208 if ((LVM_INT32)(StatusDelta * pLVPSA_Inst->nBands) > in LVPSA_GetSpectrum()
212 pLVPSA_Inst->nBands; in LVPSA_GetSpectrum()
214 pRead = pLVPSA_Inst->pSpectralDataBufferWritePointer - StatusDelta * pLVPSA_Inst->nBands; in LVPSA_GetSpectrum()
218 for (ii = 0; ii < pLVPSA_Inst->nBands; ii++) { in LVPSA_GetSpectrum()
DLVPSA_QPD_Process.cpp183 pWrite += pLVPSA_Inst->nBands; in LVPSA_QPD_WritePeak()
185 pLVPSA_Inst->nBands * pLVPSA_Inst->SpectralDataBufferLength)) { in LVPSA_QPD_WritePeak()
197 pWrite += pLVPSA_Inst->nBands; in LVPSA_QPD_WritePeak_Float()
199 pLVPSA_Inst->nBands * pLVPSA_Inst->SpectralDataBufferLength)) { in LVPSA_QPD_WritePeak_Float()
DLVPSA_Control.cpp126 pParams->nBands = pLVPSA_Inst->nBands; in LVPSA_GetInitParams()
171 (pInst->nBands + 1)); in LVPSA_ApplyNewSettings()
172 for (ii = pInst->nBands; ii > 0; ii--) { in LVPSA_ApplyNewSettings()
179 for (ii = pInst->nBands; ii > 0; ii--) { in LVPSA_ApplyNewSettings()
199 for (ii = 0; ii < (pInst->nBands * pInst->SpectralDataBufferLength); ii++) { in LVPSA_ApplyNewSettings()
202 for (ii = 0; ii < pInst->nBands; ii++) { in LVPSA_ApplyNewSettings()
DLVPSA_Private.h76 LVM_UINT16 nBands; /* Number of bands of the spectrum analyzer */ member
/frameworks/av/media/libeffects/testlibs/
DAudioEqualizer.cpp31 size_t AudioEqualizer::GetInstanceSize(int nBands) { in GetInstanceSize() argument
32 assert(nBands >= 2); in GetInstanceSize()
35 sizeof(AudioPeakingFilter) * (nBands - 2); in GetInstanceSize()
38 AudioEqualizer * AudioEqualizer::CreateInstance(void * pMem, int nBands, in CreateInstance() argument
44 pMem, nBands, nChannels, sampleRate, nPresets); in CreateInstance()
45 assert(nBands >= 2); in CreateInstance()
48 pMem = malloc(GetInstanceSize(nBands)); in CreateInstance()
54 return new (pMem) AudioEqualizer(pMem, nBands, nChannels, sampleRate, in CreateInstance()
287 AudioEqualizer::AudioEqualizer(void * pMem, int nBands, int nChannels, in AudioEqualizer() argument
304 mNumPeaking = nBands - 2; in AudioEqualizer()
DAudioEqualizer.h59 static size_t GetInstanceSize(int nBands);
79 static AudioEqualizer * CreateInstance(void * pMem, int nBands,
240 AudioEqualizer(void * pMem, int nBands, int nChannels, int sampleRate,
/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/lib/
DLVPSA.h49 LVM_UINT16 nBands; /* Number of bands of the SA */ member
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Init.cpp386 pInstance->PSA_InitParams.nBands = (LVM_UINT16)9; in LVM_GetInstanceHandle()
388 for (i = 0; i < pInstance->PSA_InitParams.nBands; i++) { in LVM_GetInstanceHandle()