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