package com.google.android.gms.internal.ads;

import android.graphics.Point;
import android.media.MediaCodecInfo;
import android.os.Build;
import android.util.Pair;
import android.util.Range;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.media3.common.MimeTypes;
import androidx.media3.exoplayer.analytics.AnalyticsListener;
import java.util.HashMap;
import java.util.List;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class tn2 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f16954a;

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f16957d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final boolean f16958e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean f16959f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f16960g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final boolean f16961h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public int f16962i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f16963j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public float f16964k;

    @Nullable
    public final MediaCodecInfo.CodecCapabilities zzd;

    @VisibleForTesting
    public tn2(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z10, boolean z11, boolean z12, boolean z13, boolean z14, boolean z15, boolean z16) {
        str.getClass();
        this.f16954a = str;
        this.f16955b = str2;
        this.f16956c = str3;
        this.zzd = codecCapabilities;
        this.f16959f = z10;
        this.f16957d = z13;
        this.f16958e = z15;
        this.f16960g = z16;
        this.f16961h = hc.zzb(str2);
        this.f16964k = -3.4028235E38f;
        this.f16962i = -1;
        this.f16963j = -1;
    }

    public static boolean h(MediaCodecInfo.VideoCapabilities videoCapabilities, int i10, int i11, double d10) {
        Point pointI = i(videoCapabilities, i10, i11);
        int i12 = pointI.x;
        int i13 = pointI.y;
        if (d10 == -1.0d || d10 < 1.0d) {
            return videoCapabilities.isSizeSupported(i12, i13);
        }
        double dFloor = Math.floor(d10);
        if (!videoCapabilities.areSizeAndRateSupported(i12, i13, dFloor)) {
            return false;
        }
        Range<Double> achievableFrameRatesFor = videoCapabilities.getAchievableFrameRatesFor(i12, i13);
        return achievableFrameRatesFor == null || dFloor <= ((Double) achievableFrameRatesFor.getUpper()).doubleValue();
    }

    public static Point i(MediaCodecInfo.VideoCapabilities videoCapabilities, int i10, int i11) {
        int widthAlignment = videoCapabilities.getWidthAlignment();
        int heightAlignment = videoCapabilities.getHeightAlignment();
        String str = bb1.f9474a;
        return new Point((((i10 + widthAlignment) - 1) / widthAlignment) * widthAlignment, (((i11 + heightAlignment) - 1) / heightAlignment) * heightAlignment);
    }

    /* JADX WARN: Removed duplicated region for block: B:34:0x0069  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static tn2 zza(String str, String str2, String str3, @Nullable MediaCodecInfo.CodecCapabilities codecCapabilities, boolean z10, boolean z11, boolean z12, boolean z13, boolean z14) {
        boolean z15;
        boolean z16 = codecCapabilities != null && codecCapabilities.isFeatureSupported("adaptive-playback");
        boolean z17 = codecCapabilities != null && codecCapabilities.isFeatureSupported("tunneled-playback");
        boolean z18 = z14 || (codecCapabilities != null && codecCapabilities.isFeatureSupported("secure-playback"));
        if (Build.VERSION.SDK_INT < 35 || codecCapabilities == null || !codecCapabilities.isFeatureSupported("detached-surface")) {
            z15 = false;
        } else {
            String str4 = Build.MANUFACTURER;
            if (!str4.equals("Xiaomi") && !str4.equals("OPPO") && !str4.equals("realme") && !str4.equals("motorola") && !str4.equals("LENOVO")) {
                z15 = true;
            }
        }
        return new tn2(str, str2, str3, codecCapabilities, z10, z11, z12, z16, z17, z18, z15);
    }

    /* JADX WARN: Removed duplicated region for block: B:39:0x0083  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean a(zn2 zn2Var) {
        int i10;
        String str = zn2Var.zzo;
        String str2 = this.f16955b;
        if (!(str2.equals(str) || str2.equals(do2.zzg(zn2Var))) || !e(zn2Var, true) || !f(zn2Var)) {
            return false;
        }
        if (this.f16961h) {
            int i11 = zn2Var.f19339l;
            if (i11 <= 0 || (i10 = zn2Var.f19340m) <= 0) {
                return true;
            }
            return d(i11, i10, zn2Var.f19343p);
        }
        int i12 = zn2Var.f19349v;
        if (i12 == -1) {
            int i13 = zn2Var.f19348u;
            if (i13 == -1) {
                return true;
            }
            MediaCodecInfo.CodecCapabilities codecCapabilities = this.zzd;
            if (codecCapabilities == null) {
                g("channelCount.caps");
            } else {
                MediaCodecInfo.AudioCapabilities audioCapabilities = codecCapabilities.getAudioCapabilities();
                if (audioCapabilities == null) {
                    g("channelCount.aCaps");
                } else {
                    int maxInputChannelCount = audioCapabilities.getMaxInputChannelCount();
                    if (maxInputChannelCount <= 1 && ((Build.VERSION.SDK_INT < 26 || maxInputChannelCount <= 0) && !MimeTypes.AUDIO_MPEG.equals(str2) && !MimeTypes.AUDIO_AMR_NB.equals(str2) && !MimeTypes.AUDIO_AMR_WB.equals(str2) && !MimeTypes.AUDIO_AAC.equals(str2) && !MimeTypes.AUDIO_VORBIS.equals(str2) && !MimeTypes.AUDIO_OPUS.equals(str2) && !MimeTypes.AUDIO_RAW.equals(str2) && !MimeTypes.AUDIO_FLAC.equals(str2) && !MimeTypes.AUDIO_ALAW.equals(str2) && !MimeTypes.AUDIO_MLAW.equals(str2) && !MimeTypes.AUDIO_MSGSM.equals(str2))) {
                        int i14 = MimeTypes.AUDIO_AC3.equals(str2) ? 6 : MimeTypes.AUDIO_E_AC3.equals(str2) ? 16 : 30;
                        String str3 = this.f16954a;
                        StringBuilder sb = new StringBuilder(com.google.android.gms.measurement.internal.u1.c(String.valueOf(i14), String.valueOf(maxInputChannelCount).length() + str3.length() + 32 + 4, 1));
                        sb.append("AssumedMaxChannelAdjustment: ");
                        sb.append(str3);
                        sb.append(", [");
                        sb.append(maxInputChannelCount);
                        sb.append(" to ");
                        sb.append(i14);
                        sb.append("]");
                        vt0.c(sb.toString());
                        maxInputChannelCount = i14;
                    }
                    if (maxInputChannelCount >= i13) {
                        return true;
                    }
                    StringBuilder sb2 = new StringBuilder(String.valueOf(i13).length() + 22);
                    sb2.append("channelCount.support, ");
                    sb2.append(i13);
                    g(sb2.toString());
                }
            }
        } else {
            MediaCodecInfo.CodecCapabilities codecCapabilities2 = this.zzd;
            if (codecCapabilities2 == null) {
                g("sampleRate.caps");
            } else {
                MediaCodecInfo.AudioCapabilities audioCapabilities2 = codecCapabilities2.getAudioCapabilities();
                if (audioCapabilities2 == null) {
                    g("sampleRate.aCaps");
                } else if (!audioCapabilities2.isSampleRateSupported(i12)) {
                    StringBuilder sb3 = new StringBuilder(String.valueOf(i12).length() + 20);
                    sb3.append("sampleRate.support, ");
                    sb3.append(i12);
                    g(sb3.toString());
                }
            }
        }
        return false;
    }

    public final boolean b(zn2 zn2Var) {
        if (this.f16961h) {
            return this.f16957d;
        }
        Pair pairZzd = km0.zzd(zn2Var);
        return pairZzd != null && ((Integer) pairZzd.first).intValue() == 42;
    }

    public final vg2 c(zn2 zn2Var, zn2 zn2Var2) {
        int i10;
        String str = zn2Var.zzo;
        String str2 = zn2Var2.zzo;
        int i11 = true != Objects.equals(str, str2) ? 8 : 0;
        if (this.f16961h) {
            if (zn2Var.f19344q != zn2Var2.f19344q) {
                i11 |= 1024;
            }
            boolean z10 = (zn2Var.f19339l == zn2Var2.f19339l && zn2Var.f19340m == zn2Var2.f19340m) ? false : true;
            if (!this.f16957d && z10) {
                i11 |= 512;
            }
            ea2 ea2Var = zn2Var.zzE;
            if ((!ea2.zza(ea2Var) || !ea2.zza(zn2Var2.zzE)) && !Objects.equals(ea2Var, zn2Var2.zzE)) {
                i11 |= 2048;
            }
            String str3 = this.f16954a;
            if (Build.MODEL.startsWith("SM-T230") && "OMX.MARVELL.VIDEO.HW.CODA7542DECODER".equals(str3) && !zn2Var.c(zn2Var2)) {
                i11 |= 2;
            }
            int i12 = zn2Var.f19341n;
            if (i12 != -1 && (i10 = zn2Var.f19342o) != -1 && i12 == zn2Var2.f19341n && i10 == zn2Var2.f19342o && z10) {
                i11 |= 2;
            }
            if (i11 == 0 && Objects.equals(str2, MimeTypes.VIDEO_DOLBY_VISION)) {
                Pair pairZzd = km0.zzd(zn2Var);
                Pair pairZzd2 = km0.zzd(zn2Var2);
                if (pairZzd == null || pairZzd2 == null || !((Integer) pairZzd.first).equals(pairZzd2.first)) {
                    i11 = 2;
                }
            }
            if (i11 == 0) {
                return new vg2(str3, zn2Var, zn2Var2, true == zn2Var.c(zn2Var2) ? 3 : 2, 0);
            }
        } else {
            if (zn2Var.f19348u != zn2Var2.f19348u) {
                i11 |= 4096;
            }
            if (zn2Var.f19349v != zn2Var2.f19349v) {
                i11 |= 8192;
            }
            if (zn2Var.f19350w != zn2Var2.f19350w) {
                i11 |= 16384;
            }
            String str4 = this.f16955b;
            if (i11 == 0 && (str4.equals(MimeTypes.AUDIO_AAC) || str4.equals(MimeTypes.AUDIO_AC4))) {
                Pair pairZzd3 = km0.zzd(zn2Var);
                Pair pairZzd4 = km0.zzd(zn2Var2);
                if (pairZzd3 != null && pairZzd4 != null) {
                    int iIntValue = ((Integer) pairZzd3.first).intValue();
                    int iIntValue2 = ((Integer) pairZzd4.first).intValue();
                    if (iIntValue == 42 && iIntValue2 == 42) {
                        return new vg2(this.f16954a, zn2Var, zn2Var2, 3, 0);
                    }
                    if (str4.equals(MimeTypes.AUDIO_AC4) && pairZzd3.equals(pairZzd4)) {
                        return new vg2(this.f16954a, zn2Var, zn2Var2, 3, 0);
                    }
                }
            }
            if (i11 == 0 && (str4.equals(MimeTypes.AUDIO_E_AC3_JOC) || str4.equals(MimeTypes.AUDIO_E_AC3))) {
                return new vg2(this.f16954a, zn2Var, zn2Var2, 3, 0);
            }
            if (!zn2Var.c(zn2Var2)) {
                i11 |= 32;
            }
            if (MimeTypes.AUDIO_OPUS.equals(str4)) {
                i11 |= 2;
            }
            if (i11 == 0) {
                return new vg2(this.f16954a, zn2Var, zn2Var2, 1, 0);
            }
        }
        return new vg2(this.f16954a, zn2Var, zn2Var2, 0, i11);
    }

    /* JADX WARN: Removed duplicated region for block: B:50:0x008e  */
    /* JADX WARN: Removed duplicated region for block: B:53:0x0093  */
    /* JADX WARN: Removed duplicated region for block: B:59:0x00cf  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean d(int i10, int i11, double d10) {
        char c6;
        Boolean bool;
        List supportedPerformancePoints;
        MediaCodecInfo.CodecCapabilities codecCapabilities = this.zzd;
        if (codecCapabilities == null) {
            g("sizeAndRate.caps");
            return false;
        }
        MediaCodecInfo.VideoCapabilities videoCapabilities = codecCapabilities.getVideoCapabilities();
        if (videoCapabilities == null) {
            g("sizeAndRate.vCaps");
            return false;
        }
        int i12 = Build.VERSION.SDK_INT;
        if (i12 < 29) {
            if (!h(videoCapabilities, i10, i11, d10)) {
                if (i10 < i11) {
                    String str = this.f16954a;
                    if ((!"OMX.MTK.VIDEO.DECODER.HEVC".equals(str) || !"mcv5a".equals(Build.DEVICE)) && h(videoCapabilities, i11, i10, d10)) {
                        StringBuilder sb = new StringBuilder(String.valueOf(i11).length() + com.google.android.gms.measurement.internal.u1.b(i10, 22) + 1 + String.valueOf(d10).length());
                        com.google.android.gms.measurement.internal.u1.y(sb, "sizeAndRate.rotated, ", i10, "x", i11);
                        sb.append("@");
                        sb.append(d10);
                        String string = sb.toString();
                        int length = str.length();
                        String str2 = bb1.f9474a;
                        String str3 = this.f16955b;
                        StringBuilder sb2 = new StringBuilder(string.length() + 19 + length + 2 + String.valueOf(str3).length() + 3 + String.valueOf(str2).length() + 1);
                        sb2.append("AssumedSupport [");
                        sb2.append(string);
                        sb2.append("] [");
                        sb2.append(str);
                        u.a.h(sb2, ", ", str3, "] [", str2);
                        sb2.append("]");
                        vt0.a(sb2.toString());
                    }
                }
                StringBuilder sb3 = new StringBuilder(String.valueOf(i11).length() + com.google.android.gms.measurement.internal.u1.b(i10, 22) + 1 + String.valueOf(d10).length());
                com.google.android.gms.measurement.internal.u1.y(sb3, "sizeAndRate.support, ", i10, "x", i11);
                sb3.append("@");
                sb3.append(d10);
                g(sb3.toString());
                return false;
            }
        } else if (i12 < 29 || (((bool = vj1.Q) != null && bool.booleanValue()) || (supportedPerformancePoints = videoCapabilities.getSupportedPerformancePoints()) == null || supportedPerformancePoints.isEmpty())) {
            c6 = 0;
            if (c6 != 2) {
                if (c6 == 1) {
                    StringBuilder sb4 = new StringBuilder(com.google.android.gms.measurement.internal.u1.c(String.valueOf(i11), String.valueOf(i10).length() + 20, 1) + String.valueOf(d10).length());
                    com.google.android.gms.measurement.internal.u1.y(sb4, "sizeAndRate.cover, ", i10, "x", i11);
                    sb4.append("@");
                    sb4.append(d10);
                    g(sb4.toString());
                    return false;
                }
                if (!h(videoCapabilities, i10, i11, d10)) {
                }
            }
        } else {
            MediaCodecInfo.VideoCapabilities.PerformancePoint performancePointF = androidx.media3.exoplayer.audio.m.f(i10, i11, (int) d10);
            int i13 = 0;
            while (true) {
                if (i13 >= supportedPerformancePoints.size()) {
                    c6 = 1;
                    break;
                }
                if (androidx.media3.exoplayer.audio.m.g(supportedPerformancePoints.get(i13)).covers(performancePointF)) {
                    c6 = 2;
                    break;
                }
                i13++;
            }
            if (c6 == 1 && vj1.Q == null) {
                int iQ = i12 >= 35 ? 2 : ih1.Q(false);
                int iQ2 = ih1.Q(true);
                Boolean boolValueOf = Boolean.valueOf(iQ == 0 || (iQ2 != 0 ? !(iQ == 2 && iQ2 == 2) : iQ != 2));
                vj1.Q = boolValueOf;
                if (boolValueOf.booleanValue()) {
                }
            }
            if (c6 != 2) {
            }
        }
        return true;
    }

    /* JADX WARN: Removed duplicated region for block: B:16:0x0048  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x00b7  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x0122  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean e(zn2 zn2Var, boolean z10) {
        MediaCodecInfo.CodecCapabilities codecCapabilities;
        MediaCodecInfo.CodecProfileLevel[] codecProfileLevelArr;
        MediaCodecInfo.CodecCapabilities codecCapabilities2;
        MediaCodecInfo.AudioCapabilities audioCapabilities;
        Pair pairZzd = km0.zzd(zn2Var);
        String str = zn2Var.zzo;
        String str2 = this.f16956c;
        if (str != null && str.equals(MimeTypes.VIDEO_MV_HEVC)) {
            String strA = hc.a(str2);
            if (!strA.equals(MimeTypes.VIDEO_MV_HEVC)) {
                if (strA.equals(MimeTypes.VIDEO_H265)) {
                    HashMap map = do2.f10469a;
                    String strZzk = qo1.zzk(zn2Var.f19336i);
                    if (strZzk == null) {
                        pairZzd = null;
                    } else {
                        String strTrim = strZzk.trim();
                        String str3 = bb1.f9474a;
                        pairZzd = km0.zze(strZzk, strTrim.split("\\.", -1), zn2Var.zzE);
                    }
                }
                if (pairZzd != null) {
                }
            }
        } else if (pairZzd != null) {
            int iIntValue = ((Integer) pairZzd.first).intValue();
            int iIntValue2 = ((Integer) pairZzd.second).intValue();
            boolean zEquals = MimeTypes.VIDEO_DOLBY_VISION.equals(str);
            String str4 = this.f16955b;
            int i10 = 8;
            if (zEquals) {
                str4.getClass();
                str4.hashCode();
                switch (str4) {
                    case "video/av01":
                    case "video/hevc":
                        iIntValue = 2;
                        iIntValue2 = 0;
                        break;
                    case "video/avc":
                        iIntValue2 = 0;
                        iIntValue = 8;
                        break;
                }
            }
            if (this.f16961h || str4.equals(MimeTypes.AUDIO_AC4)) {
                codecCapabilities = this.zzd;
                if (codecCapabilities != null || (codecProfileLevelArr = codecCapabilities.profileLevels) == null) {
                    codecProfileLevelArr = new MediaCodecInfo.CodecProfileLevel[0];
                }
                if (str4.equals(MimeTypes.AUDIO_AC4) && codecProfileLevelArr.length == 0) {
                    codecCapabilities2 = this.zzd;
                    if (codecCapabilities2 != null && (audioCapabilities = codecCapabilities2.getAudioCapabilities()) != null && audioCapabilities.getMaxInputChannelCount() > 18) {
                        i10 = 16;
                    }
                    HashMap map2 = do2.f10469a;
                    MediaCodecInfo.CodecProfileLevel codecProfileLevel = new MediaCodecInfo.CodecProfileLevel();
                    codecProfileLevel.profile = 257;
                    codecProfileLevel.level = i10;
                    MediaCodecInfo.CodecProfileLevel codecProfileLevel2 = new MediaCodecInfo.CodecProfileLevel();
                    codecProfileLevel2.profile = 513;
                    codecProfileLevel2.level = i10;
                    MediaCodecInfo.CodecProfileLevel codecProfileLevel3 = new MediaCodecInfo.CodecProfileLevel();
                    codecProfileLevel3.profile = 514;
                    codecProfileLevel3.level = i10;
                    MediaCodecInfo.CodecProfileLevel codecProfileLevel4 = new MediaCodecInfo.CodecProfileLevel();
                    codecProfileLevel4.profile = AnalyticsListener.EVENT_DRM_KEYS_REMOVED;
                    codecProfileLevel4.level = i10;
                    MediaCodecInfo.CodecProfileLevel codecProfileLevel5 = new MediaCodecInfo.CodecProfileLevel();
                    codecProfileLevel5.profile = AnalyticsListener.EVENT_PLAYER_RELEASED;
                    codecProfileLevel5.level = i10;
                    codecProfileLevelArr = new MediaCodecInfo.CodecProfileLevel[]{codecProfileLevel, codecProfileLevel2, codecProfileLevel3, codecProfileLevel4, codecProfileLevel5};
                }
                for (MediaCodecInfo.CodecProfileLevel codecProfileLevel6 : codecProfileLevelArr) {
                    if (codecProfileLevel6.profile == iIntValue && (codecProfileLevel6.level >= iIntValue2 || !z10)) {
                        if (MimeTypes.VIDEO_H265.equals(str4) && iIntValue == 2) {
                            String str5 = Build.DEVICE;
                            if ("sailfish".equals(str5) || "marlin".equals(str5)) {
                            }
                        }
                    }
                }
                String str6 = zn2Var.zzk;
                g(com.bytedance.sdk.component.adexpress.dynamic.dynamicview.b.h(new StringBuilder(str2.length() + String.valueOf(str6).length() + 22), "codec.profileLevel, ", str6, ", ", str2));
                return false;
            }
            if (iIntValue == 42) {
                iIntValue = 42;
                codecCapabilities = this.zzd;
                if (codecCapabilities != null) {
                    codecProfileLevelArr = new MediaCodecInfo.CodecProfileLevel[0];
                    if (str4.equals(MimeTypes.AUDIO_AC4)) {
                        codecCapabilities2 = this.zzd;
                        if (codecCapabilities2 != null) {
                            i10 = 16;
                        }
                        HashMap map22 = do2.f10469a;
                        MediaCodecInfo.CodecProfileLevel codecProfileLevel7 = new MediaCodecInfo.CodecProfileLevel();
                        codecProfileLevel7.profile = 257;
                        codecProfileLevel7.level = i10;
                        MediaCodecInfo.CodecProfileLevel codecProfileLevel22 = new MediaCodecInfo.CodecProfileLevel();
                        codecProfileLevel22.profile = 513;
                        codecProfileLevel22.level = i10;
                        MediaCodecInfo.CodecProfileLevel codecProfileLevel32 = new MediaCodecInfo.CodecProfileLevel();
                        codecProfileLevel32.profile = 514;
                        codecProfileLevel32.level = i10;
                        MediaCodecInfo.CodecProfileLevel codecProfileLevel42 = new MediaCodecInfo.CodecProfileLevel();
                        codecProfileLevel42.profile = AnalyticsListener.EVENT_DRM_KEYS_REMOVED;
                        codecProfileLevel42.level = i10;
                        MediaCodecInfo.CodecProfileLevel codecProfileLevel52 = new MediaCodecInfo.CodecProfileLevel();
                        codecProfileLevel52.profile = AnalyticsListener.EVENT_PLAYER_RELEASED;
                        codecProfileLevel52.level = i10;
                        codecProfileLevelArr = new MediaCodecInfo.CodecProfileLevel[]{codecProfileLevel7, codecProfileLevel22, codecProfileLevel32, codecProfileLevel42, codecProfileLevel52};
                    }
                    while (i < r9) {
                    }
                    String str62 = zn2Var.zzk;
                    g(com.bytedance.sdk.component.adexpress.dynamic.dynamicview.b.h(new StringBuilder(str2.length() + String.valueOf(str62).length() + 22), "codec.profileLevel, ", str62, ", ", str2));
                    return false;
                }
            }
        }
        return true;
    }

    public final boolean f(zn2 zn2Var) {
        return (Objects.equals(zn2Var.zzo, MimeTypes.AUDIO_FLAC) && zn2Var.f19350w == 22 && Build.VERSION.SDK_INT < 34 && this.f16954a.equals("c2.android.flac.decoder")) ? false : true;
    }

    public final void g(String str) {
        String str2 = bb1.f9474a;
        String str3 = this.f16955b;
        int length = String.valueOf(str3).length();
        int length2 = String.valueOf(str2).length();
        int length3 = str.length() + 14;
        String str4 = this.f16954a;
        StringBuilder sb = new StringBuilder(str4.length() + length3 + 2 + length + 3 + length2 + 1);
        u.a.h(sb, "NoSupport [", str, "] [", str4);
        u.a.h(sb, ", ", str3, "] [", str2);
        sb.append("]");
        vt0.a(sb.toString());
    }

    public final String toString() {
        return this.f16954a;
    }

    @Nullable
    public final Point zzi(int i10, int i11) {
        MediaCodecInfo.VideoCapabilities videoCapabilities;
        MediaCodecInfo.CodecCapabilities codecCapabilities = this.zzd;
        if (codecCapabilities == null || (videoCapabilities = codecCapabilities.getVideoCapabilities()) == null) {
            return null;
        }
        return i(videoCapabilities, i10, i11);
    }
}
