100 |
// Only TexAccum_JNI objects will be stored here |
// Only TexAccum_JNI objects will be stored here |
101 |
extern ObjectStorer<Stats::TexAccum> texaccums; |
extern ObjectStorer<Stats::TexAccum> texaccums; |
102 |
|
|
|
|
|
103 |
typedef ::Vob::Paper::Paper P; // g++3.2 doesn't like ::... inside |
typedef ::Vob::Paper::Paper P; // g++3.2 doesn't like ::... inside |
104 |
// template param |
// template param |
105 |
extern ObjectStorer<P> papers; |
extern ObjectStorer<P> papers; |
232 |
out = jstr2stdstr(env, in); |
out = jstr2stdstr(env, in); |
233 |
END_VOB_JNI_CONVERSION |
END_VOB_JNI_CONVERSION |
234 |
|
|
235 |
START_VOB_JNI_CONVERSION(float *, "float []", jfloatArray) |
START_VOB_JNI_CONVERSION(std::vector<float>, "float []", jfloatArray) |
236 |
out = env->GetFloatArrayElements(in, 0); |
jsize len = env->GetArrayLength(in); |
237 |
|
int i = 0; |
238 |
|
std::vector<float> floats; |
239 |
|
jfloat *f = env->GetFloatArrayElements(in, 0); |
240 |
|
for (i=0; i<len; i++) { |
241 |
|
floats.push_back(f[i]); |
242 |
|
} |
243 |
|
env->ReleaseFloatArrayElements(in, f, 0); |
244 |
|
out = floats; |
245 |
END_VOB_JNI_CONVERSION |
END_VOB_JNI_CONVERSION |
246 |
|
|
247 |
|
|