ptr2 = image->comps[2].data;\r
#ifdef CHECK_THRESHOLDS \r
if (image->comps[0].sgnd) {\r
- min_value = 0;\r
- max_value = 255;\r
- } else {\r
min_value = -128;\r
max_value = 127;\r
+ } else {\r
+ min_value = 0;\r
+ max_value = 255;\r
}\r
-#endif\r
+#endif \r
// Get the pointer to the Java structure where the data must be copied\r
fid = (*env)->GetFieldID(env, cls,"image24", "[I");\r
jia = (*env)->GetObjectField(env, obj, fid);\r
ptrBBody = jbBody;\r
#ifdef CHECK_THRESHOLDS \r
if (image->comps[0].sgnd) {\r
- min_value = 0;\r
- max_value = 255;\r
- } else {\r
min_value = -128;\r
max_value = 127;\r
+ } else {\r
+ min_value = 0;\r
+ max_value = 255;\r
}\r
-#endif \r
+#endif \r
//printf("C: transfering %d shorts to Java image8 pointer = %d\n", wr*hr,ptrSBody);\r
for (i=0; i<w*h; i++) {\r
tempUC = (unsigned char) (ptr[i]);\r
ptrSBody = jsBody;\r
#ifdef CHECK_THRESHOLDS \r
if (image->comps[0].sgnd) {\r
- min_value = 0;\r
- max_value = 65535;\r
- } else {\r
min_value = -32768;\r
max_value = 32767;\r
+ } else {\r
+ min_value = 0;\r
+ max_value = 65535;\r
}\r
printf("C: minValue = %d, maxValue = %d\n", min_value, max_value);\r
#endif \r