package androidx.core.graphics; import android.graphics.Bitmap; import android.graphics.ImageDecoder; import android.graphics.drawable.Drawable; import androidx.annotation.RequiresApi; import d0.z.d.m; import kotlin.Unit; import kotlin.jvm.functions.Function3; /* compiled from: ImageDecoder.kt */ public final class ImageDecoderKt { @RequiresApi(28) public static final Bitmap decodeBitmap(ImageDecoder.Source source, Function3 function3) { m.checkNotNullParameter(source, ""); m.checkNotNullParameter(function3, "action"); Bitmap decodeBitmap = ImageDecoder.decodeBitmap(source, new ImageDecoderKt$decodeBitmap$1(function3)); m.checkNotNullExpressionValue(decodeBitmap, "crossinline action: ImageDecoder.(info: ImageInfo, source: Source) -> Unit\n): Bitmap {\n return ImageDecoder.decodeBitmap(this) { decoder, info, source ->\n decoder.action(info, source)\n }"); return decodeBitmap; } @RequiresApi(28) public static final Drawable decodeDrawable(ImageDecoder.Source source, Function3 function3) { m.checkNotNullParameter(source, ""); m.checkNotNullParameter(function3, "action"); Drawable decodeDrawable = ImageDecoder.decodeDrawable(source, new ImageDecoderKt$decodeDrawable$1(function3)); m.checkNotNullExpressionValue(decodeDrawable, "crossinline action: ImageDecoder.(info: ImageInfo, source: Source) -> Unit\n): Drawable {\n return ImageDecoder.decodeDrawable(this) { decoder, info, source ->\n decoder.action(info, source)\n }"); return decodeDrawable; } }