Home
last modified time | relevance | path

Searched refs:sk_float_round2int (Results 1 – 25 of 30) sorted by relevance

12

/external/skqp/src/core/
DSkMaskGamma.cpp98 table[i] = SkToU8(sk_float_round2int(255.0f * srca)); in SkTMaskGamma_build_correcting_lut()
120 SkASSERT(sk_float_round2int(255.0f * result) <= 255); in SkTMaskGamma_build_correcting_lut()
122 table[i] = SkToU8(sk_float_round2int(255.0f * result)); in SkTMaskGamma_build_correcting_lut()
DSkColorFilter.cpp60 return SkColorSetARGB(sk_float_round2int(c4.fA*255), in filterColor()
61 sk_float_round2int(c4.fR*255), in filterColor()
62 sk_float_round2int(c4.fG*255), in filterColor()
63 sk_float_round2int(c4.fB*255)); in filterColor()
DSkDevice.cpp87 return x == (float) sk_float_round2int(x); in is_int()
DSkDistanceFieldGen.cpp447 unsigned char val = sk_float_round2int(255*result); in generate_distance_field_from_image()
/external/skia/src/core/
DSkMaskGamma.cpp98 table[i] = SkToU8(sk_float_round2int(255.0f * srca)); in SkTMaskGamma_build_correcting_lut()
120 SkASSERT(sk_float_round2int(255.0f * result) <= 255); in SkTMaskGamma_build_correcting_lut()
122 table[i] = SkToU8(sk_float_round2int(255.0f * result)); in SkTMaskGamma_build_correcting_lut()
DSkDistanceFieldGen.cpp448 unsigned char val = sk_float_round2int(255*result); in generate_distance_field_from_image()
/external/skia/gm/
Dimagefromyuvtextures.cpp89 sk_float_round2int(m[0]*r + m[1]*g + m[2]*b + m[3]*a + 255*m[4])); in CreatePlanes()
90 yuvPixels[3][j*pixmaps.planes()[0].width() + i] = SkToU8(sk_float_round2int( in CreatePlanes()
115 yuvPixels[1][uvIndex] = SkToU8(sk_float_round2int( in CreatePlanes()
117 yuvPixels[2][uvIndex] = SkToU8(sk_float_round2int( in CreatePlanes()
/external/skia/tools/viewer/
DTouchGesture.cpp81 tx = (float)sk_float_round2int(tx); in evaluateMatrix()
82 ty = (float)sk_float_round2int(ty); in evaluateMatrix()
240 dx = (float)sk_float_round2int(dx); in touchMoved()
241 dy = (float)sk_float_round2int(dy); in touchMoved()
/external/skqp/tools/viewer/
DTouchGesture.cpp81 tx = (float)sk_float_round2int(tx); in evaluateMatrix()
82 ty = (float)sk_float_round2int(ty); in evaluateMatrix()
239 dx = (float)sk_float_round2int(dx); in touchMoved()
240 dy = (float)sk_float_round2int(dy); in touchMoved()
/external/skqp/modules/sksg/src/
DSkSGRenderNode.cpp24 alpha = SkToU8(sk_float_round2int(initial_alpha * fOpacity)); in modulatePaint()
/external/skqp/src/effects/
DSkTableMaskFilter.cpp131 table[i] = SkTPin(sk_float_round2int(powf(x, g) * 255), 0, 255); in MakeGammaTable()
/external/skia/src/effects/
DSkTableMaskFilter.cpp132 table[i] = SkTPin(sk_float_round2int(powf(x, g) * 255), 0, 255); in MakeGammaTable()
/external/skqp/include/private/
DSkFloatingPoint.h119 #define sk_float_round2int(x) sk_float_saturate2int(sk_float_floor((x) + 0.5f)) macro
/external/skia/include/core/
DSkScalar.h36 #define SkScalarRoundToInt(x) sk_float_round2int(x)
DSkPaint.h287 uint8_t getAlpha() const { return sk_float_round2int(this->getAlphaf() * 255); } in getAlpha()
/external/skqp/include/core/
DSkScalar.h36 #define SkScalarRoundToInt(x) sk_float_round2int(x)
DSkPaint.h268 uint8_t getAlpha() const { return sk_float_round2int(fColor4f.fA * 255); } in getAlpha()
DSkMatrix44.h78 #define SkMScalarRoundToInt(x) sk_float_round2int(x)
/external/skqp/src/ports/
DSkScalerContext_win_dw.cpp1016 color = SkColorSetARGB(sk_float_round2int(colorGlyph->runColor.a * 255), in generateColorGlyphImage()
1017 sk_float_round2int(colorGlyph->runColor.r * 255), in generateColorGlyphImage()
1018 sk_float_round2int(colorGlyph->runColor.g * 255), in generateColorGlyphImage()
1019 sk_float_round2int(colorGlyph->runColor.b * 255)); in generateColorGlyphImage()
/external/skia/src/ports/
DSkScalerContext_win_dw.cpp1042 color = SkColorSetARGB(sk_float_round2int(colorGlyph->runColor.a * 255), in generateColorGlyphImage()
1043 sk_float_round2int(colorGlyph->runColor.r * 255), in generateColorGlyphImage()
1044 sk_float_round2int(colorGlyph->runColor.g * 255), in generateColorGlyphImage()
1045 sk_float_round2int(colorGlyph->runColor.b * 255)); in generateColorGlyphImage()
/external/skia/include/private/
DSkFloatingPoint.h147 #define sk_float_round2int(x) sk_float_saturate2int(sk_float_floor((x) + 0.5f)) macro
/external/skia/modules/sksg/src/
DSkSGRenderNode.cpp54 return SkToU8(sk_float_round2int(alpha * opacity)); in ScaleAlpha()
/external/skqp/src/pdf/
DSkPDFUtils.cpp276 int x = sk_float_round2int(value * kFactor); in ColorToDecimalF()
/external/skia/src/pdf/
DSkPDFUtils.cpp284 int x = sk_float_round2int(value * kFactor); in ColorToDecimalF()
/external/skia/src/utils/
DSkCustomTypeface.cpp249 stream->write16(SkToS16(sk_float_round2int(x * scale)) & 0xFFFF); in write_scaled_float_to_16()

12