Here are the examples of the csharp api class ZXing.PDF417.Internal.PDF417ErrorCorrection.getErrorCorrectionCodewordCount(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
View licenseinternal static String generateErrorCorrection(String dataCodewords, int errorCorrectionLevel) { int k = getErrorCorrectionCodewordCount(errorCorrectionLevel); char[] e = new char[k]; int sld = dataCodewords.Length; for (int i = 0; i < sld; i++) { int t1 = (dataCodewords[i] + e[e.Length - 1]) % 929; int t2; int t3; for (int j = k - 1; j >= 1; j--) { t2 = (t1 * EC_COEFFICIENTS[errorCorrectionLevel][j]) % 929; t3 = 929 - t2; e[j] = (char)((e[j - 1] + t3) % 929); } t2 = (t1 * EC_COEFFICIENTS[errorCorrectionLevel][0]) % 929; t3 = 929 - t2; e[0] = (char)(t3 % 929); } StringBuilder sb = new StringBuilder(k); for (int j = k - 1; j >= 0; j--) { if (e[j] != 0) { e[j] = (char)(929 - e[j]); } sb.Append(e[j]); } return sb.ToString(); }
0
2. Example
View licenseinternal static String generateErrorCorrection(String dataCodewords, int errorCorrectionLevel) { int k = getErrorCorrectionCodewordCount(errorCorrectionLevel); char[] e = new char[k]; int sld = dataCodewords.Length; for (int i = 0; i < sld; i++) { int t1 = (dataCodewords[i] + e[e.Length - 1])%929; int t2; int t3; for (int j = k - 1; j >= 1; j--) { t2 = (t1*EC_COEFFICIENTS[errorCorrectionLevel][j])%929; t3 = 929 - t2; e[j] = (char) ((e[j - 1] + t3)%929); } t2 = (t1*EC_COEFFICIENTS[errorCorrectionLevel][0])%929; t3 = 929 - t2; e[0] = (char) (t3%929); } StringBuilder sb = new StringBuilder(k); for (int j = k - 1; j >= 0; j--) { if (e[j] != 0) { e[j] = (char) (929 - e[j]); } sb.Append(e[j]); } return sb.ToString(); }
0
3. Example
View licenseinternal static String generateErrorCorrection(String dataCodewords, int errorCorrectionLevel) { int k = getErrorCorrectionCodewordCount(errorCorrectionLevel); char[] e = new char[k]; int sld = dataCodewords.Length; for (int i = 0; i < sld; i++) { int t1 = (dataCodewords[i] + e[e.Length - 1])%929; int t2; int t3; for (int j = k - 1; j >= 1; j--) { t2 = (t1*EC_COEFFICIENTS[errorCorrectionLevel][j])%929; t3 = 929 - t2; e[j] = (char) ((e[j - 1] + t3)%929); } t2 = (t1*EC_COEFFICIENTS[errorCorrectionLevel][0])%929; t3 = 929 - t2; e[0] = (char) (t3%929); } StringBuilder sb = new StringBuilder(k); for (int j = k - 1; j >= 0; j--) { if (e[j] != 0) { e[j] = (char) (929 - e[j]); } sb.Append(e[j]); } return sb.ToString(); }