Replies: 1 comment
|
#489 implements the realtime-preset approach proposed here, with expanded performance and quality testing. It selects AOM speed 8 for both the AVIF base image and gain map when callers choose UHDR_USAGE_REALTIME, while preserving default and best-quality behavior. A separate encoder-speed API remains a possible follow-up. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'd like to explore options for faster AVIF encoding. My initial testing shows the potential for significantly faster encoding, with modest changes in the quality metrics on the two images tested.
I see two potential approaches:
UHDR_USAGE_REALTIMEcould be updated to select faster AOM encoding for AVIF.In the tested configuration, both presets use AOM speed 6. Realtime changes gain-map generation but does not reduce AV1 encoding effort. Setting speed 8 for both the base image and gain map gave these results, comparing current realtime against realtime with only that change:
These are measurements on an Apple M5 Max using libultrahdr
f3e3622, libheif 1.19.7 with the repository's gain-map patch, and AOM 3.14.1. Base/map quality settings were 90/85 in testing (vs library defaults of 95/95). Tests used warmups and balanced run order, with file I/O and verification outside timing. Each request decoded the source JPEG into HDR and SDR and encoded gain-map AVIF at the same dimensions.There is a quality tradeoff. SDR PSNR fell about 0.4 and 1.1 dB, respectively; HDR reconstruction log-RMSE increased about 4% and 1%. Those HDR figures measure numerical error, not perceived quality loss. The composite measurements cover its photographic regions, excluding text and test patterns.
A separate synthetic test using the best-quality preset produced a file about 15% larger that took about 15% longer to decode at speed 8. I'd also check those tradeoffs across more photographs before submitting a PR.
These results look promising, but need further testing to support a PR. I'd like to gauge support for the approach before proceeding.
All reactions