All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.divpundir.mavlink.definitions.common.VideoStreamEncoding.kt Maven / Gradle / Ivy

The newest version!
package com.divpundir.mavlink.definitions.common

import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavEnum
import kotlin.UInt

/**
 * Video stream encodings
 */
@GeneratedMavEnum
public enum class VideoStreamEncoding(
  override val `value`: UInt,
) : MavEnum {
  /**
   * Stream encoding is unknown
   */
  @GeneratedMavEnumEntry
  UNKNOWN(0u),
  /**
   * Stream encoding is H.264
   */
  @GeneratedMavEnumEntry
  H264(1u),
  /**
   * Stream encoding is H.265
   */
  @GeneratedMavEnumEntry
  H265(2u),
  ;

  public companion object : MavEnum.MavCompanion {
    override fun getEntryFromValueOrNull(v: UInt): VideoStreamEncoding? = when (v) {
      0u -> UNKNOWN
      1u -> H264
      2u -> H265
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy