Home | History | Annotate | Download | only in common

Lines Matching refs:blockMode

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