liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
android/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/TaskCompressImageToJpeg.java
old mode 100755new mode 100644
....@@ -203,25 +203,25 @@
203203 imageHeight,
204204 img.proxy.getFormat(), safeCrop);
205205
206
- if(requiresCropOperation(img.proxy, safeCrop)) {
207
- // Crop the image
208
- resultImage = new TaskImage(
209
- exifDerivedRotation,
210
- safeCrop.width(),
211
- safeCrop.height(),
212
- img.proxy.getFormat(), null);
206
+ //if(requiresCropOperation(img.proxy, safeCrop)) {
207
+ // // Crop the image
208
+ // resultImage = new TaskImage(
209
+ // exifDerivedRotation,
210
+ // safeCrop.width(),
211
+ // safeCrop.height(),
212
+ // img.proxy.getFormat(), null);
213213
214
- byte[] croppedResult = decompressCropAndRecompressJpegData(
215
- compressedData.array(), safeCrop,
216
- getJpegCompressionQuality());
214
+ // byte[] croppedResult = decompressCropAndRecompressJpegData(
215
+ // compressedData.array(), safeCrop,
216
+ // getJpegCompressionQuality());
217217
218
- compressedData = ByteBuffer.allocate(croppedResult.length);
219
- compressedData.put(ByteBuffer.wrap(croppedResult));
220
- compressedData.rewind();
221
- } else {
222
- // Pass-though the JPEG data
218
+ // compressedData = ByteBuffer.allocate(croppedResult.length);
219
+ // compressedData.put(ByteBuffer.wrap(croppedResult));
220
+ // compressedData.rewind();
221
+ //} else {
222
+ // // Pass-though the JPEG data
223223 resultImage = inputImage;
224
- }
224
+ //}
225225 } finally {
226226 // Release the image now that you have a usable copy in
227227 // local memory