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