package com.ss.android.ugc.aweme.canvas;

import X.2HN;
import X.2SE;
import X.C38896fH;
import X.M12;
import com.bytedance.covode.number.Covode;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;

public final class CanvasVideoData implements Serializable {
    public List<PhotoCanvasTransformFilterParam> _transformInfo;
    @C38896fH
    public final List<String> auditFrames;
    public final PhotoCanvasBackground background;
    public 2SE extra;
    @C38896fH(LIZ = true)
    public List<String> sourceInfo;

    static {
        Covode.recordClassIndex(55422);
    }

    public static /* synthetic */ CanvasVideoData copy$default(CanvasVideoData canvasVideoData, List<String> list, List<String> list2, PhotoCanvasBackground photoCanvasBackground, 2SE r5, int i, Object obj) {
        if ((i & 1) != 0) {
            list = canvasVideoData.sourceInfo;
        }
        if ((i & 2) != 0) {
            list2 = canvasVideoData.auditFrames;
        }
        if ((i & 4) != 0) {
            photoCanvasBackground = canvasVideoData.background;
        }
        if ((i & 8) != 0) {
            r5 = canvasVideoData.extra;
        }
        return canvasVideoData.copy(list, list2, photoCanvasBackground, r5);
    }

    private Object[] getObjects() {
        return new Object[]{this.sourceInfo, this.auditFrames, this.background, this.extra};
    }

    public final CanvasVideoData copy(List<String> list, List<String> list2, PhotoCanvasBackground photoCanvasBackground, 2SE r5) {
        return new CanvasVideoData(list, list2, photoCanvasBackground, r5);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof CanvasVideoData)) {
            return false;
        }
        return M12.LIZ(((CanvasVideoData) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("CanvasVideoData:%s,%s,%s,%s", getObjects());
    }

    public final List<String> getAuditFrames() {
        return this.auditFrames;
    }

    public final PhotoCanvasBackground getBackground() {
        return this.background;
    }

    public final 2SE getExtra() {
        return this.extra;
    }

    public final List<String> getSourceInfo() {
        return this.sourceInfo;
    }

    public final List<PhotoCanvasTransformFilterParam> getTransformInfo() {
        return this._transformInfo;
    }

    public final void setExtra(2SE r1) {
        this.extra = r1;
    }

    public final void setSourceInfo(List<String> list) {
        this.sourceInfo = list;
    }

    public final void putTransform(PhotoCanvasTransformFilterParam photoCanvasTransformFilterParam) {
        if (photoCanvasTransformFilterParam != null) {
            if (this._transformInfo == null) {
                this._transformInfo = new ArrayList();
            }
            List<PhotoCanvasTransformFilterParam> list = this._transformInfo;
            if (list != null) {
                list.add(photoCanvasTransformFilterParam);
            }
        }
    }

    public final PhotoCanvasTransformFilterParam getClipTransform(int i) {
        List<PhotoCanvasTransformFilterParam> transformInfo = getTransformInfo();
        T t = null;
        if (transformInfo == null) {
            return null;
        }
        Iterator<T> it = transformInfo.iterator();
        while (true) {
            if (!it.hasNext()) {
                break;
            }
            T next = it.next();
            if (((PhotoCanvasTransformFilterParam) next).getClipIndex() == i) {
                t = next;
                break;
            }
        }
        return (PhotoCanvasTransformFilterParam) t;
    }

    public CanvasVideoData(List<String> list, List<String> list2, PhotoCanvasBackground photoCanvasBackground, 2SE r4) {
        this.sourceInfo = list;
        this.auditFrames = list2;
        this.background = photoCanvasBackground;
        this.extra = r4;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ CanvasVideoData(List list, List list2, PhotoCanvasBackground photoCanvasBackground, 2SE r5, int i, 2HN r7) {
        this(list, list2, photoCanvasBackground, (i & 8) != 0 ? null : r5);
    }
}
