summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Nick Deakin <deakin@google.com> 2023-02-14 21:40:06 -0500
committer Nick Deakin <deakin@google.com> 2023-02-15 10:38:28 -0500
commita22152938dae023cb4305d495ff9eecbe76bc343 (patch)
treeee8dbb235b21b6278bc69a51df9d8d37a475abf8 /libs/jpegrecoverymap/jpegencoderhelper.cpp
parent3f89a3ee4780a6b4674b255848c04bbea9f07a16 (diff)
libjpegrecoverymap: Update min/max boost determination.
Fix min/max content boost to 1 / 10 for HLG and 1 / 100 for PQ. Determining these values based on both input images can be problematic due to jpeg encoding artifacts. Additionally, min of 1 seems justified since attentuation during map application has not come up in a meaningful way in practice with HLG and PQ input. This also has the nice benefit of improving encode performance significantly; generate map numbers for 12MP on Pixel 7 Pro are now around 45ms, down from ~150ms! Bug: 264715926 Test: tests pass Change-Id: Ia016b68de5900cb263d383b1ae64f7c39cc499cd
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions