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

have the C++ version image convert tool and font generate tool? #6216

Open
xinsuinizhuan opened this issue May 13, 2024 · 9 comments
Open

have the C++ version image convert tool and font generate tool? #6216

xinsuinizhuan opened this issue May 13, 2024 · 9 comments

Comments

@xinsuinizhuan
Copy link

Introduce the problem

I want genetate the image by c++ in my project, not lvgl is c++ and image convert is python

Proposal

No response

@XuNeo
Copy link
Collaborator

XuNeo commented May 13, 2024

You are very welcome to contribute a C++ version. It could be much faster than python version.
In the mean time, you may want to check the rust version image converter: https://lib.rs/crates/icu_tool

@kisvegabor
Copy link
Member

I'm not sure officially it's worth maintaining a C++ converter too.

What is your use case for the C++ converter?

@xinsuinizhuan
Copy link
Author

xinsuinizhuan commented May 16, 2024

My project is C++, and i want add a picture, then auto convert to a binary file, so my project need add the python code, and configuration python enviroment. If the lvgl is python code, the converter tool also is python, but the lvgl i c++, the tool is python, it's discordant.

@xinsuinizhuan
Copy link
Author

also font generate tools, with c++

@xinsuinizhuan
Copy link
Author

Some one get the tool, but is for lvlg 8.0

@xinsuinizhuan
Copy link
Author

but this image format how to match in lvlg 9.0?
{{LV_IMG_CF_TRUE_COLOR, "LV_IMG_CF_TRUE_COLOR"},
{LV_IMG_CF_TRUE_COLOR_ALPHA, "LV_IMG_CF_TRUE_COLOR_ALPHA"},
{LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED, "LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED"},
{LV_IMG_CF_INDEXED_1BIT, "LV_IMG_CF_INDEXED_1BIT"},
{LV_IMG_CF_INDEXED_2BIT, "LV_IMG_CF_INDEXED_2BIT"},
{LV_IMG_CF_INDEXED_4BIT, "LV_IMG_CF_INDEXED_4BIT"},
{LV_IMG_CF_INDEXED_8BIT, "LV_IMG_CF_INDEXED_8BIT"},
{LV_IMG_CF_ALPHA_1BIT, "LV_IMG_CF_ALPHA_1BIT"},
{LV_IMG_CF_ALPHA_2BIT, "LV_IMG_CF_ALPHA_2BIT"},
{LV_IMG_CF_ALPHA_4BIT, "LV_IMG_CF_ALPHA_4BIT"},
{LV_IMG_CF_ALPHA_8BIT, "LV_IMG_CF_ALPHA_8BIT"},
};

@kisvegabor
Copy link
Member

LV_IMG_CF_INDEXED_1BIT -> LV_COLOR_FORMAT_I1
LV_IMG_CF_ALPHA_1BIT -> LV_COLOR_FORMAT_A1
LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED -> Removed
LV_IMG_CF_TRUE_COLOR -> LV_IMG_CF_TRUE_COLOR
LV_IMG_CF_TRUE_COLOR_ALPHA -> LV_COLOR_FORMAT_NATIVE_WITH_ALPHA

@xinsuinizhuan
Copy link
Author

xinsuinizhuan commented May 23, 2024

LV_IMG_CF_TRUE_COLOR -> LV_IMG_CF_TRUE_COLOR? LV_IMG_CF_TRUE_COLOR is not exit in lvlg9?

Is this right?
LV_IMG_CF_TRUE_COLOR->LV_COLOR_FORMAT_NATIVE
LV_IMG_CF_TRUE_COLOR_ALPHA->LV_COLOR_FORMAT_NATIVE_WITH_ALPHA

@kisvegabor
Copy link
Member

Sorry, copy paste issue. Yes, true color -> native.

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

3 participants