-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat(vg_lite): add ARGB1555 ARGB4444 ARGB2222 support #7028
Conversation
tests/ref_imgs_vg_lite/draw/render/argb1555/demo_render_arc_image_opa_128.png
Outdated
Show resolved
Hide resolved
tests/ref_imgs_vg_lite/draw/render/argb2222/demo_render_blend_mode_opa_128.png
Outdated
Show resolved
Hide resolved
tests/ref_imgs_vg_lite/draw/render/argb1555/demo_render_arc_normal_opa_255.png
Outdated
Show resolved
Hide resolved
@kisvegabor This PR just adds new color formats, some drawing errors may be problems with ThorVG render, can we fix them later? |
tests/ref_imgs_vg_lite/draw/render/argb1555/demo_render_arc_normal_opa_255.png
Outdated
Show resolved
Hide resolved
tests/ref_imgs_vg_lite/draw/render/argb1555/demo_render_arc_image_opa_128.png
Outdated
Show resolved
Hide resolved
Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com>
Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add test for drawing images with newly added color format.
SW renderer should correctly ignore them and shouldn't crash.
VG-Lite should draw theme correctly.
The bin-decoder should be updated correspondingly.
Yes, we can add relevant tests later. |
Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com> Co-authored-by: yushuailong1 <yushuailong1@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: FASTSHIFT <vifextech@foxmail.com>
Added support for ARGB1555 ARGB4444 ARGB2222. vg_lite supports this format. In some cases, these color formats can reduce memory usage.
Notes
lv_conf_template.h
run lv_conf_internal_gen.py and update Kconfig.scripts/code-format.py
(astyle v3.4.12
needs to installed by runningcd scripts; ./install_astyle.sh
) and follow the Code Conventions.