From f6bca5a5233679a3dd59900c81e622a9c163599c Mon Sep 17 00:00:00 2001 From: Nick Deakin Date: Fri, 4 Nov 2022 10:43:43 -0400 Subject: jpegrecoverymap: add initial recovery map calculations. This change adds the starting point for generating and applying the recovery map. A follow-up change will add more robust tests for this update (eg. unit testing color conversions). There are a few other known TODOs remaining for these map operations: * Clean up handling around hdr_ratio (ie. utilizing XMP) * Add color space information for inputs and utilize it for ICC data * Add handling for PQ encode/decode No-Typo-Check: Lint suggesting typo in code as if it's a comment Test: build Bug: b/252835416 Change-Id: I2f6a1bf3b046036292afe46bbd2396a87cdc5164 --- libs/jpegrecoverymap/jpegencoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/jpegrecoverymap/jpegencoder.cpp') diff --git a/libs/jpegrecoverymap/jpegencoder.cpp b/libs/jpegrecoverymap/jpegencoder.cpp index d45d9b33c9..1997bf9ea3 100644 --- a/libs/jpegrecoverymap/jpegencoder.cpp +++ b/libs/jpegrecoverymap/jpegencoder.cpp @@ -52,7 +52,7 @@ bool JpegEncoder::compressImage(const void* image, int width, int height, int qu return true; } -const void* JpegEncoder::getCompressedImagePtr() { +void* JpegEncoder::getCompressedImagePtr() { return mResultBuffer.data(); } @@ -236,4 +236,4 @@ bool JpegEncoder::compressSingleChannel(jpeg_compress_struct* cinfo, const uint8 return true; } -} // namespace android \ No newline at end of file +} // namespace android -- cgit v1.2.3-59-g8ed1b