OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:pInstance
(Results
1 - 25
of
35
) sorted by null
1
2
/frameworks/av/media/libeffects/lvm/lib/Common/src/
LVC_Mixer_GetCurrent.c
38
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)pStream->PrivateParams;
39
CurrentGain =
pInstance
->Current; // CurrentGain
46
Mix_Private_st *
pInstance
=(Mix_Private_st *)pStream->PrivateParams;
47
CurrentGain=
pInstance
->Current>>(16-
pInstance
->Shift); // CurrentGain in Q16.15 format
LVC_Mixer_GetTarget.c
37
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)pStream->PrivateParams;
39
TargetGain =
pInstance
->Target; // TargetGain
46
Mix_Private_st *
pInstance
=(Mix_Private_st *)pStream->PrivateParams;
48
TargetGain=
pInstance
->Target>>(16-
pInstance
->Shift); // TargetGain in Q16.15 format
LVC_Mixer_Init.c
53
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)pStream->PrivateParams;
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;
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
LVC_Mixer_SetTimeConstant.c
79
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)pStream->PrivateParams;
91
pInstance
->Delta = Delta; // Delta=(2147483647*4*1000)/(NumChannels*SampleRate*Tc_millisec)
108
Mix_Private_st *
pInstance
=(Mix_Private_st *)pStream->PrivateParams;
120
pInstance
->Delta=Delta; // Delta=(2147483647*4*1000)/(NumChannels*SampleRate*Tc_millisec) in Q 0.31 format
LVC_Mixer_SetTarget.c
50
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)pStream->PrivateParams;
51
pInstance
->Target = TargetGain; // Update gain Target
60
Mix_Private_st *
pInstance
=(Mix_Private_st *)pStream->PrivateParams;
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
LVC_Mixer_VarSlope_SetTimeConstant.c
80
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)pStream->PrivateParams;
89
Current =
pInstance
->Current;
90
Target =
pInstance
->Target;
113
pInstance
->Delta = Delta; // Delta=(2147483647*4*1000)/(NumChannels*SampleRate*Tc_millisec)
130
Mix_Private_st *
pInstance
=(Mix_Private_st *)pStream->PrivateParams;
161
pInstance
->Delta=Delta; // Delta=(2147483647*4*1000)/(NumChannels*SampleRate*Tc_millisec) in Q 0.31 format
LVC_MixInSoft_D16C31_SAT.c
44
Mix_Private_FLOAT_st *
pInstance
= \
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
->Delta)
[
all
...]
LVC_MixSoft_1St_D16C31_SAT.c
44
Mix_Private_FLOAT_st *
pInstance
= \
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
->Delta)
[
all
...]
LVC_Core_MixInSoft_D16C31_SAT.c
38
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)(ptrInstance->PrivateParams);
39
LVM_FLOAT Delta =
pInstance
->Delta;
40
LVM_FLOAT Current =
pInstance
->Current;
41
LVM_FLOAT Target =
pInstance
->Target;
115
pInstance
->Current = Current;
145
Mix_Private_FLOAT_st *
pInstance
= (Mix_Private_FLOAT_st *)(ptrInstance->PrivateParams);
146
LVM_FLOAT Delta =
pInstance
->Delta;
147
LVM_FLOAT Current =
pInstance
->Current;
148
LVM_FLOAT Target =
pInstance
->Target;
246
pInstance
->Current = Current
[
all
...]
LVC_Core_MixSoft_1St_D16C31_WRA.c
38
Mix_Private_FLOAT_st *
pInstance
=(Mix_Private_FLOAT_st *)(ptrInstance->PrivateParams);
39
LVM_FLOAT Delta= (LVM_FLOAT)
pInstance
->Delta;
40
LVM_FLOAT Current = (LVM_FLOAT)
pInstance
->Current;
41
LVM_FLOAT Target= (LVM_FLOAT)
pInstance
->Target;
106
pInstance
->Current=Current;
137
Mix_Private_FLOAT_st *
pInstance
=(Mix_Private_FLOAT_st *)(ptrInstance->PrivateParams);
138
LVM_FLOAT Delta= (LVM_FLOAT)
pInstance
->Delta;
139
LVM_FLOAT Current = (LVM_FLOAT)
pInstance
->Current;
140
LVM_FLOAT Target= (LVM_FLOAT)
pInstance
->Target;
217
pInstance
->Current=Current
[
all
...]
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
LVCS_Init.c
69
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
115
*pMemoryTable =
pInstance
->MemoryTable;
160
LVCS_Instance_t *
pInstance
;
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
->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;
70
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
73
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
77
if ((
pInstance
->Params.SampleRate != pParams->SampleRate) ||
78
(
pInstance
->Params.SpeakerType != pParams->SpeakerType))
127
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
128
LVCS_Equaliser_t *pConfig = (LVCS_Equaliser_t *)&
pInstance
->Equaliser;
129
LVCS_Data_t *pData = (LVCS_Data_t *)
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
130
LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress
[
all
...]
LVCS_BypassMix.c
80
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
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
->TransitionGain))
[
all
...]
LVCS_Process.c
76
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
81
LVM_INT32 channels =
pInstance
->Params.NrChannels;
86
*However we do not update the value
pInstance
->Params.NrChannels
97
pInstance
->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress;
188
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
189
LVM_INT16 *pScratch = (LVM_INT16 *)
pInstance
->MemoryTable.Region[LVCS_MEMREGION_TEMPORARY_FAST].pBaseAddress;
282
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
286
LVM_INT32 channels =
pInstance
->Params.NrChannels;
296
if (NumSamples >
pInstance
->Capabilities.MaxBlockSize)
304
if (
pInstance
->Params.OperatingMode != LVCS_OFF
[
all
...]
LVCS_ReverbGenerator.c
67
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
68
LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&
pInstance
->Reverberation;
76
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
79
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
86
if(
pInstance
->Params.SampleRate != pParams->SampleRate ) /* Sample rate change test */
143
if(
pInstance
->Params.ReverbLevel != pParams->ReverbLevel)
158
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
159
LVCS_ReverbGenerator_t *pConfig = (LVCS_ReverbGenerator_t *)&
pInstance
->Reverberation;
160
LVCS_Data_t *pData = (LVCS_Data_t *)
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
161
LVCS_Coefficient_t *pCoefficients = (LVCS_Coefficient_t *)
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress
[
all
...]
LVCS_StereoEnhancer.c
58
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
59
LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&
pInstance
->StereoEnhancer;
68
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
71
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress;
76
if ((
pInstance
->Params.SampleRate != pParams->SampleRate) ||
77
(
pInstance
->Params.SpeakerType != pParams->SpeakerType))
154
LVCS_Instance_t *
pInstance
= (LVCS_Instance_t *)hInstance;
155
LVCS_StereoEnhancer_t *pConfig = (LVCS_StereoEnhancer_t *)&
pInstance
->StereoEnhancer;
156
LVCS_Data_t *pData = (LVCS_Data_t *)
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_DATA].pBaseAddress;
157
LVCS_Coefficient_t *pCoefficient = (LVCS_Coefficient_t *)
pInstance
->MemoryTable.Region[LVCS_MEMREGION_PERSISTENT_FAST_COEF].pBaseAddress
[
all
...]
/frameworks/av/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
63
LVM_Instance_t *
pInstance
= (LVM_Instance_t *)hInstance;
70
LVM_INT32 NrChannels =
pInstance
->NrChannels;
71
LVM_INT32 ChMask =
pInstance
->ChMask;
95
if(
pInstance
->InstParams.BufferMode == LVM_UNMANAGED_BUFFERS)
100
if((NumSamples %
pInstance
->BlickSizeMultiple) != 0)
118
if (
pInstance
->ControlPending == LVM_TRUE)
122
/* Update the local variable NrChannels from
pInstance
->NrChannels value */
123
NrChannels =
pInstance
->NrChannels;
124
ChMask =
pInstance
->ChMask;
137
if (
pInstance
->Params.SourceFormat == LVM_MONO
[
all
...]
LVM_Buffers.c
64
LVM_Instance_t *
pInstance
= (LVM_Instance_t *)hInstance;
68
LVM_INT16 NumChannels =
pInstance
->NrChannels;
76
pBuffer =
pInstance
->pBufferManagement;
84
if (
pInstance
->SamplesToProcess == 0)
89
pInstance
->SamplesToProcess = (LVM_INT16)(*pNumSamples + pBuffer->InDelaySamples);
90
pInstance
->pInputSamples = (LVM_FLOAT *)pInData;
93
pStart =
pInstance
->pInputSamples; /* Pointer to the input samples */
101
if (
pInstance
->SamplesToProcess >
pInstance
->InternalBlockSize)
106
SampleCount =
pInstance
->InternalBlockSize
[
all
...]
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
LVEQNB_Init.c
68
LVEQNB_Instance_t *
pInstance
= (LVEQNB_Instance_t *)hInstance;
178
*pMemoryTable =
pInstance
->MemoryTable;
224
LVEQNB_Instance_t *
pInstance
;
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
->pEQNB_Taps = (Biquad_2I_Order2_Taps_t *)InstAlloc_AddMember(&AllocMem
[
all
...]
LVEQNB_Process.c
67
LVEQNB_Instance_t *
pInstance
= (LVEQNB_Instance_t *)hInstance;
71
const LVM_INT32 NrChannels =
pInstance
->Params.NrChannels == 1
72
? 2 :
pInstance
->Params.NrChannels;
90
LVM_FLOAT * const pScratch = (LVM_FLOAT *)
pInstance
->pFastTemporary;
95
if (NrFrames >
pInstance
->Capabilities.MaxBlockSize)
100
if (
pInstance
->Params.OperatingMode == LVEQNB_ON)
112
if (
pInstance
->NBands != 0)
114
for (LVM_UINT16 i = 0; i <
pInstance
->NBands; i++)
119
if (
pInstance
->pBandDefinitions[i].Gain != 0)
124
Biquad_FLOAT_Instance_t *pBiquad = &
pInstance
->pEQNB_FilterState_Float[i]
[
all
...]
/frameworks/av/media/libeffects/lvm/lib/Bass/src/
LVDBE_Init.c
64
LVDBE_Instance_t *
pInstance
= (LVDBE_Instance_t *)hInstance;
121
*pMemoryTable =
pInstance
->MemoryTable;
166
LVDBE_Instance_t *
pInstance
;
186
pInstance
=(LVDBE_Instance_t *)*phInstance;
210
pInstance
->Capabilities = *pCapabilities;
216
pInstance
->MemoryTable = *pMemoryTable;
222
pInstance
->Params.CentreFrequency = LVDBE_CENTRE_55HZ;
223
pInstance
->Params.EffectLevel = 0;
224
pInstance
->Params.HeadroomdB = 0;
225
pInstance
->Params.HPFSelect = LVDBE_HPF_OFF
[
all
...]
LVDBE_Process.c
80
LVDBE_Instance_t *
pInstance
= (LVDBE_Instance_t *) hInstance;
82
(LVM_INT32 *)
pInstance
->MemoryTable.Region[LVDBE_MEMREGION_SCRATCH].pBaseAddress;
95
if (NumSamples >
pInstance
->Capabilities.MaxBlockSize) {
103
if ((
pInstance
->Params.OperatingMode == LVDBE_ON)
105
&
pInstance
->pData->BypassMixer.MixerStream[0])
107
&
pInstance
->pData->BypassMixer.MixerStream[0]))) {
121
if (
pInstance
->Params.HPFSelect == LVDBE_HPF_ON) {
122
BQ_2I_D32F32C30_TRC_WRA_01(&
pInstance
->pCoef->HPFInstance,/* Filter instance */
138
BP_1I_D32F32C30_TRC_WRA_02(&
pInstance
->pCoef->BPFInstance, /* Filter instance */
146
AGC_MIX_VOL_2St1Mon_D32_WRA(&
pInstance
->pData->AGCInstance, /* Instance pointer *
[
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
,
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
->pData->HPFTaps) / sizeof(LVM_FLOAT)); /* Number of words *
[
all
...]
Completed in 709 milliseconds
1
2