2023-07-22 00:15:11 +02:00
|
|
|
package com.mrousavy.camera.frameprocessor;
|
|
|
|
|
|
|
|
import androidx.annotation.Keep;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
|
|
|
|
import com.facebook.jni.HybridData;
|
|
|
|
import com.facebook.proguard.annotations.DoNotStrip;
|
|
|
|
|
|
|
|
/**
|
2023-09-01 12:20:17 +02:00
|
|
|
* Represents a JS Frame Processor
|
2023-07-22 00:15:11 +02:00
|
|
|
*/
|
2023-09-01 12:20:17 +02:00
|
|
|
@SuppressWarnings("JavaJniMissingFunction") // we're using fbjni.
|
|
|
|
public final class FrameProcessor {
|
|
|
|
/**
|
|
|
|
* Call the JS Frame Processor function with the given Frame
|
|
|
|
*/
|
|
|
|
public native void call(Frame frame);
|
|
|
|
|
2023-07-22 00:15:11 +02:00
|
|
|
@DoNotStrip
|
|
|
|
@Keep
|
|
|
|
private final HybridData mHybridData;
|
|
|
|
|
|
|
|
public FrameProcessor(HybridData hybridData) {
|
|
|
|
mHybridData = hybridData;
|
|
|
|
}
|
|
|
|
}
|