mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add support for ZXing-C++ verification (zxingcppdecoder)
DMATAMATRIX: fix look ahead BASE256 use of dm_text_sp_cnt() on switching; simplify dm_add_tail() GUI: check suffixes on save so don't go into error state; use native path for Save As clipboard message CODE128: use gs1_check_digit() for NVE18 and EAN14
This commit is contained in:
@ -1330,6 +1330,7 @@ INTERNAL int dbar_exp_cc(struct zint_symbol *symbol, unsigned char source[], int
|
||||
|
||||
data_chars = bp / 12;
|
||||
|
||||
if (debug_print) printf("Data:");
|
||||
for (i = 0; i < data_chars; i++) {
|
||||
k = i * 12;
|
||||
vs = 0;
|
||||
@ -1352,6 +1353,7 @@ INTERNAL int dbar_exp_cc(struct zint_symbol *symbol, unsigned char source[], int
|
||||
}
|
||||
v_odd = (vs - g_sum_exp[group - 1]) / t_even_exp[group - 1];
|
||||
v_even = (vs - g_sum_exp[group - 1]) % t_even_exp[group - 1];
|
||||
if (debug_print) printf("%s%d", i == 0 || (i & 1) ? " " : ",", vs);
|
||||
|
||||
getRSSwidths(widths, v_odd, modules_odd_exp[group - 1], 4, widest_odd_exp[group - 1], 0);
|
||||
char_widths[i][0] = widths[0];
|
||||
@ -1364,6 +1366,7 @@ INTERNAL int dbar_exp_cc(struct zint_symbol *symbol, unsigned char source[], int
|
||||
char_widths[i][5] = widths[2];
|
||||
char_widths[i][7] = widths[3];
|
||||
}
|
||||
if (debug_print) printf("\n");
|
||||
|
||||
/* 7.2.6 Check character */
|
||||
/* The checksum value is equal to the mod 211 residue of the weighted sum of the widths of the
|
||||
|
Reference in New Issue
Block a user