Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/
Dscale_and_translate_op_test.cc283 const Vector2f kScale(1.0f, 1.0f); in TEST_F() local
285 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
299 const Vector2f kScale(2.0f, 2.0f); in TEST_F() local
301 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
315 const Vector2f kScale(0.5f, 0.5f); in TEST_F() local
317 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
331 const Vector2f kScale(1.0f / (kNumRowSquares * kSquareSize), in TEST_F() local
334 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
348 const Vector2f kScale(1.0f / (kNumRowSquares * kSquareSize), in TEST_F() local
351 RunTest(kOutputImageHeight, kOutputImageWidth, kScale, kTranslate); in TEST_F()
[all …]
/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/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.cpp68 static constexpr SkScalar kScale = 1.5; in onPaint() local
70 SkScalar kScale = fDisplayScale; in onPaint() local
93 SkRect::MakeXYWH(canvasSize.width() * (1 - kScale), in onPaint()
95 canvasSize.width() * kScale, in onPaint()
96 canvasSize.height() * kScale), in onPaint()
/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/skia/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/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/skia/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/tensorflow/tensorflow/lite/kernels/internal/reference/
Dportable_tensor_utils.cc51 const int kScale = 127; in PortableSymmetricQuantizeFloats() local
58 *scaling_factor = range / kScale; in PortableSymmetricQuantizeFloats()
59 const float scaling_factor_inv = kScale / range; in PortableSymmetricQuantizeFloats()
64 quantized_values[i] = std::min(kScale, std::max(-kScale, quantized_value)); in PortableSymmetricQuantizeFloats()
/external/webrtc/webrtc/base/
Drandom_unittest.cc287 const double kScale = 1 / (kStddev * sqrt(2.0 * kPi)); in TEST() local
292 double f_left = kScale * exp((n - kMean - 0.5) * (n - kMean - 0.5) / kDiv); in TEST()
293 double f_mid = kScale * exp((n - kMean) * (n - kMean) / kDiv); in TEST()
294 double f_right = kScale * exp((n - kMean + 0.5) * (n - kMean + 0.5) / kDiv); in TEST()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dneon_tensor_utils.cc888 const int kScale = 127; in NeonSymmetricQuantizeFloats() local
895 *scaling_factor = range / kScale; in NeonSymmetricQuantizeFloats()
896 const float scaling_factor_inv = kScale / range; in NeonSymmetricQuantizeFloats()
905 const int32x4_t scale_i32x4 = vmovq_n_s32(kScale); in NeonSymmetricQuantizeFloats()
906 const int32x4_t neg_scale_i32x4 = vmovq_n_s32(-kScale); in NeonSymmetricQuantizeFloats()
955 quantized_values[i] = std::min(kScale, std::max(-kScale, quantized_value)); in NeonSymmetricQuantizeFloats()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dsubgraph_quantizer.cc175 const int32_t kScale = std::numeric_limits<int32_t>::max(); in SymmetricPerChannelBiasQuantize() local
183 std::min(kScale, std::max(-kScale, quantized_value)); in SymmetricPerChannelBiasQuantize()
/external/webrtc/webrtc/modules/audio_processing/utility/
Ddelay_estimator_wrapper.c101 const float kScale = 1 / 64.0; in BinarySpectrumFloat() local
116 MeanEstimatorFloat(spectrum[i], kScale, &(threshold_spectrum[i].float_)); in BinarySpectrumFloat()
/external/skia/src/opts/
DSkRasterPipeline_opts.h2118 template <int kScale>
2120 *x = unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bilinear_x()
2124 if (kScale == -1) { scalex = 1.0f - fx; } in bilinear_x()
2125 if (kScale == +1) { scalex = fx; } in bilinear_x()
2128 template <int kScale>
2130 *y = unaligned_load<F>(ctx->y) + (kScale * 0.5f); in bilinear_y()
2134 if (kScale == -1) { scaley = 1.0f - fy; } in bilinear_y()
2135 if (kScale == +1) { scaley = fy; } in bilinear_y()
2160 template <int kScale>
2162 *x = unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bicubic_x()
[all …]
/external/skqp/src/opts/
DSkRasterPipeline_opts.h2102 template <int kScale>
2104 *x = unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bilinear_x()
2108 if (kScale == -1) { scalex = 1.0f - fx; } in bilinear_x()
2109 if (kScale == +1) { scalex = fx; } in bilinear_x()
2112 template <int kScale>
2114 *y = unaligned_load<F>(ctx->y) + (kScale * 0.5f); in bilinear_y()
2118 if (kScale == -1) { scaley = 1.0f - fy; } in bilinear_y()
2119 if (kScale == +1) { scaley = fy; } in bilinear_y()
2144 template <int kScale>
2146 *x = unaligned_load<F>(ctx->x) + (kScale * 0.5f); in bicubic_x()
[all …]