public class Frame
extends java.lang.Object
FrameProcessors.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Frame |
freeze()
Clones the frame, returning a frozen content that will not be overwritten.
|
byte[] |
getData()
Returns the frame data.
|
int |
getFormat()
Returns the data format, in one of the
ImageFormat constants. |
int |
getRotation()
Returns the clock-wise rotation that should be applied on the data
array, such that the resulting frame matches what the user is seeing
on screen.
|
Size |
getSize()
Returns the frame size.
|
long |
getTime()
Returns the milliseconds epoch for this frame,
in the
System.currentTimeMillis() reference. |
void |
release()
Disposes the contents of this frame.
|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Frame freeze()
release() can result in memory leaks.public void release()
public byte[] getData()
public long getTime()
System.currentTimeMillis() reference.public int getRotation()
public Size getSize()
public int getFormat()
ImageFormat constants.
This will always be ImageFormat.NV21 for now.ImageFormat