Lines Matching full: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++)
1258 void interpolateWeights (TexelWeightPair* dst, const deUint32* unquantizedWeights, int blockWidth, int blockHeight, const ASTCBlockMode& blockMode)
1261 const deUint32 scaleX = (1024 + blockWidth/2) / (blockWidth-1);
1266 for (int texelX = 0; texelX < blockWidth; texelX++)
1287 dst[texelY*blockWidth + texelX].w[texelWeightNdx] = (p00*w00 + p01*w01 + p10*w10 + p11*w11 + 8) >> 4;
1293 void computeTexelWeights (TexelWeightPair* dst, const Block128& blockData, int blockWidth, int blockHeight, const ASTCBlockMode& blockMode)
1305 interpolateWeights(dst, &unquantizedWeights[0], blockWidth, blockHeight, blockMode);
1383 int numPartitions, int blockWidth, int blockHeight, bool isSRGB, bool isLDRMode, const deUint32* colorEndpointModes)
1385 const bool smallBlock = blockWidth*blockHeight < 31;
1393 for (int texelX = 0; texelX < blockWidth; texelX++)
1395 const int texelNdx = texelY*blockWidth + texelX;
1460 DecompressResult decompressBlock (void* dst, const Block128& blockData, int blockWidth, int blockHeight, bool isSRGB, bool isLDR)
1472 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1479 return decodeVoidExtentBlock(dst, blockData, blockWidth, blockHeight, isSRGB, isLDR);
1492 blockMode.weightGridWidth > blockWidth ||
1496 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1522 setASTCErrorColorBlock(dst, blockWidth, blockHeight, isSRGB);
1535 computeTexelWeights(&texelWeights[0], blockData, blockWidth, blockHeight, blockMode);
1542 return setTexelColors(dst, &colorEndpoints[0], &texelWeights[0], ccs, partitionIndexSeed, numPartitions, blockWidth, blockHeight, isSRGB, isLDR, &colorEndpointModes[0]);
1549 const int blockWidth = dst.getWidth();
1565 for (int j = 0; j < blockWidth; j++)
1567 dst.setPixel(IVec4(decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 0],
1568 decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 1],
1569 decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 2],
1570 decompressedBuffer.sRGB[(i*blockWidth + j) * 4 + 3]), j, i);
1576 for (int j = 0; j < blockWidth; j++)
1578 dst.setPixel(Vec4(decompressedBuffer.linear[(i*blockWidth + j) * 4 + 0],
1579 decompressedBuffer.linear[(i*blockWidth + j) * 4 + 1],
1580 decompressedBuffer.linear[(i*blockWidth + j) * 4 + 2],
1581 decompressedBuffer.linear[(i*blockWidth + j) * 4 + 3]), j, i);
1856 static inline bool isValidBlockParams (const NormalBlockParams& params, int blockWidth, int blockHeight)
1865 params.weightGridWidth <= blockWidth &&
2207 static AssignBlock128 generateNormalBlock (const NormalBlockParams& blockParams, int blockWidth, int blockHeight, const NormalBlockISEInputs& iseInputs)
2209 DE_ASSERT(isValidBlockParams(blockParams, blockWidth, blockHeight));
2210 DE_UNREF(blockWidth); // \note For non-debug builds.
2881 void generateDummyNormalBlocks (deUint8* dst, size_t numBlocks, int blockWidth, int blockHeight)
2903 generateNormalBlock(blockParams, blockWidth, blockHeight, iseInputs).assignToMemory(dst + blockNdx*BLOCK_SIZE_BYTES);