Lines Matching refs:blockMode
343 ASTCBlockMode blockMode; in getASTCBlockMode() local
344 blockMode.isError = true; // \note Set to false later, if not error. in getASTCBlockMode()
346 blockMode.isVoidExtent = getBits(blockModeData, 0, 8) == 0x1fc; in getASTCBlockMode()
348 if (!blockMode.isVoidExtent) in getASTCBlockMode()
351 return blockMode; // Invalid ("reserved"). in getASTCBlockMode()
367 blockMode.weightGridWidth = i5 ? 10 : 6; in getASTCBlockMode()
368 blockMode.weightGridHeight = i5 ? 6 : 10; in getASTCBlockMode()
375 case 0: blockMode.weightGridWidth = 12; blockMode.weightGridHeight = a + 2; break; in getASTCBlockMode()
376 case 1: blockMode.weightGridWidth = a + 2; blockMode.weightGridHeight = 12; break; in getASTCBlockMode()
377 …case 2: blockMode.weightGridWidth = a + 6; blockMode.weightGridHeight = getBits(blockModeData, 9,… in getASTCBlockMode()
396 blockMode.weightGridWidth = i8 ? b+2 : a+2; in getASTCBlockMode()
397 blockMode.weightGridHeight = i8 ? a+2 : b+6; in getASTCBlockMode()
405 case 0: blockMode.weightGridWidth = b + 4; blockMode.weightGridHeight = a + 2; break; in getASTCBlockMode()
406 case 1: blockMode.weightGridWidth = b + 8; blockMode.weightGridHeight = a + 2; break; in getASTCBlockMode()
407 case 2: blockMode.weightGridWidth = a + 2; blockMode.weightGridHeight = b + 8; break; in getASTCBlockMode()
415 blockMode.isDualPlane = zeroDH ? 0 : isBitSet(blockModeData, 10); in getASTCBlockMode()
418 ISEMode& m = blockMode.weightISEParams.mode; in getASTCBlockMode()
419 int& b = blockMode.weightISEParams.numBits; in getASTCBlockMode()
452 blockMode.isError = false; in getASTCBlockMode()
453 return blockMode; in getASTCBlockMode()
1209 …ntizeWeights (deUint32 dst[64], const ISEDecodedResult* weightGrid, const ASTCBlockMode& blockMode) in unquantizeWeights() argument
1211 const int numWeights = computeNumWeights(blockMode); in unquantizeWeights()
1212 const ISEParams& iseParams = blockMode.weightISEParams; in unquantizeWeights()
1270 …Uint32 (&unquantizedWeights) [64], int blockWidth, int blockHeight, const ASTCBlockMode& blockMode) in interpolateWeights() argument
1272 const int numWeightsPerTexel = blockMode.isDualPlane ? 2 : 1; in interpolateWeights()
1276 …DE_ASSERT(blockMode.weightGridWidth*blockMode.weightGridHeight*numWeightsPerTexel <= DE_LENGTH_OF_… in interpolateWeights()
1282 const deUint32 gX = (scaleX*texelX*(blockMode.weightGridWidth-1) + 32) >> 6; in interpolateWeights()
1283 const deUint32 gY = (scaleY*texelY*(blockMode.weightGridHeight-1) + 32) >> 6; in interpolateWeights()
1294 const deUint32 i00 = jY*blockMode.weightGridWidth + jX; in interpolateWeights()
1296 const deUint32 i10 = i00 + blockMode.weightGridWidth; in interpolateWeights()
1297 const deUint32 i11 = i00 + blockMode.weightGridWidth + 1; in interpolateWeights()
1300 … DE_ASSERT(deInBounds32(i00, 0, blockMode.weightGridWidth*blockMode.weightGridHeight) || w00 == 0); in interpolateWeights()
1301 … DE_ASSERT(deInBounds32(i01, 0, blockMode.weightGridWidth*blockMode.weightGridHeight) || w01 == 0); in interpolateWeights()
1302 … DE_ASSERT(deInBounds32(i10, 0, blockMode.weightGridWidth*blockMode.weightGridHeight) || w10 == 0); in interpolateWeights()
1303 … DE_ASSERT(deInBounds32(i11, 0, blockMode.weightGridWidth*blockMode.weightGridHeight) || w11 == 0); in interpolateWeights()
1319 …r* dst, const Block128& blockData, int blockWidth, int blockHeight, const ASTCBlockMode& blockMode) in computeTexelWeights() argument
1324 …ataStream(blockData, 127, computeNumRequiredBits(blockMode.weightISEParams, computeNumWeights(bloc… in computeTexelWeights()
1325 decodeISE(&weightGrid[0], computeNumWeights(blockMode), dataStream, blockMode.weightISEParams); in computeTexelWeights()
1330 unquantizeWeights(&unquantizedWeights[0], &weightGrid[0], blockMode); in computeTexelWeights()
1331 interpolateWeights(dst, unquantizedWeights, blockWidth, blockHeight, blockMode); in computeTexelWeights()
1492 const ASTCBlockMode blockMode = getASTCBlockMode(blockData.getBits(0, 10)); in decompressBlock() local
1496 if (blockMode.isError) in decompressBlock()
1504 if (blockMode.isVoidExtent) in decompressBlock()
1509 const int numWeights = computeNumWeights(blockMode); in decompressBlock()
1510 const int numWeightDataBits = computeNumRequiredBits(blockMode.weightISEParams, numWeights); in decompressBlock()
1518 blockMode.weightGridWidth > blockWidth || in decompressBlock()
1519 blockMode.weightGridHeight > blockHeight || in decompressBlock()
1520 (numPartitions == 4 && blockMode.isDualPlane)) in decompressBlock()
1530 (blockMode.isDualPlane ? 2 : 0); in decompressBlock()
1561 computeTexelWeights(&texelWeights[0], blockData, blockWidth, blockHeight, blockMode); in decompressBlock()
1565 …const int ccs = blockMode.isDualPlane ? (int)blockData.getBits(extraCemBitsStart-2, extraCem… in decompressBlock()