Skip to content

Commit

Permalink
Update document
Browse files Browse the repository at this point in the history
  • Loading branch information
WizzXu committed Oct 16, 2023
1 parent a1cfce3 commit 1755e39
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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() {
Expand Down

0 comments on commit 1755e39

Please sign in to comment.