Home
last modified time | relevance | path

Searched refs:MaxGain (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/libeffects/lvm/lib/Common/src/
DLVC_Mixer_Init.c52 LVM_FLOAT MaxGain = TargetGain; in LVC_Mixer_Init() local
54 if(CurrentGain > MaxGain) in LVC_Mixer_Init()
55 MaxGain = CurrentGain; in LVC_Mixer_Init()
65 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_Init() local
67 if(CurrentGain>MaxGain) in LVC_Mixer_Init()
68 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_Init()
70 MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer part only in LVC_Mixer_Init()
71 while(MaxGain>0){ // Update Shift required to provide integer gain in LVC_Mixer_Init()
73 MaxGain=MaxGain>>1; in LVC_Mixer_Init()
DLVC_Mixer_SetTarget.c59 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_SetTarget() local
62 if(CurrentGain>MaxGain) in LVC_Mixer_SetTarget()
63 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_SetTarget()
65MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer par… in LVC_Mixer_SetTarget()
66 …while(MaxGain>0){ // Update Shift required to provide intege… in LVC_Mixer_SetTarget()
68 MaxGain=MaxGain>>1; in LVC_Mixer_SetTarget()
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Control.c514 LVM_INT16 MaxGain = 0; in LVM_SetHeadroom() local
522 MaxGain = 0; in LVM_SetHeadroom()
528 if(pParams->pEQNB_BandDefinition[ii].Gain > MaxGain) in LVM_SetHeadroom()
530 MaxGain = pParams->pEQNB_BandDefinition[ii].Gain; in LVM_SetHeadroom()
535 … if((MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset) > Headroom){ in LVM_SetHeadroom()
536 …Headroom = (LVM_INT16)(MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset… in LVM_SetHeadroom()