@@ -39,7 +39,7 @@ jlong Java_com_googlecode_leptonica_android_AdaptiveMap_nativeBackgroundNormMorp
39
39
PIX *pixd = pixBackgroundNormMorph (pixs, NULL , (l_int32) reduction, (l_int32) size,
40
40
(l_int32) bgval);
41
41
42
- return ( jlong) pixd;
42
+ return jlong ( pixd) ;
43
43
}
44
44
45
45
jlong Java_com_googlecode_leptonica_android_AdaptiveMap_nativePixContrastNorm (JNIEnv *env,
@@ -55,7 +55,7 @@ jlong Java_com_googlecode_leptonica_android_AdaptiveMap_nativePixContrastNorm(JN
55
55
PIX *pixd = pixContrastNorm (NULL , pixs, (l_int32) sizeX, (l_int32) sizeY,
56
56
(l_int32) minDiff, (l_int32) smoothX, (l_int32) smoothY);
57
57
58
- return ( jlong) pixd;
58
+ return jlong ( pixd) ;
59
59
}
60
60
61
61
/* ***********
@@ -79,7 +79,7 @@ jlong Java_com_googlecode_leptonica_android_Binarize_nativeOtsuAdaptiveThreshold
79
79
return (jlong) 0 ;
80
80
}
81
81
82
- return ( jlong) pixd;
82
+ return jlong ( pixd) ;
83
83
}
84
84
85
85
jlong Java_com_googlecode_leptonica_android_Binarize_nativeSauvolaBinarizeTiled (JNIEnv *env,
@@ -98,7 +98,7 @@ jlong Java_com_googlecode_leptonica_android_Binarize_nativeSauvolaBinarizeTiled(
98
98
return (jlong) 0 ;
99
99
}
100
100
101
- return ( jlong) pixd;
101
+ return jlong ( pixd) ;
102
102
}
103
103
104
104
/* *******
@@ -112,7 +112,7 @@ jlong Java_com_googlecode_leptonica_android_Clip_nativeClipRectangle(JNIEnv *env
112
112
BOX *box = (BOX *) nativeBox;
113
113
PIX *pixd;
114
114
pixd = pixClipRectangle (pixs,box,NULL );
115
- return ( jlong) pixd;
115
+ return jlong ( pixd) ;
116
116
}
117
117
118
118
/* **********
@@ -124,7 +124,7 @@ jlong Java_com_googlecode_leptonica_android_Convert_nativeConvertTo8(JNIEnv *env
124
124
PIX *pixs = (PIX *) nativePix;
125
125
PIX *pixd = pixConvertTo8 (pixs, FALSE );
126
126
127
- return ( jlong) pixd;
127
+ return jlong ( pixd) ;
128
128
}
129
129
130
130
/* *******
@@ -138,7 +138,7 @@ jlong Java_com_googlecode_leptonica_android_Edge_nativePixSobelEdgeFilter(JNIEnv
138
138
PIX *pixs = (PIX *) nativePix;
139
139
PIX *pixd = pixSobelEdgeFilter (pixs, (l_int32) orientFlag);
140
140
141
- return ( jlong) pixd;
141
+ return jlong ( pixd) ;
142
142
}
143
143
144
144
/* **********
@@ -152,7 +152,7 @@ jlong Java_com_googlecode_leptonica_android_Enhance_nativeUnsharpMasking(JNIEnv
152
152
PIX *pixs = (PIX *) nativePix;
153
153
PIX *pixd = pixUnsharpMasking (pixs, (l_int32) halfwidth, (l_float32) fract);
154
154
155
- return ( jlong) pixd;
155
+ return jlong ( pixd) ;
156
156
}
157
157
158
158
/* ************
@@ -164,7 +164,7 @@ jlong Java_com_googlecode_leptonica_android_GrayQuant_nativePixThresholdToBinary
164
164
PIX *pixs = (PIX *) nativePix;
165
165
PIX *pixd = pixThresholdToBinary (pixs, (l_int32) thresh);
166
166
167
- return ( jlong) pixd;
167
+ return jlong ( pixd) ;
168
168
}
169
169
170
170
/* *********
@@ -206,7 +206,7 @@ jlong Java_com_googlecode_leptonica_android_MorphApp_nativePixTophat(JNIEnv *env
206
206
PIX *pixs = (PIX *) nativePix;
207
207
PIX *pixd = pixTophat (pixs, (l_int32) hsize, (l_int32) vsize, (l_int32) type);
208
208
209
- return ( jlong) pixd;
209
+ return jlong ( pixd) ;
210
210
}
211
211
212
212
jlong Java_com_googlecode_leptonica_android_MorphApp_nativePixFastTophat (JNIEnv *env, jclass clazz,
@@ -215,7 +215,7 @@ jlong Java_com_googlecode_leptonica_android_MorphApp_nativePixFastTophat(JNIEnv
215
215
PIX *pixs = (PIX *) nativePix;
216
216
PIX *pixd = pixFastTophat (pixs, (l_int32) xsize, (l_int32) ysize, (l_int32) type);
217
217
218
- return ( jlong) pixd;
218
+ return jlong ( pixd) ;
219
219
}
220
220
221
221
/* ********
@@ -225,18 +225,17 @@ jlong Java_com_googlecode_leptonica_android_MorphApp_nativePixFastTophat(JNIEnv
225
225
jlong Java_com_googlecode_leptonica_android_Scale_nativeScaleGeneral (JNIEnv *env, jclass clazz,
226
226
jlong nativePix, jfloat scaleX,
227
227
jfloat scaleY, jfloat sharpfract, jint sharpwidth) {
228
- PIX *pixs = (PIX *) nativePix;
229
- PIX *pixd = pixScaleGeneral (pixs, (l_float32) scaleX, (l_float32) scaleY,(l_float32) sharpfract, (l_int32) sharpwidth);
230
- return (jlong) pixd;
228
+ PIX *pixs = (Pix *) nativePix;
229
+ return (jlong) pixScaleGeneral (pixs, (l_float32) scaleX, (l_float32) scaleY,(l_float32) sharpfract, (l_int32) sharpwidth);
231
230
}
232
231
233
232
jlong Java_com_googlecode_leptonica_android_Scale_nativeScale (JNIEnv *env, jclass clazz,
234
233
jlong nativePix, jfloat scaleX,
235
234
jfloat scaleY) {
236
- PIX *pixs = (PIX *) nativePix;
235
+ PIX *pixs = (Pix *) nativePix;
237
236
PIX *pixd = pixScale (pixs, (l_float32) scaleX, (l_float32) scaleY);
238
237
239
- return ( jlong) pixd;
238
+ return jlong ( pixd) ;
240
239
}
241
240
242
241
/* *******
@@ -291,7 +290,7 @@ jlong Java_com_googlecode_leptonica_android_Rotate_nativeRotate(JNIEnv *env, jcl
291
290
pixd = pixRotate (pixs, radians, type, L_BRING_IN_WHITE, w, h);
292
291
}
293
292
294
- return ( jlong) pixd;
293
+ return jlong ( pixd) ;
295
294
}
296
295
297
296
jlong Java_com_googlecode_leptonica_android_Rotate_nativeRotateOrth (JNIEnv *env, jclass clazz,
@@ -300,7 +299,7 @@ jlong Java_com_googlecode_leptonica_android_Rotate_nativeRotateOrth(JNIEnv *env,
300
299
PIX *pixs = (PIX *) nativePix;
301
300
PIX *pixd;
302
301
pixd = pixRotateOrth (pixs,(int )quads);
303
- return ( jlong) pixd;
302
+ return jlong ( pixd) ;
304
303
}
305
304
306
305
#ifdef __cplusplus
0 commit comments