Closed grandchild closed 3 years ago
FYI, @unconed: https://github.com/grandchild/vis_avs/blob/build/avs/vis_avs/r_colormap.cpp#L1-L15:
/*
Reconstructed by decompiling the original colormap.ape v1.3 binary.
Credits:
Steven Wittens (a.k.a. "Unconed" -> https://acko.net), for the original Colormap,
& the Ghidra authors.
Most of the code deals with handling the UI interactions (all the Win32 UI API calls
were thankfully plainly visible in the decompiled binary), and the actual mapping
code is fairly straightforward.
The original implementation used MMX asm, which has been updated to using SSE2/SSSE3
intrinsics. The code could further be sped up by leveraging the "gather" instructions
available with Intel's AVX2 extension (ca. 2014 and later CPU models) to load colors by
index from the baked map.
*/
I hope you're fine with the attribution in this way.