Ultra HDR is a true HDR image format, and is backcompatible. libultrahdr is the reference codec for the Ultra HDR format. The codecs that support the format can render the HDR intent of the image on HDR displays; other codecs can still decode and display the SDR intent of the image.
encoder apis [2-4] accept compressed sdr intent as an argument. Validate this arg in depth. Briefly,
fixes #166
Test: ./ultrahdr_unit_test