Home
last modified time | relevance | path

Searched refs:pInstance (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/av/media/libeffects/lvm/lib/Common/src/
DMixInSoft_D32C31_SAT.c36 void MixInSoft_D32C31_SAT( Mix_1St_Cll_FLOAT_t *pInstance, in MixInSoft_D32C31_SAT() argument
48 if (pInstance->Current != pInstance->Target) in MixInSoft_D32C31_SAT()
50 if(pInstance->Alpha == 0){ in MixInSoft_D32C31_SAT()
51 pInstance->Current = pInstance->Target; in MixInSoft_D32C31_SAT()
52 }else if ((pInstance->Current-pInstance->Target < POINT_ZERO_ONE_DB_FLOAT) && in MixInSoft_D32C31_SAT()
53 (pInstance->Current-pInstance->Target > -POINT_ZERO_ONE_DB_FLOAT)){ in MixInSoft_D32C31_SAT()
54 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in MixInSoft_D32C31_SAT()
59 Core_MixInSoft_D32C31_SAT(pInstance, src, dst, n); in MixInSoft_D32C31_SAT()
68 if (pInstance->Target != 0){ /* Nothing to do in case Target = 0 */ in MixInSoft_D32C31_SAT()
69 if ((pInstance->Target) == 1.0f) in MixInSoft_D32C31_SAT()
[all …]
DMixSoft_1St_D32C31_WRA.c38 void MixSoft_1St_D32C31_WRA( Mix_1St_Cll_FLOAT_t *pInstance, in MixSoft_1St_D32C31_WRA() argument
50 if (pInstance->Current != pInstance->Target) in MixSoft_1St_D32C31_WRA()
52 if(pInstance->Alpha == 0){ in MixSoft_1St_D32C31_WRA()
53 pInstance->Current = pInstance->Target; in MixSoft_1St_D32C31_WRA()
54 }else if ((pInstance->Current - pInstance->Target < POINT_ZERO_ONE_DB_FLOAT) && in MixSoft_1St_D32C31_WRA()
55 (pInstance->Current - pInstance->Target > -POINT_ZERO_ONE_DB_FLOAT)){ in MixSoft_1St_D32C31_WRA()
56 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in MixSoft_1St_D32C31_WRA()
61 Core_MixSoft_1St_D32C31_WRA(pInstance, src, dst, n); in MixSoft_1St_D32C31_WRA()
70 if (pInstance->Target == 0) in MixSoft_1St_D32C31_WRA()
72 else if ((pInstance->Target) == 1.0f){ in MixSoft_1St_D32C31_WRA()
[all …]
DLVC_MixInSoft_D16C31_SAT.c44 Mix_Private_FLOAT_st *pInstance = \ in LVC_MixInSoft_D16C31_SAT() local
52 if (pInstance->Current != pInstance->Target) in LVC_MixInSoft_D16C31_SAT()
54 if(pInstance->Delta == 1.0f){ in LVC_MixInSoft_D16C31_SAT()
55 pInstance->Current = pInstance->Target; in LVC_MixInSoft_D16C31_SAT()
56 TargetGain = pInstance->Target; in LVC_MixInSoft_D16C31_SAT()
58 }else if (Abs_Float(pInstance->Current - pInstance->Target) < pInstance->Delta){ in LVC_MixInSoft_D16C31_SAT()
59 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in LVC_MixInSoft_D16C31_SAT()
61 TargetGain = pInstance->Target; in LVC_MixInSoft_D16C31_SAT()
75 if (pInstance->Target != 0){ /* Nothing to do in case Target = 0 */ in LVC_MixInSoft_D16C31_SAT()
76 if ((pInstance->Target) == 1.0f){ in LVC_MixInSoft_D16C31_SAT()
[all …]
DLVC_MixSoft_1St_D16C31_SAT.c44 Mix_Private_FLOAT_st *pInstance = \ in LVC_MixSoft_1St_D16C31_SAT() local
52 if (pInstance->Current != pInstance->Target) in LVC_MixSoft_1St_D16C31_SAT()
54 if(pInstance->Delta == 1.0f){ in LVC_MixSoft_1St_D16C31_SAT()
55 pInstance->Current = pInstance->Target; in LVC_MixSoft_1St_D16C31_SAT()
56 TargetGain = pInstance->Target; in LVC_MixSoft_1St_D16C31_SAT()
58 }else if (Abs_Float(pInstance->Current - pInstance->Target) < pInstance->Delta){ in LVC_MixSoft_1St_D16C31_SAT()
59 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in LVC_MixSoft_1St_D16C31_SAT()
61 TargetGain = pInstance->Target; in LVC_MixSoft_1St_D16C31_SAT()
75 if (pInstance->Target == 0) in LVC_MixSoft_1St_D16C31_SAT()
78 if ((pInstance->Target) != 1.0f) in LVC_MixSoft_1St_D16C31_SAT()
[all …]
DMixSoft_2St_D32C31_SAT.c30 void MixSoft_2St_D32C31_SAT( Mix_2St_Cll_FLOAT_t *pInstance, in MixSoft_2St_D32C31_SAT() argument
42 if ((pInstance->Current1 != pInstance->Target1) || (pInstance->Current2 != pInstance->Target2)) in MixSoft_2St_D32C31_SAT()
44 MixSoft_1St_D32C31_WRA((Mix_1St_Cll_FLOAT_t*)pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT()
45 MixInSoft_D32C31_SAT((void *)&pInstance->Alpha2, /* Cast to void: \ in MixSoft_2St_D32C31_SAT()
56 if (pInstance->Current1 == 0) in MixSoft_2St_D32C31_SAT()
57 MixSoft_1St_D32C31_WRA((void *) &pInstance->Alpha2, /* Cast to void: no \ in MixSoft_2St_D32C31_SAT()
60 else if (pInstance->Current2 == 0) in MixSoft_2St_D32C31_SAT()
61 MixSoft_1St_D32C31_WRA((Mix_1St_Cll_FLOAT_t*) pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT()
63 Core_MixHard_2St_D32C31_SAT(pInstance, src1, src2, dst, n); in MixSoft_2St_D32C31_SAT()
67 void MixSoft_2St_D32C31_SAT( Mix_2St_Cll_t *pInstance, in MixSoft_2St_D32C31_SAT() argument
[all …]
DCore_MixSoft_1St_D32C31_WRA.c29 void Core_MixSoft_1St_D32C31_WRA( Mix_1St_Cll_FLOAT_t *pInstance, in Core_MixSoft_1St_D32C31_WRA() argument
45 …TargetTimesOneMinAlpha = (1.0f - pInstance->Alpha) * pInstance->Target; /* float * float in float … in Core_MixSoft_1St_D32C31_WRA()
46 if (pInstance->Target >= pInstance->Current) in Core_MixSoft_1St_D32C31_WRA()
53 CurrentTimesAlpha = (pInstance->Current * pInstance->Alpha); in Core_MixSoft_1St_D32C31_WRA()
54 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixSoft_1St_D32C31_WRA()
61 Temp2 = Temp1 * (pInstance->Current); in Core_MixSoft_1St_D32C31_WRA()
69 CurrentTimesAlpha = pInstance->Current * pInstance->Alpha; in Core_MixSoft_1St_D32C31_WRA()
70 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixSoft_1St_D32C31_WRA()
75 Temp2 = Temp1 * (pInstance->Current); in Core_MixSoft_1St_D32C31_WRA()
82 Temp2 = Temp1 * (pInstance->Current); in Core_MixSoft_1St_D32C31_WRA()
[all …]
DCore_MixInSoft_D32C31_SAT.c30 void Core_MixInSoft_D32C31_SAT( Mix_1St_Cll_FLOAT_t *pInstance, in Core_MixInSoft_D32C31_SAT() argument
46 TargetTimesOneMinAlpha = ((1.0f -pInstance->Alpha) * pInstance->Target); in Core_MixInSoft_D32C31_SAT()
47 if (pInstance->Target >= pInstance->Current){ in Core_MixInSoft_D32C31_SAT()
53 CurrentTimesAlpha = pInstance->Current * pInstance->Alpha; in Core_MixInSoft_D32C31_SAT()
54 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixInSoft_D32C31_SAT()
60 Temp3 = Temp1 * (pInstance->Current); in Core_MixInSoft_D32C31_SAT()
74 CurrentTimesAlpha = pInstance->Current * pInstance->Alpha; in Core_MixInSoft_D32C31_SAT()
75 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixInSoft_D32C31_SAT()
81 Temp3 = Temp1 * (pInstance->Current); in Core_MixInSoft_D32C31_SAT()
93 void Core_MixInSoft_D32C31_SAT( Mix_1St_Cll_t *pInstance, in Core_MixInSoft_D32C31_SAT() argument
[all …]
DAGC_MIX_VOL_2St1Mon_D32_WRA.c76 void AGC_MIX_VOL_2St1Mon_D32_WRA(AGC_MIX_VOL_2St1Mon_D32_t *pInstance, /* Instance pointer */ in AGC_MIX_VOL_2St1Mon_D32_WRA() argument
100 LVM_INT32 AGC_Gain = pInstance->AGC_Gain; /* Get the current AGC gain */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
101 LVM_INT32 AGC_MaxGain = pInstance->AGC_MaxGain; /* Get maximum AGC gain */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
102 LVM_INT16 AGC_GainShift = pInstance->AGC_GainShift; /* Get the AGC shift */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
103 LVM_INT16 AGC_Attack = pInstance->AGC_Attack; /* Attack scaler */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
104 LVM_INT16 AGC_Decay = pInstance->AGC_Decay; /* Decay scaler */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
105 LVM_INT32 AGC_Target = pInstance->AGC_Target; /* Get the target level */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
106 LVM_INT32 Vol_Current = pInstance->Volume; /* Actual volume setting */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
107 LVM_INT32 Vol_Target = pInstance->Target; /* Target volume setting */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
108 LVM_INT16 Vol_Shift = pInstance->VolumeShift; /* Volume shift scaling */ in AGC_MIX_VOL_2St1Mon_D32_WRA()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
DLVEQNB_Control.c64 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; in LVEQNB_GetParameters() local
74 *pParams = pInstance->Params; in LVEQNB_GetParameters()
105 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; in LVEQNB_GetCapabilities() local
112 *pCapabilities = pInstance->Capabilities; in LVEQNB_GetCapabilities()
140 void LVEQNB_SetFilters(LVEQNB_Instance_t *pInstance, in LVEQNB_SetFilters() argument
155 pInstance->NBands = pParams->NBands; in LVEQNB_SetFilters()
166 pInstance->pBiquadType[i] = LVEQNB_SinglePrecision_Float; /* Default to single precision */ in LVEQNB_SetFilters()
171pInstance->pBiquadType[i] = LVEQNB_SinglePrecision; /* Default to single precision */ in LVEQNB_SetFilters()
179 pInstance->pBiquadType[i] = LVEQNB_DoublePrecision; in LVEQNB_SetFilters()
186 pInstance->pBiquadType[i] = LVEQNB_DoublePrecision; in LVEQNB_SetFilters()
[all …]
DLVEQNB_Init.c68 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; in LVEQNB_Memory() local
178 *pMemoryTable = pInstance->MemoryTable; in LVEQNB_Memory()
224 LVEQNB_Instance_t *pInstance; in LVEQNB_Init() local
261 pInstance =(LVEQNB_Instance_t *)*phInstance; in LVEQNB_Init()
268 pInstance->Capabilities = *pCapabilities; in LVEQNB_Init()
275 pInstance->MemoryTable = *pMemoryTable; in LVEQNB_Init()
285 pInstance->pEQNB_FilterState_Float = InstAlloc_AddMember(&AllocMem, in LVEQNB_Init()
289 pInstance->pEQNB_FilterState = InstAlloc_AddMember(&AllocMem, in LVEQNB_Init()
303 pInstance->pEQNB_Taps_Float = (Biquad_2I_Order2_FLOAT_Taps_t *)InstAlloc_AddMember(&AllocMem, in LVEQNB_Init()
307 pInstance->pEQNB_Taps = (Biquad_2I_Order2_Taps_t *)InstAlloc_AddMember(&AllocMem, in LVEQNB_Init()
[all …]
DLVEQNB_Process.c67 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; in LVEQNB_Process() local
71 const LVM_INT32 NrChannels = pInstance->Params.NrChannels == 1 in LVEQNB_Process()
72 ? 2 : pInstance->Params.NrChannels; in LVEQNB_Process()
90 LVM_FLOAT * const pScratch = (LVM_FLOAT *)pInstance->pFastTemporary; in LVEQNB_Process()
95 if (NrFrames > pInstance->Capabilities.MaxBlockSize) in LVEQNB_Process()
100 if (pInstance->Params.OperatingMode == LVEQNB_ON) in LVEQNB_Process()
112 if (pInstance->NBands != 0) in LVEQNB_Process()
114 for (LVM_UINT16 i = 0; i < pInstance->NBands; i++) in LVEQNB_Process()
119 if (pInstance->pBandDefinitions[i].Gain != 0) in LVEQNB_Process()
124 Biquad_FLOAT_Instance_t *pBiquad = &pInstance->pEQNB_FilterState_Float[i]; in LVEQNB_Process()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Bass/src/
DLVDBE_Control.c54 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; in LVDBE_GetParameters() local
56 *pParams = pInstance->Params; in LVDBE_GetParameters()
85 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; in LVDBE_GetCapabilities() local
87 *pCapabilities = pInstance->Capabilities; in LVDBE_GetCapabilities()
106 void LVDBE_SetFilters(LVDBE_Instance_t *pInstance, in LVDBE_SetFilters() argument
129 (void *)&pInstance->pData->HPFTaps, /* Destination Cast to void: \ in LVDBE_SetFilters()
131 sizeof(pInstance->pData->HPFTaps)/sizeof(LVM_INT16)); /* Number of words */ in LVDBE_SetFilters()
134 (void *)&pInstance->pData->HPFTaps, /* Destination Cast to void: \ in LVDBE_SetFilters()
136 sizeof(pInstance->pData->HPFTaps) / sizeof(LVM_FLOAT)); /* Number of words */ in LVDBE_SetFilters()
139 BQ_2I_D32F32Cll_TRC_WRA_01_Init(&pInstance->pCoef->HPFInstance, /* Initialise the filter */ in LVDBE_SetFilters()
[all …]
DLVDBE_Process.c80 LVDBE_Instance_t *pInstance = (LVDBE_Instance_t *) hInstance; in LVDBE_Process() local
82 (LVM_INT32 *) pInstance->MemoryTable.Region[LVDBE_MEMREGION_SCRATCH].pBaseAddress; in LVDBE_Process()
95 if (NumSamples > pInstance->Capabilities.MaxBlockSize) { in LVDBE_Process()
103 if ((pInstance->Params.OperatingMode == LVDBE_ON) in LVDBE_Process()
105 &pInstance->pData->BypassMixer.MixerStream[0]) in LVDBE_Process()
107 &pInstance->pData->BypassMixer.MixerStream[0]))) { in LVDBE_Process()
121 if (pInstance->Params.HPFSelect == LVDBE_HPF_ON) { in LVDBE_Process()
122 BQ_2I_D32F32C30_TRC_WRA_01(&pInstance->pCoef->HPFInstance,/* Filter instance */ in LVDBE_Process()
138 BP_1I_D32F32C30_TRC_WRA_02(&pInstance->pCoef->BPFInstance, /* Filter instance */ in LVDBE_Process()
146 AGC_MIX_VOL_2St1Mon_D32_WRA(&pInstance->pData->AGCInstance, /* Instance pointer */ in LVDBE_Process()
[all …]
DLVDBE_Init.c64 LVDBE_Instance_t *pInstance = (LVDBE_Instance_t *)hInstance; in LVDBE_Memory() local
121 *pMemoryTable = pInstance->MemoryTable; in LVDBE_Memory()
166 LVDBE_Instance_t *pInstance; in LVDBE_Init() local
186 pInstance =(LVDBE_Instance_t *)*phInstance; in LVDBE_Init()
210 pInstance->Capabilities = *pCapabilities; in LVDBE_Init()
216 pInstance->MemoryTable = *pMemoryTable; in LVDBE_Init()
222 pInstance->Params.CentreFrequency = LVDBE_CENTRE_55HZ; in LVDBE_Init()
223 pInstance->Params.EffectLevel = 0; in LVDBE_Init()
224 pInstance->Params.HeadroomdB = 0; in LVDBE_Init()
225 pInstance->Params.HPFSelect = LVDBE_HPF_OFF; in LVDBE_Init()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Control.c57 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; in LVM_SetControlParameters() local
65 pInstance->NewParams = *pParams; in LVM_SetControlParameters()
95 pInstance->Params.NrChannels = pParams->NrChannels; in LVM_SetControlParameters()
96 pInstance->Params.ChMask = pParams->ChMask; in LVM_SetControlParameters()
124 if(pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands) in LVM_SetControlParameters()
146 pInstance->pEQNB_BandDefs[i] = pParams->pEQNB_BandDefinition[i]; in LVM_SetControlParameters()
148 pInstance->NewParams.pEQNB_BandDefinition = pInstance->pEQNB_BandDefs; in LVM_SetControlParameters()
153 (pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands)) in LVM_SetControlParameters()
216 pInstance->ControlPending = LVM_TRUE; in LVM_SetControlParameters()
246 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; in LVM_GetControlParameters() local
[all …]
DLVM_Buffers.c64 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_BufferManagedIn() local
68 LVM_INT16 NumChannels = pInstance->NrChannels; in LVM_BufferManagedIn()
76 pBuffer = pInstance->pBufferManagement; in LVM_BufferManagedIn()
84 if (pInstance->SamplesToProcess == 0) in LVM_BufferManagedIn()
89 pInstance->SamplesToProcess = (LVM_INT16)(*pNumSamples + pBuffer->InDelaySamples); in LVM_BufferManagedIn()
90 pInstance->pInputSamples = (LVM_FLOAT *)pInData; in LVM_BufferManagedIn()
93 pStart = pInstance->pInputSamples; /* Pointer to the input samples */ in LVM_BufferManagedIn()
101 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize) in LVM_BufferManagedIn()
106 SampleCount = pInstance->InternalBlockSize; in LVM_BufferManagedIn()
107 NumSamples = pInstance->InternalBlockSize; in LVM_BufferManagedIn()
[all …]
DLVM_Process.c63 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_Process() local
70 LVM_INT32 NrChannels = pInstance->NrChannels; in LVM_Process()
71 LVM_INT32 ChMask = pInstance->ChMask; in LVM_Process()
95 if(pInstance->InstParams.BufferMode == LVM_UNMANAGED_BUFFERS) in LVM_Process()
100 if((NumSamples % pInstance->BlickSizeMultiple) != 0) in LVM_Process()
118 if (pInstance->ControlPending == LVM_TRUE) in LVM_Process()
123 NrChannels = pInstance->NrChannels; in LVM_Process()
124 ChMask = pInstance->ChMask; in LVM_Process()
137 if (pInstance->Params.SourceFormat == LVM_MONO) in LVM_Process()
174 if (pInstance->CS_Active == LVM_TRUE) in LVM_Process()
[all …]
DLVM_Init.c135 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_GetMemoryTable() local
158 *pMemoryTable = pInstance->MemoryTable; in LVM_GetMemoryTable()
526 LVM_Instance_t *pInstance; in LVM_GetInstanceHandle() local
601 pInstance =(LVM_Instance_t *)*phInstance; in LVM_GetInstanceHandle()
607 pInstance->MemoryTable = *pMemoryTable; in LVM_GetInstanceHandle()
608 pInstance->InstParams = *pInstParams; in LVM_GetInstanceHandle()
625 pInstance->InternalBlockSize = (LVM_INT16)InternalBlockSize; in LVM_GetInstanceHandle()
631 pInstance->SamplesToProcess = 0; /* No samples left to process */ in LVM_GetInstanceHandle()
637pInstance->pBufferManagement = InstAlloc_AddMember(&AllocMem[LVM_MEMREGION_PERSISTENT_SLOW_DATA], in LVM_GetInstanceHandle()
647pInstance->pBufferManagement->pScratch = InstAlloc_AddMember(&AllocMem[LVM_MEMREGION_TEMPORARY_FAS… in LVM_GetInstanceHandle()
[all …]
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
DLVCS_Control.c52 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; in LVCS_GetParameters() local
54 *pParams = pInstance->Params; in LVCS_GetParameters()
83 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; in LVCS_Control() local
85 LVCS_Modes_en OperatingModeSave = pInstance->Params.OperatingMode; in LVCS_Control()
87 if (pParams->SampleRate != pInstance->Params.SampleRate) in LVCS_Control()
89 pInstance->TimerParams.SamplingRate = LVCS_SampleRateTable[pParams->SampleRate]; in LVCS_Control()
95 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel) in LVCS_Control()
103 if ((pInstance->Params.SampleRate != pParams->SampleRate) || in LVCS_Control()
104 (pInstance->Params.SpeakerType != pParams->SpeakerType)) in LVCS_Control()
111 pInstance->OutputDevice = LVCS_HEADPHONE; in LVCS_Control()
[all …]
DLVCS_Init.c69 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Memory() local
115 *pMemoryTable = pInstance->MemoryTable; in LVCS_Memory()
160 LVCS_Instance_t *pInstance; in LVCS_Init() local
171 pInstance =(LVCS_Instance_t *)*phInstance; in LVCS_Init()
177 pInstance->Capabilities = *pCapabilities; in LVCS_Init()
182 pInstance->MemoryTable = *pMemoryTable; in LVCS_Init()
188 pInstance->Params.OperatingMode = LVCS_OFF; in LVCS_Init()
189 pInstance->Params.SpeakerType = LVCS_SPEAKERTYPE_MAX; in LVCS_Init()
190 pInstance->OutputDevice = LVCS_HEADPHONE; in LVCS_Init()
191 pInstance->Params.SourceFormat = LVCS_SOURCEMAX; in LVCS_Init()
[all …]
DLVCS_Process.c76 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Process_CS() local
81 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process_CS()
97 pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress; in LVCS_Process_CS()
188 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Process_CS() local
189 …LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORA… in LVCS_Process_CS()
282 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Process() local
286 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process()
296 if (NumSamples > pInstance->Capabilities.MaxBlockSize) in LVCS_Process()
304 if (pInstance->Params.OperatingMode != LVCS_OFF) in LVCS_Process()
319 if ((pInstance->Params.OperatingMode == LVCS_ON)&& \ in LVCS_Process()
[all …]
DLVCS_BypassMix.c80 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_BypassMixInit() local
81 LVCS_BypassMix_t *pConfig = (LVCS_BypassMix_t *)&pInstance->BypassMix; in LVCS_BypassMixInit()
90 (pInstance->bTimerDone == LVM_TRUE) in LVCS_BypassMixInit()
91 && (pInstance->MSTarget1 != 0x7FFF) /* this indicates an off->on transtion */ in LVCS_BypassMixInit()
95 pInstance->TransitionGain = pParams->EffectLevel; in LVCS_BypassMixInit()
97 pInstance->TransitionGain = ((LVM_FLOAT)pParams->EffectLevel / 32767); in LVCS_BypassMixInit()
103 pInstance->TransitionGain = 0; in LVCS_BypassMixInit()
116 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain); in LVCS_BypassMixInit()
118 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain); in LVCS_BypassMixInit()
141 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * (0x7FFF - pInstance->TransitionGain)); in LVCS_BypassMixInit()
[all …]
DLVCS_ReverbGenerator.c67 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_ReverbGeneratorInit() local
68 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation; in LVCS_ReverbGeneratorInit()
76 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress; in LVCS_ReverbGeneratorInit()
79 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress; in LVCS_ReverbGeneratorInit()
86 if(pInstance->Params.SampleRate != pParams->SampleRate ) /* Sample rate change test */ in LVCS_ReverbGeneratorInit()
143 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel) in LVCS_ReverbGeneratorInit()
158 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_ReverbGeneratorInit() local
159 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation; in LVCS_ReverbGeneratorInit()
160 …LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_P… in LVCS_ReverbGeneratorInit()
161 …LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_… in LVCS_ReverbGeneratorInit()
[all …]
DLVCS_Equaliser.c62 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_EqualiserInit() local
63 LVCS_Equaliser_t *pConfig = (LVCS_Equaliser_t *)&pInstance->Equaliser; in LVCS_EqualiserInit()
70 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress; in LVCS_EqualiserInit()
73 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress; in LVCS_EqualiserInit()
77 if ((pInstance->Params.SampleRate != pParams->SampleRate) || in LVCS_EqualiserInit()
78 (pInstance->Params.SpeakerType != pParams->SpeakerType)) in LVCS_EqualiserInit()
127 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_EqualiserInit() local
128 LVCS_Equaliser_t *pConfig = (LVCS_Equaliser_t *)&pInstance->Equaliser; in LVCS_EqualiserInit()
129 …LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSI… in LVCS_EqualiserInit()
130 …LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMR… in LVCS_EqualiserInit()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
DBIQUAD.h249 void BQ_2I_D16F32Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance,
253 void BQ_2I_D16F32Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance,
259 void BQ_2I_D16F32C15_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance,
264 void BQ_2I_D16F32C15_TRC_WRA_01 ( Biquad_Instance_t *pInstance,
271 void BQ_2I_D16F32C14_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance,
276 void BQ_2I_D16F32C14_TRC_WRA_01 ( Biquad_Instance_t *pInstance,
284 void BQ_2I_D16F32C13_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance,
289 void BQ_2I_D16F32C13_TRC_WRA_01 ( Biquad_Instance_t *pInstance,
297 void BQ_2I_D16F16Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance,
301 void BQ_2I_D16F16Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance,
[all …]

1234