Home
last modified time | relevance | path

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

123456

/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.c142 Word16 *p0, *p1, *p2, *p3, *psign; in ACELP_4t64_fx() local
269 p1 = dn; 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()
278 s = L_add((k_cn* (*p0++)), (k_dn * (*p1++))); in ACELP_4t64_fx()
280 s = L_add((k_cn* (*p0++)), (k_dn * (*p1++))); in ACELP_4t64_fx()
360 p1 = h; in ACELP_4t64_fx()
365 *p1 = *p0++ >> h_shift; in ACELP_4t64_fx()
366 *p2++ = -(*p1++); in ACELP_4t64_fx()
367 *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/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/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rscript29 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/native/libs/vr/libdvrcommon/include/private/dvr/
Drange.h16 Range(Eigen::Vector<T, d> p1, Eigen::Vector<T, d> p2) : p1(p1), p2(p2) {} in Range()
18 static Range<T, d> FromSize(Eigen::Vector<T, d> p1, in FromSize()
20 return Range<T, d>(p1, p1 + size); in FromSize()
24 return p1 == rhs.p1 && p2 == rhs.p2;
27 Eigen::Vector<T, d> GetMinPoint() const { return p1; } in GetMinPoint()
31 Eigen::Vector<T, d> GetSize() const { return p2 - p1; } in GetSize()
33 Eigen::Vector<T, d> p1; member
/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.java34 public Point p1; field in Quad
45 public Quad(Point p0, Point p1, Point p2, Point p3) { in Quad() argument
47 this.p1 = p1; in Quad()
54 p1.IsInUnitRange() && in IsInUnitRange()
60 return new Quad(p0.plus(t), p1.plus(t), p2.plus(t), p3.plus(t)); in translated()
64 return new Quad(p0.plus(x, y), p1.plus(x, y), p2.plus(x, y), p3.plus(x, y)); in translated()
68 return new Quad(p0.times(s), p1.times(s), p2.times(s), p3.times(s)); in scaled()
72 return new Quad(p0.mult(x, y), p1.mult(x, y), p2.mult(x, y), p3.mult(x, y)); in scaled()
76 List<Float> xs = Arrays.asList(p0.x, p1.x, p2.x, p3.x); in boundingBox()
77 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/minikin/libs/minikin/
DGraphemeBreak.cpp83 int32_t p1 = tailoredGraphemeClusterBreak(c1); in isGraphemeBreak() local
86 if (p1 == U_GCB_CR && p2 == U_GCB_LF) { in isGraphemeBreak()
90 if (p1 == U_GCB_CONTROL || p1 == U_GCB_CR || p1 == U_GCB_LF) { in isGraphemeBreak()
98 if (p1 == U_GCB_L && (p2 == U_GCB_L || p2 == U_GCB_V || p2 == U_GCB_LV || p2 == U_GCB_LVT)) { in isGraphemeBreak()
102 if ((p1 == U_GCB_LV || p1 == U_GCB_V) && (p2 == U_GCB_V || p2 == U_GCB_T)) { in isGraphemeBreak()
106 if ((p1 == U_GCB_LVT || p1 == U_GCB_T) && p2 == U_GCB_T) { in isGraphemeBreak()
122 if (p2 == U_GCB_EXTEND || p2 == U_GCB_ZWJ || p2 == U_GCB_SPACING_MARK || p1 == U_GCB_PREPEND) { in isGraphemeBreak()
128 if (offset_back > start && p1 == U_GCB_ZWJ && in isGraphemeBreak()
154 if (p1 == U_GCB_REGIONAL_INDICATOR && p2 == U_GCB_REGIONAL_INDICATOR) { in isGraphemeBreak()
/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/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/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/base/tests/net/common/java/android/net/
DIpPrefixTest.java178 IpPrefix p1, p2; in testEquals() local
180 p1 = new IpPrefix("192.0.2.251/23"); in testEquals()
182 assertEqualBothWays(p1, p2); in testEquals()
184 p1 = new IpPrefix("192.0.2.5/23"); in testEquals()
185 assertEqualBothWays(p1, p2); in testEquals()
187 p1 = new IpPrefix("192.0.2.5/24"); in testEquals()
188 assertNotEqualEitherWay(p1, p2); in testEquals()
190 p1 = new IpPrefix("192.0.4.5/23"); in testEquals()
191 assertNotEqualEitherWay(p1, p2); in testEquals()
194 p1 = new IpPrefix("2001:db8:dead:beef:f00::80/122"); in testEquals()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue-test.cpp107 auto p1 = p1_status.take(); in TEST_F() local
108 ASSERT_NE(p1, nullptr); in TEST_F()
112 EXPECT_EQ(p1->PostAsync(&mi, LocalHandle()), 0); in TEST_F()
148 auto p1 = p1_status.take(); in TEST_F() local
149 ASSERT_NE(p1, nullptr); in TEST_F()
160 EXPECT_EQ(0, p1->PostAsync(&mi, LocalHandle())); in TEST_F()
181 auto p1 = p1_status.take(); in TEST_F() local
182 ASSERT_NE(p1, nullptr); in TEST_F()
189 EXPECT_EQ(0, p1->PostAsync(&mi, LocalHandle())); in TEST_F()
196 auto p1 = p1_status.take(); in TEST_F() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DApduCommand.java35 public final int p1; field in ApduCommand
47 ApduCommand(int channel, int cla, int ins, int p1, int p2, int p3, String cmdHex) { in ApduCommand() argument
51 this.p1 = p1; in ApduCommand()
59 return "ApduCommand(channel=" + channel + ", cla=" + cla + ", ins=" + ins + ", p1=" + p1 in toString()
DRequestBuilder.java50 public void addApdu(int cla, int ins, int p1, int p2, int p3, String cmdHex) { in addApdu() argument
51 mCommands.add(new ApduCommand(mChannel, cla, ins, p1, p2, p3, cmdHex)); in addApdu()
58 public void addApdu(int cla, int ins, int p1, int p2, String cmdHex) { in addApdu() argument
59 mCommands.add(new ApduCommand(mChannel, cla, ins, p1, p2, cmdHex.length() / 2, cmdHex)); in addApdu()
66 public void addApdu(int cla, int ins, int p1, int p2) { in addApdu() argument
67 mCommands.add(new ApduCommand(mChannel, cla, ins, p1, p2, 0, "")); in addApdu()

123456