Searched refs:clampByte (Results 1 – 3 of 3) sorted by relevance
18 inline unsigned char clampByte(int value) in clampByte() function48 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()
19 inline int clampByte(int value) in clampByte() function49 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()
79 *pixel = clampByte(getSingleETC2Channel(i, j, isSigned)); in decodeAsSingleETC2Channel()362 static unsigned char clampByte(int value) in clampByte() function404 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()