package com.bytedance.sdk.openadsdk.lG.YFl;

import android.graphics.Bitmap;
import com.bytedance.sdk.component.utils.AlY;
import com.bytedance.sdk.component.utils.YoT;
import java.util.List;
import java.util.Map;
/* loaded from: classes2.dex */
public class Sg {
    private Bitmap AlY;
    private byte[] Sg;
    int YFl;
    private Bitmap tN;
    private Map<String, String> vc;
    private List<Object> wN;

    public Bitmap Sg() {
        return this.AlY;
    }

    public Bitmap YFl() {
        return this.tN;
    }

    public Sg(byte[] bArr, int i) {
        this.tN = null;
        this.AlY = null;
        this.wN = null;
        this.vc = null;
        this.Sg = bArr;
        this.YFl = i;
    }

    public Sg(Bitmap bitmap, Bitmap bitmap2, int i) {
        this.Sg = null;
        this.wN = null;
        this.vc = null;
        this.AlY = bitmap2;
        this.tN = bitmap;
        this.YFl = i;
    }

    public byte[] tN() {
        try {
            if (this.Sg == null) {
                this.Sg = AlY.YFl(this.tN);
            }
        } catch (OutOfMemoryError e) {
            YoT.YFl("GifRequestResult", e.getMessage());
        }
        return this.Sg;
    }

    public boolean AlY() {
        if (this.tN != null) {
            return true;
        }
        byte[] bArr = this.Sg;
        return bArr != null && bArr.length > 0;
    }
}
