Home
last modified time | relevance | path

Searched refs:dist1 (Results 1 - 24 of 24) sorted by relevance

/third_party/astc-encoder/Source/
H A Dastcenc_pick_best_endpoint_format.cpp168 vfloat dist1 = (uncor_amod1 + param * uncor_bs1) - data_g; in compute_error_squared_rgb_single_partition() local
172 haccumulate(uncor_errv1, dist1 * dist1); in compute_error_squared_rgb_single_partition()
181 dist1 = (param * samec_bs1) - data_g; in compute_error_squared_rgb_single_partition()
185 haccumulate(uncor_errv1, dist1 * dist1); in compute_error_squared_rgb_single_partition()
190 dist1 = rgbl_amod1 + data_rgb_1; in compute_error_squared_rgb_single_partition()
194 haccumulate(rgbl_errv1, dist1 * dist1); in compute_error_squared_rgb_single_partition()
199 dist1 in compute_error_squared_rgb_single_partition()
[all...]
/third_party/ffmpeg/libavcodec/
H A Daacenc_is.c45 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_is_encoding_err() local
67 dist1 += quantize_band_cost(s, &L[start + (w+w2)*128], L34, in ff_aac_is_encoding_err()
72 dist1 += quantize_band_cost(s, &R[start + (w+w2)*128], R34, 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()
91 is_error.dist1 = dist1; in ff_aac_is_encoding_err()
H A Daacenc_ltp.c183 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_search_for_ltp() local
195 dist1 += quantize_band_cost(s, &sce->coeffs[start+(w+w2)*128], C34, 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 Daacenc_is.h37 int pass; /* 1 if dist2 <= dist1 */
39 float error; /* fabs(dist1 - dist2) */
40 float dist1; /* From original coeffs */ member
H A Daacenc_pred.c259 float dist1, dist2, dist_spec_err = 0.0f; in ff_aac_search_for_pred() local
274 dist1 = quantize_and_encode_band_cost(s, NULL, &sce->coeffs[start_coef], NULL, in ff_aac_search_for_pred()
307 if (dist2 <= dist1 && cb_p <= cb_n) { in ff_aac_search_for_pred()
H A Daaccoder.c585 float dist1 = 0.0f, dist2 = 0.0f, noise_amp; in search_for_pns() local
656 dist1 += quantize_band_cost(s, &sce->coeffs[start_c], 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
840 dist1 += quantize_band_cost(s, &sce0->coeffs[start + (w+w2)*128], in search_for_ms()
846 dist1 += quantize_band_cost(s, &sce1->coeffs[start + (w+w2)*128], in search_for_ms()
866 dist1 -= b1+b2; in search_for_ms()
869 cpe->ms_mask[w*16+g] = dist2 <= dist1 && B1 < B0; in search_for_ms()
H A Drv34.c1715 int dist1 = GET_PTS_DIFF(r->next_pts, r->cur_pts); in ff_rv34_decode_frame() local
1721 if (FFMAX(dist0, dist1) > refdist) in ff_rv34_decode_frame()
1725 r->mv_weight2 = (dist1 << 14) / refdist; in ff_rv34_decode_frame()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
H A DLzcompCompress.java146 int[] dist1 = new int[1]; in makeCopyDecision()
150 int len1 = findMatch(index, dist1, gain1, costPerByte1); in makeCopyDecision()
169 int distRanges = getNumDistRanges(dist1[0] + 1); in makeCopyDecision()
170 int lenBitCount = encodeLengthCost(len1 - 1, dist1[0] + 1, distRanges); in makeCopyDecision()
171 int distBitCount = encodeDistance2Cost(dist1[0] + 1, distRanges); in makeCopyDecision()
176 dist1[0]++; in makeCopyDecision()
195 bestDist[0] = dist1[0]; in makeCopyDecision()
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Djquant2.c301 JLONG dist0, dist1, dist2; in update_box() local
384 dist1 = ((c1max - c1min) << C1_SHIFT) * C1_SCALE; in update_box()
386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box()
767 JLONG dist0, dist1; /* initial distance values */ in find_best_colors() local
808 dist1 = dist0; in find_best_colors()
811 dist2 = dist1; in find_best_colors()
823 dist1 += xx1; in find_best_colors()
/third_party/skia/tools/viewer/
H A DTouchGesture.cpp318 double dist1 = sqrt(dx*dx + dy*dy); in computePinch() local
320 double scale = dist1 / dist0; in computePinch()
/third_party/skia/tests/
H A DPathOpsAngleIdeas.cpp776 double dist1 = v1.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/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DLocaleDistanceTest.java106 int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DLocaleDistanceTest.java103 int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_setup_tri.c397 float dist1 = v1[0][0] * v1[0][0] + v1[0][1] * v1[0][1]; in do_triangle_ccw() local
399 if (dist0 > dist1 && dist1 < dist2) { in do_triangle_ccw()
/third_party/ffmpeg/libavcodec/mips/
H A Daaccoder_mips.c2383 float dist1 = 0.0f, dist2 = 0.0f; in search_for_ms_mips() local
2422 dist1 += quantize_band_cost(s, &sce0->coeffs[start + (w+w2)*128], in search_for_ms_mips()
2428 dist1 += quantize_band_cost(s, &sce1->coeffs[start + (w+w2)*128], in search_for_ms_mips()
2448 dist1 -= b1+b2; 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 DSkStroke.cpp931 SkScalar dist1 = pt_to_line(start, end, quadPts->fTangentEnd);
933 if (std::max(dist1, dist2) <= fInvResScaleSquared) {
935 "std::max(dist1=%g, dist2=%g) <= fInvResScaleSquared", dist1, dist2);
/third_party/skia/src/utils/
H A DSkPolyUtils.cpp1358 SkScalar dist1 = prevEdge->computeCrossingDistance(currNextEdge); in SkOffsetSimplePolygon() local
1360 if (dist0 < 0 && dist1 < 0) { in SkOffsetSimplePolygon()
1384 if (dist0 < dist1) { in SkOffsetSimplePolygon()
/third_party/skia/third_party/externals/freetype/src/autofit/
H A Dafcjk.c2057 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local
2073 dist1 = edge2->opos - edge1->opos; in af_cjk_hint_edges()
2076 span = dist1 - dist2; in af_cjk_hint_edges()
H A Daflatin.c3359 FT_Pos dist1, dist2, span, delta; in af_latin_hint_edges() local
3375 dist1 = edge2->opos - edge1->opos; in af_latin_hint_edges()
3378 span = dist1 - dist2; in af_latin_hint_edges()
/third_party/skia/third_party/externals/swiftshader/src/Shader/
H A DShaderCore.hpp271 void dist1(Float4 &dst, const Vector4f &src0, const Vector4f &src1, bool pp = false);
H A DVertexProgram.cpp273 case Shader::OPCODE_DIST1: dist1(d.x, s0, s1, pp); break; in program()
H A DPixelProgram.cpp253 case Shader::OPCODE_DIST1: dist1(d.x, s0, s1, pp); break; in applyShader()
H A DShaderCore.cpp973 void ShaderCore::dist1(Float4 &dst, const Vector4f &src0, const Vector4f &src1, bool pp) in dist1() function in sw::ShaderCore
/third_party/ltp/scripts/
H A Dcheckpatch.pl654 my $dist1 = $distance[$i][$j - 1]; #insert distance
657 $distance[$i][$j] = 1 + edit_distance_min($dist1, $dist2, $dist3);

Completed in 47 milliseconds