/// /// HybridVideoPipelineSpec.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.Promise import com.margelo.nitro.core.HybridObject /** * A Kotlin class representing the VideoPipeline HybridObject. * Implement this abstract class to create Kotlin-based instances of VideoPipeline. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridVideoPipelineSpec: HybridObject() { // Properties // Methods @DoNotStrip @Keep abstract fun info(uri: String): Promise @DoNotStrip @Keep abstract fun thumbnail(uri: String, options: ThumbnailOptions): Promise @DoNotStrip @Keep abstract fun thumbnails(uri: String, options: BatchThumbnailOptions): Promise> @DoNotStrip @Keep abstract fun capabilities(): Promise abstract fun render(spec: VideoSpec, renderToken: String, onProgress: ((p: Progress) -> Unit)?): Promise @DoNotStrip @Keep private fun render_cxx(spec: VideoSpec, renderToken: String, onProgress: Func_void_Progress?): Promise { val __result = render(spec, renderToken, onProgress?.let { it }) return __result } @DoNotStrip @Keep abstract fun cancelRender(renderToken: String): Unit @DoNotStrip @Keep abstract fun finishRender(renderToken: String): Unit abstract fun trim(uri: String, outPath: String, startSec: Double, durationSec: Double, renderToken: String, onProgress: ((p: Progress) -> Unit)?): Promise @DoNotStrip @Keep private fun trim_cxx(uri: String, outPath: String, startSec: Double, durationSec: Double, renderToken: String, onProgress: Func_void_Progress?): Promise { val __result = trim(uri, outPath, startSec, durationSec, renderToken, onProgress?.let { it }) return __result } abstract fun flip(uri: String, outPath: String, axis: FlipAxis, renderToken: String, onProgress: ((p: Progress) -> Unit)?): Promise @DoNotStrip @Keep private fun flip_cxx(uri: String, outPath: String, axis: FlipAxis, renderToken: String, onProgress: Func_void_Progress?): Promise { val __result = flip(uri, outPath, axis, renderToken, onProgress?.let { it }) return __result } abstract fun stamp(uri: String, outPath: String, watermark: Variant_ImageOverlay_TextOverlay?, metadata: MetadataSpec?, renderToken: String, onProgress: ((p: Progress) -> Unit)?): Promise @DoNotStrip @Keep private fun stamp_cxx(uri: String, outPath: String, watermark: Variant_ImageOverlay_TextOverlay?, metadata: MetadataSpec?, renderToken: String, onProgress: Func_void_Progress?): Promise { val __result = stamp(uri, outPath, watermark, metadata, renderToken, onProgress?.let { it }) return __result } abstract fun renderCompose(spec: VideoSpec, renderToken: String, drawFrame: (target: HybridFrameTargetSpec, source: HybridFrameSourceSpec?, frameIndex: Double, timeSec: Double) -> Promise, onProgress: ((p: Progress) -> Unit)?): Promise @DoNotStrip @Keep private fun renderCompose_cxx(spec: VideoSpec, renderToken: String, drawFrame: Func_std__shared_ptr_Promise_bool___std__shared_ptr_HybridFrameTargetSpec__std__optional_std__shared_ptr_HybridFrameSourceSpec___double_double, onProgress: Func_void_Progress?): Promise { val __result = renderCompose(spec, renderToken, drawFrame, onProgress?.let { it }) return __result } // Default implementation of `HybridObject.toString()` override fun toString(): String { return "[HybridObject VideoPipeline]" } // C++ backing class @DoNotStrip @Keep protected open class CxxPart(javaPart: HybridVideoPipelineSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridVideoPipelineSpec::CxxPart::initHybrid(...) external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { return CxxPart(this) } companion object { protected const val TAG = "HybridVideoPipelineSpec" } }