/// /// FrameOutputOptions.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.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "FrameOutputOptions". */ @DoNotStrip @Keep data class FrameOutputOptions( @DoNotStrip @Keep val targetResolution: Size, @DoNotStrip @Keep val enablePreviewSizedOutputBuffers: Boolean, @DoNotStrip @Keep val allowDeferredStart: Boolean, @DoNotStrip @Keep val pixelFormat: TargetVideoPixelFormat, @DoNotStrip @Keep val enablePhysicalBufferRotation: Boolean, @DoNotStrip @Keep val enableCameraMatrixDelivery: Boolean, @DoNotStrip @Keep val dropFramesWhileBusy: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is FrameOutputOptions) return false return Objects.deepEquals(this.targetResolution, other.targetResolution) && Objects.deepEquals(this.enablePreviewSizedOutputBuffers, other.enablePreviewSizedOutputBuffers) && Objects.deepEquals(this.allowDeferredStart, other.allowDeferredStart) && Objects.deepEquals(this.pixelFormat, other.pixelFormat) && Objects.deepEquals(this.enablePhysicalBufferRotation, other.enablePhysicalBufferRotation) && Objects.deepEquals(this.enableCameraMatrixDelivery, other.enableCameraMatrixDelivery) && Objects.deepEquals(this.dropFramesWhileBusy, other.dropFramesWhileBusy) } override fun hashCode(): Int { return arrayOf( targetResolution, enablePreviewSizedOutputBuffers, allowDeferredStart, pixelFormat, enablePhysicalBufferRotation, enableCameraMatrixDelivery, dropFramesWhileBusy ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(targetResolution: Size, enablePreviewSizedOutputBuffers: Boolean, allowDeferredStart: Boolean, pixelFormat: TargetVideoPixelFormat, enablePhysicalBufferRotation: Boolean, enableCameraMatrixDelivery: Boolean, dropFramesWhileBusy: Boolean): FrameOutputOptions { return FrameOutputOptions(targetResolution, enablePreviewSizedOutputBuffers, allowDeferredStart, pixelFormat, enablePhysicalBufferRotation, enableCameraMatrixDelivery, dropFramesWhileBusy) } } }