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

import android.media.MediaCrypto;
import android.media.MediaFormat;
import android.view.Surface;
import androidx.annotation.Nullable;

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

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

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

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

    @Nullable
    public final Surface zzd;

    @Nullable
    public final MediaCrypto zze = null;

    @Nullable
    public final nn2 zzf;

    private on2(tn2 tn2Var, MediaFormat mediaFormat, zn2 zn2Var, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto, @Nullable nn2 nn2Var) {
        this.f15117a = tn2Var;
        this.f15118b = mediaFormat;
        this.f15119c = zn2Var;
        this.zzd = surface;
        this.zzf = nn2Var;
    }

    public static on2 zza(tn2 tn2Var, MediaFormat mediaFormat, zn2 zn2Var, @Nullable MediaCrypto mediaCrypto, @Nullable nn2 nn2Var) {
        return new on2(tn2Var, mediaFormat, zn2Var, null, null, nn2Var);
    }

    public static on2 zzb(tn2 tn2Var, MediaFormat mediaFormat, zn2 zn2Var, @Nullable Surface surface, @Nullable MediaCrypto mediaCrypto) {
        return new on2(tn2Var, mediaFormat, zn2Var, surface, null, null);
    }
}
