package o6; import android.content.Context; import android.graphics.Bitmap; /* loaded from: classes2.dex */ public abstract class f implements e6.n { @Override // e6.n public final h6.h b(Context context, h6.h hVar, int i10, int i11) { if (!b7.k.s(i10, i11)) { throw new IllegalArgumentException("Cannot apply transformation on width: " + i10 + " or height: " + i11 + " less than or equal to zero and not Target.SIZE_ORIGINAL"); } i6.b o10 = b6.e.m(context).o(); Bitmap bitmap = (Bitmap) hVar.get(); if (i10 == Integer.MIN_VALUE) { i10 = bitmap.getWidth(); } if (i11 == Integer.MIN_VALUE) { i11 = bitmap.getHeight(); } Bitmap c10 = c(o10, bitmap, i10, i11); return bitmap.equals(c10) ? hVar : e.e(c10, o10); } protected abstract Bitmap c(i6.b bVar, Bitmap bitmap, int i10, int i11); }