Lines Matching refs:nc
102 data_nrow, data_ncol, reg_row, reg_col, nd, nc, inter = get_parameters( nrow, ncol )
110 codewords = get_codewords( text, nd, nc, inter, size144 )
126 # nc number of ECC codewords per reed-solomon block
213 def get_codewords( text, nd, nc, inter, size144 ):
222 data_blocks = reed_solomon(data_blocks, nd, nc) #generate and append the Reed-Solomon codewords
224 data_blocks = combine_interleaved(data_blocks, inter, nd, nc, False) #concatenate Reed-Solomon blocks bound for the same datamatrix
234 nc = 62
237 block1 = reed_solomon(block1, nd, nc) #generate and append the Reed-Solomon codewords
241 nc = 62
244 block2 = reed_solomon(block2, nd, nc) #generate and append the Reed-Solomon codewords
249 blocks = combine_interleaved(blocks, 10, nd, nc, True)
281 def combine_interleaved( blocks, inter, nd, nc, size144):
294 nc_range = nc*inter
399 def gen_poly_coeffs(nc, log, alog, gf):
400 c = [0] * (nc+1)
403 for i in range(1,nc+1):
415 # "ReedSolomon(wd,nd,nc)" takes "nd" data codeword values in wd[]
416 # and adds on "nc" check codewords, all within GF(gf) where "gf" is a
418 def reed_solomon(data, nd, nc):
424 c = gen_poly_coeffs(nc, log, alog, gf)
428 block.extend( [0]*(nc+1) ) #extend to make space for the error codewords
430 #generate "nc" checkwords in the list block
434 for j in range(0,nc):
435 block[nd+j] = block[nd+j+1] ^ prod(k,c[nc-j-1],log, alog,gf)