package ob;

/* JADX INFO: loaded from: classes.dex */
public abstract class b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f31459a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f31460b;

    public b(int i10, int i11) {
        this.f31459a = i10;
        this.f31460b = i11;
    }

    public abstract byte[] a();

    public abstract byte[] b(int i10, byte[] bArr);

    public boolean c() {
        return false;
    }

    public b d() {
        throw new UnsupportedOperationException("This luminance source does not support rotation by 90 degrees.");
    }

    public final String toString() {
        int i10 = this.f31459a;
        byte[] bArrB = new byte[i10];
        int i11 = this.f31460b;
        StringBuilder sb = new StringBuilder((i10 + 1) * i11);
        for (int i12 = 0; i12 < i11; i12++) {
            bArrB = b(i12, bArrB);
            for (int i13 = 0; i13 < i10; i13++) {
                int i14 = bArrB[i13] & 255;
                sb.append(i14 < 64 ? '#' : i14 < 128 ? '+' : i14 < 192 ? '.' : ' ');
            }
            sb.append('\n');
        }
        return sb.toString();
    }
}
