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.cpp68 (pInitParams->nBands < LVPSA_NBANDSMIN) || in LVPSA_Init()
69 (pInitParams->nBands > LVPSA_NBANDSMAX) || in LVPSA_Init()
74 for(ii = 0; ii < pInitParams->nBands; ii++) in LVPSA_Init()
114 pLVPSA_Inst->nBands = pInitParams->nBands; in LVPSA_Init()
141 (LVM_FLOAT *)InstAlloc_AddMember(&Instance, pInitParams->nBands * sizeof(LVM_FLOAT)); in LVPSA_Init()
143 InstAlloc_AddMember(&Instance, pInitParams->nBands * sizeof(LVPSA_FilterParam_t)); in LVPSA_Init()
145 InstAlloc_AddMember(&Instance, pInitParams->nBands * \ in LVPSA_Init()
148 InstAlloc_AddMember(&Instance, pInitParams->nBands * sizeof(LVM_UINT8)); in LVPSA_Init()
150 InstAlloc_AddMember(&Instance, pInitParams->nBands * \ in LVPSA_Init()
153 InstAlloc_AddMember(&Coef, pInitParams->nBands * \ in LVPSA_Init()
[all …]
DLVPSA_Memory.cpp83 (pInitParams->nBands < LVPSA_NBANDSMIN) || in LVPSA_Memory()
84 (pInitParams->nBands > LVPSA_NBANDSMAX) || in LVPSA_Memory()
89 for(ii = 0; ii < pInitParams->nBands; ii++) in LVPSA_Memory()
106 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVM_FLOAT) ); in LVPSA_Memory()
107 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVPSA_FilterParam_t) ); in LVPSA_Memory()
123 InstAlloc_AddMember( &Instance, pInitParams->nBands * BufferLength * sizeof(LVM_UINT8) ); in LVPSA_Memory()
124 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVM_UINT8) ); in LVPSA_Memory()
125 InstAlloc_AddMember( &Instance, pInitParams->nBands * sizeof(LVPSA_BPFilterPrecision_en) ); in LVPSA_Memory()
141 InstAlloc_AddMember( &Coef, pInitParams->nBands * sizeof(Biquad_FLOAT_Instance_t) ); in LVPSA_Memory()
142 InstAlloc_AddMember( &Coef, pInitParams->nBands * sizeof(QPD_FLOAT_State_t) ); in LVPSA_Memory()
[all …]
DLVPSA_Control.cpp142 pParams->nBands = pLVPSA_Inst->nBands; in LVPSA_GetInitParams()
189 … Freq = (LVM_UINT16) ((LVPSA_SampleRateTab[pInst->CurrentParams.Fs]>>1) / (pInst->nBands + 1)); in LVPSA_ApplyNewSettings()
190 for(ii = pInst->nBands; ii > 0; ii--) in LVPSA_ApplyNewSettings()
198 for(ii = pInst->nBands; ii > 0; ii--) in LVPSA_ApplyNewSettings()
214 for(ii = 0; ii < (pInst->nBands * pInst->SpectralDataBufferLength); ii++) in LVPSA_ApplyNewSettings()
218 for(ii = 0; ii < pInst->nBands; ii++) in LVPSA_ApplyNewSettings()
668 for(i = 0; i < pInst->nBands * sizeof(Biquad_1I_Order2_FLOAT_Taps_t); i++) in LVPSA_ClearFilterHistory()
674 for(i = 0; i < pInst->nBands * sizeof(QPD_Taps_t); i++) in LVPSA_ClearFilterHistory()
DLVPSA_Process.cpp214 for(ii = 0; ii < pLVPSA_Inst->nBands; ii++) in LVPSA_GetSpectrum()
222 …if((LVM_INT32)(StatusDelta * pLVPSA_Inst->nBands) > (pLVPSA_Inst->pSpectralDataBufferWritePointer … in LVPSA_GetSpectrum()
224 …ePointer + (pLVPSA_Inst->SpectralDataBufferLength - (LVM_UINT32)StatusDelta) * pLVPSA_Inst->nBands; in LVPSA_GetSpectrum()
228 pRead = pLVPSA_Inst->pSpectralDataBufferWritePointer - StatusDelta * pLVPSA_Inst->nBands; in LVPSA_GetSpectrum()
232 for(ii = 0; ii < pLVPSA_Inst->nBands; ii++) in LVPSA_GetSpectrum()
DLVPSA_QPD_Process.cpp206 pWrite += pLVPSA_Inst->nBands; in LVPSA_QPD_WritePeak()
207 …if (pWrite == (pLVPSA_Inst->pSpectralDataBufferStart + pLVPSA_Inst->nBands * pLVPSA_Inst->Spectral… in LVPSA_QPD_WritePeak()
224 pWrite += pLVPSA_Inst->nBands; in LVPSA_QPD_WritePeak_Float()
225 if (pWrite == (pLVPSA_Inst->pSpectralDataBufferStart + pLVPSA_Inst->nBands * \ in LVPSA_QPD_WritePeak_Float()
DLVPSA_Private.h80 …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.h70 …LVM_UINT16 nBands; /* Number of bands of the SA … member
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Init.cpp388 PSA_InitParams.nBands = (LVM_UINT16) 9; in LVM_GetMemoryTable()
391 for(i = 0; i < PSA_InitParams.nBands; i++) in LVM_GetMemoryTable()
914 pInstance->PSA_InitParams.nBands = (LVM_UINT16) 9; in LVM_GetInstanceHandle()
916 for(i = 0; i < pInstance->PSA_InitParams.nBands; i++) in LVM_GetInstanceHandle()