Searched refs:pInstance (Results 1 - 25 of 86) sorted by relevance

1234

/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DMixInSoft_D32C31_SAT.c36 void MixInSoft_D32C31_SAT( Mix_1St_Cll_FLOAT_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_FLOAT) &&
53 (pInstance->Current-pInstance
100 MixInSoft_D32C31_SAT( Mix_1St_Cll_t *pInstance, const LVM_INT32 *src, LVM_INT32 *dst, LVM_INT16 n) argument
[all...]
H A DMixSoft_1St_D32C31_WRA.c38 void MixSoft_1St_D32C31_WRA( Mix_1St_Cll_FLOAT_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_FLOAT) &&
55 (pInstance->Current - pInstance
99 MixSoft_1St_D32C31_WRA( Mix_1St_Cll_t *pInstance, const LVM_INT32 *src, LVM_INT32 *dst, LVM_INT16 n) argument
[all...]
H A DMixSoft_2St_D32C31_SAT.c30 void MixSoft_2St_D32C31_SAT( Mix_2St_Cll_FLOAT_t *pInstance, argument
42 if ((pInstance->Current1 != pInstance->Target1) || (pInstance->Current2 != pInstance->Target2))
44 MixSoft_1St_D32C31_WRA((Mix_1St_Cll_FLOAT_t*)pInstance, src1, dst, n);
45 MixInSoft_D32C31_SAT((void *)&pInstance->Alpha2, /* Cast to void: \
56 if (pInstance->Current1 == 0)
57 MixSoft_1St_D32C31_WRA((void *) &pInstance->Alpha2, /* Cast to void: no \
60 else if (pInstance
67 MixSoft_2St_D32C31_SAT( Mix_2St_Cll_t *pInstance, const LVM_INT32 *src1, const LVM_INT32 *src2, LVM_INT32 *dst, LVM_INT16 n) argument
[all...]
H A DLVC_MixInSoft_D16C31_SAT.c44 Mix_Private_FLOAT_st *pInstance = \ local
52 if (pInstance->Current != pInstance->Target)
54 if(pInstance->Delta == 1.0f){
55 pInstance->Current = pInstance->Target;
56 TargetGain = pInstance->Target;
58 }else if (Abs_Float(pInstance->Current - pInstance->Target) < pInstance
117 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams); local
[all...]
H A DLVC_MixSoft_1St_D16C31_SAT.c44 Mix_Private_FLOAT_st *pInstance = \ local
52 if (pInstance->Current != pInstance->Target)
54 if(pInstance->Delta == 1.0f){
55 pInstance->Current = pInstance->Target;
56 TargetGain = pInstance->Target;
58 }else if (Abs_Float(pInstance->Current - pInstance->Target) < pInstance
114 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams); local
[all...]
H A DDC_2I_D16_TRC_WRA_01_Init.c21 void DC_2I_D16_TRC_WRA_01_Init(Biquad_FLOAT_Instance_t *pInstance) argument
23 PFilter_FLOAT_State pBiquadState = (PFilter_FLOAT_State) pInstance;
28 void DC_2I_D16_TRC_WRA_01_Init(Biquad_Instance_t *pInstance) argument
30 PFilter_State pBiquadState = (PFilter_State) pInstance;
H A DLVC_Mixer_GetCurrent.c38 Mix_Private_FLOAT_st *pInstance = (Mix_Private_FLOAT_st *)pStream->PrivateParams; local
39 CurrentGain = pInstance->Current; // CurrentGain
46 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local
47 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
H A DLVC_Mixer_GetTarget.c37 Mix_Private_FLOAT_st *pInstance = (Mix_Private_FLOAT_st *)pStream->PrivateParams; local
39 TargetGain = pInstance->Target; // TargetGain
46 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local
48 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
H A DLVC_Mixer_SetTarget.c50 Mix_Private_FLOAT_st *pInstance = (Mix_Private_FLOAT_st *)pStream->PrivateParams; local
51 pInstance->Target = TargetGain; // Update gain Target
60 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local
61 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
70 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target
71 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
72 pInstance->Shift=Shift; // Update Shift
H A DCore_MixSoft_1St_D32C31_WRA.c29 void Core_MixSoft_1St_D32C31_WRA( Mix_1St_Cll_FLOAT_t *pInstance, argument
45 TargetTimesOneMinAlpha = (1.0f - pInstance->Alpha) * pInstance->Target; /* float * float in float */
46 if (pInstance->Target >= pInstance->Current)
53 CurrentTimesAlpha = (pInstance->Current * pInstance->Alpha);
54 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha;
61 Temp2 = Temp1 * (pInstance->Current);
69 CurrentTimesAlpha = pInstance
101 Core_MixSoft_1St_D32C31_WRA( Mix_1St_Cll_t *pInstance, const LVM_INT32 *src, LVM_INT32 *dst, LVM_INT16 n) argument
[all...]
H A DLVC_Mixer_Init.c53 Mix_Private_FLOAT_st *pInstance = (Mix_Private_FLOAT_st *)pStream->PrivateParams; local
56 pInstance->Target = TargetGain; // Update fractional gain Target
57 pInstance->Current = CurrentGain; // Update fractional gain Current
66 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams; local
75 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target
76 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
77 pInstance->Shift=Shift; // Update Shift
H A DCore_MixInSoft_D32C31_SAT.c30 void Core_MixInSoft_D32C31_SAT( Mix_1St_Cll_FLOAT_t *pInstance, argument
46 TargetTimesOneMinAlpha = ((1.0f -pInstance->Alpha) * pInstance->Target);
47 if (pInstance->Target >= pInstance->Current){
53 CurrentTimesAlpha = pInstance->Current * pInstance->Alpha;
54 pInstance->Current = TargetTimesOneMinAlpha + CurrentTimesAlpha;
60 Temp3 = Temp1 * (pInstance->Current);
74 CurrentTimesAlpha = pInstance
93 Core_MixInSoft_D32C31_SAT( Mix_1St_Cll_t *pInstance, const LVM_INT32 *src, LVM_INT32 *dst, LVM_INT16 n) argument
[all...]
H A DAGC_MIX_VOL_2St1Mon_D32_WRA.c64 /* pInstance Instance pointer */
76 void AGC_MIX_VOL_2St1Mon_D32_WRA(AGC_MIX_VOL_2St1Mon_D32_t *pInstance, /* Instance pointer */ argument
100 LVM_INT32 AGC_Gain = pInstance->AGC_Gain; /* Get the current AGC gain */
101 LVM_INT32 AGC_MaxGain = pInstance->AGC_MaxGain; /* Get maximum AGC gain */
102 LVM_INT16 AGC_GainShift = pInstance->AGC_GainShift; /* Get the AGC shift */
103 LVM_INT16 AGC_Attack = pInstance->AGC_Attack; /* Attack scaler */
104 LVM_INT16 AGC_Decay = pInstance->AGC_Decay; /* Decay scaler */
105 LVM_INT32 AGC_Target = pInstance->AGC_Target; /* Get the target level */
106 LVM_INT32 Vol_Current = pInstance->Volume; /* Actual volume setting */
107 LVM_INT32 Vol_Target = pInstance
200 AGC_MIX_VOL_2St1Mon_D32_WRA(AGC_MIX_VOL_2St1Mon_FLOAT_t *pInstance, const LVM_FLOAT *pStSrc, const LVM_FLOAT *pMonoSrc, LVM_FLOAT *pDst, LVM_UINT16 NumSamples) argument
[all...]
/frameworks/av/media/libeffects/lvm/lib/Bass/src/
H A DLVDBE_Control.c54 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
129 (void *)&pInstance->pData->HPFTaps, /* Destination Cast to void: \
131 sizeof(pInstance->pData->HPFTaps)/sizeof(LVM_INT16)); /* Number of words */
134 (void *)&pInstance->pData->HPFTaps, /* Destination Cast to void: \
136 sizeof(pInstance
189 LVDBE_SetAGC(LVDBE_Instance_t *pInstance, LVDBE_Params_t *pParams) argument
242 LVDBE_SetVolume(LVDBE_Instance_t *pInstance, LVDBE_Params_t *pParams) argument
374 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; local
[all...]
H A DLVDBE_Process.c78 LVDBE_Instance_t *pInstance = (LVDBE_Instance_t *) hInstance; local
80 (LVM_INT32 *) pInstance->MemoryTable.Region[LVDBE_MEMREGION_SCRATCH].pBaseAddress;
93 if (NumSamples > pInstance->Capabilities.MaxBlockSize) {
101 if ((pInstance->Params.OperatingMode == LVDBE_ON)
103 &pInstance->pData->BypassMixer.MixerStream[0])
105 &pInstance->pData->BypassMixer.MixerStream[0]))) {
119 if (pInstance->Params.HPFSelect == LVDBE_HPF_ON) {
120 BQ_2I_D32F32C30_TRC_WRA_01(&pInstance->pCoef->HPFInstance,/* Filter instance */
136 BP_1I_D32F32C30_TRC_WRA_02(&pInstance->pCoef->BPFInstance, /* Filter instance */
144 AGC_MIX_VOL_2St1Mon_D32_WRA(&pInstance
193 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance; local
[all...]
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
H A DLVCS_Control.c52 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
264 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
[all...]
H A DLVCS_Init.c69 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
115 *pMemoryTable = pInstance->MemoryTable;
160 LVCS_Instance_t *pInstance; local
171 pInstance =(LVCS_Instance_t *)*phInstance;
177 pInstance->Capabilities = *pCapabilities;
182 pInstance->MemoryTable = *pMemoryTable;
188 pInstance->Params.OperatingMode = LVCS_OFF;
189 pInstance->Params.SpeakerType = LVCS_SPEAKERTYPE_MAX;
190 pInstance->OutputDevice = LVCS_HEADPHONE;
191 pInstance
[all...]
H A DLVCS_Process.c76 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
81 pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress;
146 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
147 LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress;
240 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
246 if (NumSamples > pInstance->Capabilities.MaxBlockSize)
254 if (pInstance->Params.OperatingMode != LVCS_OFF)
269 if ((pInstance->Params.OperatingMode == LVCS_ON)&& \
270 (pInstance->Params.CompressorMode == LVM_MODE_ON))
272 LVM_FLOAT Gain = pInstance
403 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance; local
[all...]
H A DLVCS_BypassMix.c80 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
81 LVCS_BypassMix_t *pConfig = (LVCS_BypassMix_t *)&pInstance->BypassMix;
90 (pInstance->bTimerDone == LVM_TRUE)
91 && (pInstance->MSTarget1 != 0x7FFF) /* this indicates an off->on transtion */
95 pInstance->TransitionGain = pParams->EffectLevel;
97 pInstance->TransitionGain = ((LVM_FLOAT)pParams->EffectLevel / 32767);
103 pInstance->TransitionGain = 0;
116 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain);
118 Gain = (LVM_FLOAT)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain);
141 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * (0x7FFF - pInstance
291 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
345 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance; local
[all...]
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
H A DLVEQNB_Control.c64 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
155 pInstance->NBands = pParams->NBands;
166 pInstance->pBiquadType[i] = LVEQNB_SinglePrecision_Float; /* Default to single precision */
171 pInstance->pBiquadType[i] = LVEQNB_SinglePrecision; /* Default to single precision */
179 pInstance
222 LVEQNB_SetCoefficients(LVEQNB_Instance_t *pInstance) argument
320 LVEQNB_ClearFilterHistory(LVEQNB_Instance_t *pInstance) argument
337 LVEQNB_ClearFilterHistory(LVEQNB_Instance_t *pInstance) argument
380 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; local
525 LVEQNB_Instance_t *pInstance =(LVEQNB_Instance_t *)hInstance; local
[all...]
H A DLVEQNB_Init.c68 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance; local
178 *pMemoryTable = pInstance->MemoryTable;
224 LVEQNB_Instance_t *pInstance; local
261 pInstance =(LVEQNB_Instance_t *)*phInstance;
268 pInstance->Capabilities = *pCapabilities;
275 pInstance->MemoryTable = *pMemoryTable;
285 pInstance->pEQNB_FilterState_Float = InstAlloc_AddMember(&AllocMem,
289 pInstance->pEQNB_FilterState = InstAlloc_AddMember(&AllocMem,
303 pInstance->pEQNB_Taps_Float = (Biquad_2I_Order2_FLOAT_Taps_t *)InstAlloc_AddMember(&AllocMem,
307 pInstance
[all...]
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
H A DLVM_Control.c55 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local
63 pInstance->NewParams = *pParams;
110 if(pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands)
132 pInstance->pEQNB_BandDefs[i] = pParams->pEQNB_BandDefinition[i];
134 pInstance->NewParams.pEQNB_BandDefinition = pInstance->pEQNB_BandDefs;
139 (pParams->EQNB_NBands > pInstance->InstParams.EQNB_NumBands))
202 pInstance->ControlPending = LVM_TRUE;
232 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local
242 *pParams = pInstance
275 LVM_SetTrebleBoost(LVM_Instance_t *pInstance, LVM_ControlParams_t *pParams) argument
365 LVM_SetVolume(LVM_Instance_t *pInstance, LVM_ControlParams_t *pParams) argument
495 LVM_SetHeadroom(LVM_Instance_t *pInstance, LVM_ControlParams_t *pParams) argument
555 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local
958 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local
1018 LVM_Instance_t *pInstance =(LVM_Instance_t *)hInstance; local
1062 LVM_Instance_t *pInstance =(LVM_Instance_t *)pBundleHandle; local
1114 LVM_Instance_t *pInstance =(LVM_Instance_t *)pBundleHandle; local
[all...]
H A DLVM_Buffers.c62 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_FLOAT *)pInData;
88 pStart = pInstance->pInputSamples; /* Pointer to the input samples */
96 if (pInstance->SamplesToProcess > pInstance->InternalBlockSize)
101 SampleCount = pInstance->InternalBlockSize;
102 NumSamples = pInstance
207 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
368 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
408 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
474 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
668 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
698 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
747 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
896 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
1065 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
1114 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
1218 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
1242 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
[all...]
H A DLVM_Process.c62 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
286 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance; local
[all...]
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
H A DBIQUAD.h230 void BQ_2I_D16F32Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance,
234 void BQ_2I_D16F32Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance,
240 void BQ_2I_D16F32C15_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance,
245 void BQ_2I_D16F32C15_TRC_WRA_01 ( Biquad_Instance_t *pInstance,
252 void BQ_2I_D16F32C14_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance,
257 void BQ_2I_D16F32C14_TRC_WRA_01 ( Biquad_Instance_t *pInstance,
265 void BQ_2I_D16F32C13_TRC_WRA_01 ( Biquad_FLOAT_Instance_t *pInstance,
270 void BQ_2I_D16F32C13_TRC_WRA_01 ( Biquad_Instance_t *pInstance,
278 void BQ_2I_D16F16Css_TRC_WRA_01_Init ( Biquad_FLOAT_Instance_t *pInstance,
282 void BQ_2I_D16F16Css_TRC_WRA_01_Init ( Biquad_Instance_t *pInstance,
[all...]

Completed in 2036 milliseconds

1234