/third_party/astc-encoder/Source/ |
H A D | astcenc_pick_best_endpoint_format.cpp | 169 vfloat dist2 = (uncor_amod2 + param * uncor_bs2) - data_b; in compute_error_squared_rgb_single_partition() local 173 haccumulate(uncor_errv2, dist2 * dist2); in compute_error_squared_rgb_single_partition() 182 dist2 = (param * samec_bs2) - data_b; in compute_error_squared_rgb_single_partition() 186 haccumulate(uncor_errv2, dist2 * dist2); in compute_error_squared_rgb_single_partition() 191 dist2 = rgbl_amod2 + data_rgb_2; in compute_error_squared_rgb_single_partition() 195 haccumulate(rgbl_errv2, dist2 * dist2); in compute_error_squared_rgb_single_partition() 200 dist2 in compute_error_squared_rgb_single_partition() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | aacenc_is.c | 45 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_is_encoding_err() local 77 dist2 += quantize_band_cost(s, IS, I34, sce0->ics.swb_sizes[g], in ff_aac_is_encoding_err() 85 dist2 += dist_spec_err; in ff_aac_is_encoding_err() 88 is_error.pass = dist2 <= dist1; in ff_aac_is_encoding_err() 90 is_error.error = dist2 - dist1; in ff_aac_is_encoding_err() 92 is_error.dist2 = dist2; in ff_aac_is_encoding_err()
|
H A D | aacenc_ltp.c | 183 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_search_for_ltp() local 198 dist2 += quantize_band_cost(s, PCD, PCD34, sce->ics.swb_sizes[g], in ff_aac_search_for_ltp() 205 if (dist2 < dist1 && bits2 < bits1) { in ff_aac_search_for_ltp()
|
H A D | aacenc_pred.c | 259 float dist1, dist2, dist_spec_err = 0.0f; in ff_aac_search_for_pred() local 299 dist2 = quantize_and_encode_band_cost(s, NULL, &sce->prcoeffs[start_coef], NULL, in ff_aac_search_for_pred() 305 dist2 += dist_spec_err; in ff_aac_search_for_pred() 307 if (dist2 <= dist1 && cb_p <= cb_n) { in ff_aac_search_for_pred()
|
H A D | texturedspenc.c | 502 int dist, bias, dist4, dist2; in compress_alpha() local 536 dist2 = dist * 2; in compress_alpha() 552 tmp = (alp >= dist2) ? -1 : 0; in compress_alpha() 554 alp -= dist2 & tmp; in compress_alpha()
|
H A D | aacenc_is.h | 37 int pass; /* 1 if dist2 <= dist1 */ 39 float error; /* fabs(dist1 - dist2) */ 41 float dist2; /* From IS'd coeffs */ member
|
H A D | aaccoder.c | 585 float dist1 = 0.0f, dist2 = 0.0f, noise_amp; in search_for_pns() local 663 dist2 += band->energy/(band->spread*band->spread)*lambda*dist_thresh/band->threshold; in search_for_pns() 666 dist2 += 5; in search_for_pns() 668 dist2 += 9; in search_for_pns() 672 if (sce->zeroes[w*16+g] || !sce->band_alt[w*16+g] || (energy_ratio > 0.85f && energy_ratio < 1.25f && dist2 < dist1)) { in search_for_pns() 801 float dist1 = 0.0f, dist2 = 0.0f; in search_for_ms() local 852 dist2 += quantize_band_cost(s, M, in search_for_ms() 858 dist2 += quantize_band_cost(s, S, in search_for_ms() 867 dist2 -= b3+b4; in search_for_ms() 869 cpe->ms_mask[w*16+g] = dist2 < in search_for_ms() [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jquant2.c | 301 JLONG dist0, dist1, dist2; in update_box() local 385 dist2 = ((c2max - c2min) << C2_SHIFT) * C2_SCALE; in update_box() 386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box() 768 register JLONG dist2; /* current distance in inner loop */ in find_best_colors() local 811 dist2 = dist1; in find_best_colors() 814 if (dist2 < *bptr) { in find_best_colors() 815 *bptr = dist2; in find_best_colors() 818 dist2 += xx2; in find_best_colors()
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_setup.c | 1263 float dx, dy, dist2, cover; in sp_setup_point() local 1269 dist2 = dx * dx + dy * dy; in sp_setup_point() 1270 if (dist2 <= rmax2) { in sp_setup_point() 1271 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point() 1278 dist2 = dx * dx + dy * dy; in sp_setup_point() 1279 if (dist2 <= rmax2) { in sp_setup_point() 1280 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point() 1287 dist2 = dx * dx + dy * dy; in sp_setup_point() 1288 if (dist2 <= rmax2) { in sp_setup_point() 1289 cover = 1.0F - (dist2 in sp_setup_point() [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
H A D | LzcompCompress.java | 153 int[] dist2 = new int[1]; in makeCopyDecision() 156 int len2 = findMatch(index, dist2, gain2, costPerByte2); in makeCopyDecision() 162 len2 = findMatch(here + len1, dist2, gain2, costPerByte2); in makeCopyDecision()
|
/third_party/skia/tests/ |
H A D | PathOpsAngleIdeas.cpp | 777 double dist2 = v2.length() * m; in mDistance() local 779 SkDebugf("%c r1=%1.9g r2=%1.9g m=%1.9g dist1=%1.9g dist2=%1.9g " in mDistance() 781 endCtrlRatio(q1), endCtrlRatio(q2), m, dist1, dist2, dir > 0 ? '+' : '-', in mDistance() 786 bool use1 = fabs(dist1) < fabs(dist2); in mDistance() 788 SkDebugf("%c dist=%1.9g r=%1.9g\n", agrees ? 'T' : 'F', use1 ? dist1 : dist2, in mDistance() 789 use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance() 791 return fabs(use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance()
|
/third_party/lzma/Asm/x86/ |
H A D | LzmaDecOpt.asm | 76 ; x9 match (MATCHED) / sym2 / dist2 / lpMask_reg
141 dist2 equ x9
define 1150 mov dist2, LOC rep0
1152 mov LOC rep1, dist2
1161 mov dist2, LOC rep2
1165 mov LOC rep0, dist2
1172 mov LOC rep3, dist2
|
/third_party/skia/third_party/externals/freetype/src/autofit/ |
H A D | afcjk.c | 1074 FT_Pos dist2 = 0; in af_cjk_hints_compute_edges() local 1084 dist2 = AF_SEGMENT_DIST( link, link1 ); in af_cjk_hints_compute_edges() 1085 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 1091 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 2057 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local 2074 dist2 = edge3->opos - edge2->opos; in af_cjk_hint_edges() 2076 span = dist1 - dist2; in af_cjk_hint_edges()
|
H A D | aflatin.c | 3359 FT_Pos dist1, dist2, span, delta; in af_latin_hint_edges() local 3376 dist2 = edge3->opos - edge2->opos; in af_latin_hint_edges() 3378 span = dist1 - dist2; in af_latin_hint_edges()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
H A D | LocaleDistanceTest.java | 107 int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | LocaleDistanceTest.java | 104 int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming()
|
/third_party/mesa3d/src/imgui/ |
H A D | imstb_truetype.h | 4485 float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); 4486 if (dist2 < min_dist*min_dist) 4487 min_dist = (float) STBTT_sqrt(dist2); 4553 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); 4554 if (dist2 < min_dist * min_dist) 4555 min_dist = (float) STBTT_sqrt(dist2); 4561 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); 4562 if (dist2 < min_dist * min_dist) 4563 min_dist = (float) STBTT_sqrt(dist2); 4569 dist2 [all...] |
/third_party/skia/third_party/externals/imgui/ |
H A D | imstb_truetype.h | 4485 float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); 4486 if (dist2 < min_dist*min_dist) 4487 min_dist = (float) STBTT_sqrt(dist2); 4553 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); 4554 if (dist2 < min_dist * min_dist) 4555 min_dist = (float) STBTT_sqrt(dist2); 4561 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); 4562 if (dist2 < min_dist * min_dist) 4563 min_dist = (float) STBTT_sqrt(dist2); 4569 dist2 [all...] |
H A D | imgui.cpp | 1223 float dist2 = ImLengthSqr(p - p_line); in ImBezierCubicClosestPoint() local 1224 if (dist2 < p_closest_dist2) in ImBezierCubicClosestPoint() 1227 p_closest_dist2 = dist2; in ImBezierCubicClosestPoint() 1247 float dist2 = ImLengthSqr(p - p_line); in ImBezierCubicClosestPointCasteljauStep() local 1248 if (dist2 < p_closest_dist2) in ImBezierCubicClosestPointCasteljauStep() 1251 p_closest_dist2 = dist2; in ImBezierCubicClosestPointCasteljauStep()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_setup_tri.c | 398 float dist2 = v2[0][0] * v2[0][0] + v2[0][1] * v2[0][1]; in do_triangle_ccw() local 399 if (dist0 > dist1 && dist1 < dist2) { in do_triangle_ccw() 419 } else if (dist0 > dist2) { in do_triangle_ccw()
|
/third_party/ffmpeg/libavcodec/mips/ |
H A D | aaccoder_mips.c | 2383 float dist1 = 0.0f, dist2 = 0.0f; in search_for_ms_mips() local 2434 dist2 += quantize_band_cost(s, M, in search_for_ms_mips() 2440 dist2 += quantize_band_cost(s, S, in search_for_ms_mips() 2449 dist2 -= b3+b4; in search_for_ms_mips() 2451 cpe->ms_mask[w*16+g] = dist2 <= dist1 && B1 < B0; in search_for_ms_mips()
|
/third_party/skia/src/core/ |
H A D | SkStroke.cpp | 932 SkScalar dist2 = pt_to_line(end, start, quadPts->fTangentStart); 933 if (std::max(dist1, dist2) <= fInvResScaleSquared) { 935 "std::max(dist1=%g, dist2=%g) <= fInvResScaleSquared", dist1, dist2);
|
/third_party/lzma/C/ |
H A D | LzmaEnc.c | 2029 UInt32 dist2;
in GetOptimumFast() local 2032 dist2 = p->matches[(size_t)numPairs - 3];
in GetOptimumFast() 2033 if (!ChangePair(dist2, mainDist))
in GetOptimumFast() 2037 mainDist = dist2;
in GetOptimumFast()
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | ShaderCore.hpp | 272 void dist2(Float4 &dst, const Vector4f &src0, const Vector4f &src1, bool pp = false);
|
H A D | VertexProgram.cpp | 274 case Shader::OPCODE_DIST2: dist2(d.x, s0, s1, pp); break; in program()
|