/// /// HybridFrameTargetSpec.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.videopipeline 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 FrameTarget HybridObject. * Implement this abstract class to create Kotlin-based instances of FrameTarget. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridFrameTargetSpec: HybridObject() { // Properties abstract val unstable_bufferAddr: ULong private val unstable_bufferAddr_cxx: Long @Keep @DoNotStrip get() { return unstable_bufferAddr.toLong() } @get:DoNotStrip @get:Keep abstract val width: Double @get:DoNotStrip @get:Keep abstract val height: Double @get:DoNotStrip @get:Keep abstract val format: PixelFormat // Methods @DoNotStrip @Keep abstract fun writeBytes(bytes: ArrayBuffer): Unit abstract fun unstable_blitFromNativeTexture(mtlTexturePtr: ULong): Unit @DoNotStrip @Keep private fun unstable_blitFromNativeTexture_cxx(mtlTexturePtr: Long): Unit { val __result = unstable_blitFromNativeTexture(mtlTexturePtr.toULong()) return __result } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject FrameTarget]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridFrameTargetSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridFrameTargetSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridFrameTargetSpec" } }