/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | MixInSoft_D32C31_SAT.cpp | 35 void MixInSoft_D32C31_SAT( Mix_1St_Cll_FLOAT_t *pInstance, in MixInSoft_D32C31_SAT() argument 47 if (pInstance->Current != pInstance->Target) in MixInSoft_D32C31_SAT() 49 if(pInstance->Alpha == 0){ in MixInSoft_D32C31_SAT() 50 pInstance->Current = pInstance->Target; in MixInSoft_D32C31_SAT() 51 }else if ((pInstance->Current-pInstance->Target < POINT_ZERO_ONE_DB_FLOAT) && in MixInSoft_D32C31_SAT() 52 (pInstance->Current-pInstance->Target > -POINT_ZERO_ONE_DB_FLOAT)){ in MixInSoft_D32C31_SAT() 53 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in MixInSoft_D32C31_SAT() 58 Core_MixInSoft_D32C31_SAT(pInstance, src, dst, n); in MixInSoft_D32C31_SAT() 67 if (pInstance->Target != 0){ /* Nothing to do in case Target = 0 */ in MixInSoft_D32C31_SAT() 68 if ((pInstance->Target) == 1.0f) in MixInSoft_D32C31_SAT() [all …]
|
D | LVC_MixInSoft_D16C31_SAT.cpp | 43 Mix_Private_FLOAT_st *pInstance = \ in LVC_MixInSoft_D16C31_SAT() local 51 if (pInstance->Current != pInstance->Target) in LVC_MixInSoft_D16C31_SAT() 53 if(pInstance->Delta == 1.0f){ in LVC_MixInSoft_D16C31_SAT() 54 pInstance->Current = pInstance->Target; in LVC_MixInSoft_D16C31_SAT() 55 TargetGain = pInstance->Target; in LVC_MixInSoft_D16C31_SAT() 57 }else if (Abs_Float(pInstance->Current - pInstance->Target) < pInstance->Delta){ in LVC_MixInSoft_D16C31_SAT() 58 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in LVC_MixInSoft_D16C31_SAT() 60 TargetGain = pInstance->Target; in LVC_MixInSoft_D16C31_SAT() 74 if (pInstance->Target != 0){ /* Nothing to do in case Target = 0 */ in LVC_MixInSoft_D16C31_SAT() 75 if ((pInstance->Target) == 1.0f){ in LVC_MixInSoft_D16C31_SAT() [all …]
|
D | LVC_MixSoft_1St_D16C31_SAT.cpp | 43 Mix_Private_FLOAT_st *pInstance = \ in LVC_MixSoft_1St_D16C31_SAT() local 51 if (pInstance->Current != pInstance->Target) in LVC_MixSoft_1St_D16C31_SAT() 53 if(pInstance->Delta == 1.0f){ in LVC_MixSoft_1St_D16C31_SAT() 54 pInstance->Current = pInstance->Target; in LVC_MixSoft_1St_D16C31_SAT() 55 TargetGain = pInstance->Target; in LVC_MixSoft_1St_D16C31_SAT() 57 }else if (Abs_Float(pInstance->Current - pInstance->Target) < pInstance->Delta){ in LVC_MixSoft_1St_D16C31_SAT() 58 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in LVC_MixSoft_1St_D16C31_SAT() 60 TargetGain = pInstance->Target; in LVC_MixSoft_1St_D16C31_SAT() 74 if (pInstance->Target == 0) in LVC_MixSoft_1St_D16C31_SAT() 77 if ((pInstance->Target) != 1.0f) in LVC_MixSoft_1St_D16C31_SAT() [all …]
|
D | MixSoft_1St_D32C31_WRA.cpp | 35 void MixSoft_1St_D32C31_WRA( Mix_1St_Cll_FLOAT_t *pInstance, in MixSoft_1St_D32C31_WRA() argument 47 if (pInstance->Current != pInstance->Target) in MixSoft_1St_D32C31_WRA() 49 if(pInstance->Alpha == 0){ in MixSoft_1St_D32C31_WRA() 50 pInstance->Current = pInstance->Target; in MixSoft_1St_D32C31_WRA() 51 }else if ((pInstance->Current - pInstance->Target < POINT_ZERO_ONE_DB_FLOAT) && in MixSoft_1St_D32C31_WRA() 52 (pInstance->Current - pInstance->Target > -POINT_ZERO_ONE_DB_FLOAT)){ in MixSoft_1St_D32C31_WRA() 53 pInstance->Current = pInstance->Target; /* Difference is not significant anymore. \ in MixSoft_1St_D32C31_WRA() 58 Core_MixSoft_1St_D32C31_WRA(pInstance, src, dst, n); in MixSoft_1St_D32C31_WRA() 67 if (pInstance->Target == 0) in MixSoft_1St_D32C31_WRA() 69 else if ((pInstance->Target) == 1.0f){ in MixSoft_1St_D32C31_WRA() [all …]
|
D | Core_MixSoft_1St_D32C31_WRA.cpp | 28 void Core_MixSoft_1St_D32C31_WRA( Mix_1St_Cll_FLOAT_t *pInstance, in Core_MixSoft_1St_D32C31_WRA() argument 44 …TargetTimesOneMinAlpha = (1.0f - pInstance->Alpha) * pInstance->Target; /* float * float in float … in Core_MixSoft_1St_D32C31_WRA() 45 if (pInstance->Target >= pInstance->Current) in Core_MixSoft_1St_D32C31_WRA() 52 CurrentTimesAlpha = (pInstance->Current * pInstance->Alpha); in Core_MixSoft_1St_D32C31_WRA() 53 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixSoft_1St_D32C31_WRA() 60 Temp2 = Temp1 * (pInstance->Current); in Core_MixSoft_1St_D32C31_WRA() 68 CurrentTimesAlpha = pInstance->Current * pInstance->Alpha; in Core_MixSoft_1St_D32C31_WRA() 69 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixSoft_1St_D32C31_WRA() 74 Temp2 = Temp1 * (pInstance->Current); in Core_MixSoft_1St_D32C31_WRA() 81 Temp2 = Temp1 * (pInstance->Current); in Core_MixSoft_1St_D32C31_WRA() [all …]
|
D | AGC_MIX_VOL_2St1Mon_D32_WRA.cpp | 72 void AGC_MIX_VOL_2St1Mon_D32_WRA(AGC_MIX_VOL_2St1Mon_FLOAT_t *pInstance, /* Instance pointer */ in AGC_MIX_VOL_2St1Mon_D32_WRA() argument 93 LVM_FLOAT AGC_Gain = pInstance->AGC_Gain; /* Get the current AGC gain */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 94 LVM_FLOAT AGC_MaxGain = pInstance->AGC_MaxGain; /* Get maximum AGC gain */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 95 LVM_FLOAT AGC_Attack = pInstance->AGC_Attack; /* Attack scaler */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 96 LVM_FLOAT AGC_Decay = (pInstance->AGC_Decay * (1 << (DECAY_SHIFT)));/* Decay scaler */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 97 LVM_FLOAT AGC_Target = pInstance->AGC_Target; /* Get the target level */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 98 LVM_FLOAT Vol_Current = pInstance->Volume; /* Actual volume setting */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 99 LVM_FLOAT Vol_Target = pInstance->Target; /* Target volume setting */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 100 LVM_FLOAT Vol_TC = pInstance->VolumeTC; /* Time constant */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 170 pInstance->Volume = Vol_Current; /* Actual volume setting */ in AGC_MIX_VOL_2St1Mon_D32_WRA() [all …]
|
D | MixSoft_2St_D32C31_SAT.cpp | 28 void MixSoft_2St_D32C31_SAT( Mix_2St_Cll_FLOAT_t *pInstance, in MixSoft_2St_D32C31_SAT() argument 40 if ((pInstance->Current1 != pInstance->Target1) || (pInstance->Current2 != pInstance->Target2)) in MixSoft_2St_D32C31_SAT() 42 MixSoft_1St_D32C31_WRA((Mix_1St_Cll_FLOAT_t*)pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT() 43 MixInSoft_D32C31_SAT((Mix_1St_Cll_FLOAT_t *)&pInstance->Alpha2, /* Cast to void: \ in MixSoft_2St_D32C31_SAT() 54 if (pInstance->Current1 == 0) in MixSoft_2St_D32C31_SAT() 56 (Mix_1St_Cll_FLOAT_t *) &pInstance->Alpha2, /* Cast to void: no \ in MixSoft_2St_D32C31_SAT() 59 else if (pInstance->Current2 == 0) in MixSoft_2St_D32C31_SAT() 60 MixSoft_1St_D32C31_WRA((Mix_1St_Cll_FLOAT_t*) pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT() 62 Core_MixHard_2St_D32C31_SAT(pInstance, src1, src2, dst, n); in MixSoft_2St_D32C31_SAT()
|
D | Core_MixInSoft_D32C31_SAT.cpp | 29 void Core_MixInSoft_D32C31_SAT( Mix_1St_Cll_FLOAT_t *pInstance, in Core_MixInSoft_D32C31_SAT() argument 44 TargetTimesOneMinAlpha = ((1.0f -pInstance->Alpha) * pInstance->Target); in Core_MixInSoft_D32C31_SAT() 45 if (pInstance->Target >= pInstance->Current){ in Core_MixInSoft_D32C31_SAT() 51 CurrentTimesAlpha = pInstance->Current * pInstance->Alpha; in Core_MixInSoft_D32C31_SAT() 52 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixInSoft_D32C31_SAT() 58 Temp3 = Temp1 * (pInstance->Current); in Core_MixInSoft_D32C31_SAT() 72 CurrentTimesAlpha = pInstance->Current * pInstance->Alpha; in Core_MixInSoft_D32C31_SAT() 73 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; in Core_MixInSoft_D32C31_SAT() 79 Temp3 = Temp1 * (pInstance->Current); in Core_MixInSoft_D32C31_SAT()
|
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
D | LVEQNB_Control.cpp | 63 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; in LVEQNB_GetParameters() local 73 *pParams = pInstance->Params; in LVEQNB_GetParameters() 103 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; in LVEQNB_GetCapabilities() local 110 *pCapabilities = pInstance->Capabilities; in LVEQNB_GetCapabilities() 137 void LVEQNB_SetFilters(LVEQNB_Instance_t *pInstance, in LVEQNB_SetFilters() argument 147 pInstance->NBands = pParams->NBands; in LVEQNB_SetFilters() 157 pInstance->pBiquadType[i] = LVEQNB_SinglePrecision_Float; /* Default to single precision */ in LVEQNB_SetFilters() 164 pInstance->pBiquadType[i] = LVEQNB_OutOfRange; in LVEQNB_SetFilters() 170 pInstance->pBandDefinitions[i] = pParams->pBandDefinition[i]; in LVEQNB_SetFilters() 189 void LVEQNB_SetCoefficients(LVEQNB_Instance_t *pInstance) in LVEQNB_SetCoefficients() argument [all …]
|
D | LVEQNB_Init.cpp | 67 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; in LVEQNB_Memory() local 147 *pMemoryTable = pInstance->MemoryTable; in LVEQNB_Memory() 192 LVEQNB_Instance_t *pInstance; in LVEQNB_Init() local 229 pInstance =(LVEQNB_Instance_t *)*phInstance; in LVEQNB_Init() 234 pInstance->Capabilities = *pCapabilities; in LVEQNB_Init() 240 pInstance->MemoryTable = *pMemoryTable; in LVEQNB_Init() 249 pInstance->pEQNB_FilterState_Float = (Biquad_FLOAT_Instance_t *) in LVEQNB_Init() 260 pInstance->pEQNB_Taps_Float = (Biquad_2I_Order2_FLOAT_Taps_t *)InstAlloc_AddMember(&AllocMem, in LVEQNB_Init() 263 pInstance->pBandDefinitions = (LVEQNB_BandDef_t *)InstAlloc_AddMember(&AllocMem, in LVEQNB_Init() 267 memset(pInstance->pBandDefinitions, 0, MemSize); in LVEQNB_Init() [all …]
|
D | LVEQNB_Process.cpp | 66 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; in LVEQNB_Process() local 70 const LVM_INT32 NrChannels = pInstance->Params.NrChannels == 1 in LVEQNB_Process() 71 ? 2 : pInstance->Params.NrChannels; in LVEQNB_Process() 89 LVM_FLOAT * const pScratch = (LVM_FLOAT *)pInstance->pFastTemporary; in LVEQNB_Process() 94 if (NrFrames > pInstance->Capabilities.MaxBlockSize) in LVEQNB_Process() 99 if (pInstance->Params.OperatingMode == LVEQNB_ON) in LVEQNB_Process() 111 if (pInstance->NBands != 0) in LVEQNB_Process() 113 for (LVM_UINT16 i = 0; i < pInstance->NBands; i++) in LVEQNB_Process() 118 if (pInstance->pBandDefinitions[i].Gain != 0) in LVEQNB_Process() 123 Biquad_FLOAT_Instance_t *pBiquad = &pInstance->pEQNB_FilterState_Float[i]; in LVEQNB_Process() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Bass/src/ |
D | LVDBE_Control.cpp | 54 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; in LVDBE_GetParameters() local 56 *pParams = pInstance->Params; in LVDBE_GetParameters() 84 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; in LVDBE_GetCapabilities() local 86 *pCapabilities = pInstance->Capabilities; in LVDBE_GetCapabilities() 104 void LVDBE_SetFilters(LVDBE_Instance_t *pInstance, in LVDBE_SetFilters() argument 118 (LVM_FLOAT *)&pInstance->pData->HPFTaps, /* Destination */ in LVDBE_SetFilters() 119 sizeof(pInstance->pData->HPFTaps) / sizeof(LVM_FLOAT)); /* Number of words */ in LVDBE_SetFilters() 120 BQ_2I_D32F32Cll_TRC_WRA_01_Init(&pInstance->pCoef->HPFInstance, /* Initialise the filter */ in LVDBE_SetFilters() 121 &pInstance->pData->HPFTaps, in LVDBE_SetFilters() 128 (LVM_FLOAT *)&pInstance->pData->BPFTaps, /* Destination */ in LVDBE_SetFilters() [all …]
|
D | LVDBE_Init.cpp | 64 LVDBE_Instance_t *pInstance = (LVDBE_Instance_t *)hInstance; in LVDBE_Memory() local 108 *pMemoryTable = pInstance->MemoryTable; in LVDBE_Memory() 152 LVDBE_Instance_t *pInstance; in LVDBE_Init() local 165 pInstance =(LVDBE_Instance_t *)*phInstance; in LVDBE_Init() 187 pInstance->Capabilities = *pCapabilities; in LVDBE_Init() 192 pInstance->MemoryTable = *pMemoryTable; in LVDBE_Init() 197 pInstance->Params.CentreFrequency = LVDBE_CENTRE_55HZ; in LVDBE_Init() 198 pInstance->Params.EffectLevel = 0; in LVDBE_Init() 199 pInstance->Params.HeadroomdB = 0; in LVDBE_Init() 200 pInstance->Params.HPFSelect = LVDBE_HPF_OFF; in LVDBE_Init() [all …]
|
D | LVDBE_Process.cpp | 81 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; in LVDBE_Process() local 86 const LVM_INT32 NrChannels = pInstance->Params.NrChannels == 1 in LVDBE_Process() 87 ? 2 : pInstance->Params.NrChannels; in LVDBE_Process() 95 (LVM_FLOAT *)pInstance->MemoryTable.Region[LVDBE_MEMREGION_SCRATCH].pBaseAddress; in LVDBE_Process() 116 if (NrFrames > pInstance->Capabilities.MaxBlockSize) in LVDBE_Process() 125 if ((pInstance->Params.OperatingMode == LVDBE_ON)|| in LVDBE_Process() 126 (LVC_Mixer_GetCurrent(&pInstance->pData->BypassMixer.MixerStream[0]) in LVDBE_Process() 127 !=LVC_Mixer_GetTarget(&pInstance->pData->BypassMixer.MixerStream[0]))) in LVDBE_Process() 137 if (pInstance->Params.HPFSelect == LVDBE_HPF_ON) in LVDBE_Process() 140 BQ_MC_D32F32C30_TRC_WRA_01(&pInstance->pCoef->HPFInstance, /* Filter instance */ in LVDBE_Process() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/ |
D | LVM_Control.cpp | 56 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; in LVM_SetControlParameters() local 63 pInstance->NewParams = *pParams; in LVM_SetControlParameters() 87 pInstance->Params.NrChannels = pParams->NrChannels; in LVM_SetControlParameters() 88 pInstance->Params.ChMask = pParams->ChMask; in LVM_SetControlParameters() 116 if(pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands) in LVM_SetControlParameters() 138 pInstance->pEQNB_BandDefs[i] = pParams->pEQNB_BandDefinition[i]; in LVM_SetControlParameters() 140 pInstance->NewParams.pEQNB_BandDefinition = pInstance->pEQNB_BandDefs; in LVM_SetControlParameters() 145 (pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands)) in LVM_SetControlParameters() 207 pInstance->ControlPending = LVM_TRUE; in LVM_SetControlParameters() 236 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; in LVM_GetControlParameters() local [all …]
|
D | LVM_Init.cpp | 135 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_GetMemoryTable() local 156 *pMemoryTable = pInstance->MemoryTable; in LVM_GetMemoryTable() 502 LVM_Instance_t *pInstance; in LVM_GetInstanceHandle() local 575 pInstance =(LVM_Instance_t *)*phInstance; in LVM_GetInstanceHandle() 580 pInstance->MemoryTable = *pMemoryTable; in LVM_GetInstanceHandle() 581 pInstance->InstParams = *pInstParams; in LVM_GetInstanceHandle() 597 pInstance->InternalBlockSize = (LVM_INT16)InternalBlockSize; in LVM_GetInstanceHandle() 602 pInstance->SamplesToProcess = 0; /* No samples left to process */ in LVM_GetInstanceHandle() 608 pInstance->pBufferManagement = (LVM_Buffer_t *) in LVM_GetInstanceHandle() 615 pInstance->pBufferManagement->pScratch = (LVM_FLOAT *) in LVM_GetInstanceHandle() [all …]
|
D | LVM_Process.cpp | 61 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_Process() local 68 LVM_INT32 NrChannels = pInstance->NrChannels; in LVM_Process() 69 LVM_INT32 ChMask = pInstance->ChMask; in LVM_Process() 92 if(pInstance->InstParams.BufferMode == LVM_UNMANAGED_BUFFERS) in LVM_Process() 97 if((NumSamples % pInstance->BlickSizeMultiple) != 0) in LVM_Process() 114 if (pInstance->ControlPending == LVM_TRUE) in LVM_Process() 119 NrChannels = pInstance->NrChannels; in LVM_Process() 120 ChMask = pInstance->ChMask; in LVM_Process() 132 if (pInstance->Params.SourceFormat == LVM_MONO) in LVM_Process() 168 if (pInstance->CS_Active == LVM_TRUE) in LVM_Process() [all …]
|
D | LVM_Buffers.cpp | 62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_BufferManagedIn() local 66 LVM_INT16 NumChannels = pInstance->NrChannels; in LVM_BufferManagedIn() 74 pBuffer = pInstance->pBufferManagement; in LVM_BufferManagedIn() 82 if (pInstance->SamplesToProcess == 0) in LVM_BufferManagedIn() 87 pInstance->SamplesToProcess = (LVM_INT16)(*pNumSamples + pBuffer->InDelaySamples); in LVM_BufferManagedIn() 88 pInstance->pInputSamples = (LVM_FLOAT *)pInData; in LVM_BufferManagedIn() 91 pStart = pInstance->pInputSamples; /* Pointer to the input samples */ in LVM_BufferManagedIn() 98 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize) in LVM_BufferManagedIn() 103 SampleCount = pInstance->InternalBlockSize; in LVM_BufferManagedIn() 104 NumSamples = pInstance->InternalBlockSize; in LVM_BufferManagedIn() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/ |
D | LVCS_Control.cpp | 52 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; in LVCS_GetParameters() local 54 *pParams = pInstance->Params; in LVCS_GetParameters() 82 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; in LVCS_Control() local 84 LVCS_Modes_en OperatingModeSave = pInstance->Params.OperatingMode; in LVCS_Control() 86 if (pParams->SampleRate != pInstance->Params.SampleRate) in LVCS_Control() 88 pInstance->TimerParams.SamplingRate = LVCS_SampleRateTable[pParams->SampleRate]; in LVCS_Control() 94 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel) in LVCS_Control() 102 if ((pInstance->Params.SampleRate != pParams->SampleRate) || in LVCS_Control() 103 (pInstance->Params.SpeakerType != pParams->SpeakerType)) in LVCS_Control() 110 pInstance->OutputDevice = LVCS_HEADPHONE; in LVCS_Control() [all …]
|
D | LVCS_Init.cpp | 69 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Memory() local 110 *pMemoryTable = pInstance->MemoryTable; in LVCS_Memory() 154 LVCS_Instance_t *pInstance; in LVCS_Init() local 164 pInstance =(LVCS_Instance_t *)*phInstance; in LVCS_Init() 169 pInstance->Capabilities = *pCapabilities; in LVCS_Init() 174 pInstance->MemoryTable = *pMemoryTable; in LVCS_Init() 179 pInstance->Params.OperatingMode = LVCS_OFF; in LVCS_Init() 180 pInstance->Params.SpeakerType = LVCS_SPEAKERTYPE_MAX; in LVCS_Init() 181 pInstance->OutputDevice = LVCS_HEADPHONE; in LVCS_Init() 182 pInstance->Params.SourceFormat = LVCS_SOURCEMAX; in LVCS_Init() [all …]
|
D | LVCS_BypassMix.cpp | 75 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_BypassMixInit() local 76 LVCS_BypassMix_t *pConfig = (LVCS_BypassMix_t *)&pInstance->BypassMix; in LVCS_BypassMixInit() 83 (pInstance->bTimerDone == LVM_TRUE) in LVCS_BypassMixInit() 84 && (pInstance->MSTarget1 != 0x7FFF) /* this indicates an off->on transtion */ in LVCS_BypassMixInit() 87 pInstance->TransitionGain = ((LVM_FLOAT)pParams->EffectLevel / 32767); in LVCS_BypassMixInit() 92 pInstance->TransitionGain = 0; in LVCS_BypassMixInit() 104 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain); in LVCS_BypassMixInit() 120 (LVM_FLOAT)pInstance->TransitionGain)); in LVCS_BypassMixInit() 149 if (pInstance->Params.CompressorMode == LVM_MODE_ON) in LVCS_BypassMixInit() 151 GainCorrect = (LVM_FLOAT)( pInstance->VolCorrect.GainMin in LVCS_BypassMixInit() [all …]
|
D | LVCS_Process.cpp | 74 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Process_CS() local 79 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process_CS() 95 pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress; in LVCS_Process_CS() 211 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Process() local 215 LVM_INT32 channels = pInstance->Params.NrChannels; in LVCS_Process() 225 if (NumSamples > pInstance->Capabilities.MaxBlockSize) in LVCS_Process() 233 if (pInstance->Params.OperatingMode != LVCS_OFF) in LVCS_Process() 252 pInstance->MemoryTable. \ in LVCS_Process() 279 if ((pInstance->Params.OperatingMode == LVCS_ON)&& \ in LVCS_Process() 280 (pInstance->Params.CompressorMode == LVM_MODE_ON)) in LVCS_Process() [all …]
|
D | LVCS_ReverbGenerator.cpp | 66 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_ReverbGeneratorInit() local 67 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation; in LVCS_ReverbGeneratorInit() 74 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress; in LVCS_ReverbGeneratorInit() 77 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress; in LVCS_ReverbGeneratorInit() 84 if(pInstance->Params.SampleRate != pParams->SampleRate ) /* Sample rate change test */ in LVCS_ReverbGeneratorInit() 138 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel) in LVCS_ReverbGeneratorInit() 190 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_ReverbGenerator() local 191 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation; in LVCS_ReverbGenerator() 196 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress; in LVCS_ReverbGenerator() 199 pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress; in LVCS_ReverbGenerator() [all …]
|
D | LVCS_StereoEnhancer.cpp | 57 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_SEnhancerInit() local 58 LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&pInstance->StereoEnhancer; in LVCS_SEnhancerInit() 66 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress; in LVCS_SEnhancerInit() 69 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress; in LVCS_SEnhancerInit() 74 if ((pInstance->Params.SampleRate != pParams->SampleRate) || in LVCS_SEnhancerInit() 75 (pInstance->Params.SpeakerType != pParams->SpeakerType)) in LVCS_SEnhancerInit() 187 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_StereoEnhancer() local 188 LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&pInstance->StereoEnhancer; in LVCS_StereoEnhancer() 193 pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress; in LVCS_StereoEnhancer() 196 pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress; in LVCS_StereoEnhancer() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/lib/ |
D | BIQUAD.h | 130 void BQ_2I_D16F32Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance, 134 void BQ_2I_D16F32C15_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance, 139 void BQ_2I_D16F32C14_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance, 144 void BQ_2I_D16F32C13_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance, 149 void BQ_2I_D16F16Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance, 153 void BQ_2I_D16F16C15_TRC_WRA_01( Biquad_FLOAT_Instance_t *pInstance, 158 void BQ_2I_D16F16C14_TRC_WRA_01( Biquad_FLOAT_Instance_t *pInstance, 163 void BQ_1I_D16F16Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance, 167 void BQ_1I_D16F16C15_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance, 172 void BQ_1I_D16F32Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance, [all …]
|