Lines Matching refs:pixelPtr
1118 const deUint8* pixelPtr = (const deUint8*)getPixelPtr(x, y, z);
1124 return readRGBA8888Float(pixelPtr);
1126 return readRGB888Float(pixelPtr);
1129 #define UI8(OFFS, COUNT) ((*((const deUint8*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1130 #define UI16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1131 #define UI32(OFFS, COUNT) ((*((const deUint32*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1158 case TextureFormat::UNSIGNED_INT_999_E5_REV: return unpackRGB999E5(*((const deUint32*)pixelPtr));
1189 result[c] = channelToFloat(pixelPtr + channelSize*((int)channelMap[c]), m_format.type);
1209 static tcu::Vector<T, 4> getPixelIntGeneric (const deUint8* pixelPtr, const tcu::TextureFormat& format)
1225 result[c] = channelToIntType<T>(pixelPtr + channelSize*((int)channelMap[c]), format.type);
1244 static U64Vec4 getPixelAsBitsUint64 (const deUint8* pixelPtr, const tcu::TextureFormat& format)
1260 result[c] = retrieveChannelBitsAsUint64(pixelPtr + channelSize*((int)channelMap[c]), format.type);
1287 const deUint8* const pixelPtr = (const deUint8*)getPixelPtr(x, y, z);
1293 return readRGBA8888Int(pixelPtr);
1295 return readRGB888Int(pixelPtr);
1298 #define U8(OFFS, COUNT) ((*((const deUint8* )pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1299 #define U16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1300 #define U32(OFFS, COUNT) ((*((const deUint32*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1333 return getPixelIntGeneric<int>(pixelPtr, m_format);
1372 auto pixelPtr = reinterpret_cast<const deUint8*>(getPixelPtr(x, y, z));
1373 return getPixelIntGeneric<deInt64>(pixelPtr, m_format);
1384 const deUint8* const pixelPtr = (const deUint8*)getPixelPtr(x, y, z);
1389 return U64Vec4(pixelPtr[0], pixelPtr[1], pixelPtr[2], pixelPtr[3]);
1391 return U64Vec4(pixelPtr[0], pixelPtr[1], pixelPtr[2], 1);
1394 #define U8(OFFS, COUNT) ((*((const deUint8* )pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1395 #define U16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1396 #define U32(OFFS, COUNT) ((*((const deUint32*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1))
1428 return getPixelAsBitsUint64(pixelPtr, m_format);
1467 const deUint8* const pixelPtr = (const deUint8*)getPixelPtr(x, y, z);
1473 return (float)readUint32High16(pixelPtr) / 65535.0f;
1477 return (float)readUint32High24(pixelPtr) / 16777215.0f;
1481 return (float)readUint32Low24(pixelPtr) / 16777215.0f;
1485 return *((const float*)pixelPtr);
1489 return channelToFloat(pixelPtr, m_format.type);
1499 const deUint8* const pixelPtr = (const deUint8*)getPixelPtr(x, y, z);
1505 return (int)readUint32High8(pixelPtr);
1510 return (int)readUint32Low8(pixelPtr);
1514 return (int)readUint32Low8(pixelPtr + 4);
1519 return channelToInt(pixelPtr, m_format.type);
1532 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z);
1539 writeRGBA8888Float(pixelPtr, color);
1544 writeRGB888Float(pixelPtr, color);
1556 case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PN(color[0], 4, 4) | PN(color[1], 0, 4)); break;
1557 case TextureFormat::UNSIGNED_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PU((deUint32)color[0], 4, 4) | PU((deUint32)color[1], 0, 4)); break;
1558 case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PN(color[0], 22, 10) | PN(color[1], 12, 10) | PN(color[2], 2, 10); break;
1563 *((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 11, 5) | PN(swizzled[1], 5, 6) | PN(swizzled[2], 0, 5));
1570 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 5, 6) | PU(swizzled[2], 0, 5));
1577 *((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 10, 5) | PN(swizzled[1], 5, 5) | PN(swizzled[2], 0, 5));
1584 *((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 12, 4) | PN(swizzled[1], 8, 4) | PN(swizzled[2], 4, 4) | PN(swizzled[3], 0, 4));
1591 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 12, 4) | PU(swizzled[1], 8, 4) | PU(swizzled[2], 4, 4) | PU(swizzled[3], 0, 4));
1598 *((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 11, 5) | PN(swizzled[1], 6, 5) | PN(swizzled[2], 1, 5) | PN(swizzled[3], 0, 1));
1605 *((deUint16*)pixelPtr) = (deUint16)(PN(swizzled[0], 15, 1) | PN(swizzled[1], 10, 5) | PN(swizzled[2], 5, 5) | PN(swizzled[3], 0, 5));
1612 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 6, 5) | PU(swizzled[2], 1, 5) | PU(swizzled[3], 0, 1));
1619 *((deUint32*)pixelPtr) = PN(u[0], 0, 10) | PN(u[1], 10, 10) | PN(u[2], 20, 10) | PN(u[3], 30, 2);
1626 *((deUint32*)pixelPtr) = PS(u[0], 0, 10) | PS(u[1], 10, 10) | PS(u[2], 20, 10) | PS(u[3], 30, 2);
1634 *((deUint32*)pixelPtr) = PU(u[0], 0, 10) | PU(u[1], 10, 10) | PU(u[2], 20, 10) | PU(u[3], 30, 2);
1642 *((deUint32*)pixelPtr) = PI(u[0], 0, 10) | PI(u[1], 10, 10) | PI(u[2], 20, 10) | PI(u[3], 30, 2);
1647 *((deUint32*)pixelPtr) = Float11(color[0]).bits() | (Float11(color[1]).bits() << 11) | (Float10(color[2]).bits() << 22);
1651 *((deUint32*)pixelPtr) = packRGB999E5(color);
1664 floatToChannel(pixelPtr + channelSize*c, color[map[c]], m_format.type);
1684 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z);
1691 writeRGBA8888Int(pixelPtr, color);
1696 writeRGB888Int(pixelPtr, color);
1707 case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8 )(PU(color[0], 4, 4) | PU(color[1], 0, 4)); break;
1708 case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PU(color[0], 22, 10) | PU(color[1], 12, 10) | PU(color[2], 2, 10); break;
1714 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 5, 6) | PU(swizzled[2], 0, 5));
1721 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 10, 5) | PU(swizzled[1], 5, 5) | PU(swizzled[2], 0, 5));
1729 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 12, 4) | PU(swizzled[1], 8, 4) | PU(swizzled[2], 4, 4) | PU(swizzled[3], 0, 4));
1737 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 11, 5) | PU(swizzled[1], 6, 5) | PU(swizzled[2], 1, 5) | PU(swizzled[3], 0, 1));
1744 *((deUint16*)pixelPtr) = (deUint16)(PU(swizzled[0], 15, 1) | PU(swizzled[1], 10, 5) | PU(swizzled[2], 5, 5) | PU(swizzled[3], 0, 5));
1753 *((deUint32*)pixelPtr) = PU(swizzled[0], 0, 10) | PU(swizzled[1], 10, 10) | PU(swizzled[2], 20, 10) | PU(swizzled[3], 30, 2);
1762 *((deUint32*)pixelPtr) = PI(swizzled[0], 0, 10) | PI(swizzled[1], 10, 10) | PI(swizzled[2], 20, 10) | PI(swizzled[3], 30, 2);
1776 intToChannel(pixelPtr + channelSize*c, color[map[c]], m_format.type);
1792 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z);
1798 writeUint32High16(pixelPtr, convertSatRte<deUint16>(depth * 65535.0f));
1803 writeUint32High24(pixelPtr, convertSatRteUint24(depth * 16777215.0f));
1808 writeUint32Low24(pixelPtr, convertSatRteUint24(depth * 16777215.0f));
1813 *((float*)pixelPtr) = depth;
1818 floatToChannel(pixelPtr, depth, m_format.type);
1829 deUint8* const pixelPtr = (deUint8*)getPixelPtr(x, y, z);
1836 writeUint32Low8(pixelPtr, convertSat<deUint8>((deUint32)stencil));
1841 writeUint32High8(pixelPtr, convertSat<deUint8>((deUint32)stencil));
1846 writeUint32Low8(pixelPtr + 4, convertSat<deUint8>((deUint32)stencil));
1851 intToChannel(pixelPtr, stencil, m_format.type);