package ඓ.ῲ.K.ᕣ.ᕣ.ʬ;

import android.content.Context;
import android.graphics.Bitmap;
import ඓ.ῲ.K.ComponentCallbacks2C1161;
import ඓ.ῲ.K.ᓣ.C0845;
import ඓ.ῲ.K.ᕣ.AbstractC1030;
import ඓ.ῲ.K.ᕣ.ᨨ.AbstractC1027;
import ඓ.ῲ.K.ᕣ.ᨨ.ゎ.AbstractC0976;

/* renamed from: ඓ.ῲ.K.ᕣ.ᕣ.ʬ.㴹  reason: contains not printable characters */
/* compiled from: BitmapTransformation */
public abstract class AbstractC0888 implements AbstractC1030<Bitmap> {
    /* renamed from: K  reason: contains not printable characters */
    public abstract Bitmap m2562(AbstractC0976 v, Bitmap bitmap, int i, int i2);

    @Override // ඓ.ῲ.K.ᕣ.AbstractC1030
    /* renamed from: K  reason: contains not printable characters */
    public final AbstractC1027<Bitmap> m2563(Context context, AbstractC1027<Bitmap> r4, int i, int i2) {
        if (C0845.m2460(i, i2)) {
            AbstractC0976 r3 = ComponentCallbacks2C1161.m3105(context).f4670;
            Bitmap bitmap = r4.get();
            if (i == Integer.MIN_VALUE) {
                i = bitmap.getWidth();
            }
            if (i2 == Integer.MIN_VALUE) {
                i2 = bitmap.getHeight();
            }
            Bitmap r5 = m2562(r3, bitmap, i, i2);
            return bitmap.equals(r5) ? r4 : C0859.m2488(r5, r3);
        }
        throw new IllegalArgumentException("Cannot apply transformation on width: " + i + " or height: " + i2 + " less than or equal to zero and not Target.SIZE_ORIGINAL");
    }
}
