net.sourceforge.dvb.projectx.video
Class IDCTRefNative

java.lang.Object
  |
  +--net.sourceforge.dvb.projectx.video.IDCTRefNative

public class IDCTRefNative
extends java.lang.Object

JNI java class to access idctref.dll.


Constructor Summary
IDCTRefNative()
           
 
Method Summary
 void init()
          Initializes the IDCT algorithm
static boolean isLibraryLoaded()
          Returns true if the library is loaded.
static void main(java.lang.String[] args)
          Main method for testing.
static void printArray(short[][] block)
          Helper method to print the array.
static void printArray2(short[] block)
          Helper method to print the array.
 void referenceIDCT(short[] block)
          Performs the IDCT on an short[64] array.
 short[][] referenceIDCT(short[][] block)
          Performs the IDCT on an short[8][8] array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDCTRefNative

public IDCTRefNative()
Method Detail

isLibraryLoaded

public static boolean isLibraryLoaded()
Returns true if the library is loaded.
Returns:
 

init

public void init()
Initializes the IDCT algorithm

referenceIDCT

public short[][] referenceIDCT(short[][] block)
Performs the IDCT on an short[8][8] array.
Parameters:
block -  
Returns:
 

referenceIDCT

public void referenceIDCT(short[] block)
Performs the IDCT on an short[64] array.
Parameters:
block -  
Returns:
 

main

public static void main(java.lang.String[] args)
Main method for testing.
Parameters:
args -  

printArray

public static void printArray(short[][] block)
Helper method to print the array.
Parameters:
block -  

printArray2

public static void printArray2(short[] block)
Helper method to print the array.
Parameters:
block -