简体   繁体   English

在Android上将位图压缩为ASTC运行时

[英]Compress Bitmap to ASTC runtime on Android

I have used ETCUtil in the past to convert a PNG/Bitmap to a ETC1 compressed texture runtime and it served me well. 过去我曾使用ETCUtil将PNG /位图转换为ETC1压缩纹理运行时,它对我很有用。 I was wondering if, with the introduction of ASTC support in Android L, there is also a way to do the same with ASTC, even with third party libraries. 我想知道,随着Android L中对ASTC支持的引入,是否还有一种方法可以对ASTC进行处理,即使对第三方库也是如此。

I am not looking for a generic, PC based compressor but a Java / Native library that runs on the phone. 我不是在寻找基于PC的通用压缩器,而是在手机上运行的Java /本机库。

For those looking for an iOS 10 / macOS Sierra (and later) solution, this is now a feature of ImageIO.framework. 对于那些寻求iOS 10 / macOS Sierra(及更高版本)解决方案的用户来说,这是ImageIO.framework的功能。 See also /usr/include/AppleTextureEncoder.h 另请参见/usr/include/AppleTextureEncoder.h

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM