Searched refs:basex (Results 1 – 3 of 3) sorted by relevance
145 int basex = x * 4; in getImageData() local146 if (unsigned char alpha = srcRows[basex + 3]) { in getImageData()147 destRows[basex] = (srcRows[basex] * 255) / alpha; in getImageData()148 destRows[basex + 1] = (srcRows[basex + 1] * 255) / alpha; in getImageData()149 destRows[basex + 2] = (srcRows[basex + 2] * 255) / alpha; in getImageData()150 destRows[basex + 3] = alpha; in getImageData()152 …reinterpret_cast<uint32_t*>(destRows + basex)[0] = reinterpret_cast<uint32_t*>(srcRows + basex)[0]; in getImageData()195 int basex = x * 4; in putImageData() local196 unsigned char alpha = srcRows[basex + 3]; in putImageData()198 destRows[basex] = (srcRows[basex] * alpha + 254) / 255; in putImageData()[all …]
132 int basex = x * 4; in getImageData() local134 destRows[basex] = (*pixel & 0x00ff0000) >> 16; in getImageData()135 destRows[basex + 1] = (*pixel & 0x0000ff00) >> 8; in getImageData()136 destRows[basex + 2] = (*pixel & 0x000000ff); in getImageData()137 destRows[basex + 3] = alpha; in getImageData()139 reinterpret_cast<uint32_t*>(destRows + basex)[0] = pixel[0]; in getImageData()187 int basex = x * 4; in putImageData() local188 if (unsigned int alpha = srcRows[basex + 3]) { in putImageData()189 … *pixel = alpha << 24 | srcRows[basex] << 16 | srcRows[basex + 1] << 8 | srcRows[basex + 2]; in putImageData()191 pixel[0] = reinterpret_cast<uint32_t*>(srcRows + basex)[0]; in putImageData()
140 int basex = x * 4; in getImageData() local141 destRows[basex + 0] = SkColorGetR(c); in getImageData()142 destRows[basex + 1] = SkColorGetG(c); in getImageData()143 destRows[basex + 2] = SkColorGetB(c); in getImageData()144 destRows[basex + 3] = SkColorGetA(c); in getImageData()198 int basex = x * 4; in putImageData() local199 dstRows[x] = SkPackARGB32(srcRows[basex + 3], in putImageData()200 srcRows[basex + 0], in putImageData()201 srcRows[basex + 1], in putImageData()202 srcRows[basex + 2]); in putImageData()