/// /// HybridDepthSpec.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.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the Depth HybridObject. * Implement this abstract class to create Kotlin-based instances of Depth. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridDepthSpec: HybridObject() { // Properties @get:DoNotStrip @get:Keep abstract val orientation: CameraOrientation @get:DoNotStrip @get:Keep abstract val isMirrored: Boolean @get:DoNotStrip @get:Keep abstract val timestamp: Double @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: DepthPixelFormat @get:DoNotStrip @get:Keep abstract val isValid: Boolean @get:DoNotStrip @get:Keep abstract val isDepthDataFiltered: Boolean @get:DoNotStrip @get:Keep abstract val depthDataAccuracy: DepthDataAccuracy @get:DoNotStrip @get:Keep abstract val depthDataQuality: DepthDataQuality @get:DoNotStrip @get:Keep abstract val availableDepthPixelFormats: Array @get:DoNotStrip @get:Keep abstract val cameraCalibrationData: HybridCameraCalibrationDataSpec? // Methods @DoNotStrip @Keep abstract fun getDepthData(): ArrayBuffer @DoNotStrip @Keep abstract fun getNativeBuffer(): NativeBuffer @DoNotStrip @Keep abstract fun rotate(orientation: CameraOrientation, isMirrored: Boolean): HybridDepthSpec @DoNotStrip @Keep abstract fun rotateAsync(orientation: CameraOrientation, isMirrored: Boolean): Promise @DoNotStrip @Keep abstract fun convert(pixelFormat: DepthPixelFormat): HybridDepthSpec @DoNotStrip @Keep abstract fun convertAsync(pixelFormat: DepthPixelFormat): Promise @DoNotStrip @Keep abstract fun convertCameraPointToDepthPoint(cameraPoint: Point): Point @DoNotStrip @Keep abstract fun convertDepthPointToCameraPoint(depthPoint: Point): Point @DoNotStrip @Keep abstract fun toFrame(): HybridFrameSpec @DoNotStrip @Keep abstract fun toFrameAsync(): Promise // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject Depth]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridDepthSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridDepthSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridDepthSpec" } }