package o; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import java.io.IOException; /* loaded from: classes.dex */ public final class NTO implements iYP { private final iYP c; private final Resources d; public NTO(Resources resources, iYP iyp) { if (resources == null) { throw new NullPointerException("Argument must not be null"); } this.d = resources; if (iyp == null) { throw new NullPointerException("Argument must not be null"); } this.c = iyp; } @Override // o.iYP public final boolean a(DataType datatype, unA una) throws IOException { return this.c.a(datatype, una); } @Override // o.iYP public final Ezi a(DataType datatype, int i, int i2, unA una) throws IOException { Ezi a = this.c.a(datatype, i, i2, una); Resources resources = this.d; if (a == null) { return null; } return new JzU(resources, a); } }