Home
last modified time | relevance | path

Searched refs:kScale (Results 1 – 25 of 41) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/image/
Dscale_and_translate_op_test.cc282 const Vector2f kScale(1.0f, 1.0f); in TEST_F() local
284 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
298 const Vector2f kScale(2.0f, 2.0f); in TEST_F() local
300 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
314 const Vector2f kScale(0.5f, 0.5f); in TEST_F() local
316 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
330 const Vector2f kScale(1.0f / (kNumRowSquares * kSquareSize), in TEST_F() local
333 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
347 const Vector2f kScale(1.0f / (kNumRowSquares * kSquareSize), in TEST_F() local
350 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
[all …]
/external/oboe/apps/fxlab/app/src/main/cpp/effects/utils/
DWhiteNoise.h19 const int kScale; variable
21 WhiteNoise(int scale): kScale(scale) {} in WhiteNoise()
29 float ret = r_0 + counter * (r_1 - r_0) / kScale; in operator()
30 if (++counter == kScale) counter = 0; in operator()
/external/skqp/bench/
DColorPrivBench.cpp12 template <bool kFast, bool kScale>
18 fName.append(kScale ? "_255" : "_256"); in FourByteInterpBench()
39 if (kScale) fScales[256] = 255; // We'll just do 255 twice if we're limited to [0,255]. in onDelayedSetup()
60 if (kFast && kScale) { in onDraw()
64 } else if (kScale) { in onDraw()
/external/skia/bench/
DColorPrivBench.cpp12 template <bool kFast, bool kScale>
18 fName.append(kScale ? "_255" : "_256"); in FourByteInterpBench()
39 if (kScale) fScales[256] = 255; // We'll just do 255 twice if we're limited to [0,255]. in onDelayedSetup()
60 if (kFast && kScale) { in onDraw()
64 } else if (kScale) { in onDraw()
/external/oboe/apps/fxlab/app/src/main/cpp/effects/
DDriveControl.h28 mFunction(function), kScale(scale) {} in DriveControl()
31 std::for_each(beg, end, [this](auto &x){x *= kScale;}); in operator()
38 const double kScale; variable
39 const double recip = 1 / kScale;
/external/skia/gm/
Dyuv420_odd_dim.cpp22 static constexpr int kScale = 10; variable
55 kScale* kImageDim.width(), kScale* kImageDim.height()) {
80 canvas->scale(kScale, kScale);
Drsxtext.cpp26 return SkISize::Make(kSZ*kScale*2.1f, kSZ*kScale*2.1f); in onISize()
60 canvas->scale(kScale, kScale); in onDraw()
105 kScale = 1.4f; member in RSXShaderGM
Dblurredclippedcircle.cpp50 constexpr float kScale = 2.0f; in onDraw() local
51 canvas->scale(kScale, kScale); in onDraw()
Ddashing.cpp622 static constexpr SkScalar kScale = 100.f; variable
623 static constexpr SkScalar kIntervals[] = {10/kScale, 5/kScale};
626 paint.setStrokeWidth(0.25f/kScale);
628 static constexpr SkScalar kSubstep = 0.05f/kScale;
631 canvas->scale(kScale, kScale);
635 for (SkScalar x = -.5f*kIntervals[1]; x < 105/kScale; x += (kStep + kSubstep)) {
636 canvas->drawLine({x, 0}, {x, 100/kScale}, paint);
637 canvas->drawLine({0, x}, {100/kScale, x}, paint);
639 canvas->translate(110/kScale, 0);
Dimage_shader.cpp170 constexpr float kScale = 1.0f/6; variable
171 const SkRect dst = {0, 0, kScale*N, kScale*N};
/external/skia/src/gpu/tessellate/
DGrVectorXform.h32 fType = Type::kScale; in GrVectorXform()
44 case Type::kScale: in operator()
55 case Type::kScale: in operator()
63 enum class Type { kIdentity, kScale, kAffine } fType; enumerator
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dclock.cc213 enum { kScale = 30 }; enumerator
223 static_assert(((kMinNSBetweenSamples << (kScale + 1)) >> (kScale + 1)) ==
354 return base_ns + ((delta_cycles * nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanos()
365 int safe_shift = kScale; in SafeDivideAndScale()
369 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()
420 ((delta_cycles * sample.nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanosSlowPath()
470 (estimated_scaled_ns >> (kScale - s)); in UpdateLastSample()
/external/openscreen/third_party/abseil/src/absl/time/
Dclock.cc211 enum { kScale = 30 }; enumerator
221 static_assert(((kMinNSBetweenSamples << (kScale + 1)) >> (kScale + 1)) ==
352 return base_ns + ((delta_cycles * nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanos()
363 int safe_shift = kScale; in SafeDivideAndScale()
367 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()
418 ((delta_cycles * sample.nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanosSlowPath()
468 (estimated_scaled_ns >> (kScale - s)); in UpdateLastSample()
/external/libtextclassifier/abseil-cpp/absl/time/
Dclock.cc213 enum { kScale = 30 }; enumerator
223 static_assert(((kMinNSBetweenSamples << (kScale + 1)) >> (kScale + 1)) ==
354 return base_ns + ((delta_cycles * nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanos()
365 int safe_shift = kScale; in SafeDivideAndScale()
369 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()
420 ((delta_cycles * sample.nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanosSlowPath()
470 (estimated_scaled_ns >> (kScale - s)); in UpdateLastSample()
/external/webrtc/third_party/abseil-cpp/absl/time/
Dclock.cc213 enum { kScale = 30 }; enumerator
223 static_assert(((kMinNSBetweenSamples << (kScale + 1)) >> (kScale + 1)) ==
354 return base_ns + ((delta_cycles * nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanos()
365 int safe_shift = kScale; in SafeDivideAndScale()
369 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()
420 ((delta_cycles * sample.nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanosSlowPath()
470 (estimated_scaled_ns >> (kScale - s)); in UpdateLastSample()
/external/abseil-cpp/absl/time/
Dclock.cc213 enum { kScale = 30 }; enumerator
223 static_assert(((kMinNSBetweenSamples << (kScale + 1)) >> (kScale + 1)) ==
354 return base_ns + ((delta_cycles * nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanos()
365 int safe_shift = kScale; in SafeDivideAndScale()
369 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()
420 ((delta_cycles * sample.nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanosSlowPath()
470 (estimated_scaled_ns >> (kScale - s)); in UpdateLastSample()
/external/angle/third_party/abseil-cpp/absl/time/
Dclock.cc139 enum { kScale = 30 }; enumerator
149 static_assert(((kMinNSBetweenSamples << (kScale + 1)) >> (kScale + 1)) ==
359 return base_ns + ((delta_cycles * nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanos()
370 int safe_shift = kScale; in SafeDivideAndScale()
374 uint64_t scaled_b = b >> (kScale - safe_shift); in SafeDivideAndScale()
426 ((delta_cycles * sample.nsscaled_per_cycle) >> kScale); in GetCurrentTimeNanosSlowPath()
481 (estimated_scaled_ns >> (kScale - s)); in UpdateLastSample()
/external/skqp/gm/
Dblurredclippedcircle.cpp42 constexpr float kScale = 2.0f; in onDraw() local
43 canvas->scale(kScale, kScale); in onDraw()
Dlightingshader.cpp118 m.postTranslate(kScale * v.fX, kScale * v.fY); in drawPair()
147 static constexpr SkScalar kScale = kGMSize/2.0f - kTexSize/2.0f; member in skiagm::LightingShaderGM
/external/skqp/tools/viewer/
DStatsLayer.cpp67 static constexpr SkScalar kScale = 1.5; in onPaint() local
69 SkScalar kScale = fDisplayScale; in onPaint() local
91 SkRect::MakeXYWH(canvasSize.width() * (1 - kScale), in onPaint()
93 canvasSize.width() * kScale, in onPaint()
94 canvasSize.height() * kScale), in onPaint()
/external/skia/tools/viewer/
DStatsLayer.cpp77 static constexpr SkScalar kScale = 1.5; in onPaint() local
79 SkScalar kScale = fDisplayScale; in onPaint() local
102 SkRect::MakeXYWH(canvasSize.width() * (1 - kScale), in onPaint()
104 canvasSize.width() * kScale, in onPaint()
105 canvasSize.height() * kScale))); in onPaint()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc240 const int32_t kScale = std::numeric_limits<int32_t>::max(); in AdjustWeightsForBiasScale() local
266 0.5 * input_scale * weight_scales[i] * kScale) { in AdjustWeightsForBiasScale()
267 quant_params->max[i] = 2.0 * std::abs(bias_data[i]) / kScale * in AdjustWeightsForBiasScale()
279 if (bias_half_range / kScale >= 0.5 * input_scale * weight_scales[0]) { in AdjustWeightsForBiasScale()
281 2.0 * bias_half_range / kScale * (kMinQuantizedValue / input_scale); in AdjustWeightsForBiasScale()
283 2.0 * bias_half_range / kScale * (kMaxQuantizedValue / input_scale); in AdjustWeightsForBiasScale()
340 const int32_t kScale = std::numeric_limits<int16_t>::max(); in SymmetricQuantizeFloatsToInt16() local
345 buffer[i] = std::min(kScale, std::max(-kScale, quantized_value)); in SymmetricQuantizeFloatsToInt16()
604 const BiasType kScale = std::numeric_limits<BiasType>::max(); in SymmetricBiasQuantize() local
613 buffer[idx] = std::min(kScale, std::max(-kScale, quantized_value)); in SymmetricBiasQuantize()
/external/skqp/src/core/
DSkColorMatrixFilterRowMajor255.cpp236 static const float kScale = 1.0f / 255.0f; in onSetData() local
238 m[4] * kScale, m[9] * kScale, m[14] * kScale, m[19] * kScale, in onSetData()
/external/webrtc/rtc_base/
Drandom_unittest.cc289 const double kScale = 1 / (kStddev * sqrt(2.0 * kPi)); in TEST() local
294 double f_left = kScale * exp((n - kMean - 0.5) * (n - kMean - 0.5) / kDiv); in TEST()
295 double f_mid = kScale * exp((n - kMean) * (n - kMean) / kDiv); in TEST()
296 double f_right = kScale * exp((n - kMean + 0.5) * (n - kMean + 0.5) / kDiv); in TEST()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2CellId.java840 final double kScale = 1.0 / MAX_SIZE; in faceSiTiToXYZ() local
841 double u = S2Projections.stToUV(kScale * si); in faceSiTiToXYZ()
842 double v = S2Projections.stToUV(kScale * ti); in faceSiTiToXYZ()
860 final double kScale = 1.0 / MAX_SIZE; in fromFaceIJWrap() local
861 double s = kScale * ((i << 1) + 1 - MAX_SIZE); in fromFaceIJWrap()
862 double t = kScale * ((j << 1) + 1 - MAX_SIZE); in fromFaceIJWrap()

12