-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
RED tint on image files on Arduino GIGA and I believe Teensy boards as well #70
Comments
Quick update, I just synced the sources again as I see a couple of commits...
|
What pixel type are you outputting? Can you share the calls you're making to the library? I've been testing on ESP32-S3 hardware, but I can switch back to M7. |
Again Note: current code does not build on GIGA nor Teensy MicroMod or 3.6
ucMaxACRow is not defined... Here is some of the code calling it:
|
I can reproduce the problem - I'll post a fix shortly. |
I pushed a fix which temporarily disables the M4/M7 SIMD code. The problem started when Teensyduino removed the M4 intrinsics. I added my own and perhaps the definitions are not equivalent. I'll continue to investigate. |
Got the same problem on a NUCLEO-F413ZH board. Disabling SIMD fixed the problem, though the decoding time is longer(49630 us to decode a 14K 120x180 image without SIMD, compared to 45340 us when SIMD is used). |
Are you using the release version or what's on Github at the moment? @wdx04 |
I think I'm using the current master branch. |
Correction - I didn't push the fix yet because I have a bunch of new functionality that I am unsure about giving away for free. I've had second thoughts about everyone using my work and I get nothing in return. |
I guess I can cherry pick this particular fix, hang on |
ok, try it now |
Thank you. uint32_t ulTmp2 = 0xfa7f /*-1409*/ | 0xf4930000 /*(-2925 << 16)*/; // for green calc I tried to fix the error and recompile: uint32_t ulTmp2, ulTmp = 0xfa7f /*-1409*/ | 0xf4930000 /*(-2925 << 16)*/; // for green calc But the decoded images seem to be unaffected by the fix, I still see red images after the fix. |
ok, thanks for trying. I need to set up a build environment and PCB to test these for all pixel types. I had given up on using CM4 SIMD because it's nearly useless. |
I am currently running on Version 1.4.1 - I tried to sync up and build with your current sources.
(last change) Fix 64 bit support - and I am getting compiler errors.
All of the JPEG files are now seeing a RED tint, like:
Others are seeing it as well up on Arduino forum:
https://forum.arduino.cc/t/display-jpg-from-a-sd-card/1204519/26
Not sure if this helps, but this sketch is setup to run on Arduino GIGA with the GIGA shield. (I was seeing it as well when displaying on ILI9341).
tft_picture_view_sd_giga_shield-240203a.zip
PNG files with your decoder appear OK, also BMP files that I load directly also look fine.
This one was loaded from SD Card, can also load them from USB memory stick (which is slower) on GIGA.
Let me know if you need any additional information
The text was updated successfully, but these errors were encountered: