Lines Matching refs:blockWidth
456 inline void setASTCErrorColorBlock (void* dst, int blockWidth, int blockHeight, bool isSRGB)
462 for (int i = 0; i < blockWidth*blockHeight; i++)
474 for (int i = 0; i < blockWidth*blockHeight; i++)
484 DecompressResult decodeVoidExtentBlock (void* dst, const Block128& blockData, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode)
495 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
510 for (int i = 0; i < blockWidth*blockHeight; i++)
526 for (int i = 0; i < blockWidth*blockHeight; i++)
532 for (int i = 0; i < blockWidth*blockHeight; i++)
1270 void interpolateWeights (TexelWeightPair* dst, const deUint32 (&unquantizedWeights) [64], int blockWidth, int blockHeight, const ASTCBlockMode& blockMode)
1273 const deUint32 scaleX = (1024 + blockWidth/2) / (blockWidth-1);
1280 for (int texelX = 0; texelX < blockWidth; texelX++)
1313 dst[texelY*blockWidth + texelX].w[texelWeightNdx] = (p00*w00 + p01*w01 + p10*w10 + p11*w11 + 8) >> 4;
1319 void computeTexelWeights (TexelWeightPair* dst, const Block128& blockData, int blockWidth, int blockHeight, const ASTCBlockMode& blockMode)
1331 interpolateWeights(dst, unquantizedWeights, blockWidth, blockHeight, blockMode);
1409 int numPartitions, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode, const deUint32* colorEndpointModes)
1411 const bool smallBlock = blockWidth*blockHeight < 31;
1419 for (int texelX = 0; texelX < blockWidth; texelX++)
1421 const int texelNdx = texelY*blockWidth + texelX;
1486 DecompressResult decompressBlock (void* dst, const Block128& blockData, int blockWidth, int blockHeight, bool isSRGB, bool isLDR)
1498 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1505 return decodeVoidExtentBlock(dst, blockData, blockWidth, blockHeight, isSRGB, isLDR);
1518 blockMode.weightGridWidth > blockWidth ||
1522 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1548 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1561 computeTexelWeights(&texelWeights[0], blockData, blockWidth, blockHeight, blockMode);
1568 return setTexelColors(dst, &colorEndpoints[0], &texelWeights[0], ccs, partitionIndexSeed, numPartitions, blockWidth, blockHeight, isSRGB, isLDR, &colorEndpointModes[0]);
1575 const int blockWidth = dst.getWidth();
1591 for (int j = 0; j < blockWidth; j++)
1593 dst.setPixel(IVec4(decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 0],
1594 decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 1],
1595 decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 2],
1596 decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 3]), j, i);
1602 for (int j = 0; j < blockWidth; j++)
1604 dst.setPixel(Vec4(decompressedBuffer.linear[(i*blockWidth + j) * 4 + 0],
1605 decompressedBuffer.linear[(i*blockWidth + j) * 4 + 1],
1606 decompressedBuffer.linear[(i*blockWidth + j) * 4 + 2],
1607 decompressedBuffer.linear[(i*blockWidth + j) * 4 + 3]), j, i);
1882 static inline bool isValidBlockParams (const NormalBlockParams& params, int blockWidth, int blockHeight)
1891 params.weightGridWidth <= blockWidth &&
2233 static AssignBlock128 generateNormalBlock (const NormalBlockParams& blockParams, int blockWidth, int blockHeight, const NormalBlockISEInputs& iseInputs)
2235 DE_ASSERT(isValidBlockParams(blockParams, blockWidth, blockHeight));
2236 DE_UNREF(blockWidth); // \note For non-debug builds.
2907 void generateDefaultNormalBlocks (deUint8* dst, size_t numBlocks, int blockWidth, int blockHeight)
2929 generateNormalBlock(blockParams, blockWidth, blockHeight, iseInputs).assignToMemory(dst + blockNdx*BLOCK_SIZE_BYTES);