SVG saga update: Massive progress
-
VICTORY! I found two bugs in my graphics library having to do with propagation of alpha channels when doing pixel format conversions. Fixed. I found the problem with my colors not getting rendered correctly. Had to do with confusing byte order issues, between my library (big endian pixels), and what's left of plutovg after my integration (little endian pixels) and then again when I'm rendering it to png to test. Finally, I was occasionally forgetting to update my color macros when I changed channel orders to compensate for little vs big endian. ARGH. I finally sorted it all out. It took me 3 days of banging on it. Good news is I eliminated all the byte swapping. Now my stuff renders great, at least for one SVG document. The others aren't rendering at all but I've got a good foundation, and a reference implementation that's known good to check it against. :thumbsup:
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
VICTORY! I found two bugs in my graphics library having to do with propagation of alpha channels when doing pixel format conversions. Fixed. I found the problem with my colors not getting rendered correctly. Had to do with confusing byte order issues, between my library (big endian pixels), and what's left of plutovg after my integration (little endian pixels) and then again when I'm rendering it to png to test. Finally, I was occasionally forgetting to update my color macros when I changed channel orders to compensate for little vs big endian. ARGH. I finally sorted it all out. It took me 3 days of banging on it. Good news is I eliminated all the byte swapping. Now my stuff renders great, at least for one SVG document. The others aren't rendering at all but I've got a good foundation, and a reference implementation that's known good to check it against. :thumbsup:
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix