From 998b250fc6cc71d96d59acc66e7256dee5ae9a34 Mon Sep 17 00:00:00 2001 From: xuweiyu Date: Mon, 16 Oct 2023 13:03:45 +0800 Subject: [PATCH] Delete abandoned code --- android_jni/avifandroidjni/src/main/jni/libavif_jni.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/android_jni/avifandroidjni/src/main/jni/libavif_jni.cc b/android_jni/avifandroidjni/src/main/jni/libavif_jni.cc index f57a76b4c4..e85ac8044c 100644 --- a/android_jni/avifandroidjni/src/main/jni/libavif_jni.cc +++ b/android_jni/avifandroidjni/src/main/jni/libavif_jni.cc @@ -101,16 +101,6 @@ avifResult AvifImageToBitmap(JNIEnv* const env, LOGE("AndroidBitmap_getInfo failed."); return AVIF_RESULT_UNKNOWN_ERROR; } - // Ensure that the bitmap is large enough to store the decoded image. -// if ((bitmap_info.width < decoder->crop.width || -// bitmap_info.height < decoder->crop.height)) { -// LOGE( -// "Bitmap is not large enough to fit the image. Bitmap %dx%d Image " -// "%dx%d.", -// bitmap_info.width, bitmap_info.height, decoder->decoder->image->width, -// decoder->decoder->image->height); -// return AVIF_RESULT_UNKNOWN_ERROR; -// } // Ensure that the bitmap format is RGBA_8888, RGB_565 or RGBA_F16. if (bitmap_info.format != ANDROID_BITMAP_FORMAT_RGBA_8888 && bitmap_info.format != ANDROID_BITMAP_FORMAT_RGB_565 &&