From 5f3129e4d08d10ff7508f5fb5baabb0b9102a483 Mon Sep 17 00:00:00 2001 From: Jin Seok Park Date: Mon, 30 Aug 2021 23:48:44 +0900 Subject: [PATCH] Improve doc for saveAttributes Bug: 198143065 Test: N/A Change-Id: I7e85dd33ecaca14e6ca279dacbaf6e8d419ea01e --- media/java/android/media/ExifInterface.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/media/java/android/media/ExifInterface.java b/media/java/android/media/ExifInterface.java index 115fb741a543e..5891a18c11861 100644 --- a/media/java/android/media/ExifInterface.java +++ b/media/java/android/media/ExifInterface.java @@ -577,7 +577,7 @@ public class ExifInterface { // 3.1. PNG file signature private static final byte[] PNG_SIGNATURE = new byte[] {(byte) 0x89, (byte) 0x50, (byte) 0x4e, (byte) 0x47, (byte) 0x0d, (byte) 0x0a, (byte) 0x1a, (byte) 0x0a}; - // See PNG (Portable Network Graphics) Specification, Version 1.2, + // See "Extensions to the PNG 1.2 Specification, Version 1.5.0", // 3.7. eXIf Exchangeable Image File (Exif) Profile private static final byte[] PNG_CHUNK_TYPE_EXIF = new byte[]{(byte) 0x65, (byte) 0x58, (byte) 0x49, (byte) 0x66}; @@ -2085,7 +2085,9 @@ public class ExifInterface { *

* For WebP format, the Exif data will be stored as an Extended File Format, and it may not be * supported for older readers. - *

+ *

+ * For PNG format, the Exif data will be stored as an "eXIf" chunk as per + * "Extensions to the PNG 1.2 Specification, Version 1.5.0". */ public void saveAttributes() throws IOException { if (!isSupportedFormatForSavingAttributes()) {