/// /// HybridFrameSpec.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.camera import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.ArrayBuffer import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the Frame HybridObject. * Implement this abstract class to create Kotlin-based instances of Frame. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridFrameSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val timestamp: Double @get:DoNotStrip @get:Keep abstract val isValid: Boolean @get:DoNotStrip @get:Keep abstract val width: Double @get:DoNotStrip @get:Keep abstract val height: Double @get:DoNotStrip @get:Keep abstract val bytesPerRow: Double @get:DoNotStrip @get:Keep abstract val pixelFormat: PixelFormat @get:DoNotStrip @get:Keep abstract val orientation: CameraOrientation @get:DoNotStrip @get:Keep abstract val isMirrored: Boolean @get:DoNotStrip @get:Keep abstract val isPlanar: Boolean @get:DoNotStrip @get:Keep abstract val hasPixelBuffer: Boolean @get:DoNotStrip @get:Keep abstract val hasNativeBuffer: Boolean @get:DoNotStrip @get:Keep abstract val cameraIntrinsicMatrix: DoubleArray? // Methods @DoNotStrip @Keep abstract fun getPlanes(): Array @DoNotStrip @Keep abstract fun getPixelBuffer(): ArrayBuffer @DoNotStrip @Keep abstract fun getNativeBuffer(): NativeBuffer @DoNotStrip @Keep abstract fun convertCameraPointToFramePoint(cameraPoint: Point): Point @DoNotStrip @Keep abstract fun convertFramePointToCameraPoint(framePoint: Point): Point // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject Frame]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridFrameSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridFrameSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridFrameSpec" } }