Home | History | Annotate | Download | only in common

Lines Matching refs:pixelPtr

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