ASTC——png转ASTC方法

 

1、克隆代码,CMake生成工程文件,vs直接编译;

https://github.com/ARM-software/astc-encoder

 

2、命令备份

rem astcenc.exe -h

set astc_command=D:\res\tps_test\proj\bg\astcenc.exe


%astc_command% -cl ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test.png ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test_4x4.png.astc ^
4x4 -thorough

%astc_command% -cl ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test.png ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test_6x6.png.astc ^
6x6 -thorough


%astc_command% -cl ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test.png ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test_8x8.png.astc ^
8x8 -thorough


%astc_command% -cl ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test.png ^
D:\res\tps_test\proj\bg\output\output_by_astcenc\test_12x12.png.astc ^
12x12 -thorough


pause;

 

posted @ 2023-02-28 15:45  会飞的斧头  阅读(803)  评论(0编辑  收藏  举报