package com.bytedance.ies.nle.editor_jni;

import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;

public class NLETrackSlot extends NLETimeSpaceNode {
    public transient long LIZ;
    public transient boolean LIZIZ;

    static {
        Covode.recordClassIndex(29895);
    }

    public void finalize() {
        delete();
    }

    public NLETrackSlot() {
        this(NLEEditorJniJNI.new_NLETrackSlot());
        MethodCollector.i(14789);
        MethodCollector.o(14789);
    }

    public final void LIZLLL() {
        MethodCollector.i(13671);
        NLEEditorJniJNI.NLETrackSlot_clearVideoAnim(this.LIZ, this);
        MethodCollector.o(13671);
    }

    public final void LJFF() {
        MethodCollector.i(13676);
        NLEEditorJniJNI.NLETrackSlot_clearFilter(this.LIZ, this);
        MethodCollector.o(13676);
    }

    public final NLEResourceNode LIZIZ() {
        MethodCollector.i(13662);
        long NLETrackSlot_getPinAlgorithmFile = NLEEditorJniJNI.NLETrackSlot_getPinAlgorithmFile(this.LIZ, this);
        if (NLETrackSlot_getPinAlgorithmFile == 0) {
            MethodCollector.o(13662);
            return null;
        }
        NLEResourceNode nLEResourceNode = new NLEResourceNode(NLETrackSlot_getPinAlgorithmFile);
        MethodCollector.o(13662);
        return nLEResourceNode;
    }

    public final NLESegmentTransition LIZJ() {
        MethodCollector.i(13666);
        long NLETrackSlot_getEndTransition = NLEEditorJniJNI.NLETrackSlot_getEndTransition(this.LIZ, this);
        if (NLETrackSlot_getEndTransition == 0) {
            MethodCollector.o(13666);
            return null;
        }
        NLESegmentTransition nLESegmentTransition = new NLESegmentTransition(NLETrackSlot_getEndTransition);
        MethodCollector.o(13666);
        return nLESegmentTransition;
    }

    public final VecNLEVideoAnimationSPtr LJ() {
        MethodCollector.i(13673);
        VecNLEVideoAnimationSPtr vecNLEVideoAnimationSPtr = new VecNLEVideoAnimationSPtr(NLEEditorJniJNI.NLETrackSlot_getVideoAnims(this.LIZ, this));
        MethodCollector.o(13673);
        return vecNLEVideoAnimationSPtr;
    }

    public final VecNLEFilterSPtr LJI() {
        MethodCollector.i(13677);
        VecNLEFilterSPtr vecNLEFilterSPtr = new VecNLEFilterSPtr(NLEEditorJniJNI.NLETrackSlot_getFilters(this.LIZ, this));
        MethodCollector.o(13677);
        return vecNLEFilterSPtr;
    }

    public final VecNLEMaskSPtr LJII() {
        MethodCollector.i(13679);
        VecNLEMaskSPtr vecNLEMaskSPtr = new VecNLEMaskSPtr(NLEEditorJniJNI.NLETrackSlot_getMasks(this.LIZ, this));
        MethodCollector.o(13679);
        return vecNLEMaskSPtr;
    }

    public final VecNLEChromaChannelSPtr LJIIIIZZ() {
        MethodCollector.i(13681);
        VecNLEChromaChannelSPtr vecNLEChromaChannelSPtr = new VecNLEChromaChannelSPtr(NLEEditorJniJNI.NLETrackSlot_getChromaChannels(this.LIZ, this));
        MethodCollector.o(13681);
        return vecNLEChromaChannelSPtr;
    }

    public final VecNLEVideoEffectSPtr LJIIIZ() {
        MethodCollector.i(14785);
        VecNLEVideoEffectSPtr vecNLEVideoEffectSPtr = new VecNLEVideoEffectSPtr(NLEEditorJniJNI.NLETrackSlot_getVideoEffects(this.LIZ, this));
        MethodCollector.o(14785);
        return vecNLEVideoEffectSPtr;
    }

    public final VecString LJIIJ() {
        MethodCollector.i(14786);
        VecString vecString = new VecString(NLEEditorJniJNI.NLETrackSlot_getKeyframesUUIDList(this.LIZ, this), true);
        MethodCollector.o(14786);
        return vecString;
    }

    public final NLEFilter LJIIJJI() {
        MethodCollector.i(14787);
        long NLETrackSlot_getAudioFilter = NLEEditorJniJNI.NLETrackSlot_getAudioFilter(this.LIZ, this);
        if (NLETrackSlot_getAudioFilter == 0) {
            MethodCollector.o(14787);
            return null;
        }
        NLEFilter nLEFilter = new NLEFilter(NLETrackSlot_getAudioFilter);
        MethodCollector.o(14787);
        return nLEFilter;
    }

    public final VecNLETrackSlotSPtr LJIIL() {
        MethodCollector.i(14788);
        VecNLETrackSlotSPtr vecNLETrackSlotSPtr = new VecNLETrackSlotSPtr(NLEEditorJniJNI.NLETrackSlot_getKeyframes(this.LIZ, this));
        MethodCollector.o(14788);
        return vecNLETrackSlotSPtr;
    }

    public NLENode clone() {
        MethodCollector.i(18924);
        long NLETrackSlot_clone = NLEEditorJniJNI.NLETrackSlot_clone(this.LIZ, this);
        if (NLETrackSlot_clone == 0) {
            MethodCollector.o(18924);
            return null;
        }
        NLENode nLENode = new NLENode(NLETrackSlot_clone, true);
        MethodCollector.o(18924);
        return nLENode;
    }

    public final NLESegment LIZ() {
        MethodCollector.i(18928);
        long NLETrackSlot_getMainSegment = NLEEditorJniJNI.NLETrackSlot_getMainSegment(this.LIZ, this);
        if (NLETrackSlot_getMainSegment == 0) {
            MethodCollector.o(18928);
            return null;
        }
        NLESegment nLESegment = new NLESegment(NLETrackSlot_getMainSegment);
        MethodCollector.o(18928);
        return nLESegment;
    }

    public synchronized void delete() {
        MethodCollector.i(18920);
        long j = this.LIZ;
        if (j != 0) {
            if (this.LIZIZ) {
                this.LIZIZ = false;
                NLEEditorJniJNI.delete_NLETrackSlot(j);
            }
            this.LIZ = 0;
        }
        super.delete();
        MethodCollector.o(18920);
    }

    public static long LIZ(NLETrackSlot nLETrackSlot) {
        if (nLETrackSlot == null) {
            return 0;
        }
        return nLETrackSlot.LIZ;
    }

    public void swigSetCMemOwn(boolean z) {
        this.LIZIZ = z;
        super.swigSetCMemOwn(z);
    }

    public NLETrackSlot(long j) {
        super(NLEEditorJniJNI.NLETrackSlot_SWIGSmartPtrUpcast(j), true);
        MethodCollector.i(18914);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(18914);
    }

    public static NLETrackSlot LIZ(NLENode nLENode) {
        NLETrackSlot nLETrackSlot;
        MethodCollector.i(18921);
        long NLETrackSlot_dynamicCast = NLEEditorJniJNI.NLETrackSlot_dynamicCast(NLENode.getCPtr(nLENode), nLENode);
        if (NLETrackSlot_dynamicCast == 0) {
            nLETrackSlot = null;
        } else {
            nLETrackSlot = new NLETrackSlot(NLETrackSlot_dynamicCast);
        }
        MethodCollector.o(18921);
        return nLETrackSlot;
    }

    public final void LIZ(NLEFilter nLEFilter) {
        MethodCollector.i(13675);
        NLEFilter nLEFilter2 = nLEFilter;
        NLEEditorJniJNI.NLETrackSlot_addFilter(this.LIZ, this, NLEFilter.LIZ(nLEFilter2), nLEFilter2);
        MethodCollector.o(13675);
    }

    public final void LIZ(NLEResourceNode nLEResourceNode) {
        MethodCollector.i(18931);
        NLEResourceNode nLEResourceNode2 = nLEResourceNode;
        NLEEditorJniJNI.NLETrackSlot_setPinAlgorithmFile(this.LIZ, this, NLEResourceNode.LIZ(nLEResourceNode2), nLEResourceNode2);
        MethodCollector.o(18931);
    }

    public final void LIZ(NLESegment nLESegment) {
        MethodCollector.i(18927);
        NLESegment nLESegment2 = nLESegment;
        NLEEditorJniJNI.NLETrackSlot_setMainSegment(this.LIZ, this, NLESegment.LIZ(nLESegment2), nLESegment2);
        MethodCollector.o(18927);
    }

    public final void LIZ(NLESegmentTransition nLESegmentTransition) {
        long j;
        MethodCollector.i(13664);
        long j2 = this.LIZ;
        NLESegmentTransition nLESegmentTransition2 = nLESegmentTransition;
        if (nLESegmentTransition2 == null) {
            j = 0;
        } else {
            j = nLESegmentTransition2.LIZ;
        }
        NLEEditorJniJNI.NLETrackSlot_setEndTransition(j2, this, j, nLESegmentTransition2);
        MethodCollector.o(13664);
    }

    public final void LIZ(NLEVideoAnimation nLEVideoAnimation) {
        MethodCollector.i(13669);
        NLEVideoAnimation nLEVideoAnimation2 = nLEVideoAnimation;
        NLEEditorJniJNI.NLETrackSlot_addVideoAnim(this.LIZ, this, NLEVideoAnimation.LIZ(nLEVideoAnimation2), nLEVideoAnimation2);
        MethodCollector.o(13669);
    }
}
