author int64 658 755k | date stringdate 2012-06-12 08:34:29 2024-07-22 14:51:21 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods listlengths 1 16 | language stringclasses 20
values | license stringclasses 3
values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
61,745 | 07.01.2021 08:52:52 | 0 | 658dbb41e66dc03b17a5e94efb74143ac88b0bfd | Update script to compare to 2.2 by default | [
{
"change_type": "MODIFY",
"old_path": "Test/astc_test_image.py",
"new_path": "Test/astc_test_image.py",
"diff": "@@ -369,7 +369,7 @@ def parse_command_line():\nparser.add_argument(\"--encoder\", dest=\"encoders\", default=\"avx2\",\nchoices=coders, help=\"test encoder variant\")\n- parser.add_argum... | C | Apache License 2.0 | arm-software/astc-encoder | Update script to compare to 2.2 by default |
61,745 | 07.01.2021 12:01:43 | 0 | 6be54673ff0cf063c935a8fdf1949505b4f99014 | Optimize compute_rgb_range
Logic is identical, but the new code is more auto-vectorization
friendly and we get better codegen on Clang++. | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_find_best_partitioning.cpp",
"new_path": "Source/astcenc_find_best_partitioning.cpp",
"diff": "@@ -110,50 +110,32 @@ static void compute_rgb_range(\nfloat3 rgb_max[4];\nint partition_count = pt->partition_count;\n+\n+ promise(partition_count > 0... | C | Apache License 2.0 | arm-software/astc-encoder | Optimize compute_rgb_range
Logic is identical, but the new code is more auto-vectorization
friendly and we get better codegen on Clang++. |
61,745 | 07.01.2021 21:47:47 | 0 | 9c155c48e38aba952e44e49f119ccb6a81a27bc0 | Add promises for common for loops in hot functions | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -81,6 +81,10 @@ static int realign_weights(\nfloat4 endpnt0f[4];\nfloat4 offset[4];\n+ promise(partition_count > 0);\n+ promise(weight_count > 0);\n+ promise... | C | Apache License 2.0 | arm-software/astc-encoder | Add promises for common for loops in hot functions |
61,745 | 07.01.2021 22:00:50 | 0 | 2c2ce9afde18252f509d8f19af26b9126656ab03 | Consistently use "count" not "num" | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -300,7 +300,7 @@ static void initialize_decimation_table_2d(\nfor (int i = 0; i < texels_per_block; i++)\n{\n- dt->texel_num_weights[i] = weightcount_of_texel[i];\n+ d... | C | Apache License 2.0 | arm-software/astc-encoder | Consistently use "count" not "num" |
61,745 | 07.01.2021 22:31:41 | 0 | d0a689c05079bc5c087a8236ac10552bb0e40659 | More promises on hot loops | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_averages_and_directions.cpp",
"new_path": "Source/astcenc_averages_and_directions.cpp",
"diff": "@@ -46,15 +46,19 @@ void compute_averages_and_directions_rgba(\nfloat4* directions_rgba\n) {\nint partition_count = pt->partition_count;\n+ promise(... | C | Apache License 2.0 | arm-software/astc-encoder | More promises on hot loops |
61,745 | 09.01.2021 12:01:53 | 0 | 7fae1d6c29b8b6e0332ebaa8d8ed462b1d9393fc | Update Building.md
Remove -j option from nmake | [
{
"change_type": "MODIFY",
"old_path": "Docs/Building.md",
"new_path": "Docs/Building.md",
"diff": "@@ -41,7 +41,7 @@ from your build dir, and install to your target install directory.\n```shell\n# Run a build and install build outputs in `${CMAKE_INSTALL_PREFIX}/astcenc/`\ncd build\n-nmake install ... | C | Apache License 2.0 | arm-software/astc-encoder | Update Building.md
Remove -j option from nmake |
61,745 | 09.01.2021 12:02:35 | 0 | be14d8360df966b5baa15a6aef3cc3996d5a9881 | Update Building.md
Use ^ line continuation in Windows shell command samples | [
{
"change_type": "MODIFY",
"old_path": "Docs/Building.md",
"new_path": "Docs/Building.md",
"diff": "@@ -25,7 +25,7 @@ cd build\n# Configure your build of choice, for example:\n# x86-64\n-cmake -G \"NMake Makefiles\" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./ \\\n+cmake -G \"NMake Makefiles... | C | Apache License 2.0 | arm-software/astc-encoder | Update Building.md
Use ^ line continuation in Windows shell command samples |
61,745 | 12.01.2021 15:36:50 | 0 | a1ebd6d0e8e16297a290e8c29b0c26e8e94d4d16 | Fix AVX2 lane() on Windows | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_avx2_8.h",
"new_path": "Source/astcenc_vecmathlib_avx2_8.h",
"diff": "@@ -98,7 +98,7 @@ struct vfloat8\ntemplate <int l> ASTCENC_SIMD_INLINE float lane() const\n{\n#ifdef _MSC_VER\n- return m.m256_f32[i];\n+ return m.m256_f32[l];\n#el... | C | Apache License 2.0 | arm-software/astc-encoder | Fix AVX2 lane() on Windows |
61,745 | 12.01.2021 18:48:18 | 0 | cb7153f752111866e00156a556d7f1ef23fd4887 | Change quantization_mode_table to use int8_t | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_internal.h",
"new_path": "Source/astcenc_internal.h",
"diff": "@@ -785,7 +785,7 @@ int is_legal_3d_block_size(\nextern const uint8_t color_quantization_tables[21][256];\nextern const uint8_t color_unquantization_tables[21][256];\n-extern int qua... | C | Apache License 2.0 | arm-software/astc-encoder | Change quantization_mode_table to use int8_t |
61,745 | 12.01.2021 18:54:41 | 0 | 5e777791c44bb6132c79043b414bfa9fee7ef873 | Avoid goto in hdr luma encoding function | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -1685,33 +1685,27 @@ static int try_quantize_hdr_luminance_small_range3(\nv0 = lowval & 0x7F;\nv0e = color_quantization_tables[quantization_level][v0];\nv0d = colo... | C | Apache License 2.0 | arm-software/astc-encoder | Avoid goto in hdr luma encoding function |
61,745 | 12.01.2021 20:07:31 | 0 | 6a5ea275b0ba236fa17c1f41da8ea9e7adff7b83 | Shrink symbolic_compressed_block | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -1850,7 +1850,6 @@ int pack_color_endpoints(\nint retval = 0;\n- // TODO: Make format an endpoint_fmt enum type\nswitch (format)\n{\ncase FMT_RGB:\n"
},
{
... | C | Apache License 2.0 | arm-software/astc-encoder | Shrink symbolic_compressed_block |
61,745 | 12.01.2021 20:11:53 | 0 | 0e0e2fa2bcb6f2d80dfaf16c92fbe70aac65fecf | Add missing static function qualifier | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -551,7 +551,7 @@ static int try_quantize_alpha_delta(\nreturn 1;\n}\n-int try_quantize_luminance_alpha_delta(\n+static int try_quantize_luminance_alpha_delta(\nflo... | C | Apache License 2.0 | arm-software/astc-encoder | Add missing static function qualifier |
61,745 | 12.01.2021 21:09:43 | 0 | 37db42bae3fe43685f22d1f668f9ccae15b83ae9 | Change some tmp array types to smaller ones | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -118,7 +118,9 @@ static int decode_block_mode_2d(\nint qmode = (base_quant_mode - 2) + 6 * H;\nint weightbits = compute_ise_bitcount(weight_count, (quantization_method... | C | Apache License 2.0 | arm-software/astc-encoder | Change some tmp array types to smaller ones |
61,745 | 12.01.2021 21:14:08 | 0 | 91d3f821e93bf465df8b2b921c338dd414441c01 | Shrink arrays for 3D blocks | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -382,12 +382,12 @@ static void initialize_decimation_table_3d(\nint texels_per_block = xdim * ydim * zdim;\nint weights_per_block = x_weights * y_weights * z_weights;\... | C | Apache License 2.0 | arm-software/astc-encoder | Shrink arrays for 3D blocks |
61,745 | 12.01.2021 21:33:15 | 0 | 74625e9f47435736b37c504a355ec3e6bfa71917 | Shrink more weight arrays to uint8_t | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -774,7 +774,7 @@ static void construct_block_size_descriptor_2d(\nastc::rand_init(rng_state);\n// pick 64 random texels for use with bitmap partitioning.\n- int arr[MA... | C | Apache License 2.0 | arm-software/astc-encoder | Shrink more weight arrays to uint8_t |
61,745 | 13.01.2021 00:17:41 | 0 | c81ae5d8b6d92159e2218f341b54900bbb78df10 | Make scalar and vector horizontal vector ops | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/test_simd.cpp",
"new_path": "Source/UnitTest/test_simd.cpp",
"diff": "@@ -662,6 +662,18 @@ TEST(vfloat4, hmin)\nEXPECT_EQ(r2.lane<3>(), 0.2f);\n}\n+/** @brief Test vfloat4 hmin_s. */\n+TEST(vfloat4, hmin_s)\n+{\n+ vfloat4 a1(1.1f, 1.5f, 1.6f, 4... | C | Apache License 2.0 | arm-software/astc-encoder | Make scalar and vector horizontal vector ops |
61,745 | 13.01.2021 00:45:18 | 0 | 2ec1e3b731067e2b7c13b4408c9f09f89ce3de4c | Add more functions to vector library | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/test_simd.cpp",
"new_path": "Source/UnitTest/test_simd.cpp",
"diff": "@@ -446,6 +446,30 @@ TEST(vfloat4, vdiv)\nEXPECT_EQ(a.lane<3>(), 4.0f / 0.4f);\n}\n+/** @brief Test vfloat4 div. */\n+TEST(vfloat4, vsdiv)\n+{\n+ vfloat4 a(1.0f, 2.0f, 3.0f, ... | C | Apache License 2.0 | arm-software/astc-encoder | Add more functions to vector library |
61,745 | 13.01.2021 08:51:30 | 0 | dc6cfa0bbac687293462c7b17337d09d3aefd96d | Add missing initializer for bsd.decimation_mode_count | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -668,6 +668,7 @@ static void construct_block_size_descriptor_2d(\nbsd.ydim = y_dim;\nbsd.zdim = 1;\nbsd.texel_count = x_dim * y_dim;\n+ bsd.decimation_mode_count = 0;\... | C | Apache License 2.0 | arm-software/astc-encoder | Add missing initializer for bsd.decimation_mode_count |
61,745 | 13.01.2021 09:52:36 | 0 | 3c74cb8f7df12f0fd309eb9baf1b3115dac632da | Fix NEON build issues | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_neon_4.h",
"new_path": "Source/astcenc_vecmathlib_neon_4.h",
"diff": "@@ -589,7 +589,7 @@ ASTCENC_SIMD_INLINE vfloat4 operator/(vfloat4 a, vfloat4 b)\n*/\nASTCENC_SIMD_INLINE vfloat4 operator/(vfloat4 a, float b)\n{\n- return vfloat4(... | C | Apache License 2.0 | arm-software/astc-encoder | Fix NEON build issues |
61,745 | 13.01.2021 10:51:25 | 0 | 47a692d137d332445361ebe768ad56666e2a1a22 | Fix promise() on GCC | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_internal.h",
"new_path": "Source/astcenc_internal.h",
"diff": "*/\n#if defined(NDEBUG)\n#if defined(_MSC_VER)\n- #define promise(cond) __assume(cond);\n- #elif __has_builtin(__builtin_assume)\n- #define promise(cond) __builtin_assume(cond);\n+ #... | C | Apache License 2.0 | arm-software/astc-encoder | Fix promise() on GCC |
61,745 | 13.01.2021 10:51:55 | 0 | a3a699c4828c8ae15275509230e21ca7ca1fc4a1 | Swap intrinsics for alternatives available in GCC 7.5 | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_avx2_8.h",
"new_path": "Source/astcenc_vecmathlib_avx2_8.h",
"diff": "@@ -174,7 +174,8 @@ struct vint8\n*/\nASTCENC_SIMD_INLINE explicit vint8(const uint8_t *p)\n{\n- m = _mm256_cvtepu8_epi32(_mm_loadu_si64(p));\n+ // _mm_loadu_si64 w... | C | Apache License 2.0 | arm-software/astc-encoder | Swap intrinsics for alternatives available in GCC 7.5 |
61,745 | 13.01.2021 11:23:11 | 0 | cc689279e2a22cb46167bab408d6f969f2f5d022 | Fix unit test CMake file | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/cmake_core.cmake",
"new_path": "Source/UnitTest/cmake_core.cmake",
"diff": "@@ -51,7 +51,7 @@ if(${ISA_SIMD} MATCHES \"none\")\nASTCENC_POPCNT=0)\nif (${ARCH} MATCHES x64)\n- target_compile_options(astcenc-${ISA_SIMD}\n+ target_compile_options(... | C | Apache License 2.0 | arm-software/astc-encoder | Fix unit test CMake file |
61,745 | 13.01.2021 11:24:18 | 0 | 16acfb988c602f4624ffc172a86090c9681ea492 | Add decompressor build support to CMake
Configure with -DDECOMPRESSOR=ON | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -86,6 +86,13 @@ else()\nmessage(\" -- ISA invariant backend - OFF\")\nendif()\n+option(DECOMPRESSOR \"Enable builds for decompression only\")\n+if(${DECOMPRESSOR})\n+ message(\" -- Decompress-only back... | C | Apache License 2.0 | arm-software/astc-encoder | Add decompressor build support to CMake
Configure with -DDECOMPRESSOR=ON |
61,745 | 13.01.2021 11:25:01 | 0 | 5dcd91a6571870e7c3770bb390f546ace9a3e2eb | Fix decompresor-only builds | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -678,6 +678,10 @@ static void construct_block_size_descriptor_2d(\n// Gather all the decimation grids that can be used with the current block.\n#if !defined(ASTCENC_DE... | C | Apache License 2.0 | arm-software/astc-encoder | Fix decompresor-only builds |
61,745 | 13.01.2021 11:25:42 | 0 | 06389828e66e0fdbe4d0c3a89a56a5cf91660027 | Add decompressor builds to Jenkins pipeline | [
{
"change_type": "MODIFY",
"old_path": "jenkins/release.Jenkinsfile",
"new_path": "jenkins/release.Jenkinsfile",
"diff": "@@ -90,7 +90,7 @@ pipeline {\nsh 'git clean -ffdx'\n}\n}\n- stage('Build R') {\n+ stage('Build astcenc R') {\nsteps {\nsh '''\nexport CXX=clang++-9\n@@ -101,6 +101,17 @@ pipeline... | C | Apache License 2.0 | arm-software/astc-encoder | Add decompressor builds to Jenkins pipeline |
61,745 | 13.01.2021 22:47:59 | 0 | 446a1a3eb85dea56d3043ad36a50b5ab8497acfc | Update Small test reference to latest master build | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Test/Images/Small/astc_reference-master-avx2_fast_results.csv",
"diff": "+Image Set,Block Size,Name,PSNR,Total Time,Coding Time,Coding Rate\n+Small,4x4,hdr-rgb-00.hdr,31.3376,0.1407,0.0431,1.5199\n+Small,4x4,ldr-rgb-00.png,37.6618,0.0337,0.0255,... | C | Apache License 2.0 | arm-software/astc-encoder | Update Small test reference to latest master build |
61,745 | 13.01.2021 23:11:15 | 0 | f4406616d591e41d729aa53f871916fef3979dfc | Variable name / whitespace cleanup | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_averages_and_directions.cpp",
"new_path": "Source/astcenc_averages_and_directions.cpp",
"diff": "@@ -459,7 +459,7 @@ void compute_averages_and_directions_2_components(\n}\nvoid compute_error_squared_rgba(\n- const partition_info* pt, // the part... | C | Apache License 2.0 | arm-software/astc-encoder | Variable name / whitespace cleanup |
61,745 | 15.01.2021 20:33:15 | 0 | c63e673cdb53867b9ac59bbc6989f6f0367360db | Add cast for GCC 7.5 NEON support | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_neon_4.h",
"new_path": "Source/astcenc_vecmathlib_neon_4.h",
"diff": "@@ -181,7 +181,8 @@ struct vint4\nASTCENC_SIMD_INLINE explicit vint4(const uint8_t *p)\n{\nuint32x2_t t8 {};\n- t8 = vld1_lane_u32(p, t8, 0);\n+ // Cast is safe - N... | C | Apache License 2.0 | arm-software/astc-encoder | Add cast for GCC 7.5 NEON support |
61,745 | 15.01.2021 22:37:11 | 0 | 87a868bc7c743270b6bf3b6aeee15029d17d6197 | Remove unneeded if check | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -1367,9 +1367,6 @@ void compress_block(\ncontinue;\n}\n-\n- if (lowest_correl <= ctx.config.tune_two_plane_early_out_limit)\n- {\ncompress_symbolic_block_fix... | C | Apache License 2.0 | arm-software/astc-encoder | Remove unneeded if check |
61,745 | 19.01.2021 23:38:50 | 0 | bc74517efa37ac02633f80fbda4df72d60ef7d30 | Support clang-cl on Windows | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_internal.h",
"new_path": "Source/astcenc_internal.h",
"diff": "* loop tails if loops are unrolled by the auto-vectorizer.\n*/\n#if defined(NDEBUG)\n- #if defined(_MSC_VER)\n+ #if !defined(__clang__) && defined(_MSC_VER)\n#define promise(cond) __... | C | Apache License 2.0 | arm-software/astc-encoder | Support clang-cl on Windows |
61,745 | 20.01.2021 01:42:40 | 0 | ce25aa5ba71cdf9069c3c54da7e326deeccb2fcf | Initital support for clang++-10 and clang-cl | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -1733,7 +1733,7 @@ static int try_quantize_hdr_luminance_small_range3(\nv1d = color_unquantization_tables[quantization_level][v1e];\nif ((v1d & 0xE0) != (v1 & 0xE0... | C | Apache License 2.0 | arm-software/astc-encoder | Initital support for clang++-10 and clang-cl |
61,745 | 20.01.2021 20:52:25 | 0 | 52b48b2a0d4917447d290fe713f0a1a2a1b5dd03 | Remove data table for angular steppings an stepsizes
This replaces the angular_steppings table with a computationally
generated one, where the steppings are evenly spaced 1-40.
This isn't quite as effective, reducing quality by up to 0.05dB,
but improves performance by 3-6%. | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/test_simd.cpp",
"new_path": "Source/UnitTest/test_simd.cpp",
"diff": "@@ -892,6 +892,17 @@ TEST(vfloat4, recip)\nEXPECT_NEAR(r.lane<3>(), 1.0f / 4.0f, 0.0005f);\n}\n+/** @brief Test vfloat4 reciprocal. */\n+TEST(vfloat4, fast_recip)\n+{\n+ vflo... | C | Apache License 2.0 | arm-software/astc-encoder | Remove data table for angular steppings an stepsizes
This replaces the angular_steppings table with a computationally
generated one, where the steppings are evenly spaced 1-40.
This isn't quite as effective, reducing quality by up to 0.05dB,
but improves performance by 3-6%. |
61,745 | 20.01.2021 22:21:58 | 0 | 86910deffbec56856e5091a3f81866decd313816 | Fix loss-of-const warnings flagged by clang-cl | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_entry.cpp",
"new_path": "Source/astcenc_entry.cpp",
"diff": "@@ -845,7 +845,7 @@ astcenc_error astcenc_decompress_image(\n{\nunsigned int offset = (((z * yblocks + y) * xblocks) + x) * 16;\nconst uint8_t* bp = data + offset;\n- physical_compress... | C | Apache License 2.0 | arm-software/astc-encoder | Fix loss-of-const warnings flagged by clang-cl |
61,745 | 20.01.2021 22:29:01 | 0 | 9b08ca1bcd4ba2ebad10b1ece2ac1234e21bd1fa | Cleanly handle covered-defaults for enum switches | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_entry.cpp",
"new_path": "Source/astcenc_entry.cpp",
"diff": "@@ -76,7 +76,9 @@ static astcenc_error validate_cpu_isa()\nstatic astcenc_error validate_profile(\nastcenc_profile profile\n) {\n- switch(profile)\n+ // Values in this enum are from an... | C | Apache License 2.0 | arm-software/astc-encoder | Cleanly handle covered-defaults for enum switches |
61,745 | 20.01.2021 22:32:44 | 0 | f7d38ca5d74c8f91408a4d81b4d1a1bb38fc4c38 | Cleanly handle -Wswitch-enum | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_entry.cpp",
"new_path": "Source/astcenc_entry.cpp",
"diff": "@@ -128,7 +128,8 @@ static astcenc_error validate_flags(\nstatic astcenc_error validate_compression_swz(\nastcenc_swz swizzle\n) {\n- switch(swizzle)\n+ // Not all enum values are hand... | C | Apache License 2.0 | arm-software/astc-encoder | Cleanly handle -Wswitch-enum |
61,745 | 20.01.2021 22:48:26 | 0 | b1b487f0a31e5d937d0bb72357c2b8c1633b1a3a | Use explicit int-to-float casts to guide optimization | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -980,7 +980,7 @@ static void quantize_hdr_rgbo3(\nquantize_and_unquantize_retain_top_two_bits(quantization_level, r_lowbits, &r_quantval, &r_uquantval);\nr_intval ... | C | Apache License 2.0 | arm-software/astc-encoder | Use explicit int-to-float casts to guide optimization |
61,745 | 20.01.2021 23:37:48 | 0 | bdd9ca500b6eea3e1d31f04695a5923693227b79 | Fix NEON fast_recip typo | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_neon_4.h",
"new_path": "Source/astcenc_vecmathlib_neon_4.h",
"diff": "@@ -871,7 +871,7 @@ ASTCENC_SIMD_INLINE vfloat4 recip(vfloat4 b)\n/**\n* @brief Generate an approximate reciprocal of a vector.\n*/\n-ASTCENC_SIMD_INLINE vfloat4 fa... | C | Apache License 2.0 | arm-software/astc-encoder | Fix NEON fast_recip typo |
61,745 | 20.01.2021 23:46:15 | 0 | 3b9672d195005b69c40356ca8265aa4784e6d498 | Add NEON fast_recip | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_neon_4.h",
"new_path": "Source/astcenc_vecmathlib_neon_4.h",
"diff": "@@ -864,7 +864,6 @@ ASTCENC_SIMD_INLINE float dot_s(vfloat4 a, vfloat4 b)\n*/\nASTCENC_SIMD_INLINE vfloat4 recip(vfloat4 b)\n{\n- // TODO: Is there a faster approxi... | C | Apache License 2.0 | arm-software/astc-encoder | Add NEON fast_recip |
61,745 | 22.01.2021 22:17:10 | 0 | 0c93ff6604986155133c26f9627f76abe961f5c7 | Turn quality into an easily tunable parameter | [
{
"change_type": "MODIFY",
"old_path": "Docs/ChangeLog.md",
"new_path": "Docs/ChangeLog.md",
"diff": "@@ -6,6 +6,36 @@ release of the 2.x series.\nAll performance data on this page is measured on an Intel Core i5-9600K\nclocked at 4.2 GHz, running astcenc using 6 threads.\n+\n+<!-- -----------------... | C | Apache License 2.0 | arm-software/astc-encoder | Turn quality into an easily tunable parameter |
61,745 | 23.01.2021 12:38:11 | 0 | b8ec8a664a141d382031fdbaf01731c899be5b56 | Add better error for an invalid non-float preset | [
{
"change_type": "MODIFY",
"old_path": "Docs/ChangeLog.md",
"new_path": "Docs/ChangeLog.md",
"diff": "@@ -24,7 +24,7 @@ recompile your client-side code using the updated `astcenc.h` header.\nfloat value between 0 and 100, allowing more control over the compression\nquality vs performance trade-off. ... | C | Apache License 2.0 | arm-software/astc-encoder | Add better error for an invalid non-float preset |
61,745 | 25.01.2021 21:35:01 | 0 | f6549d0dac477c2864e7931efb1f2f1675d65fd2 | Remove unneeded loop split | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_find_best_partitioning.cpp",
"new_path": "Source/astcenc_find_best_partitioning.cpp",
"diff": "@@ -162,10 +162,6 @@ void compute_partition_error_color_weightings(\nfor (int i = 0; i < pcnt; i++)\n{\nerror_weightings[i] = error_weightings[i] * (1... | C | Apache License 2.0 | arm-software/astc-encoder | Remove unneeded loop split |
61,745 | 25.01.2021 22:11:03 | 0 | 61a7a7097dd5f6eea0cfec3185392c4a2717b66e | Use astc::min, not a branch | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_kmeans_partitioning.cpp",
"new_path": "Source/astcenc_kmeans_partitioning.cpp",
"diff": "@@ -307,12 +307,7 @@ static inline int partition_mismatch3(\nint s5 = p11 + p20;\nint v2 = astc::min(s4, s5) + p02;\n- if (v1 < v0)\n- v0 = v1;\n- if (v2 < ... | C | Apache License 2.0 | arm-software/astc-encoder | Use astc::min, not a branch |
61,745 | 25.01.2021 22:32:57 | 0 | c936e1ec0b1b1a2bdbd170a702aac0f8cf37f67f | Clean up the kmeans functions | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_kmeans_partitioning.cpp",
"new_path": "Source/astcenc_kmeans_partitioning.cpp",
"diff": "// algorithm similar to XKCD #221. (http://xkcd.com/221/)\n// cluster the texels using the k++ means clustering initialization algorithm.\n-static void kpp_... | C | Apache License 2.0 | arm-software/astc-encoder | Clean up the kmeans functions |
61,745 | 25.01.2021 23:32:05 | 0 | 53bd832d652e6268ad82307ebdc6867d67221dd9 | Clean up kmeans texel assignment | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -590,6 +590,56 @@ static void initialize_decimation_table_3d(\ndt->weight_z = z_weights;\n}\n+/**\n+ * @brief Assign the texels to use for kmeans clustering.\n+ *\n+ *... | C | Apache License 2.0 | arm-software/astc-encoder | Clean up kmeans texel assignment |
61,745 | 25.01.2021 23:47:44 | 0 | e8e4e88d7635a7f5557b220d7dc5cd5d3adf904c | Use static table for ise_encoding | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_integer_sequence.cpp",
"new_path": "Source/astcenc_integer_sequence.cpp",
"diff": "#include \"astcenc_internal.h\"\n+#include <array>\n+\n// unpacked quint triplets <low,middle,high> for each packed-quint value\nstatic const uint8_t quints_of_in... | C | Apache License 2.0 | arm-software/astc-encoder | Use static table for ise_encoding |
61,745 | 26.01.2021 23:52:15 | 0 | 3a65a0db866c2b76439faff9ee60c9c678ac53c1 | Use a table-driven approach for computing ISE sizes | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -117,7 +117,7 @@ static int decode_block_mode_2d(\nint weight_count = N * M * (D + 1);\nint qmode = (base_quant_mode - 2) + 6 * H;\n- int weightbits = compute_ise_bitc... | C | Apache License 2.0 | arm-software/astc-encoder | Use a table-driven approach for computing ISE sizes |
61,745 | 27.01.2021 22:58:48 | 0 | 0f1e1b0d5b34a9ac62389a584aaf0ef1ed7a42e7 | Tidy up compute_ideal_weights_for_decimation_table | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -257,8 +257,8 @@ static float compress_symbolic_block_fixed_partition_1_plane(\neix[i] = *ei;\ncompute_ideal_weights_for_decimation_table(\n- &(eix[i]),\n- i... | C | Apache License 2.0 | arm-software/astc-encoder | Tidy up compute_ideal_weights_for_decimation_table |
61,745 | 28.01.2021 00:39:32 | 0 | 752bb3eb847bc74e5fea4f68ee143df42072a156 | Add utility for single block test extraction | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Utils/astc_test_autoextract.cpp",
"diff": "+// SPDX-License-Identifier: Apache-2.0\n+// ----------------------------------------------------------------------------\n+// Copyright 2021 Arm Limited\n+//\n+// Licensed under the Apache License, Ver... | C | Apache License 2.0 | arm-software/astc-encoder | Add utility for single block test extraction |
61,750 | 28.01.2021 09:02:35 | 0 | fa4369ef1da413f565ff2698d41da530b9773ae8 | Pin Jenkinsfile shared libraries version | [
{
"change_type": "MODIFY",
"old_path": "jenkins/nightly.Jenkinsfile",
"new_path": "jenkins/nightly.Jenkinsfile",
"diff": "* similarly on different operating systems, so we test one compiler per OS.\n*/\n-@Library('hive-infra-library@master') _\n+@Library('hive-infra-library@changes/88/287488/3') _\n... | C | Apache License 2.0 | arm-software/astc-encoder | Pin Jenkinsfile shared libraries version (#206) |
61,745 | 28.01.2021 23:53:35 | 0 | 7a4a5f3de5719a423d711e3fdc7db3234c5fe370 | Minor style cleanups | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_block_sizes2.cpp",
"new_path": "Source/astcenc_block_sizes2.cpp",
"diff": "@@ -271,7 +271,6 @@ static void initialize_decimation_table_2d(\nint x_weight_int = x_weight >> 4;\nint y_weight_int = y_weight >> 4;\nint qweight[4];\n- int weight[4];\n... | C | Apache License 2.0 | arm-software/astc-encoder | Minor style cleanups |
61,745 | 28.01.2021 23:55:33 | 0 | 497e2705f04989ccd40f318e81f9aded7ac3ecc2 | Optimize encode_ise()
Specialize for writing out bits/trits/quints
Remove temporary buffers
Unroll whole trits/quints blocks
Pack trit and quint LSBs with trailing T bits before write | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_integer_sequence.cpp",
"new_path": "Source/astcenc_integer_sequence.cpp",
"diff": "@@ -481,75 +481,151 @@ void encode_ise(\nuint8_t* output_data,\nint bit_offset\n) {\n- uint8_t lowparts[64];\n- uint8_t highparts[69]; // 64 elements + 5 elements... | C | Apache License 2.0 | arm-software/astc-encoder | Optimize encode_ise()
- Specialize for writing out bits/trits/quints
- Remove temporary buffers
- Unroll whole trits/quints blocks
- Pack trit and quint LSBs with trailing T bits before write |
61,745 | 29.01.2021 00:23:23 | 0 | 9010a8b71bd10a8ced14bfab9ba489f6de4b4313 | Syntax tidyup around array initializers | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -1787,7 +1787,7 @@ static void quantize_hdr_alpha3(\nv7e = color_quant_tables[quant_level][v7];\nv7d = color_unquant_tables[quant_level][v7e];\n- static const int ... | C | Apache License 2.0 | arm-software/astc-encoder | Syntax tidyup around array initializers |
61,745 | 29.01.2021 23:09:31 | 0 | 0b14a2a35c9ab1555beb9330d0c727be4cf57673 | Update help text for flexible quality | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenccli_toplevel_help.cpp",
"new_path": "Source/astcenccli_toplevel_help.cpp",
"diff": "#include \"astcenccli_internal.h\"\nstatic const char *astcenc_copyright_string =\n-R\"(ASTC codec v2.3-develop, %u-bit %s%s\n+R\"(astcenc v2.3-develop, %u-bit %s... | C | Apache License 2.0 | arm-software/astc-encoder | Update help text for flexible quality |
61,745 | 30.01.2021 00:15:05 | 0 | 4eb2086f9c60a799af5dc633ddecdfd16c5e87f5 | Update change log for 2.3 release | [
{
"change_type": "MODIFY",
"old_path": "Docs/ChangeLog.md",
"new_path": "Docs/ChangeLog.md",
"diff": "@@ -19,23 +19,83 @@ Reminder for users of the library interface - the API is not designed to be\nstable across versions, and this release is not compatible with 2.2. Please\nrecompile your client-si... | C | Apache License 2.0 | arm-software/astc-encoder | Update change log for 2.3 release |
61,745 | 30.01.2021 00:16:26 | 0 | 3348128e1ad2755b63192d5197f3ad7182e126cf | Bump tool version to 2.3 | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -20,7 +20,7 @@ cmake_minimum_required(VERSION 3.15)\ncmake_policy(SET CMP0069 NEW) # LTO support\ncmake_policy(SET CMP0091 NEW) # MSVC runtime support\n-project(astcenc VERSION 2.2.0)\n+project(astcenc... | C | Apache License 2.0 | arm-software/astc-encoder | Bump tool version to 2.3 |
61,745 | 30.01.2021 11:49:53 | 0 | 91a1aa8a2f84c8c854fc497516721d09b8fa3f6b | Force higher error thresholds for L data | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -1372,11 +1372,19 @@ void compress_block(\ntrace_add_data(\"pos_y\", blk->ypos);\ntrace_add_data(\"pos_z\", blk->zpos);\n+ // Set stricter block targets for ... | C | Apache License 2.0 | arm-software/astc-encoder | Force higher error thresholds for L data |
61,745 | 30.01.2021 11:58:29 | 0 | 18b9b156b3be74a0df9d8d398b6ccf299217b73b | Set higher error targets for L+A data | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -1377,13 +1377,19 @@ void compress_block(\nbool block_is_l = imageblock_is_lum(blk);\nfloat block_is_l_scale = block_is_l ? 1.0f / 1.5f : 1.0f;\n+ // Set sli... | C | Apache License 2.0 | arm-software/astc-encoder | Set higher error targets for L+A data |
61,745 | 31.01.2021 22:53:45 | 0 | 59f14d033ed196d97d80053ec41013bd7ac54fcb | Update markdown/versions for 2.3 release | [
{
"change_type": "MODIFY",
"old_path": "Docs/ChangeLog.md",
"new_path": "Docs/ChangeLog.md",
"diff": "@@ -8,10 +8,17 @@ clocked at 4.2 GHz, running astcenc using 6 threads.\n<!-- ---------------------------------------------------------------------- -->\n-## 2.3\n+## 2.4\n**Status:** In development\... | C | Apache License 2.0 | arm-software/astc-encoder | Update markdown/versions for 2.3 release |
61,745 | 03.02.2021 07:50:23 | 0 | 52f8cb1709cef491cdc80c887c14cb6ba7bd6ae8 | Add trailing quick reference to help text | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenccli_toplevel_help.cpp",
"new_path": "Source/astcenccli_toplevel_help.cpp",
"diff": "@@ -500,6 +500,20 @@ DECOMPRESSION FILE FORMATS\nContainer Formats:\nKhronos Texture KTX (*.ktx)\nDirectDraw Surface DDS (*.dds)\n+\n+QUICK REFERENCE\n+\n+ To com... | C | Apache License 2.0 | arm-software/astc-encoder | Add trailing quick reference to help text |
61,745 | 03.02.2021 08:33:49 | 0 | 1a7bb339da88abc84f0623cbd8fb3f8af19b524a | Replace -a zero-weight blocks with constant color
This change applied an RDO-like technique to improve packaging
compression ratios in textures using edge extrude/dilation.
Blocks that are entirely zero-weighted after the alpha radius is taken
into account are replaced with constant color black blocks.
Fixes | [
{
"change_type": "MODIFY",
"old_path": "Docs/ChangeLog.md",
"new_path": "Docs/ChangeLog.md",
"diff": "@@ -14,6 +14,13 @@ clocked at 4.2 GHz, running astcenc using 6 threads.\nThe 2.4 release is the fifth release in the 2.x series. It includes ...\n+* **General:**\n+ * **Feature:** When using the `-a... | C | Apache License 2.0 | arm-software/astc-encoder | Replace -a zero-weight blocks with constant color (#209)
This change applied an RDO-like technique to improve packaging
compression ratios in textures using edge extrude/dilation.
Blocks that are entirely zero-weighted after the alpha radius is taken
into account are replaced with constant color black blocks.
Fixes #208 |
61,745 | 09.02.2021 22:56:36 | 0 | 8a7d65e44d0d0da27f80a97d9d4c2c6933e42952 | Add helper script for objdump | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "Test/astc_dump_binary.py",
"diff": "+#!/usr/bin/env python3\n+# SPDX-License-Identifier: Apache-2.0\n+# -----------------------------------------------------------------------------\n+# Copyright 2021 Arm Limited\n+#\n+# Licensed under the Apach... | C | Apache License 2.0 | arm-software/astc-encoder | Add helper script for objdump |
61,745 | 10.02.2021 15:04:37 | 0 | f9dcf85f1f5bed95125846c5896f22c611461501 | Fix pixel addressing in HDR images
HDR images ended up with a row/col skew if they
were not square due to index transposition.
Fix | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenccli_image.cpp",
"new_path": "Source/astcenccli_image.cpp",
"diff": "@@ -187,7 +187,7 @@ astcenc_image* astc_img_from_floatx4_array(\n#if 0\nfloat*** data32 = static_cast<float***>(img->data);\nunsigned int y_src = y_flip ? (dim_y - y - 1) : y;\n-... | C | Apache License 2.0 | arm-software/astc-encoder | Fix pixel addressing in HDR images
HDR images ended up with a row/col skew if they
were not square due to index transposition.
Fix #211 |
61,745 | 10.02.2021 16:23:45 | 0 | 8ad3c83e05e1ae7ce93edfa0c1c959ac4eebc13e | Top level changes for 2.4 patch release | [
{
"change_type": "MODIFY",
"old_path": "Docs/ChangeLog.md",
"new_path": "Docs/ChangeLog.md",
"diff": "@@ -12,19 +12,24 @@ clocked at 4.2 GHz, running astcenc using 6 threads.\n**Status:** In development\n-The 2.4 release is the fifth release in the 2.x series. It includes ...\n-\n-* **General:**\n- ... | C | Apache License 2.0 | arm-software/astc-encoder | Top level changes for 2.4 patch release |
61,745 | 10.02.2021 16:56:29 | 0 | 0c459b952fc51c345cfc090d510938a505607ed7 | Setup for 2.5-develop | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -20,7 +20,7 @@ cmake_minimum_required(VERSION 3.15)\ncmake_policy(SET CMP0069 NEW) # LTO support\ncmake_policy(SET CMP0091 NEW) # MSVC runtime support\n-project(astcenc VERSION 2.4.0)\n+project(astcenc... | C | Apache License 2.0 | arm-software/astc-encoder | Setup for 2.5-develop |
61,745 | 10.02.2021 19:54:59 | 0 | a5f2e7967f6621c8de1dd91348b139760de53e05 | Always start the SCB as an error block | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -1454,6 +1454,8 @@ void compress_block(\n// Set SCB and mode errors to a very high error value\nscb.errorval = 1e30f;\n+ scb.error_block = 1;\n+\nfloat best_... | C | Apache License 2.0 | arm-software/astc-encoder | Always start the SCB as an error block |
61,745 | 12.02.2021 21:09:29 | 0 | faa9ea9bfcdcd0eceefc5964094574bcd48992e8 | Add accessor for fetching block texels | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_averages_and_directions.cpp",
"new_path": "Source/astcenc_averages_and_directions.cpp",
"diff": "@@ -62,11 +62,7 @@ void compute_averages_and_directions_rgba(\n{\nint iwt = weights[i];\nfloat weight = ewb->texel_weight[iwt];\n-\n- vfloat4 texel_... | C | Apache License 2.0 | arm-software/astc-encoder | Add accessor for fetching block texels |
61,745 | 12.02.2021 21:40:53 | 0 | 431c5d1e217d3a13083526b2deeeb0805d178458 | Make init_orig_from_work static | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_image.cpp",
"new_path": "Source/astcenc_image.cpp",
"diff": "@@ -157,7 +157,7 @@ void imageblock_initialize_deriv(\n}\n// helper function to initialize the work-data from the orig-data\n-void imageblock_initialize_work_from_orig(\n+static void i... | C | Apache License 2.0 | arm-software/astc-encoder | Make init_orig_from_work static |
61,745 | 12.02.2021 21:44:29 | 0 | 8c26c7bafb8d33783074e967258a922e1f54939f | Image address calcs only need min() not clamp() | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_image.cpp",
"new_path": "Source/astcenc_image.cpp",
"diff": "@@ -305,16 +305,16 @@ void fetch_imageblock(\nfor (int z = 0; z < bsd->zdim; z++)\n{\n- int zi = astc::clamp(zpos + z, 0, zsize - 1);\n+ int zi = astc::min(zpos + z, zsize - 1);\nuint8... | C | Apache License 2.0 | arm-software/astc-encoder | Image address calcs only need min() not clamp() |
61,745 | 12.02.2021 22:49:52 | 0 | e4e4e878548bc2c7a43a4bc95c73d6fd20a81986 | Use selects not branches | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -274,25 +274,8 @@ static float compress_symbolic_block_fixed_partition_1_plane(\nvfloat4 ep = (vfloat4(1.0f) - ei->ep.endpt0[i]) / (ei->ep.endpt1[i] - ei->ep... | C | Apache License 2.0 | arm-software/astc-encoder | Use selects not branches |
61,745 | 12.02.2021 23:10:38 | 0 | 780678cf9694b4972b6f1c653e6fe2a8b68bb927 | Use selects in csb_fixed_part_2_planes | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -645,30 +645,16 @@ static float compress_symbolic_block_fixed_partition_2_planes(\n#endif\n}\n- float min_wt_cutoff1, min_wt_cutoff2;\n- switch (separate_com... | C | Apache License 2.0 | arm-software/astc-encoder | Use selects in csb_fixed_part_2_planes |
61,745 | 12.02.2021 23:11:07 | 0 | cb2e68e8d68498005aabfd0a1b53b0baf7f1b1f5 | Use default in swtch for smaller code | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"new_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"diff": "@@ -73,7 +73,7 @@ static void compute_endpoints_and_ideal_weights_1_component(\nerror_weights = ewb->texel_weight_b;\ndata_vr = blk->data_b;... | C | Apache License 2.0 | arm-software/astc-encoder | Use default in swtch for smaller code |
61,745 | 12.02.2021 23:22:05 | 0 | 12a39c101feeb3b6a8883e5076bb9c7ce572ab01 | Vectorize merge_endpoints | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_encoding_choice_error.cpp",
"new_path": "Source/astcenc_encoding_choice_error.cpp",
"diff": "@@ -49,43 +49,14 @@ void merge_endpoints(\nendpoints * res\n) {\nint partition_count = ep1->partition_count;\n- res->partition_count = partition_count;\... | C | Apache License 2.0 | arm-software/astc-encoder | Vectorize merge_endpoints |
61,745 | 12.02.2021 23:36:14 | 0 | 9a6fc1a8831042d9512c45a00bc194f7db72db7c | Avoid using set_lane in find_best_partitioning | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_find_best_partitioning.cpp",
"new_path": "Source/astcenc_find_best_partitioning.cpp",
"diff": "@@ -374,12 +374,12 @@ void find_best_partitionings(\nuncorr_error += dot_s(uncorr_vector, error_weights);\nsamechroma_error += dot_s(samechroma_vector... | C | Apache License 2.0 | arm-software/astc-encoder | Avoid using set_lane in find_best_partitioning |
61,745 | 12.02.2021 23:36:38 | 0 | 3bc7d20d6c0d622673405211889dcca2b9778690 | Vectorize preamble in quantize_hdr_rgb3 | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -1188,14 +1188,9 @@ static void quantize_hdr_rgb3(\nint output[6],\nint quant_level\n) {\n- // TODO: If lane 3/a not used, vectorize this ...\n- color0.set_lane<0>... | C | Apache License 2.0 | arm-software/astc-encoder | Vectorize preamble in quantize_hdr_rgb3 |
61,745 | 13.02.2021 00:17:12 | 0 | 3cce953c0066b57375ce8846ea511d82da3743da | Replace channel switches with conditional selects. | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"new_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"diff": "@@ -120,31 +120,11 @@ static void compute_endpoints_and_ideal_weights_1_component(\nassert(!astc::isnan(ei->weight_error_scale[i]));\n}\n+ v... | C | Apache License 2.0 | arm-software/astc-encoder | Replace channel switches with conditional selects. |
61,745 | 13.02.2021 00:47:49 | 0 | 683a20dbf3487f32b23b0fa3881dda2f245abe0e | Cleaned up 1 omitted endpoint merge | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"new_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"diff": "@@ -460,9 +460,6 @@ static void compute_endpoints_and_ideal_weights_3_components(\n}\n}\n- float3 lowvalues[4];\n- float3 highvalues[4];\n-\... | C | Apache License 2.0 | arm-software/astc-encoder | Cleaned up 1 omitted endpoint merge |
61,745 | 13.02.2021 11:52:17 | 0 | 920787f426e8a9b40d5e927425f2529a0d3d2468 | Add parens on vmask == and & pairs | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"new_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"diff": "@@ -1356,7 +1356,7 @@ void recompute_ideal_colors_2planes(\nvmask4 p1_mask = vint4::lane_id() != vint4(plane2_color_component);\nvmask4 det_... | C | Apache License 2.0 | arm-software/astc-encoder | Add parens on vmask == and & pairs |
61,745 | 13.02.2021 15:08:42 | 0 | 06dd409575bfb95d3291da2e938751f41902602c | Use vector ops and hadd_rgb | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -538,8 +538,8 @@ static int try_quantize_luminance_alpha_delta(\n) {\nfloat scale = 1.0f / 257.0f;\n- float l0 = astc::clamp255f((color0.lane<0>() + color0.lane<1>... | C | Apache License 2.0 | arm-software/astc-encoder | Use vector ops and hadd_rgb |
61,745 | 13.02.2021 15:21:58 | 0 | 201167218453a12a597380a963deeac8b06b1c17 | Use hadd_rgb_s for rgbo_failure case | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"new_path": "Source/astcenc_ideal_endpoints_and_weights.cpp",
"diff": "@@ -1427,8 +1427,7 @@ void recompute_ideal_colors_2planes(\n{\nvfloat4 v0 = ep->endpt0[i];\nvfloat4 v1 = ep->endpt1[i];\n- float avgdif = ((... | C | Apache License 2.0 | arm-software/astc-encoder | Use hadd_rgb_s for rgbo_failure case |
61,745 | 13.02.2021 16:17:16 | 0 | 7f4bb52666ca5fe636d263263de3269ca6a7e7d0 | Add more vint4 functions to SIMD library | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/test_simd.cpp",
"new_path": "Source/UnitTest/test_simd.cpp",
"diff": "@@ -985,6 +985,17 @@ TEST(vfloat4, float_to_int_rtn)\nEXPECT_EQ(r.lane<3>(), 4);\n}\n+/** @brief Test vfloat4 round. */\n+TEST(vfloat4, int_to_float)\n+{\n+ vint4 a(1, 2, 3, ... | C | Apache License 2.0 | arm-software/astc-encoder | Add more vint4 functions to SIMD library |
61,745 | 13.02.2021 16:29:51 | 0 | 82223dd0ecefce014c5839a7da7936b8c7327926 | Vectorize lerp_color_int using vint4 | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_decompress_symbolic.cpp",
"new_path": "Source/astcenc_decompress_symbolic.cpp",
"diff": "@@ -33,42 +33,38 @@ static int compute_value_of_texel_int(\nint weights_to_evaluate = it->texel_weight_count[texel_to_get];\nfor (int i = 0; i < weights_to_... | C | Apache License 2.0 | arm-software/astc-encoder | Vectorize lerp_color_int using vint4 |
61,745 | 13.02.2021 17:03:29 | 0 | e07d4342acedd8db74a2ab3f610ea21031e981e0 | Replace int4/uint4 with vint4 and remove vtype4 | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/test_simd.cpp",
"new_path": "Source/UnitTest/test_simd.cpp",
"diff": "@@ -1050,6 +1050,35 @@ TEST(vint4, CopyLoad)\nEXPECT_EQ(a.lane<3>(), 44);\n}\n+/** @brief Test vint4 scalar lane set. */\n+TEST(int4, SetLane)\n+{\n+ vint4 a(0);\n+\n+ a.set_... | C | Apache License 2.0 | arm-software/astc-encoder | Replace int4/uint4 with vint4 and remove vtype4 |
61,745 | 13.02.2021 17:12:20 | 0 | df0dcf1048abef723471da0599888c612ba331fb | Fix vint4.set_lane on NEON | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_neon_4.h",
"new_path": "Source/astcenc_vecmathlib_neon_4.h",
"diff": "@@ -247,7 +247,7 @@ struct vint4\n/**\n* @brief Set the scalar value of a single lane.\n*/\n- template <int l> ASTCENC_SIMD_INLINE void set_lane(float a)\n+ templat... | C | Apache License 2.0 | arm-software/astc-encoder | Fix vint4.set_lane on NEON |
61,745 | 13.02.2021 19:03:15 | 0 | 70ac5b9c82de5c32fa02a71bad509f2e04f124d4 | Fix SSE2 builds | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_sse_4.h",
"new_path": "Source/astcenc_vecmathlib_sse_4.h",
"diff": "@@ -423,7 +423,15 @@ ASTCENC_SIMD_INLINE vint4 operator-(vint4 a, vint4 b)\n*/\nASTCENC_SIMD_INLINE vint4 operator*(vint4 a, vint4 b)\n{\n+#if ASTCENC_SSE >= 41\nretu... | C | Apache License 2.0 | arm-software/astc-encoder | Fix SSE2 builds |
61,745 | 13.02.2021 19:31:07 | 0 | 114eed77198d6186b06953ce8a1bca213cde4bb8 | Fix vint4.set_lane on SSE2 | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/test_simd.cpp",
"new_path": "Source/UnitTest/test_simd.cpp",
"diff": "@@ -1166,6 +1166,13 @@ TEST(vint4, vsmul)\nEXPECT_EQ(a.lane<1>(), 2 * 3);\nEXPECT_EQ(a.lane<2>(), 4 * 3);\nEXPECT_EQ(a.lane<3>(), 4 * 3);\n+\n+ vint4 b(1, 2, -4, 4);\n+ b = b... | C | Apache License 2.0 | arm-software/astc-encoder | Fix vint4.set_lane on SSE2 |
61,745 | 13.02.2021 19:39:11 | 0 | 18618d5414fb049d032ba30d39f9882c0da3d183 | Use more hadd_rgb_s() for luma sums | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -668,7 +668,7 @@ static void quantize_rgbs_new(\nint gu = color_unquant_tables[quant_level][gi];\nint bu = color_unquant_tables[quant_level][bi];\n- float oldcolor... | C | Apache License 2.0 | arm-software/astc-encoder | Use more hadd_rgb_s() for luma sums |
61,745 | 13.02.2021 23:00:10 | 0 | 914fb26d6e39aa1ca9737f4c2a2fc19e60daae9a | Use local frexp | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_image.cpp",
"new_path": "Source/astcenc_image.cpp",
"diff": "@@ -41,7 +41,7 @@ static float float_to_lns(float p)\n}\nint expo;\n- float normfrac = frexpf(p, &expo);\n+ float normfrac = astc::frexp(p, &expo);\nfloat p1;\nif (expo < -13)\n{\n@@ -... | C | Apache License 2.0 | arm-software/astc-encoder | Use local frexp |
61,745 | 14.02.2021 00:50:07 | 0 | 3213182282b439a55a516de467fefa445afa7363 | Fix 4 lane swz for NEON | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_neon_4.h",
"new_path": "Source/astcenc_vecmathlib_neon_4.h",
"diff": "@@ -167,9 +167,9 @@ struct vfloat4\n*\n* TODO: Implement using permutes.\n*/\n- template <int l0, int l1, int l2, int l3> ASTCENC_SIMD_INLINE float3 swz() const\n+ ... | C | Apache License 2.0 | arm-software/astc-encoder | Fix 4 lane swz for NEON |
61,745 | 14.02.2021 00:54:38 | 0 | 627a5d4760cce759a7120961ab8dd288a7442bde | Ensure NEON dot3() returns clear lane 3 | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_neon_4.h",
"new_path": "Source/astcenc_vecmathlib_neon_4.h",
"diff": "@@ -942,8 +942,12 @@ ASTCENC_SIMD_INLINE float dot_s(vfloat4 a, vfloat4 b)\n*/\nASTCENC_SIMD_INLINE vfloat4 dot3(vfloat4 a, vfloat4 b)\n{\n+ // Clear lane to zero t... | C | Apache License 2.0 | arm-software/astc-encoder | Ensure NEON dot3() returns clear lane 3 |
61,745 | 14.02.2021 13:36:01 | 0 | 8513e58fc4c2579a97c619fcda4bd312bf5c63b8 | Directly use mask for _mm_shuffle_ps
This is a workaround for GCC 7.5 which doesn't like the
indirection via constexpr in debug builds (it works OK
in release builds). | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_sse_4.h",
"new_path": "Source/astcenc_vecmathlib_sse_4.h",
"diff": "@@ -162,8 +162,7 @@ struct vfloat4\n*/\ntemplate <int l0, int l1, int l2> ASTCENC_SIMD_INLINE vfloat4 swz() const\n{\n- constexpr int mask = l0 | l1 << 2 | l2 << 4;\n... | C | Apache License 2.0 | arm-software/astc-encoder | Directly use mask for _mm_shuffle_ps
This is a workaround for GCC 7.5 which doesn't like the
indirection via constexpr in debug builds (it works OK
in release builds). |
61,764 | 14.02.2021 15:42:14 | -7,200 | 6b8d280bb325628a510f59c6226fe72e0e95106f | Turn int return values to bool in astcenc_color_quantize.cpp
Turn int return value to bool in try_quantize_rgb_blue_contract and try_quantize_rgb_delta_blue_contract. It's more literate programming style, and makes it easier to convert to e.g. C#. | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_color_quantize.cpp",
"new_path": "Source/astcenc_color_quantize.cpp",
"diff": "@@ -115,7 +115,7 @@ static void quantize_rgba(\n}\n/* attempt to quantize RGB endpoint values with blue-contraction. Returns 1 on failure, 0 on success. */\n-static i... | C | Apache License 2.0 | arm-software/astc-encoder | Turn int return values to bool in astcenc_color_quantize.cpp (#213)
Turn int return value to bool in try_quantize_rgb_blue_contract and try_quantize_rgb_delta_blue_contract. It's more literate programming style, and makes it easier to convert to e.g. C#. |
61,745 | 14.02.2021 21:15:25 | 0 | 0b9ef289a626f5393a7e014b32443d82d2868b21 | Use less approximate vfloat4::normalize() | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_sse_4.h",
"new_path": "Source/astcenc_vecmathlib_sse_4.h",
"diff": "@@ -1059,12 +1059,19 @@ ASTCENC_SIMD_INLINE vfloat4 fast_recip(vfloat4 b)\n*/\nASTCENC_SIMD_INLINE vfloat4 normalize(vfloat4 a)\n{\n- // Compute 1/divisor using fast ... | C | Apache License 2.0 | arm-software/astc-encoder | Use less approximate vfloat4::normalize() |
61,745 | 14.02.2021 22:23:45 | 0 | b75916edc42be1002595e6fc7d4f5be8304521fd | Stop using some fast approx when ISA_INVARIANCE=ON | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_vecmathlib_sse_4.h",
"new_path": "Source/astcenc_vecmathlib_sse_4.h",
"diff": "@@ -433,8 +433,11 @@ ASTCENC_SIMD_INLINE vint4 operator*(vint4 a, vint4 b)\nreturn vint4(_mm_mullo_epi32 (a.m, b.m));\n#else\n__m128i t1 = _mm_mul_epu32(a.m, b.m);\n-... | C | Apache License 2.0 | arm-software/astc-encoder | Stop using some fast approx when ISA_INVARIANCE=ON |
61,745 | 14.02.2021 22:41:14 | 0 | ef1677e5ca23c6a68ffd3a053103a16e3b4671a3 | Avoid loading alpha channel in c_e_s_rgb | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_encoding_choice_error.cpp",
"new_path": "Source/astcenc_encoding_choice_error.cpp",
"diff": "@@ -83,7 +83,7 @@ static float compute_error_squared_rgb_single_partition(\ncontinue;\n}\n- vfloat4 point = blk->texel(i);\n+ vfloat4 point = blk->texel... | C | Apache License 2.0 | arm-software/astc-encoder | Avoid loading alpha channel in c_e_s_rgb |
61,745 | 15.02.2021 08:44:58 | 0 | a00dc722924d0c56a7f757e617d07cbe704b0199 | Make all builds ISA invariant, and remove option | [
{
"change_type": "MODIFY",
"old_path": "CMakeLists.txt",
"new_path": "CMakeLists.txt",
"diff": "@@ -79,13 +79,6 @@ else()\nmessage(\" -- No SIMD backend - OFF\")\nendif()\n-option(ISA_INVARIANCE \"Enable builds for ISA invariance\")\n-if(${ISA_INVARIANCE})\n- message(\" -- ISA invariant backend - ON... | C | Apache License 2.0 | arm-software/astc-encoder | Make all builds ISA invariant, and remove option |
61,745 | 15.02.2021 21:50:07 | 0 | 00a4ed44db844ff9f18f23787e32e7f7d91a0c1c | Add vint4 unaligned store | [
{
"change_type": "MODIFY",
"old_path": "Source/UnitTest/test_simd.cpp",
"new_path": "Source/UnitTest/test_simd.cpp",
"diff": "@@ -904,6 +904,18 @@ TEST(vfloat4, gatherf)\nEXPECT_EQ(r.lane<3>(), 2.0f);\n}\n+/** @brief Test vfloat4 storea. */\n+TEST(vfloat4, storea)\n+{\n+ alignas(16) float out[4];\n+... | C | Apache License 2.0 | arm-software/astc-encoder | Add vint4 unaligned store |
61,745 | 15.02.2021 21:50:19 | 0 | 0d5e577ebb39737ea640a79af912b8d48b2dd25a | Vectorize constant color blocks | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compress_symbolic.cpp",
"new_path": "Source/astcenc_compress_symbolic.cpp",
"diff": "@@ -1325,21 +1325,10 @@ void compress_block(\n// Encode as UNORM16 if NOT using HDR.\nscb.block_mode = -2;\nscb.partition_count = 0;\n- vfloat4 orig_color = blk... | C | Apache License 2.0 | arm-software/astc-encoder | Vectorize constant color blocks |
61,745 | 15.02.2021 22:16:08 | 0 | 8b4d31e63aff40243c8b57d6da8b12a8eda06486 | Drop int3 and vtype3 template | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_compute_variance.cpp",
"new_path": "Source/astcenc_compute_variance.cpp",
"diff": "@@ -119,13 +119,13 @@ static void compute_pixel_region_variance(\nastcenc_swizzle swz = arg->swz;\nint have_z = arg->have_z;\n- int size_x = arg->size.r;\n- int s... | C | Apache License 2.0 | arm-software/astc-encoder | Drop int3 and vtype3 template |
61,745 | 15.02.2021 23:57:06 | 0 | 05a435d649e61c1bb4be8244a767bf4f680e78d9 | Restructure compute_encoding_choice_errors | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_encoding_choice_error.cpp",
"new_path": "Source/astcenc_encoding_choice_error.cpp",
"diff": "@@ -75,13 +75,15 @@ static void compute_error_squared_rgb_single_partition(\nconst processed_line3* rgbl_pline,\nfloat* rgbl_err,\nconst processed_line3... | C | Apache License 2.0 | arm-software/astc-encoder | Restructure compute_encoding_choice_errors |
61,745 | 17.02.2021 07:45:44 | 0 | 8509164cfda8264248b00c84158d85fe0b384013 | Remove compute_averages_and_directions_rgb
Reducing code size and using the already existing common
compute_averages_and_directions_3_components is slightly
faster ... | [
{
"change_type": "MODIFY",
"old_path": "Source/astcenc_averages_and_directions.cpp",
"new_path": "Source/astcenc_averages_and_directions.cpp",
"diff": "@@ -133,92 +133,6 @@ void compute_averages_and_directions_rgba(\n}\n}\n-void compute_averages_and_directions_rgb(\n- const partition_info* pt,\n- co... | C | Apache License 2.0 | arm-software/astc-encoder | Remove compute_averages_and_directions_rgb
Reducing code size and using the already existing common
compute_averages_and_directions_3_components is slightly
faster ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.