+#include <algorithm> // for min/max_element
+
+void AntiAlias(unsigned char * pixels, uint64_t w, uint64_t h, uint8_t stride = 4)
+{
+ int ri = (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? 0 : 3;
+ int gi = (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? 1 : 2;
+ int bi = (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? 2 : 1;
+ for (uint64_t x = 1; x < w-1; ++x)
+ {
+ for (uint64_t y = 1; y < h-1; ++y)
+ {
+ uint64_t index = stride*(y*w + x);
+
+ }
+ }
+}