why do you convert it? just get the format by bmap_lock and use it in your pixel_to_vec-instruction.