That&#x27;s how a lot of software that can handle 12 bit already does it. It is only baked to whatever format the display wants (yes, 12 bit displays exist, they are tens of thousands of dollars, and only used very sparingly during post-production).<p>Presumably, it is either padded to 5 bytes, or two pixels are shoved into 9 bytes when shipped to the monitor.