1 package mhr.appcore.interpolators;
3 import mhr.appcore.bitmap.NBitmap;
4 import mhr.appcore.bitmap.NativeType;
5 import mhr.appcore.exceptions.AlreadyDisposedException;
29 if (src.getAdress() == 0) {
32 if (src.getNativeType() != dst.getNativeType()) {
33 throw new IllegalArgumentException(
"Source and destination type doesn't match.");
35 return resampleTo(src.getNativeType().getValue(), src.getAdress(), dst.getAdress());
43 if (src.getAdress() == 0) {
46 if (src.getNativeType() != dst.getNativeType()) {
47 throw new IllegalArgumentException(
"Source and destination type doesn't match.");
49 return resampleTo(src.getNativeType().getValue(), src.getAdress(), dst.getAdress(), iType.getValue());
57 if (src.getAdress() == 0) {
60 if (src.getNativeType() != dst.getNativeType()) {
61 throw new IllegalArgumentException(
"Source and destination type doesn't match.");
63 return resampleTo(src.getNativeType().getValue(), src.getAdress(), dst.getAdress(), iType.getValue(), force);
82 protected static native
int resampleTo(
int nativeType,
long srcAdress,
long dstAdress);
83 protected static native
int resampleTo(
int nativeType,
long srcAdress,
long dstAdress,
int iType);
84 protected static native
int resampleTo(
int nativeType,
long srcAdress,
long dstAdress,
int iType,
double force);