NativeEncoderpublic final class NativeEncoder extends JavaEncoder RTP GSM encoder plugin wrapper, which uses native methods to do the encoding. |
Fields Summary |
---|
public static final String | a_copyright_notice
Licensed Materials - Property of IBM
"Restricted Materials of IBM"
5648-B81
(c) Copyright IBM Corporation 1997,1999 All Rights Reserved
US Government Users Restricted Rights - Use, duplication or
disclosure restricted by GSA ADP Schedule Contract with
IBM Corporation. | int | nativeData |
Constructors Summary |
---|
public NativeEncoder()
////////////////////////////////////////////////////////////////////////////
// Methods
|
Methods Summary |
---|
public void | close()
freeNative();
| protected native boolean | codecProcess(byte[] inpData, int readPtr, byte[] outData, int writePtr, int inpLength, int[] readBytes, int[] writeBytes, int[] frameNumber, int[] regions, int[] regionsTypes)
| public void | codecReset()
resetNative();
| protected native void | freeNative()
| protected native void | initNative()
| public void | open()
try {
JMFSecurityManager.loadLibrary("jmutil");
JMFSecurityManager.loadLibrary("jmgsm");
initNative();
return;
} catch (Throwable t) {
}
throw new ResourceUnavailableException("Unable to load "+PLUGIN_NAME);
| protected native void | resetNative()
|
|