Some may know, I did an UI based image converter for Arduboy, so why not one for Pokitto?
Because the hardware of Pokitto is not the same (it can output rgb565, has a better screen resolution) and there are TONS of very good softwares which can do pixel art, palette management, etc.
Moreover there is already BMP2POK, so it’s more like an alternative.
As a command line executable, it can be integrated as plugin, run as batch/script file, etc.
SDL and SDL image was the easiest, simpliest (a few small dlls), and best cross platform choice to handle correctly image loading with palette management.
Like your application, I first thought of using stb, but then I realized it doesn’t load palette + image but does directly the conversion.
I’ve could done with core Qt also, but too much dlls dependencies were in the way for just a simple command line application.
The code is interesting.
Good to see C++11 features being used.
Also interesting to see const being used ‘the right way round’ (I admit I tend to do it the ‘wrong way round’).
It’s a big fight for me, I have seen many “freshly out of the school” c++ beginners completely lost (including me in my first years) about const or not even using it because of this rule exception weirdness.