Lines Matching refs:pixelPtr
985 const deUint8* pixelPtr = (const deUint8*)getPixelPtr(x, y, z); in getPixel() local
991 return readRGBA8888Float(pixelPtr); in getPixel()
993 return readRGB888Float(pixelPtr); in getPixel()
996 #define UI8(OFFS, COUNT) ((*((const deUint8*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixel()
997 #define UI16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixel()
998 #define UI32(OFFS, COUNT) ((*((const deUint32*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixel()
1022 case TextureFormat::UNSIGNED_INT_999_E5_REV: return unpackRGB999E5(*((const deUint32*)pixelPtr)); in getPixel()
1057 result[c] = channelToFloat(pixelPtr + channelSize*((int)channelMap[c]), m_format.type); in getPixel()
1084 const deUint8* const pixelPtr = (const deUint8*)getPixelPtr(x, y, z); in getPixelInt() local
1091 return readRGBA8888Int(pixelPtr); in getPixelInt()
1093 return readRGB888Int(pixelPtr); in getPixelInt()
1096 #define U8(OFFS, COUNT) ((*((const deUint8* )pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixelInt()
1097 #define U16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixelInt()
1098 #define U32(OFFS, COUNT) ((*((const deUint32*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixelInt()
1143 result[c] = channelToInt(pixelPtr + channelSize*((int)channelMap[c]), m_format.type); in getPixelInt()
1186 const deUint8* const pixelPtr = (const deUint8*)getPixelPtr(x, y, z); in getPixDepth() local
1192 return (float)readUint32High16(pixelPtr) / 65535.0f; in getPixDepth()
1196 return (float)readUint32High24(pixelPtr) / 16777215.0f; in getPixDepth()
1200 return (float)readUint32Low24(pixelPtr) / 16777215.0f; in getPixDepth()
1204 return *((const float*)pixelPtr); in getPixDepth()
1208 return channelToFloat(pixelPtr, m_format.type); in getPixDepth()
1218 const deUint8* const pixelPtr = (const deUint8*)getPixelPtr(x, y, z); in getPixStencil() local
1224 return (int)readUint32High8(pixelPtr); in getPixStencil()
1229 return (int)readUint32Low8(pixelPtr); in getPixStencil()
1233 return (int)readUint32Low8(pixelPtr + 4); in getPixStencil()
1238 return channelToInt(pixelPtr, m_format.type); in getPixStencil()
1251 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z); in setPixel() local
1258 writeRGBA8888Float(pixelPtr, color); in setPixel()
1263 writeRGB888Float(pixelPtr, color); in setPixel()
1275 …case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PN(color[0], 4, 4) | PN(col… in setPixel()
1276 …case TextureFormat::UNSIGNED_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PU((deUint32)color[0], 4,… in setPixel()
1277 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PN(color[0], 22, 10) | PN(color[1],… in setPixel()
1282 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 11, 5) | PN(swizzled[1], 5, 6) | PN(swizzled[2… in setPixel()
1289 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 5, 6) | PU(swizzled[2… in setPixel()
1296 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 10, 5) | PN(swizzled[1], 5, 5) | PN(swizzled[2… in setPixel()
1303 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 12, 4) | PN(swizzled[1], 8, 4) | PN(swizzled[2… in setPixel()
1310 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 12, 4) | PU(swizzled[1], 8, 4) | PU(swizzled[2… in setPixel()
1317 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 11, 5) | PN(swizzled[1], 6, 5) | PN(swizzled[2… in setPixel()
1324 …*((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 15, 1) | PN(swizzled[1], 10, 5) | PN(swizzled[… in setPixel()
1331 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 6, 5) | PU(swizzled[2… in setPixel()
1338 *((deUint32*)pixelPtr) = PN(u[0], 0, 10) | PN(u[1], 10, 10) | PN(u[2], 20, 10) | PN(u[3], 30, 2); in setPixel()
1345 *((deUint32*)pixelPtr) = PS(u[0], 0, 10) | PS(u[1], 10, 10) | PS(u[2], 20, 10) | PS(u[3], 30, 2); in setPixel()
1352 *((deUint32*)pixelPtr) = PU(u[0], 0, 10) | PU(u[1], 10, 10) | PU(u[2], 20, 10) | PU(u[3], 30, 2); in setPixel()
1359 *((deUint32*)pixelPtr) = PI(u[0], 0, 10) | PI(u[1], 10, 10) | PI(u[2], 20, 10) | PI(u[3], 30, 2); in setPixel()
1364 …*((deUint32*)pixelPtr) = Float11(color[0]).bits() | (Float11(color[1]).bits() << 11) | (Float10(co… in setPixel()
1368 *((deUint32*)pixelPtr) = packRGB999E5(color); in setPixel()
1381 floatToChannel(pixelPtr + channelSize*c, color[map[c]], m_format.type); in setPixel()
1401 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z); in setPixel() local
1408 writeRGBA8888Int(pixelPtr, color); in setPixel()
1413 writeRGB888Int(pixelPtr, color); in setPixel()
1424 …case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8 )(PU(color[0], 4, 4) | PU(c… in setPixel()
1425 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PU(color[0], 22, 10) | PU(color[1],… in setPixel()
1431 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 5, 6) | PU(swizzled[2… in setPixel()
1438 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 10, 5) | PU(swizzled[1], 5, 5) | PU(swizzled[2… in setPixel()
1446 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 12, 4) | PU(swizzled[1], 8, 4) | PU(swizzled[2… in setPixel()
1454 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 6, 5) | PU(swizzled[2… in setPixel()
1461 …*((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 15, 1) | PU(swizzled[1], 10, 5) | PU(swizzled[… in setPixel()
1469 …*((deUint32*)pixelPtr) = PU(swizzled[0], 0, 10) | PU(swizzled[1], 10, 10) | PU(swizzled[2], 20, 1… in setPixel()
1477 …*((deUint32*)pixelPtr) = PI(swizzled[0], 0, 10) | PI(swizzled[1], 10, 10) | PI(swizzled[2], 20, 1… in setPixel()
1491 intToChannel(pixelPtr + channelSize*c, color[map[c]], m_format.type); in setPixel()
1507 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z); in setPixDepth() local
1513 writeUint32High16(pixelPtr, convertSatRte<deUint16>(depth * 65535.0f)); in setPixDepth()
1518 writeUint32High24(pixelPtr, convertSatRteUint24(depth * 16777215.0f)); in setPixDepth()
1523 writeUint32Low24(pixelPtr, convertSatRteUint24(depth * 16777215.0f)); in setPixDepth()
1528 *((float*)pixelPtr) = depth; in setPixDepth()
1533 floatToChannel(pixelPtr, depth, m_format.type); in setPixDepth()
1544 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z); in setPixStencil() local
1551 writeUint32Low8(pixelPtr, convertSat<deUint8>((deUint32)stencil)); in setPixStencil()
1556 writeUint32High8(pixelPtr, convertSat<deUint8>((deUint32)stencil)); in setPixStencil()
1561 writeUint32Low8(pixelPtr + 4, convertSat<deUint8>((deUint32)stencil)); in setPixStencil()
1566 intToChannel(pixelPtr, stencil, m_format.type); in setPixStencil()