Lines Matching full:matrix
30 * The following data are precoded matrices, online and offline matrix
184 len is the number of matrix-lines. len must be a multiple of 10, i.e.
199 while (line < len) { /* Are we done with all lines of the matrix? */ in DecodeMatrix()
200 if ((line % 10) == 0) { /* the 0. line of the matrix is always 0 ! */ in DecodeMatrix()
207 line++; /* next line of matrix */ in DecodeMatrix()
219 introducer = (m[line] & mbit) ? 0 : 1; /* current bit of the matrix */ in DecodeMatrix()
229 if (m[line] & mbit) /* was that bit set in the matrix ? */ in DecodeMatrix()
240 goto next_byte; /* look for next bit in the matrix */ in DecodeMatrix()
322 matrix-lines generated.
335 switch (line % 10) { /* in which line of the matrix are we? */ in EncodeMatrix()
359 mbit = 64; /* current bit in the matrix line */ in EncodeMatrix()
365 mbit >>= 1; /* bit of matrix line >> 1 */ in EncodeMatrix()
367 } /* else push data bits into the matrix! */ in EncodeMatrix()
368 m[line] |= (buf[i] & dbit) ? mbit : 0; /* set data bit in matrix */ in EncodeMatrix()
380 mbit >>= 1; /* go to next bit of matrix */ in EncodeMatrix()
384 /* if necessary, generate remaining lines of the matrix... */ in EncodeMatrix()