Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkConvolver.cpp12 inline unsigned char ClampTo8(int a) { in ClampTo8() function
151 outRow[outX * 4 + 0] = ClampTo8(accum[0]); in ConvolveHorizontally()
152 outRow[outX * 4 + 1] = ClampTo8(accum[1]); in ConvolveHorizontally()
153 outRow[outX * 4 + 2] = ClampTo8(accum[2]); in ConvolveHorizontally()
155 outRow[outX * 4 + 3] = ClampTo8(accum[3]); in ConvolveHorizontally()
229 outRow[byteOffset + 0] = ClampTo8(accum[0]); in ConvolveVertically()
230 outRow[byteOffset + 1] = ClampTo8(accum[1]); in ConvolveVertically()
231 outRow[byteOffset + 2] = ClampTo8(accum[2]); in ConvolveVertically()
233 unsigned char alpha = ClampTo8(accum[3]); in ConvolveVertically()