mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Removed some logging from the QR encoder. Nothing in core should be printf'ing - we can always inspect these with a debugger if needed. Also removed the temporary README about this package not compiling.
git-svn-id: https://zxing.googlecode.com/svn/trunk@753 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
0f648cd1be
commit
87e0ba7523
|
@ -224,7 +224,6 @@ public final class Encoder {
|
|||
final int mask_pattern = i;
|
||||
MatrixUtil.BuildMatrix(bits, ec_level, version, mask_pattern, matrix);
|
||||
final int penalty = MaskUtil.CalculateMaskPenalty(matrix);
|
||||
System.out.println("mask_pattern: " + mask_pattern + ", " + "penalty: " + penalty);
|
||||
if (penalty < min_penalty) {
|
||||
min_penalty = penalty;
|
||||
best_mask_pattern = mask_pattern;
|
||||
|
|
|
@ -40,7 +40,6 @@ public final class MaskUtil {
|
|||
public static int ApplyMaskPenaltyRule1(final ByteMatrix matrix) {
|
||||
final int penalty = (ApplyMaskPenaltyRule1Internal(matrix, true) +
|
||||
ApplyMaskPenaltyRule1Internal(matrix, false));
|
||||
System.out.println("\tApplyMaskPenaltyRule1: " + penalty);
|
||||
return penalty;
|
||||
}
|
||||
|
||||
|
@ -59,7 +58,6 @@ public final class MaskUtil {
|
|||
}
|
||||
}
|
||||
}
|
||||
System.out.println("\tApplyMaskPenaltyRule2: " + penalty);
|
||||
return penalty;
|
||||
}
|
||||
|
||||
|
@ -116,7 +114,6 @@ public final class MaskUtil {
|
|||
}
|
||||
}
|
||||
}
|
||||
System.out.println("\tApplyMaskPenaltyRule3: " + penalty);
|
||||
return penalty;
|
||||
}
|
||||
|
||||
|
@ -144,7 +141,6 @@ public final class MaskUtil {
|
|||
final int num_total_cells = matrix.height() * matrix.width();
|
||||
double dark_ratio = (double) num_dark_cells / num_total_cells;
|
||||
final int penalty = Math.abs((int) (dark_ratio * 100 - 50)) / 5 * 10;
|
||||
System.out.println("\tApplyMaskPenaltyRule4: " + penalty);
|
||||
return penalty;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
This package is a work in progress, porting a C++ library to Java. At the moment, it does not
|
||||
remotely compile or work. It is only checked in so we can collaborate on it. This README will be
|
||||
removed when the port is finished.
|
||||
|
||||
-- dswitkin 11/13/2008
|
Loading…
Reference in a new issue