summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Ram Mohan <ram.mohan@ittiam.com> 2023-05-26 00:09:50 +0530
committer Dichen Zhang <dichenzhang@google.com> 2023-05-26 22:45:12 +0000
commit9b3d6859c8a19dcf478d66ff60436c423a77b8a8 (patch)
tree9b5e97ba86b347939f64029cd346b2ba548a3590 /libs/ultrahdr/jpegencoderhelper.cpp
parent6bd58d4d045fab777551175e0d16fb9c5f22c0cb (diff)
ultrahdr: update error checks in encode/decode path
1. library assumes the gain map resolution is 1/kMapDimensionScaleFactor of primary image resolution. If it is not the case the output hdr image computations are not according to the scale factor. Signal error if map scale factor is not kMapDimensionScaleFactor. 2. library expects primary image to be 420 and gain map image to be 400. Validate the same. 3. disallow srgb transfer function way early as this is not handled. 4. avoid nullptr access in metadata. Bug: 284120011 Test: ./ultrahdr_enc_fuzzer Change-Id: Ie2cd12ac95306958cbb18679039681fc4eb3d9cc
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions