Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 63d9251f authored by Dichen Zhang's avatar Dichen Zhang
Browse files

jpegrecoverymap: create new address instead of changing the input jpeg

JPEG buffer from camera service is read-only, and the old logic will
cause test failures.
Besides, we'd better NOT change the input data.

Bug: b/263609305
Test:
atest -c -d \
cts/tests/camera/src/android/hardware/camera2/cts/ImageReaderTest.java#testJpegR
atest -c -d \
frameworks/native/libs/jpegrecoverymap/tests/recoverymap_test.cpp#encodeFromJpegThenDecodeatest

Change-Id: I4bfef72605d3342f86054571f52fc4873992142c
parent 990ff7ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment