Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Init.c72 (pInitParams->nBands < LVPSA_NBANDSMIN) || in LVPSA_Init()
73 (pInitParams->nBands > LVPSA_NBANDSMAX) || in LVPSA_Init()
78 for(ii = 0; ii < pInitParams->nBands; ii++) in LVPSA_Init()
121 pLVPSA_Inst->nBands = pInitParams->nBands; in LVPSA_Init()
149 …pLVPSA_Inst->pPostGains = InstAlloc_AddMember( &Instance, pInitParams->nBands * si… in LVPSA_Init()
151 pLVPSA_Inst->pPostGains = InstAlloc_AddMember( &Instance, pInitParams->nBands * \ in LVPSA_Init()
154 …pLVPSA_Inst->pFiltersParams = InstAlloc_AddMember( &Instance, pInitParams->nBands * si… in LVPSA_Init()
155 …pLVPSA_Inst->pSpectralDataBufferStart = InstAlloc_AddMember( &Instance, pInitParams->nBands * pL… in LVPSA_Init()
156 …pLVPSA_Inst->pPreviousPeaks = InstAlloc_AddMember( &Instance, pInitParams->nBands * si… in LVPSA_Init()
157 …pLVPSA_Inst->pBPFiltersPrecision = InstAlloc_AddMember( &Instance, pInitParams->nBands * si… in LVPSA_Init()
[all …]
DLVPSA_Memory.c86 (pInitParams->nBands < LVPSA_NBANDSMIN) || in LVPSA_Memory()
87 (pInitParams->nBands > LVPSA_NBANDSMAX) || in LVPSA_Memory()
92 for(ii = 0; ii < pInitParams->nBands; ii++) in LVPSA_Memory()
110 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVM_FLOAT) ); in LVPSA_Memory()
112 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVM_UINT16) ); in LVPSA_Memory()
114 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVPSA_FilterParam_t) ); in LVPSA_Memory()
131 InstAlloc_AddMember( &Instance, pInitParams->nBands * BufferLength * sizeof(LVM_UINT8) ); in LVPSA_Memory()
132 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVM_UINT8) ); in LVPSA_Memory()
133 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVPSA_BPFilterPrecision_en) ); in LVPSA_Memory()
154 InstAlloc_AddMember( &Coef, pInitParams->nBands * sizeof(Biquad_Instance_t) ); in LVPSA_Memory()
[all …]
DLVPSA_Control.c160 pParams->nBands = pLVPSA_Inst->nBands; in LVPSA_GetInitParams()
213 … Freq = (LVM_UINT16) ((LVPSA_SampleRateTab[pInst->CurrentParams.Fs]>>1) / (pInst->nBands + 1)); in LVPSA_ApplyNewSettings()
214 for(ii = pInst->nBands; ii > 0; ii--) in LVPSA_ApplyNewSettings()
222 for(ii = pInst->nBands; ii > 0; ii--) in LVPSA_ApplyNewSettings()
238 for(ii = 0; ii < (pInst->nBands * pInst->SpectralDataBufferLength); ii++) in LVPSA_ApplyNewSettings()
242 for(ii = 0; ii < pInst->nBands; ii++) in LVPSA_ApplyNewSettings()
921 for(i = 0; i < pInst->nBands * sizeof(Biquad_1I_Order2_FLOAT_Taps_t); i++) in LVPSA_ClearFilterHistory()
926 for(i = 0; i < pInst->nBands * sizeof(Biquad_1I_Order2_Taps_t); i++) in LVPSA_ClearFilterHistory()
933 for(i = 0; i < pInst->nBands * sizeof(QPD_Taps_t); i++) in LVPSA_ClearFilterHistory()
DLVPSA_Process.c306 for(ii = 0; ii < pLVPSA_Inst->nBands; ii++) in LVPSA_GetSpectrum()
314 …if((LVM_INT32)(StatusDelta * pLVPSA_Inst->nBands) > (pLVPSA_Inst->pSpectralDataBufferWritePointer … in LVPSA_GetSpectrum()
316 …ePointer + (pLVPSA_Inst->SpectralDataBufferLength - (LVM_UINT32)StatusDelta) * pLVPSA_Inst->nBands; in LVPSA_GetSpectrum()
320 pRead = pLVPSA_Inst->pSpectralDataBufferWritePointer - StatusDelta * pLVPSA_Inst->nBands; in LVPSA_GetSpectrum()
325 for(ii = 0; ii < pLVPSA_Inst->nBands; ii++) in LVPSA_GetSpectrum()
DLVPSA_QPD_Process.c332 pWrite += pLVPSA_Inst->nBands; in LVPSA_QPD_WritePeak()
333 …if (pWrite == (pLVPSA_Inst->pSpectralDataBufferStart + pLVPSA_Inst->nBands * pLVPSA_Inst->Spectral… in LVPSA_QPD_WritePeak()
351 pWrite += pLVPSA_Inst->nBands; in LVPSA_QPD_WritePeak_Float()
352 if (pWrite == (pLVPSA_Inst->pSpectralDataBufferStart + pLVPSA_Inst->nBands * \ in LVPSA_QPD_WritePeak_Float()
DLVPSA_Private.h91 …LVM_UINT16 nBands; /* Number of bands of the spectrum… 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.h76 …LVM_UINT16 nBands; /* Number of bands of the SA … member
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Init.c406 PSA_InitParams.nBands = (LVM_UINT16) 9; in LVM_GetMemoryTable()
409 for(i = 0; i < PSA_InitParams.nBands; i++) in LVM_GetMemoryTable()
990 pInstance->PSA_InitParams.nBands = (LVM_UINT16) 9; in LVM_GetInstanceHandle()
992 for(i = 0; i < pInstance->PSA_InitParams.nBands; i++) in LVM_GetInstanceHandle()