Calculate the padding needed when padding a bpp with a width to a multiple of bytes
See Implementation
Calculate the padding needed when padding a bpp with a width to a multiple of bytes