33 lines
944 B
Java
33 lines
944 B
Java
|
package o;
|
||
|
|
||
|
import android.graphics.Bitmap;
|
||
|
import android.graphics.drawable.BitmapDrawable;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class JNd implements yBU<Drawable, byte[]> {
|
||
|
private final sqY c;
|
||
|
private final yBU<Bitmap, byte[]> d;
|
||
|
private final yBU<RiR, byte[]> e;
|
||
|
|
||
|
public JNd(sqY sqy, yBU<Bitmap, byte[]> ybu, yBU<RiR, byte[]> ybu2) {
|
||
|
this.c = sqy;
|
||
|
this.d = ybu;
|
||
|
this.e = ybu2;
|
||
|
}
|
||
|
|
||
|
@Override // o.yBU
|
||
|
public final Ezi<byte[]> e(Ezi<Drawable> ezi, unA una) {
|
||
|
Drawable e = ezi.e();
|
||
|
if (e instanceof BitmapDrawable) {
|
||
|
yBU<Bitmap, byte[]> ybu = this.d;
|
||
|
Bitmap bitmap = ((BitmapDrawable) e).getBitmap();
|
||
|
return ybu.e(bitmap != null ? new EQc(bitmap, this.c) : null, una);
|
||
|
}
|
||
|
if (e instanceof RiR) {
|
||
|
return this.e.e(ezi, una);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|