Lines Matching defs:weights
98 /** @brief The maximum number of weights a block can support. */
101 /** @brief The maximum number of weights a block can support per plane in 2 plane mode. */
119 /** @brief The offset of the plane 2 weights in shared weight arrays. */
122 /** @brief The sum of quantized weights for one texel. */
351 * that are interpolated during decompression to assign a with to a texel. Storing fewer weights
353 * more accurate endpoints and weights, or additional partitions.
363 /** @brief The maximum number of stored weights that contribute to each texel, between 1 and 4. */
366 /** @brief The total number of weights stored. */
369 /** @brief The number of stored weights in the X dimension. */
372 /** @brief The number of stored weights in the Y dimension. */
375 /** @brief The number of stored weights in the Z dimension. */
379 * @brief The number of weights that contribute to each texel.
385 * @brief The weight index of the N weights that are interpolated for each texel.
391 * @brief The bilinear contribution of the N weights that are interpolated for each texel.
397 * @brief The bilinear contribution of the N weights that are interpolated for each texel.
528 * modes will be unused (too many weights for the current block size or disabled by heuristics). The
529 * actual number of weights stored is @c decimation_mode_count, and the @c decimation_modes and
907 * @brief Data structure storing the color endpoints and weights.
918 ASTCENC_ALIGNAS float weights[BLOCK_MAX_TEXELS];
953 /** @brief Ideal endpoints and weights for plane 1. */
956 /** @brief Ideal endpoints and weights for plane 2. */
988 /** @brief The total bit storage needed for quantized weights for each block mode. */
991 /** @brief The cumulative error for quantized weights for each block mode. */
1033 * ASTC can store texel weights at many quantization levels, so for performance we store essential
1034 * information about each level as a precomputed data structure. Unquantized weights are integers
1053 * @brief A table of previous-and-next weights, indexed by the current unquantized value.
1120 /** @brief The quantized and decimated weights.
1126 * If dual plane, the second plane starts at @c weights[WEIGHTS_PLANE2_OFFSET].
1128 uint8_t weights[BLOCK_MAX_WEIGHTS];
1721 Functionality for computing endpoint colors and weights for a block.
1725 * @brief Compute ideal endpoint colors and weights for 1 plane of weights.
1741 * @brief Compute ideal endpoint colors and weights for 2 planes of weights.
1761 * @brief Compute the optimal unquantized weights for a decimation table.
1763 * After computing ideal weights for the case for a complete weight grid, we we want to compute the
1764 * ideal weights for the case where weights exist only for some texels. We do this with a
1771 * @param ei The non-decimated endpoints and weights.
1781 * @brief Compute the optimal quantized weights for a decimation table.
1806 * After computing ideal weights for the case with one weight per texel, we want to compute the
1807 * error for decimated weight grids where weights are stored at a lower resolution. This function
1810 * @param eai The ideal weights for the full grid.
1812 * @param dec_weight_quant_uvalue The quantized weights for the decimated grid.
1824 * After computing ideal weights for the case with one weight per texel, we want to compute the
1825 * error for decimated weight grids where weights are stored at a lower resolution. This function
1828 * @param eai1 The ideal weights for the full grid and plane 1.
1829 * @param eai2 The ideal weights for the full grid and plane 2.
1831 * @param dec_weight_quant_uvalue_plane1 The quantized weights for the decimated grid plane 1.
1832 * @param dec_weight_quant_uvalue_plane2 The quantized weights for the decimated grid plane 2.
1921 * @brief Unpack a set of quantized and decimated weights.
1923 * TODO: Can we skip this for non-decimated weights now that the @c scb is
1924 * already storing unquantized weights?
1930 * @param[out] weights_plane1 The output array for storing the plane 1 weights.
1931 * @param[out] weights_plane2 The output array for storing the plane 2 weights.
1983 * As we quantize and decimate weights the optimal endpoint colors may change slightly, so we must
2006 * As we quantize and decimate weights the optimal endpoint colors may change slightly, so we must