Home
last modified time | relevance | path

Searched refs:p1 (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dsyn_filt.c43 Word16 *yy, *p1, *p2; in Syn_filt() local
54 p1 = &a[1]; in Syn_filt()
57 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
58 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
59 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
60 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
61 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
62 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
63 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
64 L_tmp -= vo_mult32((*p1++), (*p2--)); in Syn_filt()
[all …]
Dresidu.c35 Word16 i,*p1, *p2; in Residu() local
39 p1 = a; in Residu()
41 s = vo_mult32((*p1++), (*p2--)); in Residu()
42 s += vo_mult32((*p1++), (*p2--)); in Residu()
43 s += vo_mult32((*p1++), (*p2--)); in Residu()
44 s += vo_mult32((*p1++), (*p2--)); in Residu()
45 s += vo_mult32((*p1++), (*p2--)); in Residu()
46 s += vo_mult32((*p1++), (*p2--)); in Residu()
47 s += vo_mult32((*p1++), (*p2--)); in Residu()
48 s += vo_mult32((*p1++), (*p2--)); in Residu()
[all …]
Dautocorr.c43 Word16 *p1,*p2,*p3; in Autocorr() local
48 p1 = x; in Autocorr()
54 *p3++ = vo_mult_r((*p1++), (*p4++)); in Autocorr()
55 *p3++ = vo_mult_r((*p1++), (*p4++)); in Autocorr()
56 *p3++ = vo_mult_r((*p1++), (*p4++)); in Autocorr()
57 *p3++ = vo_mult_r((*p1++), (*p4++)); in Autocorr()
74 p1 = y; in Autocorr()
77 *p1 = vo_shr_r(*p1, shift); in Autocorr()
78 p1++; in Autocorr()
79 *p1 = vo_shr_r(*p1, shift); in Autocorr()
[all …]
Dp_med_ol.c43 Word16 *p1, *p2; in Pitch_med_ol() local
61 p1 = wsp; in Pitch_med_ol()
65 R0 += vo_L_mult((*p1++), (*p2++)); in Pitch_med_ol()
66 R0 += vo_L_mult((*p1++), (*p2++)); in Pitch_med_ol()
67 R0 += vo_L_mult((*p1++), (*p2++)); in Pitch_med_ol()
68 R0 += vo_L_mult((*p1++), (*p2++)); in Pitch_med_ol()
100 p1 = hp_wsp; in Pitch_med_ol()
104 R2 += vo_mult32(*p1, *p1); in Pitch_med_ol()
106 R0 += vo_mult32(*p1++, *p2++); in Pitch_med_ol()
107 R2 += vo_mult32(*p1, *p1); in Pitch_med_ol()
[all …]
Dcor_h_x.c43 Word16 *p1, *p2; in cor_h_x() local
55 p1 = &x[i]; in cor_h_x()
58 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
68 p1 = &x[i+1]; in cor_h_x()
71 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
81 p1 = &x[i+2]; in cor_h_x()
84 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
94 p1 = &x[i+3]; in cor_h_x()
97 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
120 p1 = dn; in cor_h_x()
[all …]
Dc4t64fx.c138 Word16 *p0, *p1, *p2, *p3, *psign; in ACELP_4t64_fx() local
265 p1 = dn; in ACELP_4t64_fx()
270 s = L_add((k_cn* (*p0++)), (k_dn * (*p1++))); in ACELP_4t64_fx()
272 s = L_add((k_cn* (*p0++)), (k_dn * (*p1++))); in ACELP_4t64_fx()
274 s = L_add((k_cn* (*p0++)), (k_dn * (*p1++))); in ACELP_4t64_fx()
276 s = L_add((k_cn* (*p0++)), (k_dn * (*p1++))); in ACELP_4t64_fx()
356 p1 = h; in ACELP_4t64_fx()
361 *p1 = *p0++ >> h_shift; in ACELP_4t64_fx()
362 *p2++ = -(*p1++); in ACELP_4t64_fx()
363 *p1 = *p0++ >> h_shift; in ACELP_4t64_fx()
[all …]
Dc2t64fx.c59 Word16 *p0, *p1, *p2, *psign; in ACELP_2t64_fx() local
101 p1 = dn; in ACELP_2t64_fx()
106 s = (k_cn* (*p0++))+(k_dn * (*p1++)); in ACELP_2t64_fx()
108 s = (k_cn* (*p0++))+(k_dn * (*p1++)); in ACELP_2t64_fx()
110 s = (k_cn* (*p0++))+(k_dn * (*p1++)); in ACELP_2t64_fx()
112 s = (k_cn* (*p0++))+(k_dn * (*p1++)); in ACELP_2t64_fx()
151 p1 = &rrixix[1][NB_POS - 1]; in ACELP_2t64_fx()
159 *p1-- = (extract_h(cor) >> 1); in ACELP_2t64_fx()
174 p1 = &rrixiy[pos]; in ACELP_2t64_fx()
185 *p1 = extract_h(cor); in ACELP_2t64_fx()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dsad_halfpel.cpp74 uint8 *kk, *p1, *p2, *p3, *p4; in AVCSAD_MB_HalfPel_Cxhyh() local
81 p1 = ref; in AVCSAD_MB_HalfPel_Cxhyh()
92 temp = ((p1[j] + p2[j] + p3[j] + p4[j] + 2) >> 2) - *kk++; in AVCSAD_MB_HalfPel_Cxhyh()
101 p1 += rx; in AVCSAD_MB_HalfPel_Cxhyh()
115 uint8 *kk, *p1, *p2; in AVCSAD_MB_HalfPel_Cyh() local
122 p1 = ref; in AVCSAD_MB_HalfPel_Cyh()
131 temp = ((p1[j] + p2[j] + 1) >> 1) - *kk++; in AVCSAD_MB_HalfPel_Cyh()
139 p1 += rx; in AVCSAD_MB_HalfPel_Cyh()
151 uint8 *kk, *p1; in AVCSAD_MB_HalfPel_Cxh() local
157 p1 = ref; in AVCSAD_MB_HalfPel_Cxh()
[all …]
Dsad.cpp94 uint8 *p1; in AVCAVCSAD_MB_HTFM_Collect() local
112 p1 = ref + offsetRef[i]; in AVCAVCSAD_MB_HTFM_Collect()
114 tmp = p1[12]; in AVCAVCSAD_MB_HTFM_Collect()
117 tmp = p1[8]; in AVCAVCSAD_MB_HTFM_Collect()
120 tmp = p1[4]; in AVCAVCSAD_MB_HTFM_Collect()
123 tmp = p1[0]; in AVCAVCSAD_MB_HTFM_Collect()
124 p1 += lx4; in AVCAVCSAD_MB_HTFM_Collect()
129 tmp = p1[12]; in AVCAVCSAD_MB_HTFM_Collect()
132 tmp = p1[8]; in AVCAVCSAD_MB_HTFM_Collect()
135 tmp = p1[4]; in AVCAVCSAD_MB_HTFM_Collect()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dsad_halfpel.cpp68 UChar *kk, *p1, *p2; in HalfPel1_SAD_MB() local
73 p1 = ref; in HalfPel1_SAD_MB()
83 temp = ((p1[j] + p2[j] + 1) >> 1) - *kk++; in HalfPel1_SAD_MB()
89 p1 += width; in HalfPel1_SAD_MB()
100 UChar *kk, *p1, *p2, *p3, *p4; in HalfPel2_SAD_MB() local
103 p1 = ref; in HalfPel2_SAD_MB()
114 temp = ((p1[j] + p2[j] + p3[j] + p4[j] + 2) >> 2) - *kk++; in HalfPel2_SAD_MB()
121 p1 += width; in HalfPel2_SAD_MB()
142 UChar *kk, *p1, *p2; in HalfPel1_SAD_Blk() local
147 p1 = ref; in HalfPel1_SAD_Blk()
[all …]
Dsad.cpp110 UChar *p1; in SAD_MB_HTFM_Collect() local
125 p1 = ref + offsetRef[i]; in SAD_MB_HTFM_Collect()
127 tmp = p1[12]; in SAD_MB_HTFM_Collect()
130 tmp = p1[8]; in SAD_MB_HTFM_Collect()
133 tmp = p1[4]; in SAD_MB_HTFM_Collect()
136 tmp = p1[0]; in SAD_MB_HTFM_Collect()
137 p1 += lx4; in SAD_MB_HTFM_Collect()
142 tmp = p1[12]; in SAD_MB_HTFM_Collect()
145 tmp = p1[8]; in SAD_MB_HTFM_Collect()
148 tmp = p1[4]; in SAD_MB_HTFM_Collect()
[all …]
Dme_utils.cpp113 UChar *p1, *p2, *p3, *p4; in GetHalfPelMBRegion_C() local
118 p1 = cand - lx - 1; in GetHalfPelMBRegion_C()
127 *hmem1++ = ((*p1++) + *p2 + *p3 + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
133 *hmem1++ = ((*p1++) + (*p2++) + *p3 + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
137 p1 += offset; in GetHalfPelMBRegion_C()
145 *hmem1++ = ((*p1++) + *p2 + (*p3++) + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
149 *hmem1 = (*p1 + *p2 + *p3 + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
169 UChar *p1, *p2, *p3, *p4; in GetHalfPelBlkRegion() local
174 p1 = cand - lx - 1; in GetHalfPelBlkRegion()
183 *hmem1++ = ((*p1++) + *p2 + *p3 + *p4 + 2) >> 2; in GetHalfPelBlkRegion()
[all …]
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rs29 static float pillDistance(float3 p1, float3 p2, float3 img) {
31 if (dot(p2 - p1, img - p1) > 0 && dot(p1 - p2, img - p2) > 0) {
32 return length(cross(img - p1, img - p2)) / length(p2 - p1);
34 return min(distance(p1, img), distance(p2, img));
37 static short pill(float3 p1, float3 p2, float rad, short max, float3 img) {
38 return (short) (max * sigmoid(pillDistance(p1, p2, img) - rad));
41 static short cogPill(float3 p1, float3 p2, float rad, short max, float3 img) {
42 float3 vec = (p1 + p2) / 2 - img;
45 * sigmoid(pillDistance(p1, p2, img) - rad * (1 + angle / 2)));
48 static float cylinderDistance(float3 p1, float3 p2, float3 img) {
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dpreemph.cpp244 Word16 *p1; in preemphasis() local
250 p1 = signal + L - 1; in preemphasis()
251 p2 = p1 - 1; in preemphasis()
252 temp = *p1; in preemphasis()
257 *p1 = sub(*p1, temp2, pOverflow); in preemphasis()
259 p1--; in preemphasis()
264 *p1 = sub(*p1, temp2, pOverflow); in preemphasis()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DQuad.java33 public Point p1; field in Quad
40 public Quad(Point p0, Point p1, Point p2, Point p3) { in Quad() argument
42 this.p1 = p1; in Quad()
49 p1.IsInUnitRange() && in IsInUnitRange()
55 return new Quad(p0.plus(t), p1.plus(t), p2.plus(t), p3.plus(t)); in translated()
59 return new Quad(p0.plus(x, y), p1.plus(x, y), p2.plus(x, y), p3.plus(x, y)); in translated()
63 return new Quad(p0.times(s), p1.times(s), p2.times(s), p3.times(s)); in scaled()
67 return new Quad(p0.mult(x, y), p1.mult(x, y), p2.mult(x, y), p3.mult(x, y)); in scaled()
71 List<Float> xs = Arrays.asList(p0.x, p1.x, p2.x, p3.x); in boundingBox()
72 List<Float> ys = Arrays.asList(p0.y, p1.y, p2.y, p3.y); in boundingBox()
[all …]
DRectangle.java47 Point p1 = new Point(center.x + size.x/2f, center.y - size.y/2f); in fromRotatedRect() local
51 p1.rotatedAround(center, rotation), in fromRotatedRect()
56 private Rectangle(Point p0, Point p1, Point p2, Point p3) { in Rectangle() argument
57 super(p0, p1, p2, p3); in Rectangle()
70 return p1.minus(p0).length(); in getWidth()
78 return p0.plus(p1).plus(p2).plus(p3).times(0.25f); in center()
83 return new Rectangle(p0.times(s), p1.times(s), p2.times(s), p3.times(s)); in scaled()
88 return new Rectangle(p0.mult(x, y), p1.mult(x, y), p2.mult(x, y), p3.mult(x, y)); in scaled()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
DarmVCM4P10_DeBlockPixel.c70 int p3, p2, p1, p0, q0, q1, q2, q3; in armVCM4P10_DeBlockPixel() local
80 p1 = pQ0[-2*Step]; in armVCM4P10_DeBlockPixel()
87 if (armAbs(p0-q0)>=alpha || armAbs(p1-p0)>=beta || armAbs(q1-q0)>=beta) in armVCM4P10_DeBlockPixel()
90 p3, p2, p1, p0, q0, q1, q2, q3, alpha, beta); in armVCM4P10_DeBlockPixel()
117 delta = (((q0-p0)<<2) + (p1-q1) + 4) >> 3; in armVCM4P10_DeBlockPixel()
125 delta = (p2 + ((p0+q0+1)>>1) - (p1<<1))>>1; in armVCM4P10_DeBlockPixel()
127 pQ0[-2*Step] = (OMX_U8)(p1 + delta); in armVCM4P10_DeBlockPixel()
141 pQ0[-1*Step] = (OMX_U8)((p2 + 2*p1 + 2*p0 + 2*q0 + q1 + 4)>>3); in armVCM4P10_DeBlockPixel()
142 pQ0[-2*Step] = (OMX_U8)((p2 + p1 + p0 + q0 + 2)>>2); in armVCM4P10_DeBlockPixel()
143 pQ0[-3*Step] = (OMX_U8)((2*p3 + 3*p2 + p1 + p0 + q0 + 4)>>3); in armVCM4P10_DeBlockPixel()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DIpPrefixTest.java175 IpPrefix p1, p2; in testEquals() local
177 p1 = new IpPrefix("192.0.2.251/23"); in testEquals()
179 assertAreEqual(p1, p2); in testEquals()
181 p1 = new IpPrefix("192.0.2.5/23"); in testEquals()
182 assertAreEqual(p1, p2); in testEquals()
184 p1 = new IpPrefix("192.0.2.5/24"); in testEquals()
185 assertAreNotEqual(p1, p2); in testEquals()
187 p1 = new IpPrefix("192.0.4.5/23"); in testEquals()
188 assertAreNotEqual(p1, p2); in testEquals()
191 p1 = new IpPrefix("2001:db8:dead:beef:f00::80/122"); in testEquals()
[all …]
/frameworks/base/core/jni/android/opengl/
Dpoly_clip.cpp43 if (q->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \
106 int poly_clip_to_frustum(Poly *p1) in poly_clip_to_frustum() argument
114 for (v=p1->vert, i=p1->n; i>0; i--, v++) { in poly_clip_to_frustum()
129 if (x0out==p1->n || x1out==p1->n || y0out==p1->n || in poly_clip_to_frustum()
130 y1out==p1->n || z0out==p1->n || z1out==p1->n) { in poly_clip_to_frustum()
131 p1->n = 0; in poly_clip_to_frustum()
139 p = p1; in poly_clip_to_frustum()
150 memcpy(p1, &p2, sizeof(Poly)-(POLY_NMAX-p2.n)*sizeof(Poly_vert)); in poly_clip_to_frustum()
/frameworks/minikin/libs/minikin/
DGraphemeBreak.cpp89 int32_t p1 = tailoredGraphemeClusterBreak(c1); in isGraphemeBreak() local
92 if (p1 == U_GCB_CR && p2 == U_GCB_LF) { in isGraphemeBreak()
96 if (p1 == U_GCB_CONTROL || p1 == U_GCB_CR || p1 == U_GCB_LF) { in isGraphemeBreak()
104 if (p1 == U_GCB_L && (p2 == U_GCB_L || p2 == U_GCB_V || p2 == U_GCB_LV || p2 == U_GCB_LVT)) { in isGraphemeBreak()
108 if ((p1 == U_GCB_LV || p1 == U_GCB_V) && (p2 == U_GCB_V || p2 == U_GCB_T)) { in isGraphemeBreak()
112 if ((p1 == U_GCB_LVT || p1 == U_GCB_T) && p2 == U_GCB_T) { in isGraphemeBreak()
120 if (p1 == U_GCB_REGIONAL_INDICATOR && p2 == U_GCB_REGIONAL_INDICATOR) { in isGraphemeBreak()
136 if (p2 == U_GCB_EXTEND || p2 == U_GCB_SPACING_MARK || p1 == U_GCB_PREPEND) { in isGraphemeBreak()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dc1035pf.cpp410 Word16 *p0, *p1, *p2, *p3, *p4, *p5, *p6, *p7, *p8, *p9; in build_code() local
452 p1 = &indx[track]; in build_code()
454 temp = *p1; in build_code()
458 *p1 = index; in build_code()
469 *(p1 + 5) = index; in build_code()
473 *(p1 + 5) = temp; in build_code()
474 *p1 = index; in build_code()
484 *(p1 + 5) = temp; in build_code()
485 *p1 = index; in build_code()
489 *(p1 + 5) = index; in build_code()
[all …]
Dhp_max.cpp248 Word16 *p, *p1; in hp_max() local
273 p1 = &scal_sig[0]; in hp_max()
275 for (i = 0; i < L_frame; i++, p++, p1++) in hp_max()
277 t0 = L_mac(t0, *p, *p1, pOverflow); in hp_max()
281 p1 = &scal_sig[-1]; in hp_max()
283 for (i = 0; i < L_frame; i++, p++, p1++) in hp_max()
285 t1 = L_mac(t1, *p, *p1, pOverflow); in hp_max()
Dcalc_cor.cpp224 Word16 *p1; in comp_corr() local
242 p1 = p_scal_sig++; in comp_corr()
248 t1 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p1++), t1); in comp_corr()
249 t2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p1), t2); in comp_corr()
253 t1 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p1++), t1); in comp_corr()
254 t2 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p1), t2); in comp_corr()
/frameworks/compile/mclinker/include/mcld/LD/
DELFReader.h105 static bool less(AliasInfo p1, AliasInfo p2) { in less() argument
106 if (p1.ld_value != p2.ld_value) in less()
107 return (p1.ld_value < p2.ld_value); in less()
108 if (p1.ld_binding != p2.ld_binding) { in less()
109 if (ResolveInfo::Weak == p1.ld_binding) in less()
114 return p1.pt_alias->str() < p2.pt_alias->str(); in less()
190 static bool less(AliasInfo p1, AliasInfo p2) { in less() argument
191 if (p1.ld_value != p2.ld_value) in less()
192 return (p1.ld_value < p2.ld_value); in less()
193 if (p1.ld_binding != p2.ld_binding) { in less()
[all …]
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/
DConsistencyTest.java51 private static void assetPalettesEqual(Palette p1, Palette p2) { in assetPalettesEqual() argument
52 assertEquals(p1.getVibrantSwatch(), p2.getVibrantSwatch()); in assetPalettesEqual()
53 assertEquals(p1.getLightVibrantSwatch(), p2.getLightVibrantSwatch()); in assetPalettesEqual()
54 assertEquals(p1.getDarkVibrantSwatch(), p2.getDarkVibrantSwatch()); in assetPalettesEqual()
55 assertEquals(p1.getMutedSwatch(), p2.getMutedSwatch()); in assetPalettesEqual()
56 assertEquals(p1.getLightMutedSwatch(), p2.getLightMutedSwatch()); in assetPalettesEqual()
57 assertEquals(p1.getDarkMutedSwatch(), p2.getDarkMutedSwatch()); in assetPalettesEqual()

1234