package com.bytedance.ies.nle.editor_jni;

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

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

    static {
        Covode.recordClassIndex(29893);
    }

    public void finalize() {
        delete();
    }

    public NLETrackAlgorithm() {
        this(NLEEditorJniJNI.new_NLETrackAlgorithm());
        MethodCollector.i(18429);
        MethodCollector.o(18429);
    }

    public final float LJIILJJIL() {
        MethodCollector.i(18428);
        float NLETrackAlgorithm_getVideoRatio = NLEEditorJniJNI.NLETrackAlgorithm_getVideoRatio(this.LIZ, this);
        MethodCollector.o(18428);
        return NLETrackAlgorithm_getVideoRatio;
    }

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

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

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

    public NLETrackAlgorithm(long j) {
        super(NLEEditorJniJNI.NLETrackAlgorithm_SWIGSmartPtrUpcast(j));
        MethodCollector.i(18422);
        this.LIZIZ = true;
        this.LIZ = j;
        MethodCollector.o(18422);
    }

    public static NLETrackAlgorithm LIZIZ(NLENode nLENode) {
        NLETrackAlgorithm nLETrackAlgorithm;
        MethodCollector.i(18425);
        long NLETrackAlgorithm_dynamicCast = NLEEditorJniJNI.NLETrackAlgorithm_dynamicCast(NLENode.getCPtr(nLENode), nLENode);
        if (NLETrackAlgorithm_dynamicCast == 0) {
            nLETrackAlgorithm = null;
        } else {
            nLETrackAlgorithm = new NLETrackAlgorithm(NLETrackAlgorithm_dynamicCast);
        }
        MethodCollector.o(18425);
        return nLETrackAlgorithm;
    }
}
