Improving perceptual quality of high dynamic range video