Methods Summary |
---|
private static native boolean | cacheFieldIDs()
|
public boolean | connect(int devnum)
return connect(devnum, 1);
|
public boolean | connect(int devnum, int port)
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilConnect(devnum, port);
}
else
return false;
|
public boolean | disconnect()
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilDisconnect();
}
else
return false;
|
public void | finalize()
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
xilDisconnect();
}
|
public int | getHeight()
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilGetHeight();
}
else
return 0;
|
public int | getLineStride()
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilGetLineStride();
}
else
return 0;
|
public int | getWidth()
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilGetWidth();
}
else
return 0;
|
public static boolean | isAvailable()
try {
com.sun.media.JMFSecurityManager.loadLibrary("jmutil");
com.sun.media.JMFSecurityManager.loadLibrary("jmxil");
if (xilInitialize() && cacheFieldIDs())
available = true;
else
System.err.println("XILCapture initialize failed");
} catch (Exception e) {
System.err.println("XILCapture initialize failed: " + e);
} catch (UnsatisfiedLinkError ule) {
System.err.println("XILCapture initialize failed: " + ule);
}
return available;
|
public int | read(byte[] buf, int len)
int rlen = 0;
if (available) {
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
rlen = xilRead(buf, len);
}
if (rlen < 0) {
throw (new IOException("XILCapture read() failed"));
}
} else {
throw (new IOException("XILCapture shared library not available"));
}
return rlen;
|
public boolean | setCompress(java.lang.String compress)
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilSetCompress(compress);
}
else
return false;
|
public boolean | setPort(int port)
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilSetPort(port);
}
else
return false;
|
public boolean | setQuality(int quality)
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilSetQuality(quality);
}
else
return false;
|
public boolean | setScale(int scale)
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilSetScale(scale);
}
else
return false;
|
public boolean | setSkip(int skip)
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilSetSkip(skip);
}
else
return false;
|
public boolean | start()
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilStart();
}
else
return false;
|
public boolean | stop()
if (available)
synchronized (com.sun.media.renderer.video.XILRenderer.XILLock) {
return xilStop();
}
else
return false;
|
private native boolean | xilConnect(int devnum, int port)
|
private native boolean | xilDisconnect()
|
private native int | xilGetHeight()
|
private native int | xilGetLineStride()
|
private native int | xilGetWidth()
|
private static native boolean | xilInitialize()
|
private native boolean | xilLittleEndian()
|
private native int | xilRead(byte[] buf, int len)
|
private native boolean | xilSetCompress(java.lang.String compress)
|
private native boolean | xilSetPort(int port)
|
private native boolean | xilSetQuality(int quality)
|
private native boolean | xilSetScale(int scale)
|
private native boolean | xilSetSkip(int skip)
|
private native boolean | xilStart()
|
private native boolean | xilStop()
|