Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/media/libstagefright/codecs/amrwb/src/
Dmedian5.cpp120 int16 x1, x2, x3, x4, x5; in median5() local
124 x2 = x[-1]; in median5()
131 if (x2 < x1) in median5()
134 x1 = x2; in median5()
135 x2 = tmp; in median5()
153 if (x3 < x2) in median5()
155 tmp = x2; in median5()
156 x2 = x3; in median5()
159 if (x4 < x2) in median5()
161 tmp = x2; in median5()
[all …]
Dhighpass_50hz_at_12k8.cpp151 int16 i, x2; in highpass_50Hz_at_12k8() local
176 x2 = x1; in highpass_50Hz_at_12k8()
179 L_tmp2 = fxp_mac_16by16(x2, 8106, L_tmp2); in highpass_50Hz_at_12k8()
Dhighpass_400hz_at_12k8.cpp149 int16 i, x2; in highpass_400Hz_at_12k8() local
171 x2 = x1; in highpass_400Hz_at_12k8()
174 L_tmp2 = fxp_mac_16by16(x2, 915, L_tmp2); in highpass_400Hz_at_12k8()
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
Didct_vca.cpp99 int32 x0, x1, x2, x4, x5; in idctrow2() local
123 x2 = (181 * (x4 + x5) + 128) >> 8; in idctrow2()
130 res2 = (x0 + x2) >> 14; in idctrow2()
147 res = (x0 - x2) >> 14; in idctrow2()
187 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idctrow3() local
200 x2 = blk[10]; in idctrow3()
210 x6 = (W6 * x2 + 4) >> 3; in idctrow3()
211 x2 = (W2 * x2 + 4) >> 3; in idctrow3()
212 x8 = x0 - x2; in idctrow3()
213 x0 += x2; in idctrow3()
[all …]
Dblock_idct.cpp516 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idctrow() local
541 x2 = blk[14]; in idctrow()
567 x1 = W6 * (x3 + x2) + 4; in idctrow()
568 x2 = (x1 - (W2 + W6) * x2) >> 3; in idctrow()
578 x3 = x0 + x2; in idctrow()
579 x0 -= x2; in idctrow()
580 x2 = (181 * (x4 + x5) + 128) >> 8; in idctrow()
588 res2 = (x3 + x2) >> 14; in idctrow()
606 res = (x3 - x2) >> 14; in idctrow()
627 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8, temp; in idctrow_intra() local
[all …]
Dget_pred_adv_b_add.cpp867 uint32 x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvancedBy1x1() local
896 x2 = *((uint32*)(prev + width)); /* load b3 b2 b1 b0, another line */ in GetPredAdvancedBy1x1()
901 x2m = (x2 >> 2) & mask; in GetPredAdvancedBy1x1()
903 x2 = x2 ^(x2m << 2); in GetPredAdvancedBy1x1()
905 x1 += x2; in GetPredAdvancedBy1x1()
917 x2 = *((uint32*)(prev += 4)); /* a11 a10 a9 a8 */ in GetPredAdvancedBy1x1()
919 x2m = (x2 >> 2) & mask; in GetPredAdvancedBy1x1()
921 x2 = x2 ^(x2m << 2); in GetPredAdvancedBy1x1()
924 x2 += y2; in GetPredAdvancedBy1x1()
947 y2 |= (x2 << 24); in GetPredAdvancedBy1x1()
[all …]
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/
Dfastidct.cpp107 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idct_col3() local
109 x2 = blk[16]; in idct_col3()
114 x6 = W6 * x2; in idct_col3()
115 x2 = W2 * x2; in idct_col3()
116 x8 = x0 - x2; in idct_col3()
117 x0 += x2; in idct_col3()
118 x2 = x8; in idct_col3()
132 blk[24] = (x2 + x3) >> 8; in idct_col3()
136 blk[32] = (x2 - x3) >> 8; in idct_col3()
142 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8; in idct_col4() local
[all …]
Dmotion_comp.cpp1126 ULong x1, x2, x1m, x2m, y1, y2, y1m, y2m; /* new way */ in GetPredAdvBy1x1() local
1152 x2 = *((ULong*)(prev + lx)); /* load b3 b2 b1 b0, another line */ in GetPredAdvBy1x1()
1157 x2m = (x2 >> 2) & mask; in GetPredAdvBy1x1()
1159 x2 = x2 ^(x2m << 2); in GetPredAdvBy1x1()
1161 x1 += x2; in GetPredAdvBy1x1()
1173 x2 = *((ULong*)(prev += 4)); /* a11 a10 a9 a8 */ in GetPredAdvBy1x1()
1175 x2m = (x2 >> 2) & mask; in GetPredAdvBy1x1()
1177 x2 = x2 ^(x2m << 2); in GetPredAdvBy1x1()
1180 x2 += y2; in GetPredAdvBy1x1()
1203 y2 |= (x2 << 24); in GetPredAdvBy1x1()
[all …]
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/
Dp_med_ol.c174 Word16 x1, x2, x3, x4, x5; in median5() local
178 x2 = x[-1]; in median5()
183 if (x2 < x1) in median5()
186 x1 = x2; in median5()
187 x2 = tmp; in median5()
205 if (x3 < x2) in median5()
207 tmp = x2; in median5()
208 x2 = x3; in median5()
211 if (x4 < x2) in median5()
213 tmp = x2; in median5()
[all …]
Dhp_wsp.c87 Word16 x0, x1, x2, x3; in Hp_wsp() local
99 x2 = mem[8]; in Hp_wsp()
103 x3 = x2; in Hp_wsp()
104 x2 = x1; in Hp_wsp()
120 L_tmp += (x2 * b[2])<<1; in Hp_wsp()
143 mem[8] = x2; in Hp_wsp()
Dhp400.c63 Word16 x2; in HP400_12k8() local
76 x2 = x1; in HP400_12k8()
85 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2)* b[0] + x1 * b[1]) << 1; in HP400_12k8()
Dhp50.c64 Word16 x2; in HP50_12k8() local
78 x2 = x1; in HP50_12k8()
87 L_tmp += (y1_hi * a[1] + y2_hi * a[2] + (x0 + x2) * b[0] + x1 * b[1]) << 1; in HP50_12k8()
Dupdt_tar.c29 Word16 * x2, /* (o) Q0 : new target (for codebook search) */ in Updt_tar() argument
42 x2[i] = extract_h(L_shl2(L_tmp, 1)); in Updt_tar()
/frameworks/base/media/libstagefright/foundation/
Dbase64.cpp107 uint8_t x2 = data[i + 1]; in encodeBase64() local
111 out->append(encode6Bit((x1 << 4 | x2 >> 4) & 0x3f)); in encodeBase64()
112 out->append(encode6Bit((x2 << 2 | x3 >> 6) & 0x3f)); in encodeBase64()
121 uint8_t x2 = data[i + 1]; in encodeBase64() local
123 out->append(encode6Bit((x1 << 4 | x2 >> 4) & 0x3f)); in encodeBase64()
124 out->append(encode6Bit((x2 << 2) & 0x3f)); in encodeBase64()
/frameworks/base/graphics/java/android/graphics/
DPath.java238 public void quadTo(float x1, float y1, float x2, float y2) { in quadTo() argument
239 native_quadTo(mNativePath, x1, y1, x2, y2); in quadTo()
272 public void cubicTo(float x1, float y1, float x2, float y2, in cubicTo() argument
274 native_cubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in cubicTo()
282 public void rCubicTo(float x1, float y1, float x2, float y2, in rCubicTo() argument
284 native_rCubicTo(mNativePath, x1, y1, x2, y2, x3, y3); in rCubicTo()
561 float x2, float y2); in native_quadTo() argument
565 float x2, float y2, float x3, float y3); in native_cubicTo() argument
567 float x2, float y2, float x3, float y3); in native_rCubicTo() argument
/frameworks/base/media/libeffects/testlibs/
DAudioBiquadFilter.cpp155 audio_sample_t x2 = mDelays[0][1]; in process_normal_mono() local
168 acc = mac_coef_sample(b2, x2, acc); in process_normal_mono()
174 x2 = x1; in process_normal_mono()
179 mDelays[0][1] = x2; in process_normal_mono()
213 audio_sample_t x2 = mDelays[ch][1]; in process_normal_multi() local
221 acc = mac_coef_sample(b2, x2, acc); in process_normal_multi()
227 x2 = x1; in process_normal_multi()
234 mDelays[ch][1] = x2; in process_normal_multi()
/frameworks/base/services/sensorservice/
DSecondOrderLowPassFilter.cpp54 x1 = x2 = x; in init()
61 float y = (x + x2)*s.a0 + x1*s.a1 - y1*s.b1 - y2*s.b2; in operator ()()
62 x2 = x1; in operator ()()
DSecondOrderLowPassFilter.h48 float x1, x2; variable
/frameworks/base/media/libstagefright/codecs/avc/dec/src/
Dpred_intra.cpp907 int x0, x1, x2; in Intra_4x4_Diagonal_Down_Right() local
914 x2 = (temp >> 16) & 0xFF; in Intra_4x4_Diagonal_Down_Right()
916 Q_x = (x0 + 2 * x1 + x2 + 2) >> 2; in Intra_4x4_Diagonal_Down_Right()
917 R_x = (x1 + 2 * x2 + (temp >> 24) + 2) >> 2; in Intra_4x4_Diagonal_Down_Right()
919 x2 = video->intra_pred_topleft; /* re-use x2 instead of y0 */ in Intra_4x4_Diagonal_Down_Right()
920 P_x = (x2 + 2 * x0 + x1 + 2) >> 2; in Intra_4x4_Diagonal_Down_Right()
924 D = (x0 + 2 * x2 + x1 + 2) >> 2; in Intra_4x4_Diagonal_Down_Right()
928 P_y = (x2 + 2 * x1 + x0 + 2) >> 2; in Intra_4x4_Diagonal_Down_Right()
930 x2 = *comp_refy; in Intra_4x4_Diagonal_Down_Right()
932 Q_y = (x1 + 2 * x0 + x2 + 2) >> 2; in Intra_4x4_Diagonal_Down_Right()
[all …]
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/
Dpost_pro.cpp351 Word16 i, x2; in Post_Process() local
365 x2 = st->x1; in Post_Process()
378 L_tmp += ((Word32) x2) * c_b2; in Post_Process()
/frameworks/base/core/java/android/util/
DMathUtils.java90 public static float dist(float x1, float y1, float x2, float y2) { in dist() argument
91 final float x = (x2 - x1); in dist()
96 public static float dist(float x1, float y1, float z1, float x2, float y2, float z2) { in dist() argument
97 final float x = (x2 - x1); in dist()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java251 /*package*/ static void native_quadTo(int nPath, float x1, float y1, float x2, float y2) { in native_quadTo() argument
257 pathDelegate.quadTo(x1, y1, x2, y2); in native_quadTo()
272 float x2, float y2, float x3, float y3) { in native_cubicTo() argument
278 pathDelegate.cubicTo(x1, y1, x2, y2, x3, y3); in native_cubicTo()
283 float x2, float y2, float x3, float y3) { in native_rCubicTo() argument
289 pathDelegate.rCubicTo(x1, y1, x2, y2, x3, y3); in native_rCubicTo()
632 private void quadTo(float x1, float y1, float x2, float y2) { in quadTo() argument
633 mPath.quadTo(x1, y1, mLastX = x2, mLastY = y2); in quadTo()
673 private void cubicTo(float x1, float y1, float x2, float y2, in cubicTo() argument
675 mPath.curveTo(x1, y1, x2, y2, mLastX = x3, mLastY = y3); in cubicTo()
/frameworks/base/libs/rs/scriptc/
Drs_graphics.rsh32 extern void drawRect(float x1, float y1, float x2, float y2, float z);
33 extern void drawQuad(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3…
34 extern void drawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, float x2, float y2,…
37 extern void drawLine(float x1, float y1, float z1, float x2, float y2, float z2);
/frameworks/base/libs/rs/
DrsScriptC_Lib.cpp388 static float SC_distf2(float x1, float y1, float x2, float y2) in SC_distf2() argument
390 float x = x2 - x1; in SC_distf2()
395 static float SC_distf3(float x1, float y1, float z1, float x2, float y2, float z2) in SC_distf3() argument
397 float x = x2 - x1; in SC_distf3()
683 float x2, float y2, float z2) in SC_drawLine() argument
690 float vtx[] = { x1, y1, z1, x2, y2, z2 }; in SC_drawLine()
724 float x2, float y2, float z2, in SC_drawQuadTexCoords() argument
742 float vtx[] = {x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4}; in SC_drawQuadTexCoords()
759 float x2, float y2, float z2, in SC_drawQuad() argument
764 x2, y2, z2, 1, 1, in SC_drawQuad()
[all …]
/frameworks/base/core/jni/android/graphics/
DPath.cpp111 …quadTo__FFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2) { in quadTo__FFFF() argument
114 SkScalar x2_ = SkFloatToScalar(x2); in quadTo__FFFF()
127 …FFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x… in cubicTo__FFFFFF() argument
130 SkScalar x2_ = SkFloatToScalar(x2); in cubicTo__FFFFFF()
137 …static void rCubicTo(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfl… in rCubicTo() argument
140 SkScalar x2_ = SkFloatToScalar(x2); in rCubicTo()

12