Home
last modified time | relevance | path

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

/external/swiftshader/src/Device/
DETC_Decoder.cpp18 inline unsigned char clampByte(int value) in clampByte() function
48 r = clampByte(red); in set()
49 g = clampByte(green); in set()
50 b = clampByte(blue); in set()
55 r = clampByte(red); in set()
56 g = clampByte(green); in set()
57 b = clampByte(blue); in set()
58 a = clampByte(alpha); in set()
133 dest[i * nbChannels + c] = clampByte(sources[c]->getSingleChannel(i, j, isSigned, false)); in DecodeBlock()
/external/swiftshader/src/Renderer/
DETC_Decoder.cpp19 inline int clampByte(int value) in clampByte() function
49 r = static_cast<unsigned char>(clampByte(red)); in set()
50 g = static_cast<unsigned char>(clampByte(green)); in set()
51 b = static_cast<unsigned char>(clampByte(blue)); in set()
56 r = static_cast<unsigned char>(clampByte(red)); in set()
57 g = static_cast<unsigned char>(clampByte(green)); in set()
58 b = static_cast<unsigned char>(clampByte(blue)); in set()
59 a = static_cast<unsigned char>(clampByte(alpha)); in set()
134 dest[i * nbChannels + c] = clampByte(sources[c]->getSingleChannel(i, j, isSigned, false)); in DecodeBlock()
/external/angle/src/image_util/
Dloadimage_etc.cpp79 *pixel = clampByte(getSingleETC2Channel(i, j, isSigned)); in decodeAsSingleETC2Channel()
362 static unsigned char clampByte(int value) in clampByte() function
404 rgba.R = clampByte(red); in createRGBA()
405 rgba.G = clampByte(green); in createRGBA()
406 rgba.B = clampByte(blue); in createRGBA()
407 rgba.A = clampByte(alpha); in createRGBA()