Home
last modified time | relevance | path

Searched refs:SkToU8 (Results 1 – 25 of 54) sorted by relevance

123

/external/skia/src/animator/
DSkTime.cpp26 t->fMonth = SkToU8(syst.wMonth); in GetDateTime()
27 t->fDayOfWeek = SkToU8(syst.wDayOfWeek); in GetDateTime()
28 t->fDay = SkToU8(syst.wDay); in GetDateTime()
29 t->fHour = SkToU8(syst.wHour); in GetDateTime()
30 t->fMinute = SkToU8(syst.wMinute); in GetDateTime()
31 t->fSecond = SkToU8(syst.wSecond); in GetDateTime()
58 t->fMonth = SkToU8(syst.tm_mon + 1); in GetDateTime()
59 t->fDayOfWeek = SkToU8(syst.tm_wday); in GetDateTime()
60 t->fDay = SkToU8(syst.tm_mday); in GetDateTime()
61 t->fHour = SkToU8(syst.tm_hour); in GetDateTime()
[all …]
DSkDrawColor.cpp230 alpha = scalar == SK_Scalar1 ? 255 : SkToU8((U8CPU) (scalar * 256)); in setProperty()
232 alpha = SkToU8((scalar - (scalar >= SK_ScalarHalf)) >> 8); in setProperty()
240 SkColorGetG(color), SkToU8((U8CPU) scalar)); in setProperty()
245 SkToU8((U8CPU) scalar), SkColorGetB(color)); in setProperty()
253 color = SkColorSetARGB(SkColorGetA(color), SkToU8((U8CPU) scalar), in setProperty()
/external/skia/src/ports/
DSkTime_Unix.cpp25 dt->fMonth = SkToU8(tstruct->tm_mon + 1); in GetDateTime()
26 dt->fDayOfWeek = SkToU8(tstruct->tm_wday); in GetDateTime()
27 dt->fDay = SkToU8(tstruct->tm_mday); in GetDateTime()
28 dt->fHour = SkToU8(tstruct->tm_hour); in GetDateTime()
29 dt->fMinute = SkToU8(tstruct->tm_min); in GetDateTime()
30 dt->fSecond = SkToU8(tstruct->tm_sec); in GetDateTime()
DSkTime_win.cpp20 dt->fMonth = SkToU8(st.wMonth + 1); in GetDateTime()
21 dt->fDayOfWeek = SkToU8(st.wDayOfWeek); in GetDateTime()
22 dt->fDay = SkToU8(st.wDay); in GetDateTime()
23 dt->fHour = SkToU8(st.wHour); in GetDateTime()
24 dt->fMinute = SkToU8(st.wMinute); in GetDateTime()
25 dt->fSecond = SkToU8(st.wSecond); in GetDateTime()
DSkFontHost_gamma.cpp46 table[i] = SkToU8(xx); in build_power_table()
/external/skia/src/core/
DSkBlitter_A8.cpp45 device[i] = SkToU8(srcA + SkAlphaMul(device[i], scale)); in blitH()
74 device[i] = SkToU8(sa + SkAlphaMul(device[i], scale)); in blitAntiH()
106 if (bw & 0x80) dst[0] = SkToU8(sa + SkAlphaMul(dst[0], dst_scale)); in blend_8_pixels()
107 if (bw & 0x40) dst[1] = SkToU8(sa + SkAlphaMul(dst[1], dst_scale)); in blend_8_pixels()
108 if (bw & 0x20) dst[2] = SkToU8(sa + SkAlphaMul(dst[2], dst_scale)); in blend_8_pixels()
109 if (bw & 0x10) dst[3] = SkToU8(sa + SkAlphaMul(dst[3], dst_scale)); in blend_8_pixels()
110 if (bw & 0x08) dst[4] = SkToU8(sa + SkAlphaMul(dst[4], dst_scale)); in blend_8_pixels()
111 if (bw & 0x04) dst[5] = SkToU8(sa + SkAlphaMul(dst[5], dst_scale)); in blend_8_pixels()
112 if (bw & 0x02) dst[6] = SkToU8(sa + SkAlphaMul(dst[6], dst_scale)); in blend_8_pixels()
113 if (bw & 0x01) dst[7] = SkToU8(sa + SkAlphaMul(dst[7], dst_scale)); in blend_8_pixels()
[all …]
DSkPathEffect.cpp75 fStyle(SkToU8(paint.getStyle())), fJoin(SkToU8(paint.getStrokeJoin())), in SkStrokePathEffect()
76 fCap(SkToU8(paint.getStrokeCap())) { in SkStrokePathEffect()
81 : fWidth(width), fMiter(miter), fStyle(SkToU8(style)), in SkStrokePathEffect()
82 fJoin(SkToU8(join)), fCap(SkToU8(cap)) { in SkStrokePathEffect()
DSkProcSpriteBlitter.cpp17 …: SkSpriteBlitter(source), fProc(proc), fSrcShift(SkToU8(srcShift)), fDstShift(SkToU8(dstShift)) {}
DSkShader.cpp90 fDeviceConfig = SkToU8(device.getConfig()); in setContext()
140 *alpha++ = SkToU8(a0); in shadeSpanAlpha()
141 *alpha++ = SkToU8(a1); in shadeSpanAlpha()
142 *alpha++ = SkToU8(a2); in shadeSpanAlpha()
143 *alpha++ = SkToU8(a3); in shadeSpanAlpha()
DSkAlphaRuns.cpp95 …alpha[x] = SkToU8(tmp - (tmp >> 8)); // was (tmp >> 7), but that seems wrong if we're trying to… in add()
110 alpha[0] = SkToU8(alpha[0] + maxValue); in add()
124 alpha[0] = SkToU8(alpha[0] + stopAlpha); in add()
DSkScan_AntiPath.cpp447 *alpha = SkToU8(tmp - (tmp >> 8)); in add_aa_span()
471 *alpha++ = SkToU8(tmp - (tmp >> 8)); in add_aa_span()
476 *alpha++ = SkToU8(tmp - (tmp >> 8)); in add_aa_span()
482 alpha[0] = SkToU8(alpha[0] + maxValue); in add_aa_span()
500 alpha[0] = SkToU8(alpha[0] + maxValue); in add_aa_span()
508 *alpha = SkToU8(*alpha + stopAlpha); in add_aa_span()
DSkString.cpp80 *--p = SkToU8('0' + dec % 10); in SkStrAppendS32()
110 *--p = SkToU8('0' + dec % 10); in SkStrAppendS64()
174 *string++ = SkToU8('0' + x / powerOfTen); in SkStrAppendFixed()
403 p[i] = SkToU8(src[i]); in setUTF16()
411 p[i] = SkToU8(src[i]); in setUTF16()
DSkDebug.cpp20 uint8_t SkToU8(size_t x) in SkToU8() function
DSkEdge.cpp224 fCurveShift = SkToU8(shift); in setQuadratic()
388 fCurveShift = SkToU8(shift); in setCubic()
389 fCubicDShift = SkToU8(downShift); in setCubic()
/external/skia/src/effects/
DSkBlurMask.cpp134 *dst++ = SkToU8(tmp * scale >> 24); in kernel_clamped()
204 *dst++ = SkToU8(tmp * scale >> 24); in apply_kernel()
221 *dst++ = SkToU8(tmp * scale >> 24); in apply_kernel()
223 *dst++ = SkToU8(tmp * scale >> 24); in apply_kernel()
225 *dst++ = SkToU8(tmp * scale >> 24); in apply_kernel()
227 *dst++ = SkToU8(tmp * scale >> 24); in apply_kernel()
239 *dst++ = SkToU8(tmp * scale >> 24); in apply_kernel()
253 *dst++ = SkToU8(tmp * scale >> 24); in apply_kernel()
310 *dst++ = SkToU8((outer_sum * outer_scale in kernel_interp_clamped()
407 *dst++ = SkToU8((outer_sum * outer_scale in apply_kernel_interp()
[all …]
DSkEmbossMaskFilter.cpp41 light.fAmbient = SkToU8(am); in CreateEmboss()
42 light.fSpecular = SkToU8(sp); in CreateEmboss()
DSkEmbossMask.cpp150 multiply[x] = SkToU8(mul); in Emboss()
151 additive[x] = SkToU8(add); in Emboss()
/external/skia/include/utils/
DSkInterpolator.h46 fFlags = SkToU8((fFlags & ~kMirror) | (int)mirror); in setMirror()
59 fFlags = SkToU8((fFlags & ~kReset) | (int)reset); in setReset()
/external/skia/src/views/
DSkStackViewLayout.cpp23 fOrient = SkToU8(ori); in setOrient()
45 fPack = SkToU8(pack); in setPack()
51 fAlign = SkToU8(align); in setAlign()
56 fRound = SkToU8(r); in setRound()
DSkStaticTextView.cpp57 fMode = SkToU8(mode); in setMode()
64 fSpacingAlign = SkToU8(align); in setSpacingAlign()
DSkTagList.h29 SkTagList(U8CPU tag) : fTag(SkToU8(tag)) in SkTagList()
DSkTextBox.cpp97 fMode = SkToU8(mode); in setMode()
103 fSpacingAlign = SkToU8(align); in setSpacingAlign()
/external/skia/src/images/
DSkImageDecoder_libjpeg.cpp795 dst[0] = SkToU8(y); in rgb2yuv_32()
796 dst[1] = SkToU8(u + 128); in rgb2yuv_32()
797 dst[2] = SkToU8(v + 128); in rgb2yuv_32()
809 dst[0] = SkToU8(y); in rgb2yuv_4444()
810 dst[1] = SkToU8(u + 128); in rgb2yuv_4444()
811 dst[2] = SkToU8(v + 128); in rgb2yuv_4444()
823 dst[0] = SkToU8(y); in rgb2yuv_16()
824 dst[1] = SkToU8(u + 128); in rgb2yuv_16()
825 dst[2] = SkToU8(v + 128); in rgb2yuv_16()
/external/skia/include/core/
DSkStroke.h41 void setDoFill(bool doFill) { fDoFill = SkToU8(doFill); } in setDoFill()
DSkTypes.h165 SK_API uint8_t SkToU8(size_t);
172 #define SkToU8(x) ((uint8_t)(x)) macro

123