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

imagegen tool 不支持本身是RGB565 bmp格式的转变为 .data文件 #10

Closed
zhanglu993 opened this issue Sep 22, 2018 · 4 comments
Closed

Comments

@zhanglu993
Copy link

imagegen tool 不支持RGB565 bmp格式图片的转变为 .data文件,提示image_loader_stb_load:84 data != NULL 的错误。
如果直接使用 imagegen tool 转变 RGBA8888格式的图片为 RGB565格式的 .data文件,是可以正确产生文件,但是会出现颜色严重失真的问题。
不能转变的RGB565 bmp文件 下载地址 链接:https://pan.baidu.com/s/1u_rXB80tyecGxGG1gZCiLQ 密码:e8ua

@xianjimli
Copy link
Member

谢谢,今天我在移植AWTK到STM32F767上,明天上午我看看。

@zhanglu993
Copy link
Author

好的,辛苦了,不知道为什么通过imagegen tool转换后颜色失真会这么严重,在电脑上用Image2Lcd 转换565的效果还行。

@xianjimli
Copy link
Member

这是个STB图片库不支持的压缩的BMP文件,我转成png或jpg格式没有问题,你转成png或jpg吧。

thread #1: tid = 0xa4c78, 0x000000010000184a image_info`stbi__err(str="bad BMP") + 10 at stb_image.h:844, queue = 'com.apple.main-thread', stop reason = breakpoint 3.1

  • frame #0: 0x000000010000184a image_infostbi__err(str="bad BMP") + 10 at stb_image.h:844 frame #1: 0x000000010001680f image_infostbi__bmp_parse_header(s=0x00007fff5fbff7e0, info=0x00007fff5fbff1e0) + 943 at stb_image.h:5049
    frame 如何横屏/竖屏 #2: 0x0000000100002515 image_infostbi__bmp_load(s=0x00007fff5fbff7e0, x=0x00007fff5fbff950, y=0x00007fff5fbff94c, comp=0x00007fff5fbff954, req_comp=0, ri=0x00007fff5fbff758) + 149 at stb_image.h:5088 frame #3: 0x0000000100001e24 image_infostbi__load_main(s=0x00007fff5fbff7e0, x=0x00007fff5fbff950, y=0x00007fff5fbff94c, comp=0x00007fff5fbff954, req_comp=0, ri=0x00007fff5fbff758, bpc=8) + 276 at stb_image.h:973
    frame VS2012下模拟仿真出现以下错误 #4: 0x00000001000019e8 image_infostbi__load_and_postprocess_8bit(s=0x00007fff5fbff7e0, x=0x00007fff5fbff950, y=0x00007fff5fbff94c, comp=0x00007fff5fbff954, req_comp=0) + 72 at stb_image.h:1063 frame #5: 0x00000001000018da image_infostbi_load_from_file(f=0x00007fff7c035050, x=0x00007fff5fbff950, y=0x00007fff5fbff94c, comp=0x00007fff5fbff954, req_comp=0) + 122 at stb_image.h:1149

@zhanglu993
Copy link
Author

好的,多谢回复

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

No branches or pull requests

2 participants