正在查看: jsgt v4.8.1 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: jsgt v4.8.1 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package l1;
import android.net.Uri;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import b2.z;
import d2.a;
import d2.d0;
import d2.m;
import j0.b0;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import l1.j;
import org.xml.sax.helpers.DefaultHandler;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
public final class c extends DefaultHandler implements z.a<b> {
public static final Pattern b = Pattern.compile("(\\d+)(?:/(\\d+))?");
public static final Pattern c = Pattern.compile("CC([1-4])=.*");
public static final Pattern d = Pattern.compile("([1-9]|[1-5][0-9]|6[0-3])=.*");
public final XmlPullParserFactory a;
public c() {
try {
this.a = XmlPullParserFactory.newInstance();
} catch (XmlPullParserException e) {
throw new RuntimeException("Couldn't create XmlPullParserFactory instance", e);
}
}
public static long b(ArrayList arrayList, long j4, long j5, int i, long j6) {
int i2;
if (i >= 0) {
i2 = i + 1;
} else {
int i4 = d0.a;
i2 = (int) ((((j6 - j4) + j5) - 1) / j5);
}
for (int i6 = 0; i6 < i2; i6++) {
arrayList.add(new j.d(j4, j5));
j4 += j5;
}
return j4;
}
public static void c(XmlPullParser xmlPullParser) throws IOException, XmlPullParserException {
if (a.j(xmlPullParser)) {
int i = 1;
while (i != 0) {
xmlPullParser.next();
if (a.j(xmlPullParser)) {
i++;
} else {
if (xmlPullParser.getEventType() == 3) {
i--;
}
}
}
}
}
public static boolean d(@Nullable String str) {
return m.i(str) || "application/ttml+xml".equals(str) || "application/x-mp4-vtt".equals(str) || "application/cea-708".equals(str) || "application/cea-608".equals(str);
}
public static int e(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
String E;
char c4;
String attributeValue = xmlPullParser.getAttributeValue(null, "schemeIdUri");
if (attributeValue == null) {
attributeValue = null;
}
int i = -1;
if ("urn:mpeg:dash:23003:3:audio_channel_configuration:2011".equals(attributeValue)) {
i = l(xmlPullParser, "value", -1);
} else if (("tag:dolby.com,2014:dash:audio_channel_configuration:2011".equals(attributeValue) || "urn:dolby:dash:audio_channel_configuration:2011".equals(attributeValue)) && (E = d0.E(xmlPullParser.getAttributeValue(null, "value"))) != null) {
switch (E.hashCode()) {
case 1596796:
if (E.equals("4000")) {
c4 = 0;
break;
}
c4 = 65535;
break;
case 2937391:
if (E.equals("a000")) {
c4 = 1;
break;
}
c4 = 65535;
break;
case 3094035:
if (E.equals("f801")) {
c4 = 2;
break;
}
c4 = 65535;
break;
case 3133436:
if (E.equals("fa01")) {
c4 = 3;
break;
}
c4 = 65535;
break;
default:
c4 = 65535;
break;
}
if (c4 == 0) {
i = 1;
} else if (c4 == 1) {
i = 2;
} else if (c4 == 2) {
i = 6;
} else if (c4 == 3) {
i = 8;
}
}
do {
xmlPullParser.next();
} while (!a.i(xmlPullParser, "AudioChannelConfiguration"));
return i;
}
public static android.util.Pair f(org.xmlpull.v1.XmlPullParser r13) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {
throw new UnsupportedOperationException("Method not decompiled: l1.c.f(org.xmlpull.v1.XmlPullParser):android.util.Pair");
}
public static int g(XmlPullParser xmlPullParser) {
String attributeValue = xmlPullParser.getAttributeValue(null, "contentType");
if (!TextUtils.isEmpty(attributeValue)) {
if ("audio".equals(attributeValue)) {
return 1;
}
if ("video".equals(attributeValue)) {
return 2;
}
if ("text".equals(attributeValue)) {
return 3;
}
}
return -1;
}
public static int h(@Nullable String str) {
if (str == null) {
return 0;
}
switch (str) {
}
return 0;
}
public static d i(XmlPullParser xmlPullParser, String str) throws XmlPullParserException, IOException {
String attributeValue = xmlPullParser.getAttributeValue(null, "schemeIdUri");
if (attributeValue == null) {
attributeValue = "";
}
String attributeValue2 = xmlPullParser.getAttributeValue(null, "value");
if (attributeValue2 == null) {
attributeValue2 = null;
}
String attributeValue3 = xmlPullParser.getAttributeValue(null, "id");
String str2 = attributeValue3 != null ? attributeValue3 : null;
do {
xmlPullParser.next();
} while (!a.i(xmlPullParser, str));
return new d(attributeValue, attributeValue2, str2);
}
public static long j(XmlPullParser xmlPullParser, String str, long j4) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
if (attributeValue == null) {
return j4;
}
Matcher matcher = d0.h.matcher(attributeValue);
if (!matcher.matches()) {
return (long) (Double.parseDouble(attributeValue) * 3600.0d * 1000.0d);
}
boolean isEmpty = true ^ TextUtils.isEmpty(matcher.group(1));
String group = matcher.group(3);
double parseDouble = group != null ? Double.parseDouble(group) * 3.1556908E7d : 0.0d;
String group2 = matcher.group(5);
double parseDouble2 = parseDouble + (group2 != null ? Double.parseDouble(group2) * 2629739.0d : 0.0d);
String group3 = matcher.group(7);
double parseDouble3 = parseDouble2 + (group3 != null ? Double.parseDouble(group3) * 86400.0d : 0.0d);
String group4 = matcher.group(10);
double parseDouble4 = parseDouble3 + (group4 != null ? Double.parseDouble(group4) * 3600.0d : 0.0d);
String group5 = matcher.group(12);
double parseDouble5 = parseDouble4 + (group5 != null ? Double.parseDouble(group5) * 60.0d : 0.0d);
String group6 = matcher.group(14);
long parseDouble6 = (long) ((parseDouble5 + (group6 != null ? Double.parseDouble(group6) : 0.0d)) * 1000.0d);
return isEmpty ? -parseDouble6 : parseDouble6;
}
public static float k(XmlPullParser xmlPullParser, float f) {
String attributeValue = xmlPullParser.getAttributeValue(null, "frameRate");
if (attributeValue == null) {
return f;
}
Matcher matcher = b.matcher(attributeValue);
if (!matcher.matches()) {
return f;
}
int parseInt = Integer.parseInt(matcher.group(1));
return !TextUtils.isEmpty(matcher.group(2)) ? parseInt / Integer.parseInt(r2) : parseInt;
}
public static int l(XmlPullParser xmlPullParser, String str, int i) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
return attributeValue == null ? i : Integer.parseInt(attributeValue);
}
public static long m(XmlPullParser xmlPullParser, String str, long j4) {
String attributeValue = xmlPullParser.getAttributeValue(null, str);
return attributeValue == null ? j4 : Long.parseLong(attributeValue);
}
public static h o(String str, String str2, XmlPullParser xmlPullParser) {
long j4;
long j5;
String attributeValue = xmlPullParser.getAttributeValue(null, str);
String attributeValue2 = xmlPullParser.getAttributeValue(null, str2);
if (attributeValue2 != null) {
String[] split = attributeValue2.split("-");
j4 = Long.parseLong(split[0]);
if (split.length == 2) {
j5 = (Long.parseLong(split[1]) - j4) + 1;
return new h(j4, attributeValue, j5);
}
} else {
j4 = 0;
}
j5 = -1;
return new h(j4, attributeValue, j5);
}
public static j$e p(XmlPullParser xmlPullParser, @Nullable j$e j_e) throws XmlPullParserException, IOException {
long j4;
long j5;
long m = m(xmlPullParser, "timescale", j_e != null ? ((j) j_e).b : 1L);
long m4 = m(xmlPullParser, "presentationTimeOffset", j_e != null ? ((j) j_e).c : 0L);
long j6 = j_e != null ? j_e.d : 0L;
long j9 = j_e != null ? j_e.e : 0L;
String attributeValue = xmlPullParser.getAttributeValue(null, "indexRange");
if (attributeValue != null) {
String[] split = attributeValue.split("-");
long parseLong = Long.parseLong(split[0]);
j4 = (Long.parseLong(split[1]) - parseLong) + 1;
j5 = parseLong;
} else {
j4 = j9;
j5 = j6;
}
h hVar = j_e != null ? ((j) j_e).a : null;
do {
xmlPullParser.next();
if (a.k(xmlPullParser, "Initialization")) {
hVar = o("sourceURL", "range", xmlPullParser);
} else {
c(xmlPullParser);
}
} while (!a.i(xmlPullParser, "SegmentBase"));
return new j$e(hVar, m, m4, j5, j4);
}
public static j$b q(XmlPullParser xmlPullParser, @Nullable j$b j_b, long j4) throws XmlPullParserException, IOException {
List list;
long m = m(xmlPullParser, "timescale", j_b != null ? ((j) j_b).b : 1L);
long m4 = m(xmlPullParser, "presentationTimeOffset", j_b != null ? ((j) j_b).c : 0L);
long m6 = m(xmlPullParser, "duration", j_b != null ? j_b.e : -9223372036854775807L);
long m9 = m(xmlPullParser, "startNumber", j_b != null ? j_b.d : 1L);
List list2 = null;
h hVar = null;
List list3 = null;
do {
xmlPullParser.next();
if (a.k(xmlPullParser, "Initialization")) {
hVar = o("sourceURL", "range", xmlPullParser);
} else if (a.k(xmlPullParser, "SegmentTimeline")) {
list3 = s(xmlPullParser, m, j4);
} else if (a.k(xmlPullParser, "SegmentURL")) {
if (list2 == null) {
list2 = new ArrayList();
}
list2.add(o("media", "mediaRange", xmlPullParser));
} else {
c(xmlPullParser);
}
} while (!a.i(xmlPullParser, "SegmentList"));
if (j_b != null) {
if (hVar == null) {
hVar = ((j) j_b).a;
}
if (list3 == null) {
list3 = j_b.f;
}
if (list2 == null) {
list = j_b.f773g;
return new j$b(hVar, m, m4, m9, m6, list3, list);
}
}
list = list2;
return new j$b(hVar, m, m4, m9, m6, list3, list);
}
public static j$c r(XmlPullParser xmlPullParser, @Nullable j$c j_c, List list, long j4) throws XmlPullParserException, IOException {
long j5;
h hVar;
List list2;
long m = m(xmlPullParser, "timescale", j_c != null ? ((j) j_c).b : 1L);
long m4 = m(xmlPullParser, "presentationTimeOffset", j_c != null ? ((j) j_c).c : 0L);
long m6 = m(xmlPullParser, "duration", j_c != null ? j_c.e : -9223372036854775807L);
long m9 = m(xmlPullParser, "startNumber", j_c != null ? j_c.d : 1L);
int i = 0;
while (true) {
if (i >= list.size()) {
j5 = -1;
break;
}
d dVar = (d) list.get(i);
if ("http://dashif.org/guidelines/last-segment-number".equalsIgnoreCase(dVar.a)) {
j5 = Long.parseLong(dVar.b);
break;
}
i++;
}
long j6 = j5;
h hVar2 = null;
l t = t(xmlPullParser, "media", j_c != null ? j_c.f775h : null);
l t2 = t(xmlPullParser, "initialization", j_c != null ? j_c.f774g : null);
List list3 = null;
do {
xmlPullParser.next();
if (a.k(xmlPullParser, "Initialization")) {
hVar2 = o("sourceURL", "range", xmlPullParser);
} else if (a.k(xmlPullParser, "SegmentTimeline")) {
list3 = s(xmlPullParser, m, j4);
} else {
c(xmlPullParser);
}
} while (!a.i(xmlPullParser, "SegmentTemplate"));
if (j_c != null) {
if (hVar2 == null) {
hVar2 = ((j) j_c).a;
}
if (list3 == null) {
list2 = j_c.f;
hVar = hVar2;
return new j$c(hVar, m, m4, m9, j6, m6, list2, t2, t);
}
}
hVar = hVar2;
list2 = list3;
return new j$c(hVar, m, m4, m9, j6, m6, list2, t2, t);
}
public static ArrayList s(XmlPullParser xmlPullParser, long j4, long j5) throws XmlPullParserException, IOException {
ArrayList arrayList = new ArrayList();
long j6 = 0;
long j9 = -9223372036854775807L;
boolean z5 = false;
int i = 0;
do {
xmlPullParser.next();
if (a.k(xmlPullParser, "S")) {
long m = m(xmlPullParser, "t", -9223372036854775807L);
if (z5) {
j6 = b(arrayList, j6, j9, i, m);
}
if (m == -9223372036854775807L) {
m = j6;
}
j9 = m(xmlPullParser, "d", -9223372036854775807L);
i = l(xmlPullParser, "r", 0);
j6 = m;
z5 = true;
} else {
c(xmlPullParser);
}
} while (!a.i(xmlPullParser, "SegmentTimeline"));
if (z5) {
b(arrayList, j6, j9, i, d0.A(j5, j4, 1000L));
}
return arrayList;
}
@androidx.annotation.Nullable
public static l1.l t(org.xmlpull.v1.XmlPullParser r11, java.lang.String r12, @androidx.annotation.Nullable l1.l r13) {
throw new UnsupportedOperationException("Method not decompiled: l1.c.t(org.xmlpull.v1.XmlPullParser, java.lang.String, l1.l):l1.l");
}
public final Object a(Uri uri, b2.k kVar) throws IOException {
try {
XmlPullParser newPullParser = this.a.newPullParser();
newPullParser.setInput(kVar, null);
if (newPullParser.next() == 2 && "MPD".equals(newPullParser.getName())) {
return n(newPullParser, uri.toString());
}
throw new b0("inputStream does not contain a valid media presentation description");
} catch (XmlPullParserException e) {
throw new b0(e);
}
}
public final l1.b n(org.xmlpull.v1.XmlPullParser r152, java.lang.String r153) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {
throw new UnsupportedOperationException("Method not decompiled: l1.c.n(org.xmlpull.v1.XmlPullParser, java.lang.String):l1.b");
}
}