diff options
| author | 2022-11-04 10:43:43 -0400 | |
|---|---|---|
| committer | 2022-11-04 17:22:43 -0400 | |
| commit | f6bca5a5233679a3dd59900c81e622a9c163599c (patch) | |
| tree | 2d5ad4e41314986fc5c3c03c6621f9556dd8385c /libs/jpegrecoverymap/jpegencoder.cpp | |
| parent | dc6e0d37393b1077dd940a071d20f893bf6c459d (diff) | |
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
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoder.cpp')
| -rw-r--r-- | libs/jpegrecoverymap/jpegencoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |