Tone mapping operator for high dynamic range video