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