nxm.ice.lib
Class HPCoreNative
java.lang.Object
nxm.ice.lib.HPCore
nxm.ice.lib.HPCoreNative
- All Implemented Interfaces:
- nxm.sys.inc.Constants, nxm.sys.inc.DataTypes
- Direct Known Subclasses:
- BOT.CPU, BOT.ICE, BOT.VHS, Demod.CPU, Demod.ICE, Demod.VHS, FFT.CPU, FFT.ICE, FFT.VHS, FIR.CPU, FIR.ICE, FIR.VHS, Noop.CPU, Noop.ICE, Noop.VHS, R2C.CPU, R2C.ICE, R2C.VHS, Tuner.CPU, Tuner.ICE, Tuner.VHS
public class HPCoreNative
- extends HPCore
Structure for a Native HPC
Native code libraries should have the following methods:
alloc() - allocates the handle to an instance of this library
setkey() - sets a parameter
getkey() - gets a parameter
init() - initialize the library for the current set of parameters
work() - perform the desired function on a segment of data
free() - release all resources
- Author:
- Jeff Schoen
Fields inherited from interface nxm.sys.inc.Constants |
ANGULAR_VELOCITY_PRECESSING_COR, B1G, B1K, B1M, B1T, B64K, CYC2RAD, DEF_EARTH_ANGULAR_VELOCITY, DEG2METERS, DEG2RAD, E, EARTH_ANGULAR_VELOCITY, EARTH_ECCENTRICITY, EARTH_EQUATORIAL_RADIUS, EARTH_FLATTENING_FACTOR, EARTH_GRAV_CONSTANT_W_ATMOS, EARTH_GRAV_CONSTANT_W_ATMOS_ORIG, EARTH_GRAV_CONSTANT_WO_ATMOS, EARTH_GRAV_CONSTANT_WO_ATMOS_ORIG, FEET2METERS, HALFPI, IAU_EARTH_ANGULAR_VELOCITY, LN2DB, LN2LOG, LNTEN, MASS_OF_EARTH_W_ATMOS, METERS2DEG, METERS2FEET, METERS2NM, METERS2SM, NM2FEET, NM2METERS, PI, POLAR_RADIUS_IN_METERS, POLAR_RADIUS_OF_CURVATURE, RAD2CYC, RAD2DEG, SECOND_EARTH_ECCENTRICITY, SM2FEET, SM2METERS, SPEED_OF_LIGHT, TWOPI |
Fields inherited from interface nxm.sys.inc.DataTypes |
ALAW, ASCII, BMAX, BMIN, BOOL, BYTE, COMPLEX, CONVERT_TYPE_LIST, CRAY, DATA_MODE_LIST, DATA_TYPE_LIST, DMAX, DMIN, DOUBLE, EEEI, falseStates, FLOAT, FMAX, FMIN, IEEE, IMAX, IMIN, INT, LMAX, LMIN, LONG, MATRIX, modeList, MULT_DATA_MODE_LIST, NIBBLE, NMAX, NMIN, NONHOMOGENEOUS, NUMBER, NUMERIC_DATA_TYPE_LIST, numericTypeList, OBJECT, PACKED, QUAD, repList, RESULT_TYPE_LIST, SCALAR, STRING, TABLE, TRANSMATRIX, trueStates, typeList, ULAW, VAX, VECTOR, XLONG, XMAX, XMIN, XMODE, XMVALUE, XMVALUE_KVLIST, XMVALUE_LIST, XMVALUE_TABLE |
Constructor Summary |
HPCoreNative()
Create an instance of this function with native implementation |
Method Summary |
long |
alloc()
|
int |
close()
|
int |
free(long handle)
|
nxm.sys.lib.Data |
get(java.lang.String key,
byte type)
GetKey for generic parameter. |
int |
getkey(long handle,
java.lang.String key,
byte[] value,
int len)
|
int |
init(long handle)
|
int |
open()
Initialize this engine with current parameters |
int |
process(byte[] buf1,
int n1)
|
int |
process(byte[] buf1,
int n1,
byte[] buf2,
int n2)
|
int |
process(byte[] buf1,
int n1,
byte[] buf2,
int n2,
byte[] buf3,
int n3)
|
int |
process(int n)
|
void |
set(java.lang.String key,
nxm.sys.lib.Data value)
SetKey for generic parameter. |
int |
setkey(long handle,
java.lang.String key,
byte[] value,
int len)
|
int |
work(long handle,
int n)
|
int |
work1(long handle,
byte[] buf1,
int n1)
|
int |
work2(long handle,
byte[] buf1,
int n1,
byte[] buf2,
int n2)
|
int |
work3(long handle,
byte[] buf1,
int n1,
byte[] buf2,
int n2,
byte[] buf3,
int n3)
|
int |
work3(long handle,
byte[] buf1,
int n1,
int n2,
int n3)
|
Methods inherited from class nxm.ice.lib.HPCore |
forName, forName, forName, getD, getDataType, getF, getL, getS, getState, isSet, set, set, set, set, set |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useNative
public static boolean useNative
HPCoreNative
public HPCoreNative()
- Create an instance of this function with native implementation
alloc
public long alloc()
setkey
public int setkey(long handle,
java.lang.String key,
byte[] value,
int len)
getkey
public int getkey(long handle,
java.lang.String key,
byte[] value,
int len)
init
public int init(long handle)
work
public int work(long handle,
int n)
work1
public int work1(long handle,
byte[] buf1,
int n1)
work2
public int work2(long handle,
byte[] buf1,
int n1,
byte[] buf2,
int n2)
work3
public int work3(long handle,
byte[] buf1,
int n1,
byte[] buf2,
int n2,
byte[] buf3,
int n3)
work3
public int work3(long handle,
byte[] buf1,
int n1,
int n2,
int n3)
free
public int free(long handle)
set
public void set(java.lang.String key,
nxm.sys.lib.Data value)
- Description copied from class:
HPCore
- SetKey for generic parameter. Override this method and call super if not handled
- Overrides:
set
in class HPCore
get
public nxm.sys.lib.Data get(java.lang.String key,
byte type)
- Description copied from class:
HPCore
- GetKey for generic parameter. Override this method and call super if not handled
- Overrides:
get
in class HPCore
open
public int open()
- Description copied from class:
HPCore
- Initialize this engine with current parameters
- Overrides:
open
in class HPCore
process
public int process(int n)
- Overrides:
process
in class HPCore
process
public int process(byte[] buf1,
int n1)
- Overrides:
process
in class HPCore
process
public int process(byte[] buf1,
int n1,
byte[] buf2,
int n2)
- Overrides:
process
in class HPCore
process
public int process(byte[] buf1,
int n1,
byte[] buf2,
int n2,
byte[] buf3,
int n3)
- Overrides:
process
in class HPCore
close
public int close()
- Overrides:
close
in class HPCore