How to properly expand pixel values or sound sample values from a lower bit range (say, nybbles) to a higher bit range (say, bytes).