Main Page
Namespaces
Classes
Files
File List
File Members
wrappers
java
src
main
java
org
openkinect
freenect
FrameMode.java
Go to the documentation of this file.
1
25
package
org.openkinect.freenect;
26
27
import
com.sun.jna.Structure;
28
import
java.util.List;
29
import
java.util.Arrays;
30
31
public
class
FrameMode
extends
Structure {
32
/* All fields are public because Structure requires it.
33
However, fields should NOT be altered by external code. */
34
public
int
reserved
;
35
public
int
resolution
;
36
public
int
format
;
37
public
int
bytes
;
38
public
short
width
, height;
39
public
byte
dataBitsPerPixel
, paddingBitsPerPixel;
40
public
byte
framerate
, valid;
41
42
public
FrameMode
() {
43
valid = 0;
44
}
45
46
protected
List
getFieldOrder
() {
47
return
Arrays.asList(
new
String[] {
"reserved"
,
"resolution"
,
"format"
,
48
"bytes"
,
"width"
,
"height"
,
"dataBitsPerPixel"
,
49
"paddingBitsPerPixel"
,
"framerate"
,
"valid"
});
50
}
51
52
public
Resolution
getResolution
() {
53
return
Resolution
.
fromInt
(resolution);
54
}
55
56
public
DepthFormat
getDepthFormat
() {
57
return
DepthFormat
.
fromInt
(format);
58
}
59
60
public
VideoFormat
getVideoFormat
() {
61
return
VideoFormat
.
fromInt
(format);
62
}
63
64
public
int
getFrameSize
() {
65
return
bytes
;
66
}
67
68
public
short
getWidth
() {
69
return
width
;
70
}
71
72
public
short
getHeight
() {
73
return
height;
74
}
75
76
public
int
getFrameRate
() {
77
return
framerate
;
78
}
79
80
public
boolean
isValid
() {
81
return
(valid != 0);
82
}
83
84
public
static
class
ByValue
extends
FrameMode
implements Structure.
ByValue
{ }
85
}
org.openkinect.freenect.FrameMode
Definition:
FrameMode.java:31
org.openkinect.freenect.FrameMode.ByValue
Definition:
FrameMode.java:84
org.openkinect.freenect.FrameMode.bytes
int bytes
Definition:
FrameMode.java:37
org.openkinect.freenect.FrameMode.reserved
int reserved
Definition:
FrameMode.java:34
org.openkinect.freenect.FrameMode.getHeight
short getHeight()
Definition:
FrameMode.java:72
org.openkinect.freenect.FrameMode.getWidth
short getWidth()
Definition:
FrameMode.java:68
org.openkinect.freenect.Resolution.fromInt
static Resolution fromInt(int value)
Definition:
Resolution.java:51
org.openkinect.freenect.FrameMode.getFrameRate
int getFrameRate()
Definition:
FrameMode.java:76
org.openkinect.freenect.Resolution
Definition:
Resolution.java:30
org.openkinect.freenect.FrameMode.resolution
int resolution
Definition:
FrameMode.java:35
org.openkinect.freenect.FrameMode.getFrameSize
int getFrameSize()
Definition:
FrameMode.java:64
org.openkinect.freenect.FrameMode.getFieldOrder
List getFieldOrder()
Definition:
FrameMode.java:46
org.openkinect.freenect.DepthFormat
Definition:
DepthFormat.java:30
org.openkinect.freenect.FrameMode.framerate
byte framerate
Definition:
FrameMode.java:40
org.openkinect.freenect.FrameMode.isValid
boolean isValid()
Definition:
FrameMode.java:80
org.openkinect.freenect.FrameMode.getDepthFormat
DepthFormat getDepthFormat()
Definition:
FrameMode.java:56
org.openkinect.freenect.DepthFormat.fromInt
static DepthFormat fromInt(int value)
Definition:
DepthFormat.java:54
org.openkinect.freenect.VideoFormat.fromInt
static VideoFormat fromInt(int value)
Definition:
VideoFormat.java:55
org.openkinect.freenect.FrameMode.getVideoFormat
VideoFormat getVideoFormat()
Definition:
FrameMode.java:60
org.openkinect.freenect.FrameMode.width
short width
Definition:
FrameMode.java:38
org.openkinect.freenect.FrameMode.format
int format
Definition:
FrameMode.java:36
org.openkinect.freenect.FrameMode.dataBitsPerPixel
byte dataBitsPerPixel
Definition:
FrameMode.java:39
org.openkinect.freenect.FrameMode.FrameMode
FrameMode()
Definition:
FrameMode.java:42
org.openkinect.freenect.FrameMode.getResolution
Resolution getResolution()
Definition:
FrameMode.java:52
org.openkinect.freenect.VideoFormat
Definition:
VideoFormat.java:30
libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Mon Jun 10 2019 13:46:42