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
1 file changed