• Home
  • Raw
  • Download

Lines Matching +full:dlclose +full:- +full:skip

1 // SPDX-License-Identifier: Apache-2.0
2 // ----------------------------------------------------------------------------
3 // Copyright 2011-2024 Arm Limited
9 // http://www.apache.org/licenses/LICENSE-2.0
16 // ----------------------------------------------------------------------------
56 * once, or that the loop iteration count is a multiple of a vector length, which avoids pre-loop
57 * checks and can avoid loop tails if loops are unrolled by the auto-vectorizer.
159 * we only use it where it has the most value - low quant levels with wide
164 * one 8-wide vector. Decreasing by one doesn't buy much performance, and
275 // Unreachable - the enum is fully described in get_quant_level()
284 /** @brief The error-weighted average color in the partition. */
287 /** @brief The dominant error-weighted direction in the partition. */
302 /** @brief Post-processed line for uncorrelated chroma. */
305 /** @brief Post-processed line for correlated chroma, passing though the origin. */
311 * This is used for both the uncorrelated and same chroma lines - they are normally very similar
322 * empty partitions. These are both valid encodings, but astcenc will skip both during compression
452 return static_cast<quant_method>(this->quant_mode); in get_weight_quant_mode()
461 /** @brief The max weight precision for 1 plane, or -1 if not supported. */
464 /** @brief The max weight precision for 2 planes, or -1 if not supported. */
498 uint16_t mask = static_cast<uint16_t>((1 << (max_weight_quant + 1)) - 1); in is_ref_1plane()
519 uint16_t mask = static_cast<uint16_t>((1 << (max_weight_quant + 1)) - 1); in is_ref_2plane()
604 /** @brief The active partition tables, stored in low indices per-count. */
610 * Indexed by partition_count - 2, containing 2, 3 and 4 partitions.
614 /** @brief The active texels for k-means partition selection. */
618 * @brief The canonical 2-partition coverage pattern used during block partition search.
625 * @brief The canonical 3-partition coverage pattern used during block partition search.
632 * @brief The canonical 4-partition coverage pattern used during block partition search.
651 unsigned int packed_index = this->block_mode_packed_index[block_mode]; in get_block_mode()
652 assert(packed_index != BLOCK_BAD_BLOCK_MODE && packed_index < this->block_mode_count_all); in get_block_mode()
653 return this->block_modes[packed_index]; in get_block_mode()
669 return this->decimation_modes[decimation_mode]; in get_decimation_mode()
685 return this->decimation_tables[decimation_mode]; in get_decimation_info()
701 unsigned int index = (partition_count - 2) * BLOCK_MAX_PARTITIONINGS; in get_partition_table()
702 return this->partitionings + index; in get_partition_table()
718 packed_index = this->partitioning_packed_index[partition_count - 2][index]; in get_partition_info()
721 …_index != BLOCK_BAD_PARTITIONING && packed_index < this->partitioning_count_all[partition_count - in get_partition_info()
737 …_index != BLOCK_BAD_PARTITIONING && packed_index < this->partitioning_count_all[partition_count - in get_raw_partition_info()
750 * The @c rgb_lns and @c alpha_lns fields that assigned a per-texel use of HDR are only used during
846 return this->alpha_lns[0] ? static_cast<float>(0x7800) : static_cast<float>(0xFFFF); in get_default_alpha()
861 vmask4 color_mask = this->data_min == this->data_max; in is_constant_channel()
872 float default_alpha = this->get_default_alpha(); in is_luminance()
873 bool alpha1 = (this->data_min.lane<3>() == default_alpha) && in is_luminance()
874 (this->data_max.lane<3>() == default_alpha); in is_luminance()
875 return this->grayscale && alpha1; in is_luminance()
885 float default_alpha = this->get_default_alpha(); in is_luminancealpha()
886 bool alpha1 = (this->data_min.lane<3>() == default_alpha) && in is_luminancealpha()
887 (this->data_max.lane<3>() == default_alpha); in is_luminancealpha()
888 return this->grayscale && !alpha1; in is_luminancealpha()
930 /** @brief Error of using LDR RGB-scale instead of complete endpoints. */
933 /** @brief Error of using HDR RGB-scale instead of complete endpoints. */
961 * @brief Decimated ideal weight values in the ~0-1 range.
971 * @brief Decimated quantized weight values in the unquantized 0-64 range.
1039 * floating-point weight. For each quantized weight, the corresponding unquantized values. For each
1040 * quantized weight, a previous-value and a next-value.
1054 * @brief A table of previous-and-next weights, indexed by the current unquantized value.
1055 * * bits 7:0 = previous-index, unquantized
1056 * * bits 15:8 = next-index, unquantized
1073 /** @brief The block is a normal non-constant color block. */
1091 /** @brief Non-zero if the color formats matched; valid for @c NONCONST blocks. */
1094 /** @brief The plane 2 color component, or -1 if single plane; valid for @c NONCONST blocks. */
1123 * Weights are stored in the 0-64 unpacked range allowing them to be used
1124 * directly in encoding passes without per-use unpacking. Packing happens
1138 return this->quant_mode; in get_color_quant_mode()
1235 * Fields below here are not needed in a decompress-only build, but some remain as they are
1277 * @param mode_cutoff The block mode percentile cutoff [0-1].
1352 * Converts unquant value in 0-255 range into quant value in 0-255 range.
1357 * for each input - one for use with a negative residual, and one for use with
1360 * Indexed by [quant_mode - 4][data_value * 2 + residual].
1367 * Converts quant value in 0-255 range into packed quant value in 0-N range,
1370 * Indexed by [quant_mode - 4][data_value].
1377 * Converts quant value in 0-N range into unpacked value in 0-255 range,
1380 * Indexed by [quant_mode - 4][data_value].
1388 * number of compressed storage bits. Returns -1 for cases where the requested integer count cannot
1458 * - Only pi.partition_count array entries actually get initialized.
1459 * - Direction vectors @c pm.dir are not normalized.
1475 * - Only pi.partition_count array entries actually get initialized.
1476 * - Direction vectors @c pm.dir are not normalized.
1493 * - Only pi.partition_count array entries actually get initialized.
1494 * - Direction vectors @c pm.dir are not normalized.
1507 * - Only pi.partition_count array entries actually get initialized.
1508 * - Direction vectors @c pm.dir are not normalized.
1519 * through the mean-color-value. One line has a direction defined by the dominant direction; this
1542 * through the mean-color-value. One line has a direction defined by the dominant direction; this
1627 * Results are written back into @c img->input_alpha_averages.
1645 * The routine computes both in a single pass, using a summed-area table to decouple the running
1766 * steepest-descent grid solver which works as follows:
1772 * @param ei The non-decimated endpoints and weights.
1848 * delta-based representation. It will report back the format variant it actually used.
1873 * Endpoints must be unscrambled and converted into the 0-255 range before calling this functions.
1924 * TODO: Can we skip this for non-decimated weights now that the @c scb is
2206 Platform-specific functions.
2225 // Don't allow this to under-align a type in aligned_malloc()
2299 if (dlclose(astcCustomizedSoHandle_) != 0) in ~AstcCustomizedSoManager()
2301 printf("astcenc so dlclose failed: %s\n", g_astcCustomizedSo.c_str()); in ~AstcCustomizedSoManager()
2315 if ((_access(g_astcCustomizedSo, 0) == -1)) in LoadSutCustomizedSo()
2364 if (access(g_astcCustomizedSo.c_str(), F_OK) == -1) in LoadSutCustomizedSo()
2381 dlclose(astcCustomizedSoHandle_); in LoadSutCustomizedSo()
2391 dlclose(astcCustomizedSoHandle_); in LoadSutCustomizedSo()
2401 dlclose(astcCustomizedSoHandle_); in LoadSutCustomizedSo()