public class GLGrabCoordinator
extends java.lang.Object
View
.Constructor and Description |
---|
GLGrabCoordinator(View vw)
Constructs a new Grab Controller for the given parent view,
with no outstanding request.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public GLGrabCoordinator(View vw)
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