compression - 为什么 Zipalign 无法正常处理 .pvr 文件?
问题描述
我在我的 Android 游戏中使用 .pvr 文件。但是当使用 Zipalign 压缩它时,.pvr 文件的大小没有变化(另一种类型的文件效果很好)
我尝试使用最新的 Zipalign 工具,更改标志
工具/windows/zipalign -v -f 4 C:_Working\Game.apk release_apk\Game.apk
解决方案
The zipalign
tool is not about compressing but about "aligning" elements in the zip file, which means moving them at a position in the zip file which is a multiple of bytes of the value you give (in this case 4 -- which means, every uncompressed element is located at an offset multiple of 4). Compression is completely orthogonal to zip-aligning.
Depending on what tool you use to build your APK, some build systems may keep some files uncompressed, so you should look at the documentation.
Another possibility is that the .pvr
file is already compressed in itself so zipping it brings little gain in size.
推荐阅读
- javascript - 处理对异步函数的多次调用
- python - Django中迁移的执行顺序
- java - 通信链路故障 JDBC Java
- python - 如何将变量发送到搅拌机 python 脚本?
- visual-studio-code - VSCode“$gcc”问题匹配器在 C++ 编译器错误报告中识别文件路径的问题
- c++ - 无法理解有关从属名称错误的编译器错误消息语言。这是什么意思?
- c++ - 渲染时如何使 SDL2 0,0 定位在窗口的中心?
- node.js - 如果我导入没有 `js` 扩展名的文件,ExpressJs 将返回错误 `ERR_MODULE_NOT_FOUND`
- php - Laravel - 类 stdClass 的对象无法转换为 int
- npm - 在命令行中使用 vue-cli-service