grandchild / vis_avs

MinGW GCC port of Advanced Visualization Studio for Winamp
BSD 3-Clause "New" or "Revised" License
33 stars 2 forks source link

ColorMap APE support #15

Closed grandchild closed 3 years ago

grandchild commented 3 years ago
grandchild commented 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.