Storing images as a double array where the first index is the horizontal position (and this guarantees that no 2 pixels will be next to each other on the same line) is the most inefficient way I can imagine an image being stored as.
And I bet there are quite a lot of projects doing that already. Its like they hate optimized memcpys.

Sign in to participate in the conversation

A Mastodon instance for people interested in multimedia, codecs, assembly, SIMD, and the occasional weeb stuff.