DepthFormat.java
Go to the documentation of this file.
1 
25 package org.openkinect.freenect;
26 
27 import java.util.HashMap;
28 import java.util.Map;
29 
30 public enum DepthFormat {
31  D11BIT(0),
32  D10BIT(1),
36  MM(5);
37 
38  private final int value;
39  private static final Map<Integer, DepthFormat> MAP = new HashMap<Integer, DepthFormat>(6);
40  static {
41  for(DepthFormat v : DepthFormat.values()) {
42  MAP.put(v.intValue(), v);
43  }
44  }
45 
46  private DepthFormat(int value) {
47  this.value = value;
48  }
49 
50  public int intValue() {
51  return value;
52  }
53 
54  public static DepthFormat fromInt(int value) {
55  return MAP.get(value);
56  }
57 }
static DepthFormat fromInt(int value)


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:38