42 lines
971 B
Java
42 lines
971 B
Java
|
package c.i.a.c.j2;
|
||
|
|
||
|
import androidx.annotation.Nullable;
|
||
|
import c.i.a.c.i2.w;
|
||
|
/* compiled from: DolbyVisionConfig */
|
||
|
public final class k {
|
||
|
public final String a;
|
||
|
|
||
|
public k(int i, int i2, String str) {
|
||
|
this.a = str;
|
||
|
}
|
||
|
|
||
|
@Nullable
|
||
|
public static k a(w wVar) {
|
||
|
String str;
|
||
|
wVar.E(2);
|
||
|
int s2 = wVar.s();
|
||
|
int i = s2 >> 1;
|
||
|
int s3 = ((wVar.s() >> 3) & 31) | ((s2 & 1) << 5);
|
||
|
if (i == 4 || i == 5 || i == 7) {
|
||
|
str = "dvhe";
|
||
|
} else if (i == 8) {
|
||
|
str = "hev1";
|
||
|
} else if (i != 9) {
|
||
|
return null;
|
||
|
} else {
|
||
|
str = "avc3";
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(str);
|
||
|
String str2 = ".0";
|
||
|
sb.append(str2);
|
||
|
sb.append(i);
|
||
|
if (s3 >= 10) {
|
||
|
str2 = ".";
|
||
|
}
|
||
|
sb.append(str2);
|
||
|
sb.append(s3);
|
||
|
return new k(i, s3, sb.toString());
|
||
|
}
|
||
|
}
|