google / google/libultrahdr

Request: Support API-4-style AVIF/HEIF gain-map encoding

Open
#454 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
344
Forks
67
Avg merge
15d 2h
Merged PRs (30d)
7

Description

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](https://github.com/google/libultrahdr/issues/398).

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing API-4 JPEG/R support and the AVIF/HEIF output paths. Compare how the supplied base image, gain-map image, and metadata are handled, and identify the public API and test coverage needed for equivalent support. Done means applications can package existing inputs for AVIF and HEIF without regenerating the gain map.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.