discord-jadx/app/src/main/java/androidx/core/graphics/ImageDecoderKt.java

30 lines
1.7 KiB
Java

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<? super ImageDecoder, ? super ImageDecoder.ImageInfo, ? super ImageDecoder.Source, Unit> function3) {
m.checkNotNullParameter(source, "<this>");
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<? super ImageDecoder, ? super ImageDecoder.ImageInfo, ? super ImageDecoder.Source, Unit> function3) {
m.checkNotNullParameter(source, "<this>");
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;
}
}