what-the-bank/sources/o/BCN.java

149 lines
5.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.HashMap;
/* loaded from: classes.dex */
public final class BCN extends C0743NnU<FZv> {
private static final HashMap<Integer, String> b;
public BCN(FZv fZv) {
super(fZv);
}
@Override // o.C0743NnU
public final String d(int i) {
if (i == 0) {
return e(0, 4);
}
if (i == 256) {
return d(256, 1, "Color Temperature", "Gray Point");
}
if (i == 289) {
int[] i2 = ((FZv) this.a).i(289);
if (i2 == null || i2.length == 0) {
return null;
}
StringBuilder sb = new StringBuilder();
for (int i3 = 0; i3 < i2.length; i3++) {
if (i3 == 0) {
HashMap<Integer, String> hashMap = b;
sb.append(hashMap.containsKey(Integer.valueOf(i2[i3])) ? hashMap.get(Integer.valueOf(i2[i3])) : "[unknown]");
} else {
sb.append(i2[i3]);
sb.append("; ");
}
sb.append("; ");
}
return sb.substring(0, sb.length() - 2);
}
if (i == 272) {
return a(272, "Neutral", "Yellow", "Orange", "Red", "Green");
}
if (i != 273) {
switch (i) {
case 265:
return a(265, "sRGB", "Adobe RGB", "Pro Photo RGB");
case 266:
Integer j = ((FZv) this.a).j(266);
if (j == null) {
return null;
}
if (j.intValue() == 0) {
return "(none)";
}
StringBuilder sb2 = new StringBuilder();
int intValue = j.intValue();
if ((intValue & 1) != 0) {
sb2.append("Noise Reduction, ");
}
if (((intValue >> 1) & 1) != 0) {
sb2.append("Noise Filter, ");
}
if (((intValue >> 2) & 1) != 0) {
sb2.append("Noise Filter (ISO Boost), ");
}
if (((intValue >> 3) & 1) != 0) {
sb2.append("Noise Filter (Auto), ");
}
if (sb2.length() > 2) {
sb2.delete(sb2.length() - 2, sb2.length());
}
return sb2.toString();
case 267:
return a(267, "High Speed", "High Function", "Advanced High Speed", "Advanced High Function");
case 268:
Integer j2 = ((FZv) this.a).j(268);
if (j2 == null) {
return null;
}
int intValue2 = j2.intValue();
if (intValue2 == 1) {
return "Vivid";
}
if (intValue2 == 2) {
return "Natural";
}
if (intValue2 == 3) {
return "Muted";
}
if (intValue2 == 256) {
return "Monotone";
}
if (intValue2 == 512) {
return "Sepia";
}
StringBuilder sb3 = new StringBuilder("Unknown (");
sb3.append(j2);
sb3.append(")");
return sb3.toString();
default:
return super.d(i);
}
}
return a(273, "Neutral", "Sepia", "Blue", "Purple", "Green");
}
static {
HashMap<Integer, String> hashMap = new HashMap<>();
b = hashMap;
hashMap.put(0, "Off");
hashMap.put(1, "Soft Focus");
hashMap.put(2, "Pop Art");
hashMap.put(3, "Pale & Light Color");
hashMap.put(4, "Light Tone");
hashMap.put(5, "Pin Hole");
hashMap.put(6, "Grainy Film");
hashMap.put(9, "Diorama");
hashMap.put(10, "Cross Process");
hashMap.put(12, "Fish Eye");
hashMap.put(13, "Drawing");
hashMap.put(14, "Gentle Sepia");
hashMap.put(15, "Pale & Light Color II");
hashMap.put(16, "Pop Art II");
hashMap.put(17, "Pin Hole II");
hashMap.put(18, "Pin Hole III");
hashMap.put(19, "Grainy Film II");
hashMap.put(20, "Dramatic Tone");
hashMap.put(21, "Punk");
hashMap.put(22, "Soft Focus 2");
hashMap.put(23, "Sparkle");
hashMap.put(24, "Watercolor");
hashMap.put(25, "Key Line");
hashMap.put(26, "Key Line II");
hashMap.put(27, "Miniature");
hashMap.put(28, "Reflection");
hashMap.put(29, "Fragmented");
hashMap.put(31, "Cross Process II");
hashMap.put(32, "Dramatic Tone II");
hashMap.put(33, "Watercolor I");
hashMap.put(34, "Watercolor II");
hashMap.put(35, "Diorama II");
hashMap.put(36, "Vintage");
hashMap.put(37, "Vintage II");
hashMap.put(38, "Vintage III");
hashMap.put(39, "Partial Color");
hashMap.put(40, "Partial Color II");
hashMap.put(41, "Partial Color III");
}
}