package com.bytedance.ies.nle.editor_jni;

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

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

    static {
        Covode.recordClassIndex(29892);
    }

    public void finalize() {
        delete();
    }

    public final boolean LIZ() {
        MethodCollector.i(13653);
        boolean NLETrack_hasMainTrack = NLEEditorJniJNI.NLETrack_hasMainTrack(this.LIZ, this);
        MethodCollector.o(13653);
        return NLETrack_hasMainTrack;
    }

    public final void LIZ(boolean z) {
        MethodCollector.i(13655);
        NLEEditorJniJNI.NLETrack_setMainTrack(this.LIZ, this, z);
        MethodCollector.o(13655);
    }

    public NLETrack() {
        this(NLEEditorJniJNI.new_NLETrack());
        MethodCollector.i(12291);
        MethodCollector.o(12291);
    }

    public final void LIZJ() {
        MethodCollector.i(13661);
        NLEEditorJniJNI.NLETrack_clearFilter(this.LIZ, this);
        MethodCollector.o(13661);
    }

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

    public final long LJIIIIZZ() {
        MethodCollector.i(16872);
        long NLETrack_getMaxEnd = NLEEditorJniJNI.NLETrack_getMaxEnd(this.LIZ, this);
        MethodCollector.o(16872);
        return NLETrack_getMaxEnd;
    }

    public final void LJIILIIL() {
        MethodCollector.i(12290);
        NLEEditorJniJNI.NLETrack_timeSort(this.LIZ, this);
        MethodCollector.o(12290);
    }

    public long getMeasuredEndTime() {
        MethodCollector.i(16995);
        long NLETrack_getMeasuredEndTime = NLEEditorJniJNI.NLETrack_getMeasuredEndTime(this.LIZ, this);
        MethodCollector.o(16995);
        return NLETrack_getMeasuredEndTime;
    }

    public final boolean LIZIZ() {
        MethodCollector.i(13656);
        boolean NLETrack_getMainTrack = NLEEditorJniJNI.NLETrack_getMainTrack(this.LIZ, this);
        MethodCollector.o(13656);
        return NLETrack_getMainTrack;
    }

    public final VecNLEFilterSPtr LIZLLL() {
        MethodCollector.i(13665);
        VecNLEFilterSPtr vecNLEFilterSPtr = new VecNLEFilterSPtr(NLEEditorJniJNI.NLETrack_getFilters(this.LIZ, this));
        MethodCollector.o(13665);
        return vecNLEFilterSPtr;
    }

    public final VecNLETrackSlotSPtr LJ() {
        MethodCollector.i(13667);
        VecNLETrackSlotSPtr vecNLETrackSlotSPtr = new VecNLETrackSlotSPtr(NLEEditorJniJNI.NLETrack_getVideoEffects(this.LIZ, this));
        MethodCollector.o(13667);
        return vecNLETrackSlotSPtr;
    }

    public final VecNLETrackSlotSPtr LJI() {
        MethodCollector.i(14790);
        VecNLETrackSlotSPtr vecNLETrackSlotSPtr = new VecNLETrackSlotSPtr(NLEEditorJniJNI.NLETrack_getSlots(this.LIZ, this));
        MethodCollector.o(14790);
        return vecNLETrackSlotSPtr;
    }

    public final VecNLETrackSlotSPtr LJII() {
        MethodCollector.i(14791);
        VecNLETrackSlotSPtr vecNLETrackSlotSPtr = new VecNLETrackSlotSPtr(NLEEditorJniJNI.NLETrack_getKeyframeSlots(this.LIZ, this));
        MethodCollector.o(14791);
        return vecNLETrackSlotSPtr;
    }

    public final AnonymousClass51Z LJIIIZ() {
        MethodCollector.i(17104);
        AnonymousClass51Z swigToEnum = AnonymousClass51Z.swigToEnum(NLEEditorJniJNI.NLETrack_getResourceType(this.LIZ, this));
        MethodCollector.o(17104);
        return swigToEnum;
    }

    public final AnonymousClass51X LJIIJ() {
        MethodCollector.i(17193);
        AnonymousClass51X swigToEnum = AnonymousClass51X.swigToEnum(NLEEditorJniJNI.NLETrack_getTrackType(this.LIZ, this));
        MethodCollector.o(17193);
        return swigToEnum;
    }

    public final AnonymousClass51X LJIIJJI() {
        MethodCollector.i(17194);
        AnonymousClass51X swigToEnum = AnonymousClass51X.swigToEnum(NLEEditorJniJNI.NLETrack_getExtraTrackType(this.LIZ, this));
        MethodCollector.o(17194);
        return swigToEnum;
    }

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

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

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

    public static long LIZ(NLETrack nLETrack) {
        if (nLETrack == null) {
            return 0;
        }
        return nLETrack.LIZ;
    }

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

    public NLETrack(long j) {
        super(NLEEditorJniJNI.NLETrack_SWIGSmartPtrUpcast(j), true);
        MethodCollector.i(13645);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(13645);
    }

    public static NLETrack LIZ(NLENode nLENode) {
        NLETrack nLETrack;
        MethodCollector.i(13649);
        long NLETrack_dynamicCast = NLEEditorJniJNI.NLETrack_dynamicCast(NLENode.getCPtr(nLENode), nLENode);
        if (NLETrack_dynamicCast == 0) {
            nLETrack = null;
        } else {
            nLETrack = new NLETrack(NLETrack_dynamicCast);
        }
        MethodCollector.o(13649);
        return nLETrack;
    }

    public final int LIZJ(NLETrackSlot nLETrackSlot) {
        MethodCollector.i(17599);
        NLETrackSlot nLETrackSlot2 = nLETrackSlot;
        int NLETrack_getSlotIndex = NLEEditorJniJNI.NLETrack_getSlotIndex(this.LIZ, this, NLETrackSlot.LIZ(nLETrackSlot2), nLETrackSlot2);
        MethodCollector.o(17599);
        return NLETrack_getSlotIndex;
    }

    public final NLETrackSlot LIZ(int i) {
        NLETrackSlot nLETrackSlot;
        MethodCollector.i(17504);
        long NLETrack_getSlotByIndex = NLEEditorJniJNI.NLETrack_getSlotByIndex(this.LIZ, this, i);
        if (NLETrack_getSlotByIndex == 0) {
            nLETrackSlot = null;
        } else {
            nLETrackSlot = new NLETrackSlot(NLETrack_getSlotByIndex);
        }
        MethodCollector.o(17504);
        return nLETrackSlot;
    }

    public final boolean LIZIZ(NLEFilter nLEFilter) {
        MethodCollector.i(13659);
        NLEFilter nLEFilter2 = nLEFilter;
        boolean NLETrack_removeFilter = NLEEditorJniJNI.NLETrack_removeFilter(this.LIZ, this, NLEFilter.LIZ(nLEFilter2), nLEFilter2);
        MethodCollector.o(13659);
        return NLETrack_removeFilter;
    }

    public final boolean LIZIZ(NLETrackSlot nLETrackSlot) {
        MethodCollector.i(13670);
        NLETrackSlot nLETrackSlot2 = nLETrackSlot;
        boolean NLETrack_removeSlot = NLEEditorJniJNI.NLETrack_removeSlot(this.LIZ, this, NLETrackSlot.LIZ(nLETrackSlot2), nLETrackSlot2);
        MethodCollector.o(13670);
        return NLETrack_removeSlot;
    }

    public final void LIZ(AnonymousClass51X r5) {
        MethodCollector.i(17297);
        NLEEditorJniJNI.NLETrack_setExtraTrackType(this.LIZ, this, r5.swigValue());
        MethodCollector.o(17297);
    }

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

    public final void LIZ(NLETrackSlot nLETrackSlot) {
        MethodCollector.i(13668);
        NLETrackSlot nLETrackSlot2 = nLETrackSlot;
        NLEEditorJniJNI.NLETrack_addSlot(this.LIZ, this, NLETrackSlot.LIZ(nLETrackSlot2), nLETrackSlot2);
        MethodCollector.o(13668);
    }

    public final float LIZ(float f, float f2) {
        MethodCollector.i(14792);
        float NLETrack_getEffectScale = NLEEditorJniJNI.NLETrack_getEffectScale(this.LIZ, this, f, f2);
        MethodCollector.o(14792);
        return NLETrack_getEffectScale;
    }

    public final float LIZIZ(float f, float f2) {
        MethodCollector.i(16740);
        float NLETrack_getVideoScaleAfterFixCenter = NLEEditorJniJNI.NLETrack_getVideoScaleAfterFixCenter(this.LIZ, this, f, f2);
        MethodCollector.o(16740);
        return NLETrack_getVideoScaleAfterFixCenter;
    }

    public final PairSlotSlot LIZ(long j, NLETrackSlot nLETrackSlot) {
        MethodCollector.i(16741);
        NLETrackSlot nLETrackSlot2 = nLETrackSlot;
        PairSlotSlot pairSlotSlot = new PairSlotSlot(NLEEditorJniJNI.NLETrack_splitInSpecificSlot(this.LIZ, this, j, NLETrackSlot.LIZ(nLETrackSlot2), nLETrackSlot2));
        MethodCollector.o(16741);
        return pairSlotSlot;
    }

    public final void LIZ(NLETrackSlot nLETrackSlot, int i) {
        MethodCollector.i(17298);
        NLETrackSlot nLETrackSlot2 = nLETrackSlot;
        NLEEditorJniJNI.NLETrack_addSlotAtIndex__SWIG_0(this.LIZ, this, NLETrackSlot.LIZ(nLETrackSlot2), nLETrackSlot2, i);
        MethodCollector.o(17298);
    }

    public final void LIZ(NLETrackSlot nLETrackSlot, NLETrackSlot nLETrackSlot2) {
        MethodCollector.i(17400);
        NLETrackSlot nLETrackSlot3 = nLETrackSlot;
        NLETrackSlot nLETrackSlot4 = nLETrackSlot2;
        NLEEditorJniJNI.NLETrack_addSlotAfterSlot(this.LIZ, this, NLETrackSlot.LIZ(nLETrackSlot3), nLETrackSlot3, NLETrackSlot.LIZ(nLETrackSlot4), nLETrackSlot4);
        MethodCollector.o(17400);
    }
}
