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.c53 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_Init() local
55 if(CurrentGain>MaxGain) in LVC_Mixer_Init()
56 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_Init()
58 MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer part only in LVC_Mixer_Init()
59 while(MaxGain>0){ // Update Shift required to provide integer gain in LVC_Mixer_Init()
61 MaxGain=MaxGain>>1; in LVC_Mixer_Init()
DLVC_Mixer_SetTarget.c52 LVM_INT32 MaxGain=TargetGain; // MaxGain is in Q16.15 format in LVC_Mixer_SetTarget() local
55 if(CurrentGain>MaxGain) in LVC_Mixer_SetTarget()
56 MaxGain=CurrentGain; // MaxGain=max(CurrentGain,TargetGain) in LVC_Mixer_SetTarget()
58MaxGain=MaxGain>>15; // MaxGain in Q31.0 format i.e Integer par… in LVC_Mixer_SetTarget()
59 …while(MaxGain>0){ // Update Shift required to provide intege… in LVC_Mixer_SetTarget()
61 MaxGain=MaxGain>>1; in LVC_Mixer_SetTarget()
/frameworks/av/media/libeffects/lvm/lib/Bundle/src/
DLVM_Control.c446 LVM_INT16 MaxGain = 0; in LVM_SetHeadroom() local
454 MaxGain = 0; in LVM_SetHeadroom()
460 if(pParams->pEQNB_BandDefinition[ii].Gain > MaxGain) in LVM_SetHeadroom()
462 MaxGain = pParams->pEQNB_BandDefinition[ii].Gain; in LVM_SetHeadroom()
467 … if((MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset) > Headroom){ in LVM_SetHeadroom()
468 …Headroom = (LVM_INT16)(MaxGain - pInstance->HeadroomParams.pHeadroomDefinition[jj].Headroom_Offset… in LVM_SetHeadroom()