Home
last modified time | relevance | path

Searched refs:p2 (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
55 p2 = &yy[i-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
40 p2 = &x[i]; 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 …]
Dp_med_ol.c43 Word16 *p1, *p2; in Pitch_med_ol() local
62 p2 = &wsp[-i]; 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()
101 p2 = hp_wsp - Tm; in Pitch_med_ol()
105 R1 += vo_mult32(*p2, *p2); in Pitch_med_ol()
106 R0 += vo_mult32(*p1++, *p2++); in Pitch_med_ol()
108 R1 += vo_mult32(*p2, *p2); in Pitch_med_ol()
[all …]
Dc4t64fx.c142 Word16 *p0, *p1, *p2, *p3, *psign; in ACELP_4t64_fx() local
270 p2 = dn2; in ACELP_4t64_fx()
275 *p2++ = s >> 7; in ACELP_4t64_fx()
277 *p2++ = s >> 7; in ACELP_4t64_fx()
279 *p2++ = s >> 7; in ACELP_4t64_fx()
281 *p2++ = s >> 7; in ACELP_4t64_fx()
361 p2 = h_inv; in ACELP_4t64_fx()
366 *p2++ = -(*p1++); in ACELP_4t64_fx()
368 *p2++ = -(*p1++); in ACELP_4t64_fx()
370 *p2++ = -(*p1++); in ACELP_4t64_fx()
[all …]
Dcor_h_x.c43 Word16 *p1, *p2; in cor_h_x() local
56 p2 = &h[0]; in cor_h_x()
58 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
69 p2 = &h[0]; in cor_h_x()
71 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
82 p2 = &h[0]; in cor_h_x()
84 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
95 p2 = &h[0]; in cor_h_x()
97 L_tmp = L_add(L_tmp, vo_L_mult(*p1++, *p2++)); in cor_h_x()
Dautocorr.c43 Word16 *p1,*p2,*p3; in Autocorr() local
111 p2 = y + (2*i)-1; in Autocorr()
113 L_sum1 += *p1 * *p2++; in Autocorr()
114 L_sum += *p1++ * *p2; in Autocorr()
117 L_sum1 += *p1 * *p2++; in Autocorr()
Dc2t64fx.c59 Word16 *p0, *p1, *p2, *psign; in ACELP_2t64_fx() local
102 p2 = dn2; in ACELP_2t64_fx()
107 *p2++ = s >> 7; in ACELP_2t64_fx()
109 *p2++ = s >> 7; in ACELP_2t64_fx()
111 *p2++ = s >> 7; in ACELP_2t64_fx()
113 *p2++ = s >> 7; in ACELP_2t64_fx()
228 p2 = rrixiy; in ACELP_2t64_fx()
243 alp2 = add1(alp1, add1(*p1++, *p2++)); in ACELP_2t64_fx()
/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/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dsad_halfpel.cpp68 UChar *kk, *p1, *p2; in HalfPel1_SAD_MB() local
74 if (ih) p2 = ref + 1; in HalfPel1_SAD_MB()
75 else p2 = ref + width; in HalfPel1_SAD_MB()
83 temp = ((p1[j] + p2[j] + 1) >> 1) - *kk++; in HalfPel1_SAD_MB()
90 p2 += width; in HalfPel1_SAD_MB()
100 UChar *kk, *p1, *p2, *p3, *p4; in HalfPel2_SAD_MB() local
104 p2 = ref + 1; in HalfPel2_SAD_MB()
114 temp = ((p1[j] + p2[j] + p3[j] + p4[j] + 2) >> 2) - *kk++; in HalfPel2_SAD_MB()
123 p2 += width; in HalfPel2_SAD_MB()
142 UChar *kk, *p1, *p2; in HalfPel1_SAD_Blk() local
[all …]
Dme_utils.cpp113 UChar *p1, *p2, *p3, *p4; in GetHalfPelMBRegion_C() local
119 p2 = cand - lx; in GetHalfPelMBRegion_C()
127 *hmem1++ = ((*p1++) + *p2 + *p3 + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
128 *hmem1++ = ((*p2++) + *p4 + 1) >> 1; in GetHalfPelMBRegion_C()
133 *hmem1++ = ((*p1++) + (*p2++) + *p3 + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
138 p2 += offset; in GetHalfPelMBRegion_C()
145 *hmem1++ = ((*p1++) + *p2 + (*p3++) + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
146 *hmem1++ = ((*p2++) + (*p4++) + 1) >> 1; in GetHalfPelMBRegion_C()
149 *hmem1 = (*p1 + *p2 + *p3 + *p4 + 2) >> 2; in GetHalfPelMBRegion_C()
169 UChar *p1, *p2, *p3, *p4; in GetHalfPelBlkRegion() local
[all …]
/frameworks/minikin/libs/minikin/
DGraphemeBreak.cpp84 int32_t p2 = tailoredGraphemeClusterBreak(c2); in isGraphemeBreak() local
86 if (p1 == U_GCB_CR && p2 == U_GCB_LF) { in isGraphemeBreak()
94 if (p2 == U_GCB_CONTROL || p2 == U_GCB_CR || p2 == 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()
154 if (p1 == U_GCB_REGIONAL_INDICATOR && p2 == U_GCB_REGIONAL_INDICATOR) { in isGraphemeBreak()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DQuad.java36 public Point p2; field in Quad
45 public Quad(Point p0, Point p1, Point p2, Point p3) { in Quad() argument
48 this.p2 = p2; in Quad()
55 p2.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.java48 Point p2 = new Point(center.x - size.x/2f, center.y + size.y/2f); in fromRotatedRect() local
52 p2.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()
74 return p2.minus(p0).length(); in getHeight()
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/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()
24 return p1 == rhs.p1 && p2 == rhs.p2;
29 Eigen::Vector<T, d> GetMaxPoint() const { return p2; } in GetMaxPoint()
31 Eigen::Vector<T, d> GetSize() const { return p2 - p1; } in GetSize()
34 Eigen::Vector<T, d> p2; member
/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()
111 else if (ResolveInfo::Weak == p2.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/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/apdu/
DApduCommand.java38 public final int p2; field in ApduCommand
47 ApduCommand(int channel, int cla, int ins, int p1, int p2, int p3, String cmdHex) { in ApduCommand() argument
52 this.p2 = p2; in ApduCommand()
60 + ", p2=" + p2 + ", p3=" + p3 + ", cmd=" + cmdHex + ")"; 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()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dcalc_cor.cpp225 Word16 *p2; in comp_corr() local
244 p2 = p_scal_sig++; in comp_corr()
250 t3 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p2++), t3); in comp_corr()
251 t4 = amrnb_fxp_mac_16_by_16bb((Word32) * (p++), (Word32) * (p2), t4); in comp_corr()
255 t3 = amrnb_fxp_mac_16_by_16bb((Word32) * (p), (Word32) * (p2++), t3); in comp_corr()
256 t4 = amrnb_fxp_mac_16_by_16bb((Word32) * (p++), (Word32) * (p2), t4); in comp_corr()
/frameworks/ml/nn/runtime/test/specs/V1_2/
Dconcat_zero_sized.mod.py21 p2 = Parameter("roi", "TENSOR_FLOAT32", "{1, 8}", [1, 1, 10, 10, 0, 0, 10, 10]) # roi variable
26 model = Model().Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3).To(o1, tmp1…
40 p2: ("TENSOR_QUANT16_ASYMM", 0.125, 0),
60 p2 = Parameter("roi", "TENSOR_FLOAT32", "{1, 8}", [1, 1, 10, 10, 0, 0, 10, 10]) # roi variable
65 model = Model().Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3).To(o1, tmp1…
80 p2: ("TENSOR_QUANT16_ASYMM", 0.125, 0),
Dresize_bilinear_v1_2.mod.py95 p2 = Parameter("roi", "TENSOR_FLOAT32", "{1, 8}", [1, 1, 10, 10, 0, 0, 10, 10]) # roi variable
100 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3…
113 p2: ("TENSOR_QUANT16_ASYMM", 0.125, 0),
133 p2 = Parameter("roi", "TENSOR_FLOAT32", "{1, 8}", [1, 1, 10, 10, 0, 0, 10, 10]) # roi variable
138 model = Model("zero_sized").Operation("BOX_WITH_NMS_LIMIT", p1, p2, [0], 0.3, -1, 0, 0.4, 1.0, 0.3…
151 p2: ("TENSOR_QUANT16_ASYMM", 0.125, 0),
/frameworks/base/tests/net/common/java/android/net/
DIpPrefixTest.java178 IpPrefix p1, p2; in testEquals() local
181 p2 = new IpPrefix(new byte[]{(byte) 192, (byte) 0, (byte) 2, (byte) 251}, 23); in testEquals()
182 assertEqualBothWays(p1, p2); in testEquals()
185 assertEqualBothWays(p1, p2); in testEquals()
188 assertNotEqualEitherWay(p1, p2); in testEquals()
191 assertNotEqualEitherWay(p1, p2); in testEquals()
195 p2 = new IpPrefix(IPV6_BYTES, 122); in testEquals()
196 assertEquals("2001:db8:dead:beef:f00::80/122", p2.toString()); in testEquals()
197 assertEqualBothWays(p1, p2); in testEquals()
200 assertEqualBothWays(p1, p2); in testEquals()
[all …]
/frameworks/compile/mclinker/unittests/
DPathTest.cpp87 Path* p2 = new Path("ccc///////"); in TEST_F() local
89 EXPECT_TRUE(*m_pTestee == *p2); in TEST_F()
94 delete p2; in TEST_F()
99 Path* p2 = new Path("aaa//"); in TEST_F() local
102 EXPECT_TRUE(*m_pTestee != *p2); in TEST_F()
106 EXPECT_TRUE(*m_pTestee != *p2); in TEST_F()
107 delete p2; in TEST_F()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DFixedRotationFilter.java75 Point p2 = new Point(1.0f, 0.0f); in process() local
81 sourceRegion = new Quad(p3,p1,p4,p2); in process()
85 sourceRegion = new Quad(p4,p3,p2,p1); in process()
88 sourceRegion = new Quad(p2,p4,p1,p3); in process()
93 sourceRegion = new Quad(p1,p2,p3,p4); in process()
/frameworks/wilhelm/src/
DThreadPool.h29 typedef void (*ClosureHandler_generic)(void *p1, void *p2, void *p3, int i1, int i2);
30 typedef void (*ClosureHandler_ppi) (void *p1, void *p2, int i1);
31 typedef void (*ClosureHandler_ppii) (void *p1, void *p2, int i1, int i2);
32 typedef void (*ClosureHandler_piipp) (void *p1, int i1, int i2, void *p2, void *p3);
/frameworks/av/tools/
Dmainline_hook_partial.sh86 while read p1 p2
98 if [ ! -z ${p2} ] ; then
99 exlusions="${exclusions} ${p2}"
103 if [ ! -z ${p2} ] ; then
104 inclusions="${inclusions} ${p2}"

123456