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

NativeDecoder_ms

public final class NativeDecoder_ms extends JavaDecoder_ms
MS GSM decoder plugin wrapper, which uses native methods to do the decoding.
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 NativeDecoder_ms()


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

         
         
         
           
                                    


      
    
Methods Summary
public voidclose()

        freeNative();
    
protected voiddecode(byte[] inpData, int readPtr, byte[] outData, int writePtr, int inpLength)

        decodeNative(inpData,readPtr,outData,writePtr,inpLength);
    
protected native voiddecodeNative(byte[] inpData, int readPtr, byte[] outData, int writePtr, int inpLength)

protected native voidfreeNative()

protected native voidinitNative()

public voidopen()

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

	} catch (Throwable t) {
	}

        throw new ResourceUnavailableException("Unable to load "+PLUGIN_NAME);
    
public voidreset()

        resetNative();
    
protected native voidresetNative()