package androidx.core.graphics; import android.annotation.SuppressLint; import android.graphics.Bitmap; import android.graphics.ImageDecoder; import android.graphics.ImageDecoder$OnHeaderDecodedListener; import android.graphics.drawable.Drawable; import androidx.annotation.RequiresApi; import kotlin.jvm.functions.Function3; @SuppressLint({"ClassVerificationFailure"}) /* loaded from: classes.dex */ public final class ImageDecoderKt { @RequiresApi(28) public static final Bitmap decodeBitmap(ImageDecoder.Source source, final Function3 function3) { Bitmap decodeBitmap; decodeBitmap = ImageDecoder.decodeBitmap(source, ImageDecoderKt$$ExternalSyntheticApiModelOutline0.m(new ImageDecoder$OnHeaderDecodedListener() { // from class: androidx.core.graphics.ImageDecoderKt$decodeBitmap$1 public final void onHeaderDecoded(ImageDecoder imageDecoder, ImageDecoder.ImageInfo imageInfo, ImageDecoder.Source source2) { Function3.this.invoke(imageDecoder, imageInfo, source2); } })); return decodeBitmap; } @RequiresApi(28) public static final Drawable decodeDrawable(ImageDecoder.Source source, final Function3 function3) { Drawable decodeDrawable; decodeDrawable = ImageDecoder.decodeDrawable(source, ImageDecoderKt$$ExternalSyntheticApiModelOutline0.m(new ImageDecoder$OnHeaderDecodedListener() { // from class: androidx.core.graphics.ImageDecoderKt$decodeDrawable$1 public final void onHeaderDecoded(ImageDecoder imageDecoder, ImageDecoder.ImageInfo imageInfo, ImageDecoder.Source source2) { Function3.this.invoke(imageDecoder, imageInfo, source2); } })); return decodeDrawable; } }