/// /// HybridFrameSourceSpec.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 FrameSource HybridObject. * Implement this abstract class to create Kotlin-based instances of FrameSource. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridFrameSourceSpec: 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 readBytes(): ArrayBuffer // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject FrameSource]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridFrameSourceSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridFrameSourceSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridFrameSourceSpec" } }