package com.bytedance.ies.nle.editor_jni;

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

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

    static {
        Covode.recordClassIndex(29900);
    }

    public void finalize() {
        delete();
    }

    public NLEVideoEffect() {
        this(NLEEditorJniJNI.new_NLEVideoEffect());
        MethodCollector.i(18044);
        MethodCollector.o(18044);
    }

    public final NLESegmentEffect LIZ() {
        MethodCollector.i(18043);
        long NLEVideoEffect_getSegment = NLEEditorJniJNI.NLEVideoEffect_getSegment(this.LIZ, this);
        if (NLEVideoEffect_getSegment == 0) {
            MethodCollector.o(18043);
            return null;
        }
        NLESegmentEffect nLESegmentEffect = new NLESegmentEffect(NLEVideoEffect_getSegment);
        MethodCollector.o(18043);
        return nLESegmentEffect;
    }

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

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

    public static long LIZ(NLEVideoEffect nLEVideoEffect) {
        if (nLEVideoEffect == null) {
            return 0;
        }
        return nLEVideoEffect.LIZ;
    }

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

    public NLEVideoEffect(long j) {
        super(NLEEditorJniJNI.NLEVideoEffect_SWIGSmartPtrUpcast(j), true);
        MethodCollector.i(18036);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(18036);
    }
}
