Mantiuk util functions for MPEG HDR