41 lines
1.0 KiB
Java
41 lines
1.0 KiB
Java
package c.i.e;
|
|
|
|
import com.discord.widgets.chat.input.MentionUtilsKt;
|
|
/* compiled from: LuminanceSource */
|
|
public abstract class f {
|
|
public final int a;
|
|
public final int b;
|
|
|
|
public f(int i, int i2) {
|
|
this.a = i;
|
|
this.b = i2;
|
|
}
|
|
|
|
public abstract byte[] a();
|
|
|
|
public abstract byte[] b(int i, byte[] bArr);
|
|
|
|
public boolean c() {
|
|
return false;
|
|
}
|
|
|
|
public f d() {
|
|
throw new UnsupportedOperationException("This luminance source does not support rotation by 90 degrees.");
|
|
}
|
|
|
|
public final String toString() {
|
|
int i = this.a;
|
|
byte[] bArr = new byte[i];
|
|
StringBuilder sb = new StringBuilder((i + 1) * this.b);
|
|
for (int i2 = 0; i2 < this.b; i2++) {
|
|
bArr = b(i2, bArr);
|
|
for (int i3 = 0; i3 < this.a; i3++) {
|
|
int i4 = bArr[i3] & 255;
|
|
sb.append(i4 < 64 ? MentionUtilsKt.CHANNELS_CHAR : i4 < 128 ? '+' : i4 < 192 ? '.' : ' ');
|
|
}
|
|
sb.append('\n');
|
|
}
|
|
return sb.toString();
|
|
}
|
|
}
|