package C1;

import C3.E;
import C3.G;
import C3.W;
import L4.h;
import T0.B;
import T0.j;
import T0.m;
import T0.n;
import java.io.EOFException;
import java.io.InterruptedIOException;
import java.util.List;
import n4.u0;
import x0.o;

/* JADX INFO: loaded from: classes.dex */
public final class a implements m {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f1153a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final o f1154b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final B f1155c;

    public a(int i) {
        this.f1153a = i;
        switch (i) {
            case 1:
                this.f1154b = new o(4);
                this.f1155c = new B(-1, -1, "image/avif");
                break;
            case 2:
                this.f1154b = new o(4);
                this.f1155c = new B(-1, -1, "image/heif");
                break;
            default:
                this.f1154b = new o(4);
                this.f1155c = new B(-1, -1, "image/webp");
                break;
        }
    }

    @Override // T0.m
    public final void a() {
        int i = this.f1153a;
    }

    @Override // T0.m
    public final m c() {
        int i = this.f1153a;
        return this;
    }

    @Override // T0.m
    public final int e(n nVar, h hVar) {
        switch (this.f1153a) {
        }
        return this.f1155c.e(nVar, hVar);
    }

    @Override // T0.m
    public final boolean f(n nVar) throws EOFException, InterruptedIOException {
        switch (this.f1153a) {
            case u0.f15495q /* 0 */:
                o oVar = this.f1154b;
                oVar.C(4);
                j jVar = (j) nVar;
                jVar.f(oVar.f18539a, 0, 4, false);
                if (oVar.v() == 1380533830) {
                    jVar.h(4, false);
                    oVar.C(4);
                    jVar.f(oVar.f18539a, 0, 4, false);
                    if (oVar.v() == 1464156752) {
                    }
                }
                break;
            case 1:
                j jVar2 = (j) nVar;
                jVar2.h(4, false);
                o oVar2 = this.f1154b;
                oVar2.C(4);
                jVar2.f(oVar2.f18539a, 0, 4, false);
                if (oVar2.v() == 1718909296) {
                    oVar2.C(4);
                    jVar2.f(oVar2.f18539a, 0, 4, false);
                    if (oVar2.v() == 1635150182) {
                    }
                }
                break;
            default:
                j jVar3 = (j) nVar;
                jVar3.h(4, false);
                o oVar3 = this.f1154b;
                oVar3.C(4);
                jVar3.f(oVar3.f18539a, 0, 4, false);
                if (oVar3.v() == 1718909296) {
                    oVar3.C(4);
                    jVar3.f(oVar3.f18539a, 0, 4, false);
                    if (oVar3.v() == 1751476579) {
                    }
                }
                break;
        }
        return false;
    }

    @Override // T0.m
    public final void i(long j8, long j9) {
        switch (this.f1153a) {
            case u0.f15495q /* 0 */:
                this.f1155c.i(j8, j9);
                break;
            case 1:
                this.f1155c.i(j8, j9);
                break;
            default:
                this.f1155c.i(j8, j9);
                break;
        }
    }

    @Override // T0.m
    public final void l(T0.o oVar) {
        switch (this.f1153a) {
            case u0.f15495q /* 0 */:
                this.f1155c.l(oVar);
                break;
            case 1:
                this.f1155c.l(oVar);
                break;
            default:
                this.f1155c.l(oVar);
                break;
        }
    }

    @Override // T0.m
    public final List m() {
        switch (this.f1153a) {
            case u0.f15495q /* 0 */:
                E e8 = G.f1197r;
                break;
            case 1:
                E e9 = G.f1197r;
                break;
            default:
                E e10 = G.f1197r;
                break;
        }
        return W.f1225u;
    }

    private final void b() {
    }

    private final void d() {
    }

    private final void g() {
    }
}
