Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
Minor changes to log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rmtheis committed Jun 1, 2015
1 parent 8fba15b commit 0ae07b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tess-two/jni/com_googlecode_leptonica_android/readfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jlong Java_com_googlecode_leptonica_android_ReadFile_nativeReadBytes8(JNIEnv *en

pixGetDimensions(pix, &w, &h, &d);

LOGE("Created image width w=%d, h=%d, d=%d", w, h, d);
LOGI("Created image with w=%d, h=%d, d=%d", w, h, d);

return (jlong) pix;
}
Expand Down Expand Up @@ -118,17 +118,17 @@ jlong Java_com_googlecode_leptonica_android_ReadFile_nativeReadBitmap(JNIEnv *en
int ret;

if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) {
LOGE("AndroidBitmap_getInfo() failed ! error=%d", ret);
LOGE("AndroidBitmap_getInfo() failed! error=%d", ret);
return (jlong) NULL;
}

if (info.format != ANDROID_BITMAP_FORMAT_RGBA_8888) {
LOGE("Bitmap format is not RGBA_8888 !");
LOGE("Bitmap format is not RGBA_8888!");
return (jlong) NULL;
}

if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) {
LOGE("AndroidBitmap_lockPixels() failed ! error=%d", ret);
LOGE("AndroidBitmap_lockPixels() failed! error=%d", ret);
return (jlong) NULL;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jboolean Java_com_googlecode_leptonica_android_WriteFile_nativeWriteBitmap(JNIEn
l_int32 dstBpl = info.stride;
l_int32 srcBpl = 4 * pixGetWpl(pixs);

LOGE("Writing 32bpp RGBA bitmap (w=%d, h=%d, stride=%d) from %dbpp Pix (wpl=%d)", info.width,
LOGI("Writing 32bpp RGBA bitmap (w=%d, h=%d, stride=%d) from %dbpp Pix (wpl=%d)", info.width,
info.height, info.stride, d, pixGetWpl(pixs));

for (int dy = 0; dy < info.height; dy++) {
Expand Down
2 changes: 1 addition & 1 deletion tess-two/src/com/googlecode/leptonica/android/Box.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public int getHeight() {
* Returns an array containing the coordinates of this box. See INDEX_*
* constants for indices.
*
* @return an array of box oordinates
* @return an array of box coordinates
*/
public int[] getGeometry() {
int[] geometry = new int[4];
Expand Down

0 comments on commit 0ae07b4

Please sign in to comment.