• 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 // ----------------------------------------------------------------------------
55 * once, or that the loop iteration count is a multiple of a vector length, which avoids pre-loop
56 * checks and can avoid loop tails if loops are unrolled by the auto-vectorizer.
158 * we only use it where it has the most value - low quant levels with wide
163 * one 8-wide vector. Decreasing by one doesn't buy much performance, and
274 // Unreachable - the enum is fully described in get_quant_level()
283 /** @brief The error-weighted average color in the partition. */
286 /** @brief The dominant error-weighted direction in the partition. */
301 /** @brief Post-processed line for uncorrelated chroma. */
304 /** @brief Post-processed line for correlated chroma, passing though the origin. */
310 * This is used for both the uncorrelated and same chroma lines - they are normally very similar
321 * empty partitions. These are both valid encodings, but astcenc will skip both during compression
451 return static_cast<quant_method>(this->quant_mode); in get_weight_quant_mode()
460 /** @brief The max weight precision for 1 plane, or -1 if not supported. */
463 /** @brief The max weight precision for 2 planes, or -1 if not supported. */
497 uint16_t mask = static_cast<uint16_t>((1 << (max_weight_quant + 1)) - 1); in is_ref_1plane()
518 uint16_t mask = static_cast<uint16_t>((1 << (max_weight_quant + 1)) - 1); in is_ref_2plane()
603 /** @brief The active partition tables, stored in low indices per-count. */
609 * Indexed by partition_count - 2, containing 2, 3 and 4 partitions.
613 /** @brief The active texels for k-means partition selection. */
617 * @brief The canonical 2-partition coverage pattern used during block partition search.
624 * @brief The canonical 3-partition coverage pattern used during block partition search.
631 * @brief The canonical 4-partition coverage pattern used during block partition search.
650 unsigned int packed_index = this->block_mode_packed_index[block_mode]; in get_block_mode()
651 assert(packed_index != BLOCK_BAD_BLOCK_MODE && packed_index < this->block_mode_count_all); in get_block_mode()
652 return this->block_modes[packed_index]; in get_block_mode()
668 return this->decimation_modes[decimation_mode]; in get_decimation_mode()
684 return this->decimation_tables[decimation_mode]; in get_decimation_info()
700 unsigned int index = (partition_count - 2) * BLOCK_MAX_PARTITIONINGS; in get_partition_table()
701 return this->partitionings + index; in get_partition_table()
717 packed_index = this->partitioning_packed_index[partition_count - 2][index]; in get_partition_info()
720 …_index != BLOCK_BAD_PARTITIONING && packed_index < this->partitioning_count_all[partition_count - in get_partition_info()
736 …_index != BLOCK_BAD_PARTITIONING && packed_index < this->partitioning_count_all[partition_count - in get_raw_partition_info()
749 * The @c rgb_lns and @c alpha_lns fields that assigned a per-texel use of HDR are only used during
843 return this->alpha_lns[0] ? static_cast<float>(0x7800) : static_cast<float>(0xFFFF); in get_default_alpha()
858 vmask4 color_mask = this->data_min == this->data_max; in is_constant_channel()
869 float default_alpha = this->get_default_alpha(); in is_luminance()
870 bool alpha1 = (this->data_min.lane<3>() == default_alpha) && in is_luminance()
871 (this->data_max.lane<3>() == default_alpha); in is_luminance()
872 return this->grayscale && alpha1; in is_luminance()
882 float default_alpha = this->get_default_alpha(); in is_luminancealpha()
883 bool alpha1 = (this->data_min.lane<3>() == default_alpha) && in is_luminancealpha()
884 (this->data_max.lane<3>() == default_alpha); in is_luminancealpha()
885 return this->grayscale && !alpha1; in is_luminancealpha()
927 /** @brief Error of using LDR RGB-scale instead of complete endpoints. */
930 /** @brief Error of using HDR RGB-scale instead of complete endpoints. */
958 * @brief Decimated ideal weight values in the ~0-1 range.
968 * @brief Decimated quantized weight values in the unquantized 0-64 range.
1036 * floating-point weight. For each quantized weight, the corresponding unquantized values. For each
1037 * quantized weight, a previous-value and a next-value.
1051 * @brief A table of previous-and-next weights, indexed by the current unquantized value.
1052 * * bits 7:0 = previous-index, unquantized
1053 * * bits 15:8 = next-index, unquantized
1070 /** @brief The block is a normal non-constant color block. */
1088 /** @brief Non-zero if the color formats matched; valid for @c NONCONST blocks. */
1091 /** @brief The plane 2 color component, or -1 if single plane; valid for @c NONCONST blocks. */
1120 * Weights are stored in the 0-64 unpacked range allowing them to be used
1121 * directly in encoding passes without per-use unpacking. Packing happens
1135 return this->quant_mode; in get_color_quant_mode()
1232 * Fields below here are not needed in a decompress-only build, but some remain as they are
1274 * @param mode_cutoff The block mode percentile cutoff [0-1].
1349 * Converts unquant value in 0-255 range into quant value in 0-255 range.
1354 * for each input - one for use with a negative residual, and one for use with
1357 * Indexed by [quant_mode - 4][data_value * 2 + residual].
1364 * Converts quant value in 0-255 range into packed quant value in 0-N range,
1367 * Indexed by [quant_mode - 4][data_value].
1374 * Converts quant value in 0-N range into unpacked value in 0-255 range,
1377 * Indexed by [quant_mode - 4][data_value].
1385 * number of compressed storage bits. Returns -1 for cases where the requested integer count cannot
1455 * - Only pi.partition_count array entries actually get initialized.
1456 * - Direction vectors @c pm.dir are not normalized.
1472 * - Only pi.partition_count array entries actually get initialized.
1473 * - Direction vectors @c pm.dir are not normalized.
1490 * - Only pi.partition_count array entries actually get initialized.
1491 * - Direction vectors @c pm.dir are not normalized.
1504 * - Only pi.partition_count array entries actually get initialized.
1505 * - Direction vectors @c pm.dir are not normalized.
1516 * through the mean-color-value. One line has a direction defined by the dominant direction; this
1539 * through the mean-color-value. One line has a direction defined by the dominant direction; this
1624 * Results are written back into @c img->input_alpha_averages.
1642 * The routine computes both in a single pass, using a summed-area table to decouple the running
1763 * steepest-descent grid solver which works as follows:
1769 * @param ei The non-decimated endpoints and weights.
1845 * delta-based representation. It will report back the format variant it actually used.
1870 * Endpoints must be unscrambled and converted into the 0-255 range before calling this functions.
1921 * TODO: Can we skip this for non-decimated weights now that the @c scb is
2201 Platform-specific functions.
2220 // Don't allow this to under-align a type in aligned_malloc()
2284 printf("astcenc customized so is not be opened when dlclose!\n"); in ~AstcCustomizedSoManager()
2293 if (dlclose(astcCustomizedSoHandle_) != 0) in ~AstcCustomizedSoManager()
2295 printf("astcenc so dlclose failed: %s\n", g_astcCustomizedSo.c_str()); in ~AstcCustomizedSoManager()
2307 if ((_access(g_astcCustomizedSo, 0) == -1)) in LoadSutCustomizedSo()
2356 if (access(g_astcCustomizedSo.c_str(), F_OK) == -1) in LoadSutCustomizedSo()
2373 dlclose(astcCustomizedSoHandle_); in LoadSutCustomizedSo()
2383 dlclose(astcCustomizedSoHandle_); in LoadSutCustomizedSo()
2393 dlclose(astcCustomizedSoHandle_); in LoadSutCustomizedSo()