package s1;

import android.media.MediaCodec;
import androidx.annotation.Nullable;
import androidx.media3.common.util.Assertions;

/* JADX INFO: loaded from: classes.dex */
public final class d {

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final MediaCodec.CryptoInfo f32643e;

    @Nullable
    public byte[] iv;

    @Nullable
    public byte[] key;

    @Nullable
    public int[] numBytesOfClearData;

    @Nullable
    public int[] numBytesOfEncryptedData;

    @Nullable
    private final c patternHolder;

    public d() {
        MediaCodec.CryptoInfo cryptoInfo = new MediaCodec.CryptoInfo();
        this.f32643e = cryptoInfo;
        this.patternHolder = new c(cryptoInfo);
    }

    public final void a(int i10, int[] iArr, int[] iArr2, byte[] bArr, byte[] bArr2, int i11, int i12, int i13) {
        this.f32640b = i10;
        this.numBytesOfClearData = iArr;
        this.numBytesOfEncryptedData = iArr2;
        this.key = bArr;
        this.iv = bArr2;
        this.f32639a = i11;
        this.f32641c = i12;
        this.f32642d = i13;
        MediaCodec.CryptoInfo cryptoInfo = this.f32643e;
        cryptoInfo.numSubSamples = i10;
        cryptoInfo.numBytesOfClearData = iArr;
        cryptoInfo.numBytesOfEncryptedData = iArr2;
        cryptoInfo.key = bArr;
        cryptoInfo.iv = bArr2;
        cryptoInfo.mode = i11;
        c cVar = (c) Assertions.checkNotNull(this.patternHolder);
        MediaCodec.CryptoInfo.Pattern pattern = cVar.f32638b;
        pattern.set(i12, i13);
        cVar.f32637a.setPattern(pattern);
    }
}
