App
Functions
mhr_appcore_transform_Transform.cpp File Reference
#include "mhr_appcore_transform_Transform.hpp"
#include "../app/app_all.hpp"

Go to the source code of this file.

Functions

JNIEXPORT jint JNICALL Java_mhr_appcore_transform_Transform_applyMatrixTo (JNIEnv *pEnv, jclass pThisClass, jint nativeType, jlong dstAdress, jlong srcAdress, jint interpolatorType, jdouble a11, jdouble a12, jdouble a13, jdouble a21, jdouble a22, jdouble a23, jdouble a31, jdouble a32, jdouble a33)
 

Function Documentation

JNIEXPORT jint JNICALL Java_mhr_appcore_transform_Transform_applyMatrixTo ( JNIEnv *  pEnv,
jclass  pThisClass,
jint  nativeType,
jlong  dstAdress,
jlong  srcAdress,
jint  interpolatorType,
jdouble  a11,
jdouble  a12,
jdouble  a13,
jdouble  a21,
jdouble  a22,
jdouble  a23,
jdouble  a31,
jdouble  a32,
jdouble  a33 
)

Definition at line 7 of file mhr_appcore_transform_Transform.cpp.

{
int retVal = -1;
Matrix3x3 m(a11, a12, a13, a21, a22, a23, a31, a32, a33);
switch ((BitmapNativeType) nativeType) {
case mono_8_bit:
break;
case rgba_8_bit: {
switch ((InterpolatorNativeType) interpolatorType) {
if (t == NULL) {
return retVal;
}
retVal = t->applyMatrix(*((rgba_8bit_bitmap *)dstAdress), *((rgba_8bit_bitmap *)srcAdress), m);
delete t;
break;
}
case LINEAR: {
if (t == NULL) {
return retVal;
}
retVal = t->applyMatrix(*((rgba_8bit_bitmap *)dstAdress), *((rgba_8bit_bitmap *)srcAdress), m);
delete t;
break;
}
case CUBIC: {
if (t == NULL) {
return retVal;
}
retVal = t->applyMatrix(*((rgba_8bit_bitmap *)dstAdress), *((rgba_8bit_bitmap *)srcAdress), m);
delete t;
break;
}
default:
break;
}
break;
}
default:
break;
}
return retVal;
}