|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjarp.GLGrabCoordinator
public class GLGrabCoordinator
Controller and synchronization manager for frame grabbing from a
JA View
.
Constructor Summary | |
---|---|
GLGrabCoordinator(View vw)
Constructs a new Grab Controller for the given parent view, with no outstanding request. |
Method Summary | |
---|---|
byte[] |
getRequestBuffer()
Returns the target buffer for the currently pending frame-grab request if there is one, or null if there is none. |
int[] |
getWidthHeight()
Returns the width and height values for the current video. |
void |
makeRequest(int f,
byte[] pixels)
Requests that the next frame displayed by this controller's owning View , which has the given frame index,
should be copied into the given 3-byte BGR buffer. |
void |
notifyFrame()
Registers the the availability of the newly grabbed frame data to satisfy the most recent request |
void |
reset()
Stops/resets this controller to its idle, non-grabbing, state. |
void |
start(boolean dolog,
int w,
int h)
Starts a new video grab session, using the given logging flag setting. |
void |
waitForFrame()
Waits for the currently requested frame to become available after clearing the request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLGrabCoordinator(View vw)
Method Detail |
---|
public int[] getWidthHeight()
public void start(boolean dolog, int w, int h)
public void reset()
public void makeRequest(int f, byte[] pixels)
View
, which has the given frame index,
should be copied into the given 3-byte BGR buffer.
public byte[] getRequestBuffer()
null
if there is none.
public void notifyFrame()
public void waitForFrame() throws java.lang.InterruptedException
notifyFrame()
call announces the availability of the required .frame.
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |