libultrahdr currently supports API-4 for JPEG/R, allowing an application to provide an existing base image, gain-map image, and gain-map metadata for packaging without regenerating the gain map.
Could equivalent support be added for AVIF and HEIF output?
This would help applications such as libvips preserve an existing gain map when converting or saving an image. Without it, adopting libultrahdr v2 for AVIF/HEIF may require reconstructing HDR pixels and generating a new gain map, which is slower and can alter the original result.
Related broader transcoding request: #398.
libultrahdr currently supports API-4 for JPEG/R, allowing an application to provide an existing base image, gain-map image, and gain-map metadata for packaging without regenerating the gain map.
Could equivalent support be added for AVIF and HEIF output?
This would help applications such as libvips preserve an existing gain map when converting or saving an image. Without it, adopting libultrahdr v2 for AVIF/HEIF may require reconstructing HDR pixels and generating a new gain map, which is slower and can alter the original result.
Related broader transcoding request: #398.