package s1;

import android.graphics.Bitmap;
import android.graphics.ColorSpace;
import android.util.DisplayMetrics;

/* loaded from: classes.dex */
public final class s {

    /* renamed from: a, reason: collision with root package name */
    public static final s f35326a = new s();

    private s() {
    }

    public static final t1.c a(Bitmap bitmap) {
        t1.c b10;
        ColorSpace colorSpace = bitmap.getColorSpace();
        return (colorSpace == null || (b10 = e.b(colorSpace)) == null) ? t1.g.f35993a.w() : b10;
    }

    public static final Bitmap b(int i10, int i11, int i12, boolean z10, t1.c cVar) {
        return Bitmap.createBitmap((DisplayMetrics) null, i10, i11, i.d(i12), z10, e.a(cVar));
    }
}
