Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] 匿名代码(Anonymous;Code)中BC7格式图像的支持 #85

Closed
wetor opened this issue Jul 1, 2022 · 6 comments
Closed

[Question] 匿名代码(Anonymous;Code)中BC7格式图像的支持 #85

wetor opened this issue Jul 1, 2022 · 6 comments

Comments

@wetor
Copy link

wetor commented Jul 1, 2022

游戏名:匿名代码(Anonymous;Code)
平台:Nintendo Switch
样本:ac_lifegame.psb.m.zip
问题描述:此游戏中的图像使用了暂不支持的dds BC7格式。
附一个支持BC7的直播录播:https://www.twitch.tv/videos/1516600820

请问会考虑支持此格式吗?

@UlyssesWu
Copy link
Owner

twitch网络问题,看不了。
会考虑支持的,不过目前感觉没有特别优雅的方案(尽量不native,尽量不升framework版本,尽量同时支持decode/encode),待有空再决定用什么。

目前你可以暂时用-raw参数自己处理图片格式。

@UlyssesWu
Copy link
Owner

RGBA8 (LE):
image

RGBA8 (BE):
image

我不知道哪种颜色是对的,看样子应该是BE的?

@wetor
Copy link
Author

wetor commented Jul 4, 2022

RGBA8 (LE): image

RGBA8 (BE): image

我不知道哪种颜色是对的,看样子应该是BE的?

没错,是下面的BE

@UlyssesWu UlyssesWu added this to the v4.0 milestone Jul 4, 2022
@UlyssesWu
Copy link
Owner

UlyssesWu commented Jul 5, 2022

支持是支持了,但是这个encode效率efficiency……仍然很低,对于你这个样本,需要40多秒才能从PNG转成BC7。
而使用三方工具Compressonator的话,encode不到10秒。不过这个工具本身比较大,还不是绿色版(要安装),不太优雅。
感觉这个BCn编码库还有较大的优化空间,但是没精力去研究,后面有空时再试下C++库好了。

在这里下载CI版本试用:
https://ci.appveyor.com/project/UlyssesWu/freemote/build/artifacts

@ruje0504
Copy link

进来学习,嘿嘿

@UlyssesWu
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants