util: Code generate functions to pack and unpack a single pixel.