141 Commits

Author SHA1 Message Date
zhaonan287 a28eae1bcf ASTC编码支持HDR
Signed-off-by: zhaonan287 <zhaonan34@huawei.com>
2026-04-11 14:28:53 +08:00
屑屑屑 172e2144aa p7 fix img.dim_stride and 34patch 35patch
Signed-off-by: 屑屑屑 <jiangwenda5@h-partners.com>
2026-04-10 19:02:55 +08:00
屑屑屑 0e6fa1376c p6 Support MAC platform for astc-encoder customized profile
Signed-off-by: 屑屑屑 <jiangwenda5@h-partners.com>
2026-04-10 16:36:13 +08:00
屑屑屑 1902ef7aa6 p5 Fixed exception when there is no astc-encoder dependent library
Signed-off-by: 屑屑屑 <jiangwenda5@h-partners.com>
2026-04-10 16:17:55 +08:00
屑屑屑 c08e5eeeb4 p2 high profiler
Signed-off-by: 屑屑屑 <jiangwenda5@h-partners.com>
2026-04-10 10:15:57 +08:00
屑屑屑 ccbbf05d00 d2a8f46 p1
Signed-off-by: 屑屑屑 <jiangwenda5@h-partners.com>
2026-04-09 22:02:51 +08:00
屑屑屑 41dd3fd422 astc-encoder-5.3.0
Signed-off-by: 屑屑屑 <jiangwenda5@h-partners.com>
2026-04-09 20:33:02 +08:00
zhaonan287 75b62f5b77 ASTC编码支持HDR
Signed-off-by: zhaonan287 <zhaonan34@huawei.com>
2025-05-30 11:11:31 +08:00
colinhl 10b5a890d8 add nullptr check when astc mem free
Signed-off-by: colinhl <helin48@huawei.com>
2024-07-08 10:58:30 +08:00
zhaonan287 0b0d856e5d Support MAC platform for astc-encoder customized profile
Signed-off-by: zhaonan287 <zhaonan34@huawei.com>
2024-06-27 17:41:39 +08:00
zhaonan287 cc9258c19b Fixed exception when there is no astc-encoder dependent library
Signed-off-by: zhaonan287 <zhaonan34@huawei.com>
2024-06-21 16:54:10 +08:00
ql 17c0115f3c ASTC-encoder update to 4.7.0
Signed-off-by: zhaonan287 <zhaonan34@huawei.com>
2024-05-16 10:11:13 +08:00
f00849353 e1aa5096f9 add high speed profile for astc encoder
Signed-off-by: f00849353 <fanghuameng@huawei.com>
2023-12-21 20:01:02 +08:00
f00849353 d2a8f464ea add stride; add calculate ssd
Signed-off-by: f00849353 <fanghuameng@huawei.com>
2023-11-16 15:00:28 +08:00
Peter Harris a84285b211 Add NEON popcount implementation 2022-04-27 20:28:41 +01:00
Pete Harris 295232ad9e Use const reference to original binary data 2022-04-26 22:33:12 +01:00
Pete Harris 0b59667b34 Use C++-style casts everywhere 2022-04-26 22:29:24 +01:00
Pete Harris 8c307c00f6 Add fast load variant for U8 LDR images 2022-04-09 19:22:54 +01:00
Pete Harris baa3d5786f Enable more block_modes for 4x4 -fastest 2022-03-22 00:19:55 +00:00
Pete Harris a90a7fe35f Hoist channel_weight setup out of block loop 2022-03-14 20:25:23 +00:00
Pete Harris 9c4a310f9c Revert astcenc_context back to new, as we need const constructors 2022-03-13 09:22:19 +00:00
Pete Harris d3213e2bd8 Fix mismatched aligned_alloc/delete pairs 2022-03-13 09:02:02 +00:00
Pete Harris 92b5112a37 Whitespace fixes 2022-03-13 08:26:07 +00:00
Pete Harris 921038f0a9 Move to static resource allocation in context structure 2022-03-11 21:29:01 +00:00
Pete Harris 9c36c8cab8 Move normal map max partition boost to config init 2022-03-10 22:57:56 +00:00
Pete Harris 95d3207d12 Compact duplicate encodings when in SELF_DECOMPRESS mode 2022-03-10 22:57:56 +00:00
Pete Harris 6a8b242849 Add block texel_count to image_block 2022-03-05 22:45:15 +00:00
pete 551824340c Fix error block output color handling 2022-02-23 15:10:59 +00:00
Pete Harris 25f70cf849 Support build-time restriction on block size 2022-02-22 20:28:30 +00:00
Pete Harris 4fa7b12bfa Remove remaining error_weight_block usage 2022-02-22 10:18:14 +00:00
Pete Harris 7c7117e309 Remove per-texel error weights
Every use is replaced with a block-wide per-channel weighting.
This removes support for:

* -v and -va for effor function control
* -b for deblocking
* -a for alpha weighting (still supported for RDO)
2022-02-22 10:18:14 +00:00
Pete Harris 0887ec5446 Remove ewb.block_error_weighted_rgba_sum 2022-02-22 10:18:14 +00:00
pete 420c4b1dd1 Give normals a slightly higher search quality threshold 2021-10-26 23:55:40 +01:00
pete ac0d6b5e40 Add deblocking to all -normal modes 2021-10-26 22:43:50 +01:00
pete 6cfc4973f3 Significantly improve the quality of -fastest
Improve the quality of -fastest by an average of 1dB, albeit at
around 0.5x the performance. With this change -fastest is ~2x
the speed of -fast.

The goal of this change was to improve predictability of the codec
and avoid the steep quality-to-perf drop-off for effort settings
under 10, where the loss in quality was much faster than the gain
in performance compared to effort settings above 10.
2021-10-01 07:28:59 +01:00
pete ccc5369a64 Use the mode0 fast-pash less for -fastest quality
- For 6x6 this improves IQ by around 0.3dB for ~8% performance.
- For 8x8 this improves IQ by around 0.5dB for ~15% performance.

Both are still substantially faster than -fast (2-3x).
2021-09-28 00:37:34 +01:00
Pete Harris 79f6a6bd49 Use a ROM quant_mode_table to avoid parallel init (#284) 2021-08-20 07:37:01 +01:00
pete a53f4f2509 Add color support for -perceptual 2021-07-15 14:13:09 +01:00
pete 31be7e69ba Remove old optimization TODOs that have been tried 2021-06-21 23:04:34 +01:00
pete 196a28ec0e Allow high bitrate blocks to use 2 planes more 2021-06-17 17:02:19 +01:00
pete 3e016b56a9 Trade some performance for quality boosts 2021-06-15 18:35:27 +01:00
pete abd8955115 Use initializer not assignment 2021-06-14 15:36:46 +01:00
pete fc834fb5cb Add -lowweightmodelimit heuristic 2021-06-07 23:12:44 +01:00
pete c19bf108a1 Remove now unused compression tuning setting 2021-06-01 23:18:15 +01:00
pete 0422417d50 Tune 2 partition + 2 plane heuristic to skip more often 2021-06-01 00:24:33 +01:00
pete da885c132a Rename imageblock to image_block 2021-05-31 23:45:13 +01:00
pete 9c4df8d94f Merge compression scratch buffers 2021-05-25 09:08:43 +01:00
pete 37ce984775 Remove redundant copy of the avg_var structure 2021-05-25 08:52:00 +01:00
pete fd7a9829e2 Disambiguate color and weight quant in var names 2021-05-25 08:17:06 +01:00
pete 3b887de68a Cleanups and documentation for astcenc_internal 2021-05-24 23:45:51 +01:00