/frameworks/base/media/libeffects/lvm/lib/Common/src/ |
H A D | MixInSoft_D32C31_SAT.c | 36 void MixInSoft_D32C31_SAT( Mix_1St_Cll_t *pInstance, argument 48 if (pInstance->Current != pInstance->Target) 50 if(pInstance->Alpha == 0){ 51 pInstance->Current = pInstance->Target; 52 }else if ((pInstance->Current-pInstance->Target <POINT_ZERO_ONE_DB)&& 53 (pInstance->Current-pInstance [all...] |
H A D | MixSoft_1St_D32C31_WRA.c | 38 void MixSoft_1St_D32C31_WRA( Mix_1St_Cll_t *pInstance, argument 50 if (pInstance->Current != pInstance->Target) 52 if(pInstance->Alpha == 0){ 53 pInstance->Current = pInstance->Target; 54 }else if ((pInstance->Current-pInstance->Target <POINT_ZERO_ONE_DB)&& 55 (pInstance->Current-pInstance [all...] |
H A D | MixSoft_2St_D32C31_SAT.c | 30 void MixSoft_2St_D32C31_SAT( Mix_2St_Cll_t *pInstance, argument 42 if ((pInstance->Current1 != pInstance->Target1) || (pInstance->Current2 != pInstance->Target2)) 44 MixSoft_1St_D32C31_WRA( (Mix_1St_Cll_t*) pInstance, src1, dst, n); 45 MixInSoft_D32C31_SAT( (void *) &pInstance->Alpha2, /* Cast to void: no dereferencing in function*/ 55 if (pInstance->Current1 == 0) 56 MixSoft_1St_D32C31_WRA( (void *) &pInstance->Alpha2, /* Cast to void: no dereferencing in function*/ 58 else if (pInstance [all...] |
H A D | LVC_MixInSoft_D16C31_SAT.c | 44 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams); local 51 if (pInstance->Current != pInstance->Target) 53 if(pInstance->Delta == 0x7FFFFFFF){ 54 pInstance->Current = pInstance->Target; 55 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format 57 }else if (Abs_32(pInstance->Current-pInstance [all...] |
H A D | LVC_Mixer_GetCurrent.c | 38 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local 39 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
|
H A D | LVC_Mixer_GetTarget.c | 37 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local 39 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
|
H A D | DC_2I_D16_TRC_WRA_01_Init.c | 21 void DC_2I_D16_TRC_WRA_01_Init(Biquad_Instance_t *pInstance) argument 23 PFilter_State pBiquadState = (PFilter_State) pInstance;
|
H A D | LVC_MixSoft_1St_D16C31_SAT.c | 44 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams); local 51 if (pInstance->Current != pInstance->Target) 53 if(pInstance->Delta == 0x7FFFFFFF){ 54 pInstance->Current = pInstance->Target; 55 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format 57 }else if (Abs_32(pInstance->Current-pInstance [all...] |
H A D | LVC_Mixer_SetTarget.c | 53 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local 54 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format 63 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target 64 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current 65 pInstance->Shift=Shift; // Update Shift
|
H A D | LVC_Mixer_Init.c | 54 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local 63 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target 64 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current 65 pInstance->Shift=Shift; // Update Shift
|
H A D | Core_MixInSoft_D32C31_SAT.c | 29 void Core_MixInSoft_D32C31_SAT( Mix_1St_Cll_t *pInstance, argument 45 MUL32x32INTO32((0x7FFFFFFF-pInstance->Alpha),pInstance->Target,TargetTimesOneMinAlpha,31); /* Q31 * Q0 in Q0 */ 46 if (pInstance->Target >= pInstance->Current){ 51 MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31); /* Q0 * Q31 in Q0 */ 52 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q0 + Q0 into Q0*/ 53 CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/ 72 MUL32x32INTO32(pInstance [all...] |
H A D | Core_MixSoft_1St_D32C31_WRA.c | 29 void Core_MixSoft_1St_D32C31_WRA( Mix_1St_Cll_t *pInstance, argument 45 MUL32x32INTO32((0x7FFFFFFF-pInstance->Alpha),pInstance->Target,TargetTimesOneMinAlpha,31) /* Q31 * Q31 in Q31 */ 46 if (pInstance->Target >= pInstance->Current) 53 MUL32x32INTO32(pInstance->Current,pInstance->Alpha,CurrentTimesAlpha,31) /* Q31 * Q31 in Q31 */ 54 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha; /* Q31 + Q31 into Q31*/ 55 CurrentShort = (LVM_INT16)(pInstance->Current>>16); /* From Q31 to Q15*/ 70 MUL32x32INTO32(pInstance [all...] |
/frameworks/base/media/libeffects/lvm/lib/Eq/src/ |
H A D | LVEQNB_Control.c | 64 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; local 74 *pParams = pInstance->Params; 105 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; local 112 *pCapabilities = pInstance->Capabilities; 126 /* pInstance Pointer to the instance */ 140 void LVEQNB_SetFilters(LVEQNB_Instance_t *pInstance, argument 151 pInstance->NBands = pParams->NBands; 165 pInstance->pBiquadType[i] = LVEQNB_SinglePrecision; /* Default to single precision */ 171 pInstance->pBiquadType[i] = LVEQNB_DoublePrecision; 178 pInstance 214 LVEQNB_SetCoefficients(LVEQNB_Instance_t *pInstance) argument 292 LVEQNB_ClearFilterHistory(LVEQNB_Instance_t *pInstance) argument 336 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; local 465 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; local [all...] |
H A D | LVEQNB_Init.c | 67 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; local 145 *pMemoryTable = pInstance->MemoryTable; 191 LVEQNB_Instance_t *pInstance; local 228 pInstance =(LVEQNB_Instance_t *)*phInstance; 235 pInstance->Capabilities = *pCapabilities; 242 pInstance->MemoryTable = *pMemoryTable; 250 pInstance->pEQNB_FilterState = InstAlloc_AddMember(&AllocMem, 262 pInstance->pEQNB_Taps = (Biquad_2I_Order2_Taps_t *)InstAlloc_AddMember(&AllocMem, 265 pInstance->pBandDefinitions = (LVEQNB_BandDef_t *)InstAlloc_AddMember(&AllocMem, 268 pInstance [all...] |
H A D | LVEQNB_Process.c | 69 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; local 85 pScratch = (LVM_INT32 *)pInstance->pFastTemporary; 90 if (NumSamples > pInstance->Capabilities.MaxBlockSize) 95 if (pInstance->Params.OperatingMode == LVEQNB_ON) 108 if (pInstance->NBands != 0) 110 for (i=0; i<pInstance->NBands; i++) 115 if (pInstance->pBandDefinitions[i].Gain != 0) 120 pBiquad = &pInstance->pEQNB_FilterState[i]; 126 switch (pInstance->pBiquadType[i]) 153 if(pInstance [all...] |
/frameworks/base/media/libeffects/lvm/lib/StereoWidening/src/ |
H A D | LVCS_Control.c | 52 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; local 54 *pParams = pInstance->Params; 83 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; local 85 LVCS_Modes_en OperatingModeSave = pInstance->Params.OperatingMode; 87 if (pParams->SampleRate != pInstance->Params.SampleRate) 89 pInstance->TimerParams.SamplingRate = LVCS_SampleRateTable[pParams->SampleRate]; 95 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel) 103 if ((pInstance->Params.SampleRate != pParams->SampleRate) || 104 (pInstance->Params.SpeakerType != pParams->SpeakerType)) 111 pInstance 246 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local [all...] |
H A D | LVCS_Init.c | 69 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local 109 *pMemoryTable = pInstance->MemoryTable; 154 LVCS_Instance_t *pInstance; local 165 pInstance =(LVCS_Instance_t *)*phInstance; 171 pInstance->Capabilities = *pCapabilities; 176 pInstance->MemoryTable = *pMemoryTable; 182 pInstance->Params.OperatingMode = LVCS_OFF; 183 pInstance->Params.SpeakerType = LVCS_SPEAKERTYPE_MAX; 184 pInstance->OutputDevice = LVCS_HEADPHONE; 185 pInstance [all...] |
H A D | LVCS_Process.c | 76 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local 77 LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress; 170 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; local 176 if (NumSamples > pInstance->Capabilities.MaxBlockSize) 184 if (pInstance->Params.OperatingMode != LVCS_OFF) 198 if ((pInstance->Params.OperatingMode == LVCS_ON)&&(pInstance->Params.CompressorMode == LVM_MODE_ON)) 200 LVM_INT16 Gain = pInstance->VolCorrect.CompMin; 203 Current1 = LVC_Mixer_GetCurrent(&pInstance->BypassMix.Mixer_Instance.MixerStream[0]); 204 Gain = (LVM_INT16)( pInstance [all...] |
/frameworks/base/media/libeffects/lvm/lib/Bass/src/ |
H A D | LVDBE_Control.c | 54 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; local 56 *pParams = pInstance->Params; 85 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; local 87 *pCapabilities = pInstance->Capabilities; 101 /* pInstance Pointer to the instance */ 106 void LVDBE_SetFilters(LVDBE_Instance_t *pInstance, argument 120 (void *)&pInstance->pData->HPFTaps, /* Destination Cast to void: \ 122 sizeof(pInstance->pData->HPFTaps)/sizeof(LVM_INT16)); /* Number of words */ 123 BQ_2I_D32F32Cll_TRC_WRA_01_Init(&pInstance->pCoef->HPFInstance, /* Initialise the filter */ 124 &pInstance 156 LVDBE_SetAGC(LVDBE_Instance_t *pInstance, LVDBE_Params_t *pParams) argument 207 LVDBE_SetVolume(LVDBE_Instance_t *pInstance, LVDBE_Params_t *pParams) argument 311 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; local [all...] |
H A D | LVDBE_Init.c | 64 LVDBE_Instance_t *pInstance = (LVDBE_Instance_t *)hInstance; local 108 *pMemoryTable = pInstance->MemoryTable; 153 LVDBE_Instance_t *pInstance; local 167 pInstance =(LVDBE_Instance_t *)*phInstance; 191 pInstance->Capabilities = *pCapabilities; 197 pInstance->MemoryTable = *pMemoryTable; 203 pInstance->Params.CentreFrequency = LVDBE_CENTRE_55HZ; 204 pInstance->Params.EffectLevel = 0; 205 pInstance->Params.HeadroomdB = 0; 206 pInstance [all...] |
H A D | LVDBE_Process.c | 82 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; local 83 LVM_INT32 *pScratch = (LVM_INT32 *)pInstance->MemoryTable.Region[LVDBE_MEMREGION_SCRATCH].pBaseAddress; 97 if (NumSamples > pInstance->Capabilities.MaxBlockSize) 106 if ((pInstance->Params.OperatingMode == LVDBE_ON)|| 107 (LVC_Mixer_GetCurrent(&pInstance->pData->BypassMixer.MixerStream[0]) 108 !=LVC_Mixer_GetTarget(&pInstance->pData->BypassMixer.MixerStream[0]))) 124 if (pInstance->Params.HPFSelect == LVDBE_HPF_ON) 126 BQ_2I_D32F32C30_TRC_WRA_01(&pInstance->pCoef->HPFInstance,/* Filter instance */ 144 BP_1I_D32F32C30_TRC_WRA_02(&pInstance->pCoef->BPFInstance, /* Filter instance */ 153 AGC_MIX_VOL_2St1Mon_D32_WRA(&pInstance [all...] |
/frameworks/base/media/libeffects/lvm/lib/Bundle/src/ |
H A D | LVM_Process.c | 62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 89 if(pInstance->InstParams.BufferMode == LVM_UNMANAGED_BUFFERS) 94 if((NumSamples % pInstance->BlickSizeMultiple) != 0) 112 if (pInstance->ControlPending == LVM_TRUE) 126 if (pInstance->Params.SourceFormat == LVM_MONO) 160 if (pInstance->CS_Active == LVM_TRUE) 162 (void)LVCS_Process(pInstance->hCSInstance, /* Concert Sound instance handle */ 172 if (pInstance->VC_Active!=0) 174 LVC_MixSoft_1St_D16C31_SAT(&pInstance->VC_Volume, 184 if (pInstance [all...] |
H A D | LVM_Buffers.c | 62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 71 pBuffer = pInstance->pBufferManagement; 79 if (pInstance->SamplesToProcess == 0) 84 pInstance->SamplesToProcess = (LVM_INT16)(*pNumSamples + pBuffer->InDelaySamples); 85 pInstance->pInputSamples = (LVM_INT16 *)pInData; 88 pStart = pInstance->pInputSamples; /* Pointer to the input samples */ 95 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize) 100 SampleCount = pInstance->InternalBlockSize; 101 NumSamples = pInstance 223 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 288 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 482 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 531 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 700 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 748 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 852 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local [all...] |
H A D | LVM_Control.c | 55 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local 63 pInstance->NewParams = *pParams; 103 if(pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands) 125 pInstance->pEQNB_BandDefs[i] = pParams->pEQNB_BandDefinition[i]; 127 pInstance->NewParams.pEQNB_BandDefinition = pInstance->pEQNB_BandDefs; 132 (pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands)) 195 pInstance->ControlPending = LVM_TRUE; 225 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local 235 *pParams = pInstance 268 LVM_SetTrebleBoost(LVM_Instance_t *pInstance, LVM_ControlParams_t *pParams) argument 338 LVM_SetVolume(LVM_Instance_t *pInstance, LVM_ControlParams_t *pParams) argument 441 LVM_SetHeadroom(LVM_Instance_t *pInstance, LVM_ControlParams_t *pParams) argument 501 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local 854 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local 914 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local 958 LVM_Instance_t *pInstance =(LVM_Instance_t *)pBundleHandle; local 1010 LVM_Instance_t *pInstance =(LVM_Instance_t *)pBundleHandle; local [all...] |
H A D | LVM_API_Specials.c | 58 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local 64 if(pInstance == LVM_NULL) 70 if(pInstance->InstParams.PSA_Included!=LVM_PSA_ON) 75 hPSAInstance = pInstance->hPSAInstance; 87 if (pInstance->ControlPending == LVM_TRUE) 93 if(pInstance->Params.PSA_Enable==LVM_PSA_OFF) 142 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local 147 pInstance->NoSmoothVolume = LVM_TRUE;
|