https://bugs.winehq.org/show_bug.cgi?id=48492
--- Comment #10 from Ilia Mirkin imirkin@alum.mit.edu --- https://en.wikipedia.org/wiki/BMP_file_format#Pixel_format
Also seems to suggest that arbitrary bitfields can be specified. Probably should just go off of bitsize and create specialized 16/24/32-bit-wide functions to handle the different bitfields, and use a fixed pixel format for each width?