package wh;

import android.graphics.Bitmap;
import hh.a;

/* loaded from: classes4.dex */
public final class b implements a.InterfaceC0463a {

    /* renamed from: a, reason: collision with root package name */
    private final mh.d f49433a;

    /* renamed from: b, reason: collision with root package name */
    private final mh.b f49434b;

    public b(mh.d dVar, mh.b bVar) {
        this.f49433a = dVar;
        this.f49434b = bVar;
    }

    @Override // hh.a.InterfaceC0463a
    public Bitmap a(int i10, int i11, Bitmap.Config config) {
        return this.f49433a.e(i10, i11, config);
    }

    @Override // hh.a.InterfaceC0463a
    public int[] b(int i10) {
        mh.b bVar = this.f49434b;
        return bVar == null ? new int[i10] : (int[]) bVar.e(i10, int[].class);
    }

    @Override // hh.a.InterfaceC0463a
    public void c(Bitmap bitmap) {
        this.f49433a.c(bitmap);
    }

    @Override // hh.a.InterfaceC0463a
    public void d(byte[] bArr) {
        mh.b bVar = this.f49434b;
        if (bVar == null) {
            return;
        }
        bVar.d(bArr);
    }

    @Override // hh.a.InterfaceC0463a
    public byte[] e(int i10) {
        mh.b bVar = this.f49434b;
        return bVar == null ? new byte[i10] : (byte[]) bVar.e(i10, byte[].class);
    }

    @Override // hh.a.InterfaceC0463a
    public void f(int[] iArr) {
        mh.b bVar = this.f49434b;
        if (bVar == null) {
            return;
        }
        bVar.d(iArr);
    }
}
