Home
last modified time | relevance | path

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

/frameworks/av/media/libeffects/lvm/lib/SpectrumAnalyzer/src/
DLVPSA_Init.cpp44 LVPSA_InstancePr_t* pLVPSA_Inst; in LVPSA_Init() local
52 pLVPSA_Inst = (LVPSA_InstancePr_t*)*phInstance; in LVPSA_Init()
54 pLVPSA_Inst->pScratch = pScratch; in LVPSA_Init()
57 pLVPSA_Inst->bControlPending = LVM_FALSE; in LVPSA_Init()
58 pLVPSA_Inst->nBands = pInitParams->nBands; in LVPSA_Init()
59 pLVPSA_Inst->MaxInputBlockSize = pInitParams->MaxInputBlockSize; in LVPSA_Init()
60 pLVPSA_Inst->SpectralDataBufferDuration = pInitParams->SpectralDataBufferDuration; in LVPSA_Init()
61 pLVPSA_Inst->CurrentParams.Fs = LVM_FS_DUMMY; in LVPSA_Init()
62 pLVPSA_Inst->CurrentParams.LevelDetectionSpeed = LVPSA_SPEED_DUMMY; in LVPSA_Init()
65 LVM_INT32 SDBD = (LVM_INT32)pLVPSA_Inst->SpectralDataBufferDuration; in LVPSA_Init()
[all …]
DLVPSA_Process.cpp61 LVPSA_InstancePr_t* pLVPSA_Inst = (LVPSA_InstancePr_t*)hInstance; in LVPSA_Process() local
75 if (InputBlockSize == 0 || InputBlockSize > pLVPSA_Inst->MaxInputBlockSize) { in LVPSA_Process()
78 pScratch = (LVM_FLOAT*)pLVPSA_Inst->pScratch; in LVPSA_Process()
79 pWrite_Save = pLVPSA_Inst->pSpectralDataBufferWritePointer; in LVPSA_Process()
84 if (pLVPSA_Inst->bControlPending == LVM_TRUE) { in LVPSA_Process()
85 pLVPSA_Inst->bControlPending = 0; in LVPSA_Process()
86 LVPSA_ApplyNewSettings(pLVPSA_Inst); in LVPSA_Process()
96 for (ii = 0; ii < pLVPSA_Inst->nRelevantFilters; ii++) { in LVPSA_Process()
97 switch (pLVPSA_Inst->pBPFiltersPrecision[ii]) { in LVPSA_Process()
99 pLVPSA_Inst->specBiquad[ii].process(pScratch + InputBlockSize, pScratch, in LVPSA_Process()
[all …]
DLVPSA_QPD_Process.cpp37 void LVPSA_QPD_WritePeak(pLVPSA_InstancePr_t pLVPSA_Inst, LVM_UINT8** ppWrite, LVM_INT16 BandIndex,
40 void LVPSA_QPD_WritePeak_Float(pLVPSA_InstancePr_t pLVPSA_Inst, LVM_UINT8** ppWrite,
60 LVPSA_InstancePr_t* pLVPSA_Inst = (LVPSA_InstancePr_t*)hInstance; in LVPSA_QPD_Process_Float() local
61 QPD_FLOAT_State_t* pQPDState = (QPD_FLOAT_State_t*)&pLVPSA_Inst->pQPD_States[BandIndex]; in LVPSA_QPD_Process_Float()
80 LVM_UINT8* pWrite = pLVPSA_Inst->pSpectralDataBufferWritePointer; in LVPSA_QPD_Process_Float()
81 LVM_INT32 BufferUpdateSamplesCount = pLVPSA_Inst->BufferUpdateSamplesCount; in LVPSA_QPD_Process_Float()
82 LVM_UINT16 DownSamplingFactor = pLVPSA_Inst->DownSamplingFactor; in LVPSA_QPD_Process_Float()
88 pInSamps += pLVPSA_Inst->DownSamplingCount; in LVPSA_QPD_Process_Float()
90 ii = (LVM_INT16)(ii - (LVM_INT16)pLVPSA_Inst->DownSamplingCount); in LVPSA_QPD_Process_Float()
95 X0 = (*pInSamps) * pLVPSA_Inst->pPostGains[BandIndex]; in LVPSA_QPD_Process_Float()
[all …]
DLVPSA_Control.cpp56 LVPSA_InstancePr_t* pLVPSA_Inst = (LVPSA_InstancePr_t*)hInstance; in LVPSA_Control() local
68 pLVPSA_Inst->NewParams = *pNewParams; in LVPSA_Control()
69 pLVPSA_Inst->bControlPending = LVM_TRUE; in LVPSA_Control()
90 LVPSA_InstancePr_t* pLVPSA_Inst = (LVPSA_InstancePr_t*)hInstance; in LVPSA_GetControlParams() local
96 pParams->Fs = pLVPSA_Inst->CurrentParams.Fs; in LVPSA_GetControlParams()
97 pParams->LevelDetectionSpeed = pLVPSA_Inst->CurrentParams.LevelDetectionSpeed; in LVPSA_GetControlParams()
118 LVPSA_InstancePr_t* pLVPSA_Inst = (LVPSA_InstancePr_t*)hInstance; in LVPSA_GetInitParams() local
124 pParams->SpectralDataBufferDuration = pLVPSA_Inst->SpectralDataBufferDuration; in LVPSA_GetInitParams()
125 pParams->MaxInputBlockSize = pLVPSA_Inst->MaxInputBlockSize; in LVPSA_GetInitParams()
126 pParams->nBands = pLVPSA_Inst->nBands; in LVPSA_GetInitParams()
[all …]