/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | verifier.cc | 71 // If |is_tolerance_percent| is true, the actual tolerance will be 72 // relative value i.e., |tolerance| / 100 * fabs(expected). 73 // Otherwise, this method uses the absolute value i.e., |tolerance|. 76 double tolerance, in IsEqualWithTolerance() 85 if (difference > ((tolerance / 100.0) * std::fabs(expected))) { in IsEqualWithTolerance() 88 } else if (difference > tolerance) { in IsEqualWithTolerance() 99 const auto& tolerance = command->GetTolerances(); in CheckActualValue() local 135 command->HasTolerances() ? tolerance[0].value : kEpsilon, in CheckActualValue() 136 command->HasTolerances() ? tolerance[0].is_percent : true)) { in CheckActualValue() 174 double* tolerance, in SetupToleranceForTexels() 74 IsEqualWithTolerance(const double actual, const double expected, double tolerance, const bool is_tolerance_percent = true) IsEqualWithTolerance() argument 173 SetupToleranceForTexels(const ProbeCommand* command, double* tolerance, bool* is_tolerance_percent) SetupToleranceForTexels() argument 314 IsTexelEqualToExpected(const std::vector<double>& texel, const Format* fmt, const ProbeCommand* command, const double* tolerance, const bool* is_tolerance_percent) IsTexelEqualToExpected() argument 455 double tolerance[4] = {0, 0, 0, 0}; Probe() local [all...] |
H A D | buffer.cc | 161 Result Buffer::CompareRMSE(Buffer* buffer, float tolerance) const { in CompareRMSE() 173 if (rmse > static_cast<double>(tolerance)) { in CompareRMSE() 175 " is greater than tolerance of " + std::to_string(tolerance)); in CompareRMSE() 208 Result Buffer::CompareHistogramEMD(Buffer* buffer, float tolerance) const { in CompareHistogramEMD() 258 if (max_emd > static_cast<double>(tolerance)) { in CompareHistogramEMD() 260 " is greater than tolerance of " + std::to_string(tolerance)); in CompareHistogramEMD()
|
/third_party/vk-gl-cts/external/amber/src/samples/ |
H A D | image_diff.cc | 35 float tolerance = 1.0f; member 77 std::cerr << "Missing tolerance value for RMSE comparison." in ParseArgs() 82 sstream >> opts->tolerance; in ParseArgs() 84 std::cerr << "Invalid tolerance value " << args[i] << std::endl; in ParseArgs() 87 if (opts->tolerance < 0 || opts->tolerance > 255) { in ParseArgs() 97 std::cerr << "Missing tolerance value for histogram EMD comparison." in ParseArgs() 102 sstream >> opts->tolerance; in ParseArgs() 104 std::cerr << "Invalid tolerance value " << args[i] << std::endl; in ParseArgs() 107 if (opts->tolerance < in ParseArgs() [all...] |
/third_party/musl/src/linux/ |
H A D | clock_adjtime.c | 14 long long constant, precision, tolerance; member 28 long constant, precision, tolerance; member 50 .tolerance = utx->tolerance, in clock_adjtime() 74 utx->tolerance = ktx.tolerance; in clock_adjtime() 103 .tolerance = utx->tolerance, in clock_adjtime() 131 utx->tolerance = ktx.tolerance; in clock_adjtime() [all...] |
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/ |
H A D | ManualGlitchActivity.java | 57 public static final String KEY_TOLERANCE = "tolerance"; 86 float tolerance = (float) mTaperTolerance.linearToExponential( in setToleranceProgress() 88 setTolerance(tolerance); in setToleranceProgress() 89 mTextTolerance.setText("Tolerance = " + String.format("%5.3f", tolerance)); in setToleranceProgress() 106 private void setToleranceFader(float tolerance) { in setToleranceFader() argument 108 tolerance) * FADER_PROGRESS_MAX)); in setToleranceFader() 202 float tolerance = bundle.getFloat(KEY_TOLERANCE, DEFAULT_TOLERANCE); in configureStreamsFromBundle() 203 setToleranceFader(tolerance); in configureStreamsFromBundle() 204 setTolerance(tolerance); in configureStreamsFromBundle() 205 mTolerance = tolerance; in configureStreamsFromBundle() [all...] |
/third_party/skia/src/gpu/ |
H A D | GrDistanceFieldGenFromVector.cpp | 134 double tolerance = 0.0, in between_closed_open() 136 SkASSERT(tolerance >= 0.0); in between_closed_open() 137 double tolB = tolerance; in between_closed_open() 138 double tolC = tolerance; in between_closed_open() 148 tolB = tolerance / sqrt(4.0 * b * b + 1.0); in between_closed_open() 149 tolC = tolerance / sqrt(4.0 * c * c + 1.0); in between_closed_open() 157 double tolerance = 0.0, in between_closed() 159 SkASSERT(tolerance >= 0.0); in between_closed() 160 double tolB = tolerance; in between_closed() 161 double tolC = tolerance; in between_closed() [all...] |
/third_party/musl/compat/time32/ |
H A D | clock_adjtime32.c | 12 long constant, precision, tolerance; member 32 .tolerance = tx32->tolerance, in __clock_adjtime32() 56 tx32->tolerance = utx.tolerance; in __clock_adjtime32()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_lumakey.c | 32 double tolerance; member 117 s->white = av_clip_uint8((s->threshold + s->tolerance) * 255); in config_input() 118 s->black = av_clip_uint8((s->threshold - s->tolerance) * 255); in config_input() 123 s->white = av_clip((s->threshold + s->tolerance) * s->max, 0, s->max); in config_input() 124 s->black = av_clip((s->threshold - s->tolerance) * s->max, 0, s->max); in config_input() 188 { "tolerance", "set the tolerance value", OFFSET(tolerance), AV_OPT_TYPE_DOUBLE, {.dbl=0.01}, 0, 1, FLAGS },
|
H A D | vf_amplify.c | 37 float tolerance; member 129 if (abs_diff < threshold && abs_diff > tolerance) { \ 154 const float tolerance = s->tolerance; in amplify_frame() local 250 { "tolerance", "set tolerance", OFFSET(tolerance), AV_OPT_TYPE_FLOAT, {.dbl=0}, 0, UINT16_MAX, .flags = VFT },
|
H A D | avf_aphasemeter.c | 53 float tolerance; member 79 { "tolerance", "set phase tolerance for mono detection", OFFSET(tolerance), AV_OPT_TYPE_FLOAT, {.dbl = 0.}, 0, 1, FLAGS }, 80 { "t", "set phase tolerance for mono detection", OFFSET(tolerance), AV_OPT_TYPE_FLOAT, {.dbl = 0.}, 0, 1, FLAGS }, 252 float tolerance = 1.0f - s->tolerance; in filter_frame() local 319 mono_measurement = (tolerance - fphase) < FLT_EPSILON; in filter_frame()
|
/third_party/protobuf/src/google/protobuf/util/ |
H A D | field_comparator.cc | 187 Tolerance* tolerance = FindOrNull(map_tolerance_, &field); in CompareDoubleOrFloat() local 188 if (tolerance == NULL && has_default_tolerance_) { in CompareDoubleOrFloat() 189 tolerance = &default_tolerance_; in CompareDoubleOrFloat() 191 if (tolerance == NULL) { in CompareDoubleOrFloat() 198 value_1, value_2, static_cast<T>(tolerance->fraction), in CompareDoubleOrFloat() 199 static_cast<T>(tolerance->margin)); in CompareDoubleOrFloat()
|
/third_party/skia/include/core/ |
H A D | SkScalar.h | 137 SkScalar tolerance = SK_ScalarNearlyZero) { in SkScalarNearlyZero() 138 SkASSERT(tolerance >= 0); in SkScalarNearlyZero() 139 return SkScalarAbs(x) <= tolerance; in SkScalarNearlyZero() 143 SkScalar tolerance = SK_ScalarNearlyZero) { in SkScalarNearlyEqual() 144 SkASSERT(tolerance >= 0); in SkScalarNearlyEqual() 145 return SkScalarAbs(x-y) <= tolerance; in SkScalarNearlyEqual()
|
/third_party/skia/third_party/externals/oboe/tests/ |
H A D | testFlowgraph.cpp | 100 constexpr float tolerance = 0.0001f; // arbitrary in TEST() local 104 EXPECT_NEAR(expected, output[i], tolerance); in TEST() 108 EXPECT_NEAR(expected, output[i], tolerance); in TEST() 157 constexpr float tolerance = 0.000001f; // arbitrary in TEST() local 159 EXPECT_NEAR(expected[i], output[i], tolerance); in TEST()
|
/third_party/skia/tests/ |
H A D | ColorMatrixTest.cpp | 20 SkColor expected, SkColor actual, int tolerance) { in assert_color() 21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); in assert_color() 22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); in assert_color() 23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetG(expected) - SkColorGetG(actual))) <= tolerance); in assert_color() 24 REPORTER_ASSERT(reporter, abs((int)(SkColorGetB(expected) - SkColorGetB(actual))) <= tolerance); in assert_color() 19 assert_color(skiatest::Reporter* reporter, SkColor expected, SkColor actual, int tolerance) assert_color() argument
|
/third_party/libsnd/tests/ |
H A D | dft_cmp.h | 22 double dft_cmp_float (int linenum, const float *orig, const float *test, int len, double tolerance, int allow_exit) ; 24 double dft_cmp_double (int linenum, const double *orig, const double *test, int len, double tolerance, int allow_exit) ;
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcTextureRepeatModeTests.cpp | 514 bool isEqual(const GLubyte* color1, const GLubyte* color2, GLubyte tolerance) const; 576 bool TestClampModeForInternalFormat::isEqual(const GLubyte* color1, const GLubyte* color2, GLubyte tolerance) const in isEqual() 580 if (de::abs((int)color1[i] - (int)color2[i]) > tolerance) in isEqual() 849 const GLubyte tolerance = 0; in verifyRepeat() local 872 if (!isEqual(buf, red, tolerance)) in verifyRepeat() 879 if (!isEqual(buf, green, tolerance)) in verifyRepeat() 892 if (!isEqual(buf, blue, tolerance)) in verifyRepeat() 899 if (!isEqual(buf, white, tolerance)) in verifyRepeat() 933 const GLubyte tolerance = 0; in verifyMirroredRepeat() local 962 if (!isEqual(buf, white, tolerance)) in verifyMirroredRepeat() [all...] |
/third_party/gn/src/base/numerics/ |
H A D | ranges.h | 20 constexpr bool IsApproximatelyEqual(T lhs, T rhs, T tolerance) { in IsApproximatelyEqual() argument 22 return std::abs(rhs - lhs) <= tolerance; in IsApproximatelyEqual()
|
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/ |
H A D | ranges.h | 31 constexpr bool IsApproximatelyEqual(T lhs, T rhs, T tolerance) in IsApproximatelyEqual() argument 34 return std::abs(rhs - lhs) <= tolerance; in IsApproximatelyEqual()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | DepthStencilSamplingTests.cpp | 384 T tolerance = {}) { in DoSamplingTest() 386 [this, tolerance](T expected, wgpu::Buffer buffer) { 388 new ::detail::ExpectEq<T>(expected, tolerance)); 397 T tolerance = {}) { in DoSamplingTest() 399 [this, tolerance](T expected, wgpu::Buffer buffer) { 401 new ::detail::ExpectEq<T>(expected, tolerance)); 589 float tolerance = 0.0f; in TEST_P() local 591 tolerance = 0.001f; in TEST_P() 595 format, kNormalizedTextureValues, tolerance); in TEST_P() 598 format, kNormalizedTextureValues, tolerance); in TEST_P() [all...] |
/third_party/skia/modules/skottie/src/ |
H A D | SkottieTest.cpp | 445 tolerance; in DEF_TEST() member 496 std::fabs(shape_bounds.left() - expected_l) < tsize.tolerance, in DEF_TEST() 497 "%f %f %f %f %d", shape_bounds.left(), expected_l, tsize.tolerance, in DEF_TEST() 502 std::fabs(shape_bounds.right() - expected_r) < tsize.tolerance, in DEF_TEST() 503 "%f %f %f %f %d", shape_bounds.right(), expected_r, tsize.tolerance, in DEF_TEST() 516 tolerance; in DEF_TEST() member 568 std::fabs(shape_bounds.top() - expected_t) < tsize.tolerance, in DEF_TEST() 569 "%f %f %f %f %d", shape_bounds.top(), expected_t, tsize.tolerance, in DEF_TEST() 574 std::fabs(shape_bounds.bottom() - expected_b) < tsize.tolerance, in DEF_TEST() 575 "%f %f %f %f %d", shape_bounds.bottom(), expected_b, tsize.tolerance, in DEF_TEST() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | adjtimex.c | 39 tx.tolerance = 1; in adjtimex_0100() 67 tx.tolerance = 1; in adjtimex_time64_0100()
|
/third_party/skia/src/core/ |
H A D | SkRRectPriv.h | 33 static bool IsNearlySimpleCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero); 41 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
|
H A D | SkRRect.cpp | 320 bool SkRRectPriv::IsNearlySimpleCircular(const SkRRect& rr, SkScalar tolerance) { in IsNearlySimpleCircular() argument 322 return SkScalarNearlyEqual(simpleRadius, rr.fRadii[0].fY, tolerance) && in IsNearlySimpleCircular() 323 SkScalarNearlyEqual(simpleRadius, rr.fRadii[1].fX, tolerance) && in IsNearlySimpleCircular() 324 SkScalarNearlyEqual(simpleRadius, rr.fRadii[1].fY, tolerance) && in IsNearlySimpleCircular() 325 SkScalarNearlyEqual(simpleRadius, rr.fRadii[2].fX, tolerance) && in IsNearlySimpleCircular() 326 SkScalarNearlyEqual(simpleRadius, rr.fRadii[2].fY, tolerance) && in IsNearlySimpleCircular() 327 SkScalarNearlyEqual(simpleRadius, rr.fRadii[3].fX, tolerance) && in IsNearlySimpleCircular() 328 SkScalarNearlyEqual(simpleRadius, rr.fRadii[3].fY, tolerance); in IsNearlySimpleCircular() 331 bool SkRRectPriv::AllCornersCircular(const SkRRect& rr, SkScalar tolerance) { in AllCornersCircular() argument 332 return SkScalarNearlyEqual(rr.fRadii[0].fX, rr.fRadii[0].fY, tolerance) in AllCornersCircular() [all...] |
/third_party/ltp/testcases/kernel/syscalls/clock_adjtime/ |
H A D | clock_adjtime.h | 30 __kernel_long_t tolerance;/* clock frequency tolerance (ppm) member 68 long long tolerance;/* clock frequency tolerance (ppm) member 138 " tolerance: "fmt"\n" \ 151 tx.tolerance, \
|
/third_party/skia/src/pdf/ |
H A D | SkPDFUtils.h | 56 bool doConsumeDegerates, SkWStream* content, SkScalar tolerance = 0.25f); 58 SkWStream* content, SkScalar tolerance = 0.25f) { in EmitPath() 59 SkPDFUtils::EmitPath(path, paintStyle, true, content, tolerance); in EmitPath()
|