/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | MixInSoft_D32C31_SAT.c | 36 void MixInSoft_D32C31_SAT( Mix_1St_Cll_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)&& in MixInSoft_D32C31_SAT() 53 (pInstance->Current-pInstance->Target > -POINT_ZERO_ONE_DB)){ in MixInSoft_D32C31_SAT() 54 …pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal… 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>>16) == 0x7FFF) in MixInSoft_D32C31_SAT() [all …]
|
D | MixSoft_1St_D32C31_WRA.c | 38 void MixSoft_1St_D32C31_WRA( Mix_1St_Cll_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)&& in MixSoft_1St_D32C31_WRA() 55 (pInstance->Current-pInstance->Target > -POINT_ZERO_ONE_DB)){ in MixSoft_1St_D32C31_WRA() 56 …pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal… in MixSoft_1St_D32C31_WRA() 60 Core_MixSoft_1St_D32C31_WRA( pInstance, src, dst, n); in MixSoft_1St_D32C31_WRA() 69 if (pInstance->Target == 0) in MixSoft_1St_D32C31_WRA() 71 else if ((pInstance->Target>>16) == 0x7FFF){ in MixSoft_1St_D32C31_WRA() [all …]
|
D | LVC_MixInSoft_D16C31_SAT.c | 44 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams); in LVC_MixInSoft_D16C31_SAT() local 51 if (pInstance->Current != pInstance->Target) in LVC_MixInSoft_D16C31_SAT() 53 if(pInstance->Delta == 0x7FFFFFFF){ in LVC_MixInSoft_D16C31_SAT() 54 pInstance->Current = pInstance->Target; in LVC_MixInSoft_D16C31_SAT() 55 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format in LVC_MixInSoft_D16C31_SAT() 57 }else if (Abs_32(pInstance->Current-pInstance->Target) < pInstance->Delta){ in LVC_MixInSoft_D16C31_SAT() 58 …pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal… in LVC_MixInSoft_D16C31_SAT() 59 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format in LVC_MixInSoft_D16C31_SAT() 64 if(pInstance->Shift!=0){ in LVC_MixInSoft_D16C31_SAT() 65 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,src,n); in LVC_MixInSoft_D16C31_SAT() [all …]
|
D | LVC_MixSoft_1St_D16C31_SAT.c | 44 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams); in LVC_MixSoft_1St_D16C31_SAT() local 51 if (pInstance->Current != pInstance->Target) in LVC_MixSoft_1St_D16C31_SAT() 53 if(pInstance->Delta == 0x7FFFFFFF){ in LVC_MixSoft_1St_D16C31_SAT() 54 pInstance->Current = pInstance->Target; in LVC_MixSoft_1St_D16C31_SAT() 55 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format in LVC_MixSoft_1St_D16C31_SAT() 57 }else if (Abs_32(pInstance->Current-pInstance->Target) < pInstance->Delta){ in LVC_MixSoft_1St_D16C31_SAT() 58 …pInstance->Current = pInstance->Target; /* Difference is not significant anymore. Make them equal… in LVC_MixSoft_1St_D16C31_SAT() 59 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format in LVC_MixSoft_1St_D16C31_SAT() 64 if(pInstance->Shift!=0){ in LVC_MixSoft_1St_D16C31_SAT() 65 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,dst,n); in LVC_MixSoft_1St_D16C31_SAT() [all …]
|
D | MixSoft_2St_D32C31_SAT.c | 30 void MixSoft_2St_D32C31_SAT( Mix_2St_Cll_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_t*) pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT() 45 …MixInSoft_D32C31_SAT( (void *) &pInstance->Alpha2, /* Cast to void: no dereferencing in functi… in MixSoft_2St_D32C31_SAT() 55 if (pInstance->Current1 == 0) in MixSoft_2St_D32C31_SAT() 56 …MixSoft_1St_D32C31_WRA( (void *) &pInstance->Alpha2, /* Cast to void: no dereferencing in function… in MixSoft_2St_D32C31_SAT() 58 else if (pInstance->Current2 == 0) in MixSoft_2St_D32C31_SAT() 59 MixSoft_1St_D32C31_WRA( (Mix_1St_Cll_t*) pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT() 61 Core_MixHard_2St_D32C31_SAT( pInstance, src1, src2, dst, n); in MixSoft_2St_D32C31_SAT()
|
D | Core_MixInSoft_D32C31_SAT.c | 29 void Core_MixInSoft_D32C31_SAT( Mix_1St_Cll_t *pInstance, in Core_MixInSoft_D32C31_SAT() argument 45 …MUL32x32INTO32((0x7FFFFFFF-pInstance->Alpha),pInstance->Target,TargetTimesOneMinAlpha,31); /* Q31 … in Core_MixInSoft_D32C31_SAT() 46 if (pInstance->Target >= pInstance->Current){ in Core_MixInSoft_D32C31_SAT() 51 …MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31); /* Q0 * Q31 in Q0 … in Core_MixInSoft_D32C31_SAT() 52 …pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q0 + Q0 into Q0… in Core_MixInSoft_D32C31_SAT() 53 …CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15… in Core_MixInSoft_D32C31_SAT() 72 …MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31); /* Q0 * Q31 in Q0 … in Core_MixInSoft_D32C31_SAT() 73 …pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q0 + Q0 into Q0… in Core_MixInSoft_D32C31_SAT() 74 …CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15… in Core_MixInSoft_D32C31_SAT()
|
D | Core_MixSoft_1St_D32C31_WRA.c | 29 void Core_MixSoft_1St_D32C31_WRA( Mix_1St_Cll_t *pInstance, in Core_MixSoft_1St_D32C31_WRA() argument 45 …MUL32x32INTO32((0x7FFFFFFF-pInstance->Alpha),pInstance->Target,TargetTimesOneMinAlpha,31) /* Q31 *… in Core_MixSoft_1St_D32C31_WRA() 46 if (pInstance->Target >= pInstance->Current) in Core_MixSoft_1St_D32C31_WRA() 53 … MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31) /* Q31 * Q31 in Q31 */ in Core_MixSoft_1St_D32C31_WRA() 54 … pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q31 + Q31 into Q31*/ in Core_MixSoft_1St_D32C31_WRA() 55 … CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/ in Core_MixSoft_1St_D32C31_WRA() 70 … MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31) /* Q31 * Q31 in Q31 */ in Core_MixSoft_1St_D32C31_WRA() 71 … pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q31 + Q31 into Q31*/ in Core_MixSoft_1St_D32C31_WRA() 72 … CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/ in Core_MixSoft_1St_D32C31_WRA()
|
D | AGC_MIX_VOL_2St1Mon_D32_WRA.c | 73 void AGC_MIX_VOL_2St1Mon_D32_WRA(AGC_MIX_VOL_2St1Mon_D32_t *pInstance, /* Instance pointer */ in AGC_MIX_VOL_2St1Mon_D32_WRA() argument 97 LVM_INT32 AGC_Gain = pInstance->AGC_Gain; /* Get the current AGC gain */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 98 LVM_INT32 AGC_MaxGain = pInstance->AGC_MaxGain; /* Get maximum AGC gain */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 99 LVM_INT16 AGC_GainShift = pInstance->AGC_GainShift; /* Get the AGC shift */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 100 LVM_INT16 AGC_Attack = pInstance->AGC_Attack; /* Attack scaler */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 101 LVM_INT16 AGC_Decay = pInstance->AGC_Decay; /* Decay scaler */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 102 LVM_INT32 AGC_Target = pInstance->AGC_Target; /* Get the target level */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 103 LVM_INT32 Vol_Current = pInstance->Volume; /* Actual volume setting */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 104 LVM_INT32 Vol_Target = pInstance->Target; /* Target volume setting */ in AGC_MIX_VOL_2St1Mon_D32_WRA() 105 LVM_INT16 Vol_Shift = pInstance->VolumeShift; /* Volume shift scaling */ in AGC_MIX_VOL_2St1Mon_D32_WRA() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Bass/src/ |
D | LVDBE_Control.c | 54 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 120 (void *)&pInstance->pData->HPFTaps, /* Destination Cast to void: \ in LVDBE_SetFilters() 122 sizeof(pInstance->pData->HPFTaps)/sizeof(LVM_INT16)); /* Number of words */ in LVDBE_SetFilters() 123 …BQ_2I_D32F32Cll_TRC_WRA_01_Init(&pInstance->pCoef->HPFInstance, /* Initialise the filter */ in LVDBE_SetFilters() 124 &pInstance->pData->HPFTaps, in LVDBE_SetFilters() 132 (void *)&pInstance->pData->BPFTaps, /* Destination Cast to void:\ in LVDBE_SetFilters() [all …]
|
D | LVDBE_Init.c | 64 LVDBE_Instance_t *pInstance = (LVDBE_Instance_t *)hInstance; in LVDBE_Memory() local 108 *pMemoryTable = pInstance->MemoryTable; in LVDBE_Memory() 153 LVDBE_Instance_t *pInstance; in LVDBE_Init() local 167 pInstance =(LVDBE_Instance_t *)*phInstance; in LVDBE_Init() 191 pInstance->Capabilities = *pCapabilities; in LVDBE_Init() 197 pInstance->MemoryTable = *pMemoryTable; in LVDBE_Init() 203 pInstance->Params.CentreFrequency = LVDBE_CENTRE_55HZ; in LVDBE_Init() 204 pInstance->Params.EffectLevel = 0; in LVDBE_Init() 205 pInstance->Params.HeadroomdB = 0; in LVDBE_Init() 206 pInstance->Params.HPFSelect = LVDBE_HPF_OFF; in LVDBE_Init() [all …]
|
D | LVDBE_Process.c | 82 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; in LVDBE_Process() local 83 …LVM_INT32 *pScratch = (LVM_INT32 *)pInstance->MemoryTable.Region[LVDBE_MEMREGION_SCRATC… in LVDBE_Process() 97 if (NumSamples > pInstance->Capabilities.MaxBlockSize) in LVDBE_Process() 106 if ((pInstance->Params.OperatingMode == LVDBE_ON)|| in LVDBE_Process() 107 (LVC_Mixer_GetCurrent(&pInstance->pData->BypassMixer.MixerStream[0]) in LVDBE_Process() 108 !=LVC_Mixer_GetTarget(&pInstance->pData->BypassMixer.MixerStream[0]))) in LVDBE_Process() 124 if (pInstance->Params.HPFSelect == LVDBE_HPF_ON) in LVDBE_Process() 126 BQ_2I_D32F32C30_TRC_WRA_01(&pInstance->pCoef->HPFInstance,/* Filter instance */ in LVDBE_Process() 144 BP_1I_D32F32C30_TRC_WRA_02(&pInstance->pCoef->BPFInstance, /* Filter instance */ in LVDBE_Process() 153 AGC_MIX_VOL_2St1Mon_D32_WRA(&pInstance->pData->AGCInstance, /* Instance pointer */ in LVDBE_Process() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Eq/src/ |
D | LVEQNB_Control.c | 64 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 151 pInstance->NBands = pParams->NBands; in LVEQNB_SetFilters() 165 … pInstance->pBiquadType[i] = LVEQNB_SinglePrecision; /* Default to single precision */ in LVEQNB_SetFilters() 171 pInstance->pBiquadType[i] = LVEQNB_DoublePrecision; in LVEQNB_SetFilters() 178 pInstance->pBiquadType[i] = LVEQNB_DoublePrecision; in LVEQNB_SetFilters() 187 pInstance->pBiquadType[i] = LVEQNB_OutOfRange; in LVEQNB_SetFilters() [all …]
|
D | LVEQNB_Init.c | 68 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; in LVEQNB_Memory() local 146 *pMemoryTable = pInstance->MemoryTable; in LVEQNB_Memory() 192 LVEQNB_Instance_t *pInstance; in LVEQNB_Init() local 229 pInstance =(LVEQNB_Instance_t *)*phInstance; in LVEQNB_Init() 236 pInstance->Capabilities = *pCapabilities; in LVEQNB_Init() 243 pInstance->MemoryTable = *pMemoryTable; in LVEQNB_Init() 251 pInstance->pEQNB_FilterState = InstAlloc_AddMember(&AllocMem, in LVEQNB_Init() 263 pInstance->pEQNB_Taps = (Biquad_2I_Order2_Taps_t *)InstAlloc_AddMember(&AllocMem, in LVEQNB_Init() 266 pInstance->pBandDefinitions = (LVEQNB_BandDef_t *)InstAlloc_AddMember(&AllocMem, in LVEQNB_Init() 270 memset(pInstance->pBandDefinitions, 0, MemSize); in LVEQNB_Init() [all …]
|
D | LVEQNB_Process.c | 69 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; in LVEQNB_Process() local 85 pScratch = (LVM_INT32 *)pInstance->pFastTemporary; in LVEQNB_Process() 90 if (NumSamples > pInstance->Capabilities.MaxBlockSize) in LVEQNB_Process() 95 if (pInstance->Params.OperatingMode == LVEQNB_ON) in LVEQNB_Process() 108 if (pInstance->NBands != 0) in LVEQNB_Process() 110 for (i=0; i<pInstance->NBands; i++) in LVEQNB_Process() 115 if (pInstance->pBandDefinitions[i].Gain != 0) in LVEQNB_Process() 120 pBiquad = &pInstance->pEQNB_FilterState[i]; in LVEQNB_Process() 126 switch (pInstance->pBiquadType[i]) in LVEQNB_Process() 153 if(pInstance->bInOperatingModeTransition == LVM_TRUE){ in LVEQNB_Process() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/ |
D | LVM_Control.c | 55 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; in LVM_SetControlParameters() local 63 pInstance->NewParams = *pParams; in LVM_SetControlParameters() 103 if(pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands) in LVM_SetControlParameters() 125 pInstance->pEQNB_BandDefs[i] = pParams->pEQNB_BandDefinition[i]; in LVM_SetControlParameters() 127 pInstance->NewParams.pEQNB_BandDefinition = pInstance->pEQNB_BandDefs; in LVM_SetControlParameters() 132 (pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands)) in LVM_SetControlParameters() 195 pInstance->ControlPending = LVM_TRUE; in LVM_SetControlParameters() 225 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; in LVM_GetControlParameters() local 235 *pParams = pInstance->NewParams; in LVM_GetControlParameters() 243 if (pInstance->NewParams.EQNB_NBands != 0) in LVM_GetControlParameters() [all …]
|
D | LVM_Buffers.c | 62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_BufferManagedIn() local 71 pBuffer = pInstance->pBufferManagement; in LVM_BufferManagedIn() 79 if (pInstance->SamplesToProcess == 0) in LVM_BufferManagedIn() 84 pInstance->SamplesToProcess = (LVM_INT16)(*pNumSamples + pBuffer->InDelaySamples); in LVM_BufferManagedIn() 85 pInstance->pInputSamples = (LVM_INT16 *)pInData; in LVM_BufferManagedIn() 88 pStart = pInstance->pInputSamples; /* Pointer to the input samples */ in LVM_BufferManagedIn() 95 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize) in LVM_BufferManagedIn() 100 SampleCount = pInstance->InternalBlockSize; in LVM_BufferManagedIn() 101 NumSamples = pInstance->InternalBlockSize; in LVM_BufferManagedIn() 110 NumSamples = pInstance->SamplesToProcess; in LVM_BufferManagedIn() [all …]
|
D | LVM_Init.c | 69 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_GetMemoryTable() local 92 *pMemoryTable = pInstance->MemoryTable; in LVM_GetMemoryTable() 429 LVM_Instance_t *pInstance; in LVM_GetInstanceHandle() local 504 pInstance =(LVM_Instance_t *)*phInstance; in LVM_GetInstanceHandle() 510 pInstance->MemoryTable = *pMemoryTable; in LVM_GetInstanceHandle() 511 pInstance->InstParams = *pInstParams; in LVM_GetInstanceHandle() 528 pInstance->InternalBlockSize = (LVM_INT16)InternalBlockSize; in LVM_GetInstanceHandle() 534 pInstance->SamplesToProcess = 0; /* No samples left to process */ in LVM_GetInstanceHandle() 540 … pInstance->pBufferManagement = InstAlloc_AddMember(&AllocMem[LVM_MEMREGION_PERSISTENT_SLOW_DATA], in LVM_GetInstanceHandle() 543 …pInstance->pBufferManagement->pScratch = InstAlloc_AddMember(&AllocMem[LVM_MEMREGION_TEMPORARY_FAS… in LVM_GetInstanceHandle() [all …]
|
D | LVM_Process.c | 62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; in LVM_Process() local 89 if(pInstance->InstParams.BufferMode == LVM_UNMANAGED_BUFFERS) in LVM_Process() 94 if((NumSamples % pInstance->BlickSizeMultiple) != 0) in LVM_Process() 112 if (pInstance->ControlPending == LVM_TRUE) in LVM_Process() 126 if (pInstance->Params.SourceFormat == LVM_MONO) in LVM_Process() 160 if (pInstance->CS_Active == LVM_TRUE) in LVM_Process() 162 … (void)LVCS_Process(pInstance->hCSInstance, /* Concert Sound instance handle */ in LVM_Process() 172 if (pInstance->VC_Active!=0) in LVM_Process() 174 LVC_MixSoft_1St_D16C31_SAT(&pInstance->VC_Volume, in LVM_Process() 184 if (pInstance->EQNB_Active == LVM_TRUE) in LVM_Process() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/ |
D | LVCS_Control.c | 52 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 …]
|
D | LVCS_Init.c | 69 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Memory() local 109 *pMemoryTable = pInstance->MemoryTable; in LVCS_Memory() 154 LVCS_Instance_t *pInstance; in LVCS_Init() local 165 pInstance =(LVCS_Instance_t *)*phInstance; in LVCS_Init() 171 pInstance->Capabilities = *pCapabilities; in LVCS_Init() 176 pInstance->MemoryTable = *pMemoryTable; in LVCS_Init() 182 pInstance->Params.OperatingMode = LVCS_OFF; in LVCS_Init() 183 pInstance->Params.SpeakerType = LVCS_SPEAKERTYPE_MAX; in LVCS_Init() 184 pInstance->OutputDevice = LVCS_HEADPHONE; in LVCS_Init() 185 pInstance->Params.SourceFormat = LVCS_SOURCEMAX; in LVCS_Init() [all …]
|
D | LVCS_BypassMix.c | 74 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_BypassMixInit() local 75 LVCS_BypassMix_t *pConfig = (LVCS_BypassMix_t *)&pInstance->BypassMix; in LVCS_BypassMixInit() 84 (pInstance->bTimerDone == LVM_TRUE) in LVCS_BypassMixInit() 85 && (pInstance->MSTarget1 != 0x7FFF) /* this indicates an off->on transtion */ in LVCS_BypassMixInit() 88 pInstance->TransitionGain = pParams->EffectLevel; in LVCS_BypassMixInit() 93 pInstance->TransitionGain = 0; in LVCS_BypassMixInit() 105 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain); in LVCS_BypassMixInit() 117 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * (0x7FFF - pInstance->TransitionGain)); in LVCS_BypassMixInit() 147 if (pInstance->Params.CompressorMode == LVM_MODE_ON) in LVCS_BypassMixInit() 149 GainCorrect = (LVM_INT16)( pInstance->VolCorrect.GainMin in LVCS_BypassMixInit() [all …]
|
D | LVCS_Process.c | 76 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_Process_CS() local 77 …LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORA… in LVCS_Process_CS() 170 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; in LVCS_Process() local 176 if (NumSamples > pInstance->Capabilities.MaxBlockSize) in LVCS_Process() 184 if (pInstance->Params.OperatingMode != LVCS_OFF) in LVCS_Process() 198 …if ((pInstance->Params.OperatingMode == LVCS_ON)&&(pInstance->Params.CompressorMode == LVM_MODE_ON… in LVCS_Process() 200 LVM_INT16 Gain = pInstance->VolCorrect.CompMin; in LVCS_Process() 203 Current1 = LVC_Mixer_GetCurrent(&pInstance->BypassMix.Mixer_Instance.MixerStream[0]); in LVCS_Process() 204 Gain = (LVM_INT16)( pInstance->VolCorrect.CompMin in LVCS_Process() 205 - (((LVM_INT32)pInstance->VolCorrect.CompMin * (Current1)) >> 15) in LVCS_Process() [all …]
|
D | LVCS_ReverbGenerator.c | 67 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() 69 …LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_P… in LVCS_ReverbGeneratorInit() 70 …LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_… in LVCS_ReverbGeneratorInit() 79 if(pInstance->Params.SampleRate != pParams->SampleRate ) /* Sample rate change test */ in LVCS_ReverbGeneratorInit() 134 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel) in LVCS_ReverbGeneratorInit() 189 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_ReverbGenerator() local 190 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation; in LVCS_ReverbGenerator() 191 …LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_… in LVCS_ReverbGenerator() 192 …LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEM… in LVCS_ReverbGenerator() [all …]
|
D | LVCS_StereoEnhancer.c | 58 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; in LVCS_SEnhancerInit() local 59 LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&pInstance->StereoEnhancer; in LVCS_SEnhancerInit() 60 …LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_P… in LVCS_SEnhancerInit() 61 …LVCS_Coefficient_t *pCoefficient = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_M… in LVCS_SEnhancerInit() 69 if ((pInstance->Params.SampleRate != pParams->SampleRate) || in LVCS_SEnhancerInit() 70 (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() 189 …LVCS_Coefficient_t *pCoefficient = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_M… in LVCS_StereoEnhancer() 190 …LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEM… in LVCS_StereoEnhancer() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/lib/ |
D | BIQUAD.h | 157 void BQ_2I_D16F32Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance, 161 void BQ_2I_D16F32C15_TRC_WRA_01 ( Biquad_Instance_t *pInstance, 166 void BQ_2I_D16F32C14_TRC_WRA_01 ( Biquad_Instance_t *pInstance, 171 void BQ_2I_D16F32C13_TRC_WRA_01 ( Biquad_Instance_t *pInstance, 176 void BQ_2I_D16F16Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance, 180 void BQ_2I_D16F16C15_TRC_WRA_01( Biquad_Instance_t *pInstance, 185 void BQ_2I_D16F16C14_TRC_WRA_01( Biquad_Instance_t *pInstance, 190 void BQ_1I_D16F16Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance, 194 void BQ_1I_D16F16C15_TRC_WRA_01( Biquad_Instance_t *pInstance, 199 void BQ_1I_D16F32Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance, [all …]
|