Searched refs:Shift (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DLVC_Mixer_Init.c30 /* This function caclulates the "Shift" required to provide the */
34 /* MaxGain of 2.5, Shift = 2, Current=1.9/4=0.475, Target=2.5/4=0.625 */
35 /* Therefore integer gain of 4 is provided by Left Shift of 2 and */
52 LVM_INT16 Shift=0; local
59 while(MaxGain>0){ // Update Shift required to provide integer gain
60 Shift++;
63 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target
64 pInstance->Current=CurrentGain<<(16-Shift); // Update fractional gain Current
65 pInstance->Shift=Shift; // Updat
[all...]
H A DLVC_Mixer_SetTarget.c27 /* This function updates the private instance parameters: Shift,Target,*/
30 /* This function caclulates the "Shift" required to provide the */
34 /* MaxGain of 2.5, Shift = 2, Current=1.9/4=0.475, Target=2.5/4=0.625 */
35 /* Therefore integer gain of 4 is provided by Left Shift of 2 and */
50 LVM_INT32 Shift=0; local
54 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
59 while(MaxGain>0){ // Update Shift required to provide integer gain
60 Shift++;
63 pInstance->Target=TargetGain<<(16-Shift); // Update fractional gain Target
64 pInstance->Current=CurrentGain<<(16-Shift); // Updat
[all...]
H A DdB_to_Lin32.c70 LVM_INT16 Shift; local
81 Shift = (LVM_INT16)((((LVM_UINT32)(-db_fix) >> 4) * FOUR_OVER_SIX) >> 17); /* Number of 6dB steps in Q11.4 format */
82 Remain = -db_fix - (Shift * SIX_DB);
84 Lin_val_32 = (LVM_INT32)((LVM_UINT32)Remain >> (16 + Shift));
95 Shift = (LVM_INT16)((((LVM_UINT32)db_fix >> 4) * FOUR_OVER_SIX) >> 17); /* Number of 6dB steps in Q11.4 format */
96 Remain = db_fix - (Shift * SIX_DB);
98 Lin_val_32 = (LVM_INT32)((LVM_UINT32)Remain >> (15 - Shift));
H A DLVM_Mixer_TimeConstant.c68 LVM_UINT16 Shift; local
133 for (Shift=0; Shift<((Alpha_TableSize-1)/2); Shift++)
142 Shift = (LVM_UINT16)((Shift << 1));
146 Shift++;
151 Diff = (LVM_INT32)(Table[Shift] - Table[Shift+1]);
153 Product = Table[Shift
[all...]
H A DFO_2I_D16F32Css_LShx_TRC_WRA_01_Private.h27 LVM_INT16 Shift; /* Shift value*/ member in struct:_Filter_State_
H A DLVC_MixInSoft_D16C31_SAT.c55 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
59 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
64 if(pInstance->Shift!=0){
65 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,src,n);
80 if(pInstance->Shift!=0)
81 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,src,n);
85 if(pInstance->Shift!=0)
86 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,src,n);
101 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
H A DLVC_Mixer_GetCurrent.c39 CurrentGain=pInstance->Current>>(16-pInstance->Shift); // CurrentGain in Q16.15 format
H A DLVC_Mixer_GetTarget.c39 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
H A DFO_2I_D16F32Css_LShx_TRC_WRA_01_Init.c55 temp=pCoef->Shift;
56 pBiquadState->Shift = temp;
H A DFO_2I_D16F32C15_LShx_TRC_WRA_01.c28 pBiquadState->Shift is Shift value
45 LVM_INT16 Shift; local
51 Shift = pBiquadState->Shift;
95 ynL = ynL>>(15-Shift);
96 ynR = ynR>>(15-Shift);
H A DLVC_MixSoft_2St_D16C31_SAT.c58 if(pInstance2->Shift!=0)
59 Shift_Sat_v16xv16 ((LVM_INT16)pInstance2->Shift,src2,src2,n);
60 if(pInstance1->Shift!=0)
62 Shift_Sat_v16xv16 ((LVM_INT16)pInstance1->Shift,src1,dst,n);
H A DLVC_MixSoft_1St_D16C31_SAT.c55 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
59 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
64 if(pInstance->Shift!=0){
65 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,dst,n);
80 else if(pInstance->Shift!=0){
81 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,dst,n);
101 TargetGain=pInstance->Target>>(16-pInstance->Shift); // TargetGain in Q16.15 format
H A DLVC_MixSoft_1St_2i_D16C31_SAT.c127 TargetGain=pInstance1->Target>>(16-pInstance1->Shift); // TargetGain in Q16.15 format
141 TargetGain=pInstance2->Target>>(16-pInstance2->Shift); // TargetGain in Q16.15 format
H A DLVC_Mixer_Private.h34 LVM_INT32 Shift; /* Left Shift for Integer part of Gain */ member in struct:__anon184
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
H A DomxVCM4P10_TransformDequantLumaDCFromPair.c49 int Shift = (QP/6)-2 ; local
53 if (Shift >= 0)
57 Value = (pDst[i] * Scale) << Shift;
63 Shift = -Shift;;
64 Round = 1<<(Shift-1);
68 Value = (pDst[i] * Scale + Round) >> Shift;
H A DomxVCM4P10_TransformDequantChromaDCFromPair.c49 int Shift = (QP/6)-1 ; local
53 if (Shift >= 0)
57 Value = (pDst[i] * Scale) << Shift;
H A DomxVCM4P10_DequantTransformResidualFromPairAndAdd.c50 int Shift = QP / 6; local
57 Value = (pSrcDst[i] * pVRow[armVCM4P10_PosToVCol4x4[i]]) << Shift;
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
H A DCompLim.h47 LVM_INT16 Shift; /* Shift gain */ member in struct:__anon166
/frameworks/av/media/libeffects/lvm/lib/StereoWidening/src/
H A DLVCS_BypassMix.h54 /* Output gain settings, Gain = (Loss/32768) * 2^Shift */
55 LVM_UINT16 Shift; /* Left shifts required */ member in struct:__anon231
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/src/
H A DarmCOMM.c769 * Or rounded Right shift if the input Shift is negative.
773 * [in] Shift Operand for shift operation
780 OMX_S32 armSatRoundLeftShift_S32(OMX_S32 Value, OMX_INT Shift) argument
784 if (Shift < 0)
786 Shift = -Shift;
787 Value = armSatAdd_S32(Value, (1 << (Shift - 1)));
788 Value = Value >> Shift;
792 for (i = 0; i < Shift; i++)
805 * Or rounded Right shift if the input Shift i
816 armSatRoundLeftShift_S64(OMX_S64 Value, OMX_INT Shift) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/src/
H A DarmCOMM.c769 * Or rounded Right shift if the input Shift is negative.
773 * [in] Shift Operand for shift operation
780 OMX_S32 armSatRoundLeftShift_S32(OMX_S32 Value, OMX_INT Shift) argument
784 if (Shift < 0)
786 Shift = -Shift;
787 Value = armSatAdd_S32(Value, (1 << (Shift - 1)));
788 Value = Value >> Shift;
792 for (i = 0; i < Shift; i++)
805 * Or rounded Right shift if the input Shift i
816 armSatRoundLeftShift_S64(OMX_S64 Value, OMX_INT Shift) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/src/
H A DarmCOMM.c769 * Or rounded Right shift if the input Shift is negative.
773 * [in] Shift Operand for shift operation
780 OMX_S32 armSatRoundLeftShift_S32(OMX_S32 Value, OMX_INT Shift) argument
784 if (Shift < 0)
786 Shift = -Shift;
787 Value = armSatAdd_S32(Value, (1 << (Shift - 1)));
788 Value = Value >> Shift;
792 for (i = 0; i < Shift; i++)
805 * Or rounded Right shift if the input Shift i
816 armSatRoundLeftShift_S64(OMX_S64 Value, OMX_INT Shift) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/
H A DomxVCM4P10_TransformDequantChromaDCFromPair_s.s68 Shift RN 9 label
117 LDRSB Shift, [pQPDivTable, QP] ;// Shift = pQPDivTable[QP]
123 LSL Scale, Scale, Shift ;// Scale = Scale << Shift
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm_neon/vc/m4p10/src/
H A DomxVCM4P10_TransformDequantChromaDCFromPair_s.s71 Shift RN 9 label
127 LDRSB Shift, [pQPDivTable, QP] ;// Shift = pQPDivTable[QP]
137 LSL Scale, Scale, Shift ;// Scale = Scale << Shift
H A DomxVCM4P10_TransformDequantLumaDCFromPair_s.s73 Shift RN 4 label
155 LDRSB Shift, [pQPDivTable, QP] ;// ARM CODE: Shift = pQPDivTable[QP]
161 LSL Scale, Scale, Shift ;// ARM CODE: Scale = Scale << Shift
188 ;// Both the cases i.e., Shift>=0 and Shift<0 cases are covered together
189 ;// We do not subtract 2 from Shift as in C reference, instead perform a
190 ;// Scale << Shift once in the beginning and do a right shift by a

Completed in 240 milliseconds

12