App
Functions
mhr_appcore_interpolators_Interpolator.h File Reference
#include <jni.h>

Go to the source code of this file.

Functions

JNIEXPORT jint JNICALL Java_mhr_appcore_interpolators_Interpolator_resampleTo__IJJ (JNIEnv *, jclass, jint, jlong, jlong)
 
JNIEXPORT jint JNICALL Java_mhr_appcore_interpolators_Interpolator_resampleTo__IJJI (JNIEnv *, jclass, jint, jlong, jlong, jint)
 
JNIEXPORT jint JNICALL Java_mhr_appcore_interpolators_Interpolator_resampleTo__IJJID (JNIEnv *, jclass, jint, jlong, jlong, jint, jdouble)
 

Function Documentation

JNIEXPORT jint JNICALL Java_mhr_appcore_interpolators_Interpolator_resampleTo__IJJ ( JNIEnv *  pEnv,
jclass  pThisClass,
jint  nativeType,
jlong  srcAdress,
jlong  dstAdress 
)

protected static native int resampleTo(int nativeType, long srcAdress, long dstAdress);

Definition at line 9 of file mhr_appcore_interpolators_Interpolator.cpp.

{
int retVal = 0;
switch ((BitmapNativeType) nativeType) {
case mono_8_bit:
{
retVal = i->resampleTo(*((mono_8bit_bitmap *)dstAdress));
delete i;
break;
}
case rgba_8_bit:
{
retVal = i->resampleTo(*((rgba_8bit_bitmap *)dstAdress));
delete i;
break;
}
default:
retVal = -1;
break;
}
return retVal;
}
JNIEXPORT jint JNICALL Java_mhr_appcore_interpolators_Interpolator_resampleTo__IJJI ( JNIEnv *  ,
jclass  ,
jint  ,
jlong  ,
jlong  ,
jint   
)

Definition at line 33 of file mhr_appcore_interpolators_Interpolator.cpp.

{
int retVal = 0;
switch ((BitmapNativeType) nativeType) {
case mono_8_bit:
{
switch ((InterpolatorNativeType)iType) {
break;
case LINEAR:
break;
case CUBIC:
break;
default:
break;
}
if (i != NULL) {
retVal = i->resampleTo(*((mono_8bit_bitmap *)dstAdress));
delete i;
}
break;
}
case rgba_8_bit:
{
switch ((InterpolatorNativeType)iType) {
break;
case LINEAR:
break;
case CUBIC:
break;
default:
break;
}
if (i != NULL) {
retVal = i->resampleTo(*((rgba_8bit_bitmap *)dstAdress));
delete i;
}
break;
}
default:
retVal = -1;
break;
}
return retVal;
}
JNIEXPORT jint JNICALL Java_mhr_appcore_interpolators_Interpolator_resampleTo__IJJID ( JNIEnv *  ,
jclass  ,
jint  ,
jlong  ,
jlong  ,
jint  ,
jdouble   
)

Definition at line 87 of file mhr_appcore_interpolators_Interpolator.cpp.

{
int retVal = 0;
switch ((BitmapNativeType) nativeType) {
case mono_8_bit:
{
switch ((InterpolatorNativeType)iType) {
break;
case LINEAR:
break;
case CUBIC:
break;
default:
break;
}
if (i != NULL) {
retVal = i->resampleTo_aliased(*((mono_8bit_bitmap *)dstAdress), force);
delete i;
}
break;
}
case rgba_8_bit:
{
switch ((InterpolatorNativeType)iType) {
break;
case LINEAR:
break;
case CUBIC:
break;
default:
break;
}
if (i != NULL) {
retVal = i->resampleTo_aliased(*((rgba_8bit_bitmap *)dstAdress), force);
delete i;
}
break;
}
default:
retVal = -1;
break;
}
return retVal;
}