NativeDecoderpublic class NativeDecoder extends JavaDecoder
Fields Summary |
---|
int | nativeData |
Constructors Summary |
---|
public NativeDecoder()
|
Methods Summary |
---|
public void | close()Clean up
freeNative();
| protected void | decode(byte[] inpData, int readPtr, byte[] outData, int writePtr, int inpLength)
decodeNative(inpData,readPtr,outData,writePtr,inpLength);
| private native boolean | decodeNative(byte[] inpBuffer, int readPtr, byte[] outBuffer, int writePtr, int inpLength)
| private native void | freeNative()
| private native void | initNative()
| public void | open()Initializes the codec.
try {
com.sun.media.JMFSecurityManager.loadLibrary("jmutil");
com.sun.media.JMFSecurityManager.loadLibrary("jmg723");
initNative();
return;
} catch (Throwable t) {
System.err.println("can not load "+PLUGIN_NAME);
System.err.println("reason : "+t);
throw new ResourceUnavailableException("can not load "+PLUGIN_NAME);
}
| public void | reset()
resetNative();
| private native void | resetNative()
|
|