public final class VideoFrame
extends java.lang.Object
VideoFrame - video frame.| Modifier and Type | Field and Description |
|---|---|
int |
height
frame height.
|
int[] |
rgb
RGB data (array size is width * height) in the ARGB-int format (A-highest byte, B - lowest byte).
|
java.lang.Object |
tag
tag associated with the video frame.
|
long |
timestamp
frame timestamp.
|
int |
width
frame width.
|
| Constructor and Description |
|---|
VideoFrame(int width,
int height)
Constructor.
|
VideoFrame(int width,
int height,
int[] rgb)
Constructor.
|
VideoFrame(int width,
int height,
int[] rgb,
java.lang.Object tag)
Constructor.
|
VideoFrame(long timestamp,
int width,
int height,
int[] rgb)
Constructor.
|
VideoFrame(long timestamp,
int width,
int height,
int[] rgb,
java.lang.Object tag)
Constructor.
|
VideoFrame(long timestamp,
VideoFrame frame)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
public final long timestamp
public final int width
public final int height
public final int[] rgb
public java.lang.Object tag
public VideoFrame(long timestamp,
VideoFrame frame)
timestamp - frame timestampframe - framepublic VideoFrame(long timestamp,
int width,
int height,
int[] rgb)
timestamp - frame timestampwidth - frame widthheight - frame heightrgb - frame rgb data (array size is width * height)public VideoFrame(long timestamp,
int width,
int height,
int[] rgb,
java.lang.Object tag)
timestamp - frame timestampwidth - frame widthheight - frame heightrgb - frame rgb data (array size is width * height)tag - frame tagpublic VideoFrame(int width,
int height)
width - frame widthheight - frame heightpublic VideoFrame(int width,
int height,
int[] rgb)
width - frame widthheight - frame heightrgb - frame rgb data (array size is width * height)public VideoFrame(int width,
int height,
int[] rgb,
java.lang.Object tag)
width - frame widthheight - frame heightrgb - frame rgb data (array size is width * height)tag - frame tag