From 1755e39dfefaaa49577852562baaa16ca5e2f13a Mon Sep 17 00:00:00 2001 From: xuweiyu Date: Mon, 16 Oct 2023 13:00:23 +0800 Subject: [PATCH] Update document --- .../src/main/java/org/aomedia/avif/android/AvifDecoder.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/android_jni/avifandroidjni/src/main/java/org/aomedia/avif/android/AvifDecoder.java b/android_jni/avifandroidjni/src/main/java/org/aomedia/avif/android/AvifDecoder.java index fe4805fe39..7b1f2b162f 100644 --- a/android_jni/avifandroidjni/src/main/java/org/aomedia/avif/android/AvifDecoder.java +++ b/android_jni/avifandroidjni/src/main/java/org/aomedia/avif/android/AvifDecoder.java @@ -99,7 +99,7 @@ public static boolean isAvifImage(ByteBuffer buffer) { * was not valid AVIF. */ public static boolean decode(ByteBuffer encoded, int length, Bitmap bitmap) { - return decode(encoded, length, bitmap, 0, false); + return decode(encoded, length, bitmap, 0); } /** @@ -114,12 +114,10 @@ public static boolean decode(ByteBuffer encoded, int length, Bitmap bitmap) { * cores as the thread count. Negative values are invalid. When this value is > 0, it is * simply mapped to the maxThreads parameter in libavif. For more details, see the * documentation for maxThreads variable in avif.h. - * @param isScale Is enable image scale in decoding. If true the encoded AVIF image size while be - * decode with size of bitmap. * @return true on success and false on failure. A few possible reasons for failure are: 1) Input * was not valid AVIF. 2) Negative value was passed for the threads parameter. */ - public static native boolean decode(ByteBuffer encoded, int length, Bitmap bitmap, int threads, boolean isScale); + public static native boolean decode(ByteBuffer encoded, int length, Bitmap bitmap, int threads); /** Get the width of the image. */ public int getWidth() {