Skip to content

Commit

Permalink
Delete abandoned code
Browse files Browse the repository at this point in the history
  • Loading branch information
WizzXu committed Oct 16, 2023
1 parent 1755e39 commit 998b250
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions android_jni/avifandroidjni/src/main/jni/libavif_jni.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 998b250

Please sign in to comment.