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
Arm-2D applies chromakeying to LV_IMG_CF_TRUE_COLOR images #4169
Comments
@GorgonMeducer, could you take a look at it? |
OK, I will fix it. @kjbracey Just one question, are you using Cortex-M55 or Cortex-M85 processors? |
The issue is fixed in cmsis-pack v8.3.7-dev |
M55. Thanks for the quick fix! |
I've merged the PR. |
As I asked on #4179, this looks like it's just disabling the acceleration for non-colorkey images - or does it end up accelerated via another path? |
@kjbracey Yes. It will use other basic acceleration. So the whole acceleration strategy is: First, use condition filters to find those specific scenarios that can be accelerated with dedicated arm-2d API directly, |
@kjbracey dedicated acceleration for transform-only-with-opacity is added: #4203 lvgl/src/draw/arm2d/lv_gpu_arm2d.c Lines 1313 to 1330 in 2b56e04
you won't get the acceleration until the release of arm-2d v1.1.3. |
@kjbracey arm-2d v1.1.3 is released. Please have a try and let me know whether the issue is solved or not. |
@kjbracey Any update? Or are you happy with this fix? |
Sorry, I've not had a chance to try it yet. I will let you know when I do. (Looks good to me from inspection though). |
Okay, tested 8.3.7 + 1.1.3 now, and it's fixed the display error in our app. But I've not profiled it to check performance, and I'm only testing that chromakey isn't applied - I have nothing attempting to use it. Thanks! |
@kjbracey Thank you for the confirmation. Don't worry about the performance part. I have done that locally. It is identical to the previous. |
Perform all steps below and tick them with [x]
Describe the bug
The Arm-2D accelerator applies chromakeying even when not requested. Observed in 8.3.4, but issue still present by code inspection.
This section of code does not distinguish the values of
cf
.lvgl/src/draw/arm2d/lv_gpu_arm2d.c
Lines 1078 to 1096 in b603fb9
To Reproduce
With the image (test bars in my case) containing some pure green, with default config.
Expected behavior
No pixels should be transparent (unless indicated by alpha).
The text was updated successfully, but these errors were encountered: