128 lines
3.9 KiB
Java
128 lines
3.9 KiB
Java
package c.i.a.c.a2;
|
|
|
|
import android.net.Uri;
|
|
import androidx.annotation.Nullable;
|
|
import c.i.a.c.a2.b0.b;
|
|
import c.i.a.c.a2.c0.d;
|
|
import c.i.a.c.a2.d0.c;
|
|
import c.i.a.c.a2.e0.a;
|
|
import c.i.a.c.a2.f0.e;
|
|
import c.i.a.c.a2.h0.g;
|
|
import c.i.a.c.a2.h0.i;
|
|
import c.i.a.c.a2.j0.b0;
|
|
import c.i.a.c.a2.j0.h;
|
|
import c.i.a.c.a2.j0.h0;
|
|
import c.i.a.c.a2.j0.j;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import java.lang.reflect.Constructor;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
/* compiled from: DefaultExtractorsFactory */
|
|
public final class f implements l {
|
|
public static final int[] a = {5, 4, 12, 8, 3, 10, 9, 11, 6, 2, 0, 1, 7, 14};
|
|
@Nullable
|
|
public static final Constructor<? extends h> b;
|
|
|
|
static {
|
|
Constructor<? extends h> constructor = null;
|
|
try {
|
|
if (Boolean.TRUE.equals(Class.forName("com.google.android.exoplayer2.ext.flac.FlacLibrary").getMethod("isAvailable", new Class[0]).invoke(null, new Object[0]))) {
|
|
constructor = Class.forName("com.google.android.exoplayer2.ext.flac.FlacExtractor").asSubclass(h.class).getConstructor(Integer.TYPE);
|
|
}
|
|
} catch (ClassNotFoundException unused) {
|
|
} catch (Exception e) {
|
|
throw new RuntimeException("Error instantiating FLAC extension", e);
|
|
}
|
|
b = constructor;
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.l
|
|
public synchronized h[] a() {
|
|
return b(Uri.EMPTY, new HashMap());
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.l
|
|
public synchronized h[] b(Uri uri, Map<String, List<String>> map) {
|
|
ArrayList arrayList;
|
|
arrayList = new ArrayList(14);
|
|
int a1 = AnimatableValueParser.a1(map);
|
|
if (a1 != -1) {
|
|
c(a1, arrayList);
|
|
}
|
|
int b1 = AnimatableValueParser.b1(uri);
|
|
if (!(b1 == -1 || b1 == a1)) {
|
|
c(b1, arrayList);
|
|
}
|
|
int[] iArr = a;
|
|
for (int i : iArr) {
|
|
if (!(i == a1 || i == b1)) {
|
|
c(i, arrayList);
|
|
}
|
|
}
|
|
return (h[]) arrayList.toArray(new h[arrayList.size()]);
|
|
}
|
|
|
|
public final void c(int i, List<h> list) {
|
|
switch (i) {
|
|
case 0:
|
|
list.add(new c.i.a.c.a2.j0.f());
|
|
return;
|
|
case 1:
|
|
list.add(new h());
|
|
return;
|
|
case 2:
|
|
list.add(new j(0));
|
|
return;
|
|
case 3:
|
|
list.add(new b(0));
|
|
return;
|
|
case 4:
|
|
Constructor<? extends h> constructor = b;
|
|
if (constructor != null) {
|
|
try {
|
|
list.add((h) constructor.newInstance(0));
|
|
return;
|
|
} catch (Exception e) {
|
|
throw new IllegalStateException("Unexpected error creating FLAC extractor", e);
|
|
}
|
|
} else {
|
|
list.add(new d(0));
|
|
return;
|
|
}
|
|
case 5:
|
|
list.add(new c());
|
|
return;
|
|
case 6:
|
|
list.add(new e(0));
|
|
return;
|
|
case 7:
|
|
list.add(new c.i.a.c.a2.g0.f(0));
|
|
return;
|
|
case 8:
|
|
list.add(new g(0));
|
|
list.add(new i(0));
|
|
return;
|
|
case 9:
|
|
list.add(new c.i.a.c.a2.i0.d());
|
|
return;
|
|
case 10:
|
|
list.add(new b0());
|
|
return;
|
|
case 11:
|
|
list.add(new h0(1, 0, 112800));
|
|
return;
|
|
case 12:
|
|
list.add(new c.i.a.c.a2.k0.b());
|
|
return;
|
|
case 13:
|
|
default:
|
|
return;
|
|
case 14:
|
|
list.add(new a());
|
|
return;
|
|
}
|
|
}
|
|
}
|