hdr to rgba8 encoding/decoding tool