///
/// DepthPixelFormat.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

/**
 * Represents the JS union `DepthPixelFormat`, backed by a C++ enum.
 */
public typealias DepthPixelFormat = margelo.nitro.camera.DepthPixelFormat

public extension DepthPixelFormat {
  /**
   * Get a DepthPixelFormat for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  init?(fromString string: String) {
    switch string {
      case "unknown":
        self = .unknown
      case "depth-16-bit":
        self = .depth16Bit
      case "depth-32-bit":
        self = .depth32Bit
      case "depth-point-cloud-32-bit":
        self = .depthPointCloud32Bit
      case "disparity-16-bit":
        self = .disparity16Bit
      case "disparity-32-bit":
        self = .disparity32Bit
      default:
        return nil
    }
  }

  /**
   * Get the String value this DepthPixelFormat represents.
   */
  var stringValue: String {
    switch self {
      case .unknown:
        return "unknown"
      case .depth16Bit:
        return "depth-16-bit"
      case .depth32Bit:
        return "depth-32-bit"
      case .depthPointCloud32Bit:
        return "depth-point-cloud-32-bit"
      case .disparity16Bit:
        return "disparity-16-bit"
      case .disparity32Bit:
        return "disparity-32-bit"
    }
  }
}
