FileDocCategorySizeDatePackage
NativeEncoder_ms.javaAPI DocJMF 2.1.1e2258Mon May 12 12:21:02 BST 2003com.ibm.media.codec.audio.gsm

NativeEncoder_ms

public final class NativeEncoder_ms extends JavaEncoder_ms
MS GSM encoder plugin wrapper, which uses native methods to do the encoding.
author
Shay Ben-David bendavid@haifa.vnet.ibm.com

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_ms()

     ////////////////////////////////////////////////////////////////////////////
    // Methods
        
        
        
          
                                      
  			             
				       
                                      
				       

      
    
Methods Summary
public voidclose()

        freeNative();
    
protected native booleancodecProcess(byte[] inpData, int readPtr, byte[] outData, int writePtr, int inpLength, int[] readBytes, int[] writeBytes, int[] frameNumber, int[] regions, int[] regionsTypes)

public voidcodecReset()

        resetNative();
    
protected native voidfreeNative()

protected native voidinitNative()

public voidopen()

        try {
	    JMFSecurityManager.loadLibrary("jmutil");
	    JMFSecurityManager.loadLibrary("jmgsm");
            initNative();
            return;

	} catch (Throwable t) {
        System.out.println(t);
	}


        throw new ResourceUnavailableException("Unable to load "+PLUGIN_NAME);
    
protected native voidresetNative()