2021.12.16 20:26 "Re: [Tiff] Ensuring buffer alignment when creating tiff files", by Even Rouault
So, do these two things mean that a patch would be accepted upstream to make libtiff write the buffers in an aligned fashion? How would that API look like? For our purpose a minimal non-optional API that will always ensure the strip buffer offsets are BitsPerSample-aligned would be enough. Would that be acceptable upstream? Or does it have to be user configurable? If so, could you please give me a rough outline of your expectations, then I will work on this and prepare a patch.
In my opinion, if this is done, it should be done by default by libtiff without any extra API exposure. Files written by libtiff would then be a bit larger.
I would limit that behavior to uncompressed data only. No point to add padding between compressed tiles/strips.
My software is free, but my time generally not.