hevc: Factor out the pixel format mapping from the sps parser