/external/skqp/src/core/ |
D | SkBlurMask.cpp | 407 dst->fBounds.set(SkScalarRoundToInt(src.fLeft - pad), in BlurRect() 408 SkScalarRoundToInt(src.fTop - pad), in BlurRect() 409 SkScalarRoundToInt(src.fRight + pad), in BlurRect() 410 SkScalarRoundToInt(src.fBottom + pad)); in BlurRect() 421 dst->fBounds.set(SkScalarRoundToInt(src.fLeft), in BlurRect() 422 SkScalarRoundToInt(src.fTop), in BlurRect() 423 SkScalarRoundToInt(src.fRight), in BlurRect() 424 SkScalarRoundToInt(src.fBottom)); // restore trimmed bounds in BlurRect() 475 dst->fBounds.set(SkScalarRoundToInt(src.fLeft), in BlurRect() 476 SkScalarRoundToInt(src.fTop), in BlurRect() [all …]
|
D | SkColor.cpp | 79 U8CPU v_byte = SkScalarRoundToInt(v * 255); in SkHSVToColor() 88 unsigned p = SkScalarRoundToInt((SK_Scalar1 - s) * v * 255); in SkHSVToColor() 89 unsigned q = SkScalarRoundToInt((SK_Scalar1 - (s * f)) * v * 255); in SkHSVToColor() 90 unsigned t = SkScalarRoundToInt((SK_Scalar1 - (s * (SK_Scalar1 - f))) * v * 255); in SkHSVToColor()
|
/external/skia/src/core/ |
D | SkImageFilterTypes.cpp | 18 return SkIVector::Make(SkScalarRoundToInt(v.fX), SkScalarRoundToInt(v.fY)); in map_as_vector() 77 return SkIPoint::Make(SkScalarRoundToInt(p.fX), SkScalarRoundToInt(p.fY)); in map()
|
D | SkDraw_atlas.cpp | 43 ctx->rgba[0] = SkScalarRoundToInt(rgba[0]*255); ctx->r = rgba[0]; in load_color() 44 ctx->rgba[1] = SkScalarRoundToInt(rgba[1]*255); ctx->g = rgba[1]; in load_color() 45 ctx->rgba[2] = SkScalarRoundToInt(rgba[2]*255); ctx->b = rgba[2]; in load_color() 46 ctx->rgba[3] = SkScalarRoundToInt(rgba[3]*255); ctx->a = rgba[3]; in load_color()
|
D | SkColor.cpp | 80 U8CPU v_byte = SkScalarRoundToInt(v * 255); in SkHSVToColor() 89 unsigned p = SkScalarRoundToInt((SK_Scalar1 - s) * v * 255); in SkHSVToColor() 90 unsigned q = SkScalarRoundToInt((SK_Scalar1 - (s * f)) * v * 255); in SkHSVToColor() 91 unsigned t = SkScalarRoundToInt((SK_Scalar1 - (s * (SK_Scalar1 - f))) * v * 255); in SkHSVToColor()
|
/external/skqp/samplecode/ |
D | SampleHT.cpp | 27 return SkColorSetARGB(SkScalarRoundToInt(f[0]), in floats_to_color() 28 SkScalarRoundToInt(f[1]), in floats_to_color() 29 SkScalarRoundToInt(f[2]), in floats_to_color() 30 SkScalarRoundToInt(f[3])); in floats_to_color()
|
D | SampleLayerMask.cpp | 37 int w = SkScalarRoundToInt(r.width()); in drawMask() 38 int h = SkScalarRoundToInt(r.height()); in drawMask()
|
/external/skqp/src/shaders/ |
D | SkLights.cpp | 54 SkScalarRoundToInt(color.fX), in xform_color() 55 SkScalarRoundToInt(color.fY), in xform_color() 56 SkScalarRoundToInt(color.fZ)); in xform_color()
|
/external/skqp/gm/ |
D | wacky_yuv_formats.cpp | 201 yuv[0] = SkScalarRoundToInt( range * Ey + off ); in convert_rgba_to_yuva_601_shared() 202 yuv[1] = SkScalarRoundToInt( 224 * Ecb + 128 ); in convert_rgba_to_yuva_601_shared() 203 yuv[2] = SkScalarRoundToInt( 224 * Ecr + 128 ); in convert_rgba_to_yuva_601_shared() 231 yuv[0] = SkScalarRoundToInt( 219 * Ey + 16 ); in convert_rgba_to_yuva_709() 232 yuv[1] = SkScalarRoundToInt( 224 * Ecb + 128 ); in convert_rgba_to_yuva_709() 233 yuv[2] = SkScalarRoundToInt( 224 * Ecr + 128 ); in convert_rgba_to_yuva_709() 244 uint8_t r = SkScalarPin(SkScalarRoundToInt( 1.0f * c + 1.402f * e ), in convert_yuva_to_rgba_jpeg() 246 uint8_t g = SkScalarPin(SkScalarRoundToInt( 1.0f * c - (0.344136f * d) - (0.714136f * e)), in convert_yuva_to_rgba_jpeg() 248 uint8_t b = SkScalarPin(SkScalarRoundToInt( 1.0f * c + 1.773f * d ), in convert_yuva_to_rgba_jpeg() 259 uint8_t r = SkScalarPin(SkScalarRoundToInt( 1.164f * c + 1.596f * e ), 0, 255); in convert_yuva_to_rgba_601() [all …]
|
/external/skia/src/codec/ |
D | SkScalingCodec.h | 23 dim.fWidth = std::max(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); in onGetScaledDimensions() 24 dim.fHeight = std::max(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); in onGetScaledDimensions()
|
/external/skia/tests/ |
D | PathCoverageTest.cpp | 29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance() 30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance() 81 return estimate_pointCount(SkScalarRoundToInt(distance)); in quadraticPointCount_CE()
|
D | PathOpsConicIntersectionTest.cpp | 92 SkScalarRoundToInt(bounds.width()), SkScalarRoundToInt(bounds.height()))); in writePng() 129 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeDPng() 130 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeDPng() 266 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeFrames() 267 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeFrames()
|
/external/skqp/tests/ |
D | PathCoverageTest.cpp | 29 int idx = SkAbs32(SkScalarRoundToInt(dx)); in cheap_distance() 30 int idy = SkAbs32(SkScalarRoundToInt(dy)); in cheap_distance() 81 return estimate_pointCount(SkScalarRoundToInt(distance)); in quadraticPointCount_CE()
|
D | PathOpsConicIntersectionTest.cpp | 92 SkScalarRoundToInt(bounds.width()), SkScalarRoundToInt(bounds.height()))); in writePng() 130 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeDPng() 131 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeDPng() 268 SkScalarRoundToInt(SkDoubleToScalar(bounds.width())), in writeFrames() 269 SkScalarRoundToInt(SkDoubleToScalar(bounds.height())))); in writeFrames()
|
/external/skqp/tools/skdiff/ |
D | skdiff_html.cpp | 128 if (SkScalarRoundToInt(diff.fAverageMismatchA) > 0) { in print_label_cell() 130 stream->writeDecAsText(SkScalarRoundToInt(diff.fAverageMismatchA)); in print_label_cell() 134 stream->writeDecAsText(SkScalarRoundToInt(diff.fMaxMismatchA)); in print_label_cell() 141 stream->writeDecAsText(SkScalarRoundToInt(MAX3(diff.fAverageMismatchR, in print_label_cell()
|
/external/skia/tools/skdiff/ |
D | skdiff_html.cpp | 128 if (SkScalarRoundToInt(diff.fAverageMismatchA) > 0) { in print_label_cell() 130 stream->writeDecAsText(SkScalarRoundToInt(diff.fAverageMismatchA)); in print_label_cell() 134 stream->writeDecAsText(SkScalarRoundToInt(diff.fMaxMismatchA)); in print_label_cell() 141 stream->writeDecAsText(SkScalarRoundToInt(MAX3(diff.fAverageMismatchR, in print_label_cell()
|
/external/skia/samplecode/ |
D | SampleMixer.cpp | 76 return fRect.contains(SkScalarRoundToInt(x), in onFindClickHandler() 77 SkScalarRoundToInt(y)) ? new Click() : nullptr; in onFindClickHandler()
|
/external/skia/bench/ |
D | BlurRectBench.cpp | 85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad)); in BlurRectDirectBench() 137 name.printf("blurrect_boxfilter_%d", SkScalarRoundToInt(rad)); in BlurRectBoxFilterBench() 165 name.printf("blurrect_gaussian_%d", SkScalarRoundToInt(rad)); in BlurRectGaussianBench()
|
/external/skqp/bench/ |
D | BlurRectBench.cpp | 85 name.printf("blurrect_direct_%d", SkScalarRoundToInt(rad)); in BlurRectDirectBench() 137 name.printf("blurrect_boxfilter_%d", SkScalarRoundToInt(rad)); in BlurRectBoxFilterBench() 165 name.printf("blurrect_gaussian_%d", SkScalarRoundToInt(rad)); in BlurRectGaussianBench()
|
/external/skqp/src/compute/sk/ |
D | SkSurface_Compute.cpp | 135 desc.fWidth = SkScalarRoundToInt(window->width()); 136 desc.fHeight = SkScalarRoundToInt(window->height());
|
/external/skqp/include/core/ |
D | SkSize.h | 80 SkISize toRound() const { return {SkScalarRoundToInt(fWidth), SkScalarRoundToInt(fHeight)}; } in toRound()
|
/external/skia/include/core/ |
D | SkSize.h | 78 SkISize toRound() const { return {SkScalarRoundToInt(fWidth), SkScalarRoundToInt(fHeight)}; } in toRound()
|
/external/skqp/tools/ |
D | skhello.cpp | 80 int w = SkScalarRoundToInt(width) + 30; in main() 81 int h = SkScalarRoundToInt(spacing) + 30; in main()
|
/external/skia/tools/ |
D | skhello.cpp | 80 int w = SkScalarRoundToInt(width) + 30; in main() 81 int h = SkScalarRoundToInt(spacing) + 30; in main()
|
/external/skqp/src/effects/ |
D | SkDiscretePathEffect.cpp | 91 uint32_t seed = fSeedAssist ^ SkScalarRoundToInt(meas.getLength()); in onFilterPath() 104 int n = SkScalarRoundToInt(length / fSegLength); in onFilterPath()
|