HomeSort by relevance Sort by last modified time
    Searched defs:pInstance (Results 1 - 25 of 28) sorted by null

1 2

  /frameworks/base/media/libeffects/lvm/lib/Common/src/
LVC_Mixer_GetCurrent.c 38 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams;
39 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
LVC_Mixer_GetTarget.c 37 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams;
39 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
LVC_Mixer_Init.c 54 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams;
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
LVC_Mixer_SetTimeConstant.c 62 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams;
74 pInstance->Delta=Delta; // Delta=(2147483647*4*1000)/(NumChannels*SampleRate*Tc_millisec) in Q 0.31 format
LVC_Mixer_SetTarget.c 53 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams;
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
LVC_MixInSoft_D16C31_SAT.c 44 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams);
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->Target) < pInstance->Delta)
    [all...]
LVC_MixSoft_1St_D16C31_SAT.c 44 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->MixerStream[0].PrivateParams);
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->Target) < pInstance->Delta)
    [all...]
LVC_Mixer_VarSlope_SetTimeConstant.c 63 Mix_Private_st *pInstance=(Mix_Private_st *)pStream->PrivateParams;
94 pInstance->Delta=Delta; // Delta=(2147483647*4*1000)/(NumChannels*SampleRate*Tc_millisec) in Q 0.31 format
LVC_Core_MixSoft_1St_D16C31_WRA.c 39 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->PrivateParams);
40 LVM_INT32 Delta=pInstance->Delta;
41 LVM_INT32 Current=pInstance->Current;
42 LVM_INT32 Target=pInstance->Target;
102 pInstance->Current=Current;
LVC_Core_MixInSoft_D16C31_SAT.c 39 Mix_Private_st *pInstance=(Mix_Private_st *)(ptrInstance->PrivateParams);
40 LVM_INT32 Delta=pInstance->Delta;
41 LVM_INT32 Current=pInstance->Current;
42 LVM_INT32 Target=pInstance->Target;
124 pInstance->Current=Current;
  /frameworks/base/media/libeffects/lvm/lib/StereoWidening/src/
LVCS_Init.c 69 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
109 *pMemoryTable = pInstance->MemoryTable;
154 LVCS_Instance_t *pInstance;
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->Params.SourceFormat = LVCS_SOURCEMAX
    [all...]
LVCS_Control.c 52 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance;
54 *pParams = pInstance->Params;
83 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance;
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->OutputDevice = LVCS_HEADPHONE
    [all...]
LVCS_Equaliser.c 62 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
63 LVCS_Equaliser_t *pConfig = (LVCS_Equaliser_t *)&pInstance->Equaliser;
64 LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
65 LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
72 if ((pInstance->Params.SampleRate != pParams->SampleRate) ||
73 (pInstance->Params.SpeakerType != pParams->SpeakerType))
141 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
142 LVCS_Equaliser_t *pConfig = (LVCS_Equaliser_t *)&pInstance->Equaliser;
143 LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
149 if ((pInstance->Params.OperatingMode & LVCS_EQUALISERSWITCH) != 0
    [all...]
LVCS_BypassMix.c 74 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
75 LVCS_BypassMix_t *pConfig = (LVCS_BypassMix_t *)&pInstance->BypassMix;
84 (pInstance->bTimerDone == LVM_TRUE)
85 && (pInstance->MSTarget1 != 0x7FFF) /* this indicates an off->on transtion */
88 pInstance->TransitionGain = pParams->EffectLevel;
93 pInstance->TransitionGain = 0;
105 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain);
117 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * (0x7FFF - pInstance->TransitionGain));
147 if (pInstance->Params.CompressorMode == LVM_MODE_ON)
149 GainCorrect = (LVM_INT16)( pInstance->VolCorrect.GainMi
    [all...]
LVCS_Process.c 76 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
77 LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress;
170 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance;
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->VolCorrect.CompMi
    [all...]
LVCS_ReverbGenerator.c 67 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
68 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation;
69 LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
70 LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
79 if(pInstance->Params.SampleRate != pParams->SampleRate ) /* Sample rate change test */
134 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel)
189 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
190 LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&pInstance->Reverberation;
191 LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
192 LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress
    [all...]
LVCS_StereoEnhancer.c 58 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
59 LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&pInstance->StereoEnhancer;
60 LVCS_Data_t *pData = (LVCS_Data_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
61 LVCS_Coefficient_t *pCoefficient = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
69 if ((pInstance->Params.SampleRate != pParams->SampleRate) ||
70 (pInstance->Params.SpeakerType != pParams->SpeakerType))
187 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
188 LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&pInstance->StereoEnhancer;
189 LVCS_Coefficient_t *pCoefficient = (LVCS_Coefficient_t *)pInstance->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
190 LVM_INT16 *pScratch = (LVM_INT16 *)pInstance->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress
    [all...]
  /frameworks/base/media/libeffects/lvm/lib/Bass/src/
LVDBE_Process.c 82 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance;
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->pData->AGCInstance, /* Instance pointer *
    [all...]
LVDBE_Init.c 64 LVDBE_Instance_t *pInstance = (LVDBE_Instance_t *)hInstance;
108 *pMemoryTable = pInstance->MemoryTable;
153 LVDBE_Instance_t *pInstance;
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->Params.HPFSelect = LVDBE_HPF_OFF
    [all...]
LVDBE_Control.c 54 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance;
56 *pParams = pInstance->Params;
85 LVDBE_Instance_t *pInstance =(LVDBE_Instance_t *)hInstance;
87 *pCapabilities = pInstance->Capabilities;
101 /* pInstance Pointer to the instance */
106 void LVDBE_SetFilters(LVDBE_Instance_t *pInstance,
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->pData->HPFTaps
    [all...]
  /frameworks/base/media/libeffects/lvm/lib/Bundle/src/
LVM_API_Specials.c 58 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
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;
147 pInstance->NoSmoothVolume = LVM_TRUE;
LVM_Process.c 62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
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->EQNB_Active == LVM_TRUE
    [all...]
LVM_Buffers.c 62 LVM_Instance_t *pInstance = (LVM_Instance_t *)hInstance;
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->InternalBlockSize
    [all...]
  /frameworks/base/media/libeffects/lvm/lib/Eq/src/
LVEQNB_Init.c 67 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance;
145 *pMemoryTable = pInstance->MemoryTable;
191 LVEQNB_Instance_t *pInstance;
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->pBiquadType = (LVEQNB_BiquadType_en *)InstAlloc_AddMember(&AllocMem
    [all...]
LVEQNB_Process.c 69 LVEQNB_Instance_t *pInstance = (LVEQNB_Instance_t *)hInstance;
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->bInOperatingModeTransition == LVM_TRUE)
    [all...]

Completed in 351 milliseconds

1 2