/external/tensorflow/tensorflow/core/kernels/ |
D | scale_and_translate_op_test.cc | 283 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/ |
D | ColorPrivBench.cpp | 12 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/ |
D | ColorPrivBench.cpp | 12 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/ |
D | StatsLayer.cpp | 67 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/ |
D | StatsLayer.cpp | 68 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/ |
D | blurredclippedcircle.cpp | 42 constexpr float kScale = 2.0f; in onDraw() local 43 canvas->scale(kScale, kScale); in onDraw()
|
D | lightingshader.cpp | 118 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/ |
D | blurredclippedcircle.cpp | 42 constexpr float kScale = 2.0f; in onDraw() local 43 canvas->scale(kScale, kScale); in onDraw()
|
D | lightingshader.cpp | 118 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/ |
D | SkColorMatrixFilterRowMajor255.cpp | 236 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/ |
D | SkColorMatrixFilterRowMajor255.cpp | 236 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/ |
D | portable_tensor_utils.cc | 51 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/ |
D | random_unittest.cc | 287 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/ |
D | neon_tensor_utils.cc | 888 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/ |
D | subgraph_quantizer.cc | 175 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/ |
D | delay_estimator_wrapper.c | 101 const float kScale = 1 / 64.0; in BinarySpectrumFloat() local 116 MeanEstimatorFloat(spectrum[i], kScale, &(threshold_spectrum[i].float_)); in BinarySpectrumFloat()
|
/external/skia/src/opts/ |
D | SkRasterPipeline_opts.h | 2118 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/ |
D | SkRasterPipeline_opts.h | 2102 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 …]
|